ish-ui 1.0.50 → 1.0.55
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/dist/layout/resizable/ResizableWrapper.js +1 -1
- package/dist/model/Theme.d.ts +2 -1
- package/dist/themes/index.d.ts +0 -1
- package/dist/themes/index.js +0 -1
- package/dist/themes/ishTheme.js +371 -52
- package/package.json +1 -1
- package/dist/themes/appTheme.d.ts +0 -4
- package/dist/themes/appTheme.js +0 -322
|
@@ -3,7 +3,7 @@ import { Resizable } from 're-resizable';
|
|
|
3
3
|
import { withStyles, createStyles } from '@mui/styles';
|
|
4
4
|
import useMediaQuery from '@mui/material/useMediaQuery';
|
|
5
5
|
import clsx from 'clsx';
|
|
6
|
-
const LIST_SIDE_BAR_DEFAULT_WIDTH =
|
|
6
|
+
const LIST_SIDE_BAR_DEFAULT_WIDTH = 280;
|
|
7
7
|
const styles = (theme) => createStyles({
|
|
8
8
|
sideBar: {
|
|
9
9
|
borderRight: `1px solid ${theme.palette.divider}`,
|
package/dist/model/Theme.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ type TextExtended = TypeText & {
|
|
|
17
17
|
hint: string;
|
|
18
18
|
grey: string;
|
|
19
19
|
};
|
|
20
|
-
export interface
|
|
20
|
+
export interface ThemeOverrides {
|
|
21
21
|
heading: StringKeyObject<ColorGetter>;
|
|
22
22
|
blog: StringKeyObject<StringKeyObject<ColorGetter>>;
|
|
23
23
|
share: StringKeyObject<StringKeyObject<ColorGetter>>;
|
|
@@ -31,4 +31,5 @@ export interface AppTheme extends Theme {
|
|
|
31
31
|
};
|
|
32
32
|
addButtonColor: StringKeyObject<ColorGetter>;
|
|
33
33
|
}
|
|
34
|
+
export type AppTheme = Theme & ThemeOverrides;
|
|
34
35
|
export {};
|
package/dist/themes/index.d.ts
CHANGED
package/dist/themes/index.js
CHANGED
|
@@ -6,4 +6,3 @@
|
|
|
6
6
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
7
7
|
*/
|
|
8
8
|
export * from './ishTheme';
|
|
9
|
-
export * from './appTheme';
|
package/dist/themes/ishTheme.js
CHANGED
|
@@ -5,9 +5,10 @@
|
|
|
5
5
|
*
|
|
6
6
|
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.
|
|
7
7
|
*/
|
|
8
|
-
import { createTheme } from '@mui/material/styles';
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
8
|
+
import { alpha, createTheme, darken } from '@mui/material/styles';
|
|
9
|
+
import { DarkThemeKey, DefaultThemeKey, HighcontrastThemeKey, MonochromeThemeKey, } from '../model';
|
|
10
|
+
import createPalette from '@mui/material/styles/createPalette';
|
|
11
|
+
import { grey, yellow } from '@mui/material/colors';
|
|
11
12
|
const createOverrides = (palette) => ({
|
|
12
13
|
components: {
|
|
13
14
|
MuiButtonBase: {
|
|
@@ -217,7 +218,7 @@ const commonTypography = {
|
|
|
217
218
|
}
|
|
218
219
|
};
|
|
219
220
|
// Default Theme
|
|
220
|
-
const defaultThemePalette = {
|
|
221
|
+
const defaultThemePalette = createPalette({
|
|
221
222
|
primary: {
|
|
222
223
|
main: '#f7941d',
|
|
223
224
|
contrastText: '#fff'
|
|
@@ -226,20 +227,100 @@ const defaultThemePalette = {
|
|
|
226
227
|
default: '#fbf9f0'
|
|
227
228
|
},
|
|
228
229
|
secondary: {
|
|
229
|
-
main: '#
|
|
230
|
-
},
|
|
231
|
-
text: {
|
|
232
|
-
secondary: 'rgba(0, 0, 0, 0.54)',
|
|
233
|
-
primary: 'rgba(0, 0, 0, 0.87)',
|
|
234
|
-
primaryEditable: 'rgba(0, 0, 0, 0.95)',
|
|
235
|
-
disabled: 'rgba(34, 34, 34, 0.38)',
|
|
236
|
-
hint: 'rgba(34, 34, 34, 0.38)',
|
|
237
|
-
grey: '#434343',
|
|
230
|
+
main: '#5660AB'
|
|
238
231
|
}
|
|
239
|
-
};
|
|
240
|
-
|
|
232
|
+
});
|
|
233
|
+
const getDefaultThemeOverrides = (pallete) => ({
|
|
234
|
+
heading: {
|
|
235
|
+
color: pallete.secondary.main
|
|
236
|
+
},
|
|
237
|
+
blog: {
|
|
238
|
+
root: {
|
|
239
|
+
backgroundColor: yellow[100]
|
|
240
|
+
}
|
|
241
|
+
},
|
|
242
|
+
share: {
|
|
243
|
+
exportContainer: {
|
|
244
|
+
backgroundColor: '#302A22'
|
|
245
|
+
},
|
|
246
|
+
closeButton: {
|
|
247
|
+
color: pallete.primary.main
|
|
248
|
+
},
|
|
249
|
+
shareButton: {
|
|
250
|
+
color: '#302A22',
|
|
251
|
+
backgroundColor: '#fff',
|
|
252
|
+
backgroundColorHover: alpha('#fff', 0.9)
|
|
253
|
+
},
|
|
254
|
+
color: {
|
|
255
|
+
headerText: '#fff',
|
|
256
|
+
itemText: 'rgba(255,255,255,0.6)',
|
|
257
|
+
selectedItemText: 'rgba(255,255,255,1)',
|
|
258
|
+
customLabel: 'rgba(255,255,255,.5)'
|
|
259
|
+
}
|
|
260
|
+
},
|
|
261
|
+
statistics: {
|
|
262
|
+
coloredHeaderText: {
|
|
263
|
+
color: pallete.primary.main
|
|
264
|
+
},
|
|
265
|
+
enrolmentText: {
|
|
266
|
+
color: '#73cba7',
|
|
267
|
+
strokeColor: '#73cba7'
|
|
268
|
+
},
|
|
269
|
+
revenueText: {
|
|
270
|
+
color: '#ffd876',
|
|
271
|
+
strokeColor: '#ffd876'
|
|
272
|
+
},
|
|
273
|
+
rightColumn: {
|
|
274
|
+
color: alpha('rgba(0, 0, 0, 0.87)', 0.4)
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
appBar: {
|
|
278
|
+
header: {
|
|
279
|
+
background: '#fbf9f0',
|
|
280
|
+
color: '#222',
|
|
281
|
+
},
|
|
282
|
+
headerAlternate: {
|
|
283
|
+
background: '#fff',
|
|
284
|
+
color: '#222',
|
|
285
|
+
},
|
|
286
|
+
},
|
|
287
|
+
appBarButton: {
|
|
288
|
+
close: {
|
|
289
|
+
color: pallete.primary.main,
|
|
290
|
+
},
|
|
291
|
+
helpMenu: {
|
|
292
|
+
color: pallete.primary.main,
|
|
293
|
+
}
|
|
294
|
+
},
|
|
295
|
+
tabList: {
|
|
296
|
+
listContainer: {
|
|
297
|
+
backgroundColor: pallete.secondary.main
|
|
298
|
+
},
|
|
299
|
+
listItemRoot: {
|
|
300
|
+
color: '#fff'
|
|
301
|
+
},
|
|
302
|
+
},
|
|
303
|
+
table: {
|
|
304
|
+
contrastRow: {
|
|
305
|
+
main: '#f8f8f8',
|
|
306
|
+
light: '#f4f3ec'
|
|
307
|
+
}
|
|
308
|
+
},
|
|
309
|
+
addButtonColor: {
|
|
310
|
+
color: pallete.primary.main
|
|
311
|
+
},
|
|
312
|
+
palette: Object.assign(Object.assign({}, pallete), { text: {
|
|
313
|
+
secondary: 'rgba(0, 0, 0, 0.54)',
|
|
314
|
+
primary: 'rgba(0, 0, 0, 0.87)',
|
|
315
|
+
primaryEditable: 'rgba(0, 0, 0, 0.95)',
|
|
316
|
+
disabled: 'rgba(34, 34, 34, 0.38)',
|
|
317
|
+
hint: 'rgba(34, 34, 34, 0.38)',
|
|
318
|
+
grey: '#434343',
|
|
319
|
+
} })
|
|
320
|
+
});
|
|
321
|
+
export const defaultTheme = createTheme(Object.assign(Object.assign(Object.assign({ palette: defaultThemePalette }, commonTypography), getDefaultThemeOverrides(defaultThemePalette)), createOverrides(defaultThemePalette)));
|
|
241
322
|
// Dark Theme
|
|
242
|
-
const darkThemePalette = {
|
|
323
|
+
const darkThemePalette = createPalette({
|
|
243
324
|
mode: 'dark',
|
|
244
325
|
common: { black: '#000', white: '#fff' },
|
|
245
326
|
primary: {
|
|
@@ -252,26 +333,106 @@ const darkThemePalette = {
|
|
|
252
333
|
paper: '#313131'
|
|
253
334
|
},
|
|
254
335
|
secondary: {
|
|
255
|
-
light: '
|
|
256
|
-
main: '#
|
|
257
|
-
dark: '
|
|
336
|
+
light: '#6971B4',
|
|
337
|
+
main: '#B4B8D9',
|
|
338
|
+
dark: '#6971B4',
|
|
258
339
|
contrastText: '#fff'
|
|
259
340
|
},
|
|
260
341
|
error: {
|
|
261
342
|
light: '#e57373', main: '#f44336', dark: '#d32f2f', contrastText: '#fff'
|
|
262
|
-
},
|
|
263
|
-
text: {
|
|
264
|
-
primary: 'rgba(255, 255, 255, 0.87)',
|
|
265
|
-
primaryEditable: 'rgba(255, 255, 255, 0.95)',
|
|
266
|
-
secondary: 'rgba(255, 255, 255, 0.65)',
|
|
267
|
-
disabled: 'rgba(255, 255, 255, 0.38)',
|
|
268
|
-
hint: 'rgba(255, 255, 255, 0.38)',
|
|
269
|
-
grey: 'rgba(255, 255, 255, 0.65)',
|
|
270
343
|
}
|
|
271
|
-
};
|
|
272
|
-
|
|
344
|
+
});
|
|
345
|
+
const getDarkThemeOverrides = (pallete) => ({
|
|
346
|
+
heading: {
|
|
347
|
+
color: pallete.secondary.main
|
|
348
|
+
},
|
|
349
|
+
blog: {
|
|
350
|
+
root: {
|
|
351
|
+
backgroundColor: '#303030'
|
|
352
|
+
}
|
|
353
|
+
},
|
|
354
|
+
share: {
|
|
355
|
+
exportContainer: {
|
|
356
|
+
backgroundColor: '#302A22'
|
|
357
|
+
},
|
|
358
|
+
closeButton: {
|
|
359
|
+
color: pallete.primary.main
|
|
360
|
+
},
|
|
361
|
+
shareButton: {
|
|
362
|
+
color: '#302A22',
|
|
363
|
+
backgroundColor: '#fff',
|
|
364
|
+
backgroundColorHover: alpha('#fff', 0.9)
|
|
365
|
+
},
|
|
366
|
+
color: {
|
|
367
|
+
headerText: '#fff',
|
|
368
|
+
itemText: 'rgba(255,255,255,0.6)',
|
|
369
|
+
selectedItemText: 'rgba(255,255,255,1)',
|
|
370
|
+
customLabel: 'rgba(255,255,255,.5)'
|
|
371
|
+
}
|
|
372
|
+
},
|
|
373
|
+
statistics: {
|
|
374
|
+
coloredHeaderText: {
|
|
375
|
+
color: pallete.primary.main
|
|
376
|
+
},
|
|
377
|
+
enrolmentText: {
|
|
378
|
+
color: '#73cba7',
|
|
379
|
+
strokeColor: '#73cba7'
|
|
380
|
+
},
|
|
381
|
+
revenueText: {
|
|
382
|
+
color: '#ffd876',
|
|
383
|
+
strokeColor: '#ffd876'
|
|
384
|
+
},
|
|
385
|
+
rightColumn: {
|
|
386
|
+
color: alpha('rgba(255, 255, 255, 0.87)', 0.4)
|
|
387
|
+
}
|
|
388
|
+
},
|
|
389
|
+
appBar: {
|
|
390
|
+
header: {
|
|
391
|
+
background: '#1b1b1b',
|
|
392
|
+
color: '#fff',
|
|
393
|
+
},
|
|
394
|
+
headerAlternate: {
|
|
395
|
+
background: pallete.primary.main,
|
|
396
|
+
color: '#fff',
|
|
397
|
+
},
|
|
398
|
+
},
|
|
399
|
+
appBarButton: {
|
|
400
|
+
close: {
|
|
401
|
+
color: 'white'
|
|
402
|
+
},
|
|
403
|
+
helpMenu: {
|
|
404
|
+
color: '#fff'
|
|
405
|
+
}
|
|
406
|
+
},
|
|
407
|
+
tabList: {
|
|
408
|
+
listContainer: {
|
|
409
|
+
backgroundColor: '#302A22'
|
|
410
|
+
},
|
|
411
|
+
listItemRoot: {
|
|
412
|
+
color: '#fff'
|
|
413
|
+
},
|
|
414
|
+
},
|
|
415
|
+
table: {
|
|
416
|
+
contrastRow: {
|
|
417
|
+
main: '#696969',
|
|
418
|
+
light: '#696969bf'
|
|
419
|
+
}
|
|
420
|
+
},
|
|
421
|
+
addButtonColor: {
|
|
422
|
+
color: darken(grey[400], 0.1)
|
|
423
|
+
},
|
|
424
|
+
palette: Object.assign(Object.assign({}, pallete), { text: {
|
|
425
|
+
primary: 'rgba(255, 255, 255, 0.87)',
|
|
426
|
+
primaryEditable: 'rgba(255, 255, 255, 0.95)',
|
|
427
|
+
secondary: 'rgba(255, 255, 255, 0.65)',
|
|
428
|
+
disabled: 'rgba(255, 255, 255, 0.38)',
|
|
429
|
+
hint: 'rgba(255, 255, 255, 0.38)',
|
|
430
|
+
grey: 'rgba(255, 255, 255, 0.65)',
|
|
431
|
+
} })
|
|
432
|
+
});
|
|
433
|
+
export const darkTheme = createTheme(Object.assign(Object.assign(Object.assign({ palette: darkThemePalette }, commonTypography), getDarkThemeOverrides(darkThemePalette)), createOverrides(darkThemePalette)));
|
|
273
434
|
// Monochrome Theme
|
|
274
|
-
const monochromeThemePalette = {
|
|
435
|
+
const monochromeThemePalette = createPalette({
|
|
275
436
|
mode: 'light',
|
|
276
437
|
common: { black: '#000', white: '#fff' },
|
|
277
438
|
primary: {
|
|
@@ -280,26 +441,106 @@ const monochromeThemePalette = {
|
|
|
280
441
|
contrastText: '#fff'
|
|
281
442
|
},
|
|
282
443
|
secondary: {
|
|
283
|
-
light: '#
|
|
444
|
+
light: '#B4B8D9',
|
|
284
445
|
main: '#111111',
|
|
285
446
|
dark: '#111111',
|
|
286
447
|
contrastText: '#fff'
|
|
287
448
|
},
|
|
288
449
|
error: {
|
|
289
450
|
light: '#e57373', main: '#f44336', dark: '#d32f2f', contrastText: '#fff'
|
|
290
|
-
},
|
|
291
|
-
text: {
|
|
292
|
-
primary: '#222222',
|
|
293
|
-
primaryEditable: '#181818',
|
|
294
|
-
secondary: 'rgba(34, 34, 34, 0.54)',
|
|
295
|
-
disabled: 'rgba(34, 34, 34, 0.38)',
|
|
296
|
-
hint: 'rgba(34, 34, 34, 0.38)',
|
|
297
|
-
grey: '#434343',
|
|
298
451
|
}
|
|
299
|
-
};
|
|
300
|
-
|
|
452
|
+
});
|
|
453
|
+
const getMonochromeThemeOverrides = (pallete) => ({
|
|
454
|
+
heading: {
|
|
455
|
+
color: '#000'
|
|
456
|
+
},
|
|
457
|
+
blog: {
|
|
458
|
+
root: {
|
|
459
|
+
backgroundColor: '#eee'
|
|
460
|
+
}
|
|
461
|
+
},
|
|
462
|
+
share: {
|
|
463
|
+
exportContainer: {
|
|
464
|
+
backgroundColor: '#222222'
|
|
465
|
+
},
|
|
466
|
+
closeButton: {
|
|
467
|
+
color: '#eaeaea'
|
|
468
|
+
},
|
|
469
|
+
shareButton: {
|
|
470
|
+
color: '#fff',
|
|
471
|
+
backgroundColor: '#3e8ef7',
|
|
472
|
+
backgroundColorHover: alpha('#3e8ef7', 0.9)
|
|
473
|
+
},
|
|
474
|
+
color: {
|
|
475
|
+
headerText: '#fff',
|
|
476
|
+
itemText: 'rgba(255,255,255,0.6)',
|
|
477
|
+
selectedItemText: 'rgba(255,255,255,1)',
|
|
478
|
+
customLabel: 'rgba(255,255,255,.5)'
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
statistics: {
|
|
482
|
+
coloredHeaderText: {
|
|
483
|
+
color: '#222222'
|
|
484
|
+
},
|
|
485
|
+
enrolmentText: {
|
|
486
|
+
color: '#73cba7',
|
|
487
|
+
strokeColor: '#73cba7'
|
|
488
|
+
},
|
|
489
|
+
revenueText: {
|
|
490
|
+
color: '#ffd876',
|
|
491
|
+
strokeColor: '#ffd876'
|
|
492
|
+
},
|
|
493
|
+
rightColumn: {
|
|
494
|
+
color: alpha('#222222', 0.4)
|
|
495
|
+
}
|
|
496
|
+
},
|
|
497
|
+
appBar: {
|
|
498
|
+
header: {
|
|
499
|
+
background: '#fff',
|
|
500
|
+
color: '#000',
|
|
501
|
+
},
|
|
502
|
+
headerAlternate: {
|
|
503
|
+
background: '#f4f4f4',
|
|
504
|
+
color: '#000',
|
|
505
|
+
},
|
|
506
|
+
},
|
|
507
|
+
appBarButton: {
|
|
508
|
+
close: {
|
|
509
|
+
color: '#222222'
|
|
510
|
+
},
|
|
511
|
+
helpMenu: {
|
|
512
|
+
color: '#222222'
|
|
513
|
+
}
|
|
514
|
+
},
|
|
515
|
+
tabList: {
|
|
516
|
+
listContainer: {
|
|
517
|
+
backgroundColor: '#e3e3e3'
|
|
518
|
+
},
|
|
519
|
+
listItemRoot: {
|
|
520
|
+
color: '#000',
|
|
521
|
+
},
|
|
522
|
+
},
|
|
523
|
+
table: {
|
|
524
|
+
contrastRow: {
|
|
525
|
+
main: '#f8f8f8',
|
|
526
|
+
light: '#f4f3ec'
|
|
527
|
+
}
|
|
528
|
+
},
|
|
529
|
+
addButtonColor: {
|
|
530
|
+
color: '#000'
|
|
531
|
+
},
|
|
532
|
+
palette: Object.assign(Object.assign({}, pallete), { text: {
|
|
533
|
+
primary: '#222222',
|
|
534
|
+
primaryEditable: '#181818',
|
|
535
|
+
secondary: 'rgba(34, 34, 34, 0.54)',
|
|
536
|
+
disabled: 'rgba(34, 34, 34, 0.38)',
|
|
537
|
+
hint: 'rgba(34, 34, 34, 0.38)',
|
|
538
|
+
grey: '#434343',
|
|
539
|
+
} })
|
|
540
|
+
});
|
|
541
|
+
export const monochromeTheme = createTheme(Object.assign(Object.assign(Object.assign({ palette: monochromeThemePalette }, commonTypography), getMonochromeThemeOverrides(monochromeThemePalette)), createOverrides(monochromeThemePalette)));
|
|
301
542
|
// High Contrast Theme
|
|
302
|
-
const highcontrastThemePalette = {
|
|
543
|
+
const highcontrastThemePalette = createPalette({
|
|
303
544
|
common: { black: '#111111', white: '#fff' },
|
|
304
545
|
primary: {
|
|
305
546
|
main: '#111111',
|
|
@@ -318,20 +559,98 @@ const highcontrastThemePalette = {
|
|
|
318
559
|
error: {
|
|
319
560
|
light: '#e57373', main: '#f44336', dark: '#d32f2f', contrastText: '#fff'
|
|
320
561
|
},
|
|
321
|
-
text: {
|
|
322
|
-
primary: '#111111',
|
|
323
|
-
primaryEditable: '#070707',
|
|
324
|
-
secondary: '#111111',
|
|
325
|
-
disabled: 'rgba(34, 34, 34, 0.38)',
|
|
326
|
-
hint: 'rgba(34, 34, 34, 0.38)',
|
|
327
|
-
grey: '#434343',
|
|
328
|
-
},
|
|
329
562
|
action: {
|
|
330
563
|
selected: 'rgba(0, 0, 0, 0.3)'
|
|
331
564
|
},
|
|
332
565
|
divider: 'rgba(0, 0, 0, 0.40)'
|
|
333
|
-
};
|
|
334
|
-
|
|
566
|
+
});
|
|
567
|
+
const getHighcontrastThemeOverrides = (pallete) => ({
|
|
568
|
+
heading: {
|
|
569
|
+
color: '#424242'
|
|
570
|
+
},
|
|
571
|
+
blog: {
|
|
572
|
+
root: {
|
|
573
|
+
backgroundColor: '#fff'
|
|
574
|
+
}
|
|
575
|
+
},
|
|
576
|
+
share: {
|
|
577
|
+
exportContainer: {
|
|
578
|
+
backgroundColor: '#eee'
|
|
579
|
+
},
|
|
580
|
+
closeButton: {
|
|
581
|
+
color: '#111111'
|
|
582
|
+
},
|
|
583
|
+
shareButton: {
|
|
584
|
+
color: '#fff',
|
|
585
|
+
backgroundColor: '#111111',
|
|
586
|
+
backgroundColorHover: alpha('#fff', 0.9)
|
|
587
|
+
},
|
|
588
|
+
color: {
|
|
589
|
+
headerText: '#000',
|
|
590
|
+
itemText: 'rgba(17,17,17,0.6)',
|
|
591
|
+
selectedItemText: 'rgba(17,17,17,1)',
|
|
592
|
+
customLabel: 'rgba(17,17,17,.5)'
|
|
593
|
+
}
|
|
594
|
+
},
|
|
595
|
+
statistics: {
|
|
596
|
+
coloredHeaderText: {
|
|
597
|
+
color: '#111111'
|
|
598
|
+
},
|
|
599
|
+
enrolmentText: {
|
|
600
|
+
color: '#111111'
|
|
601
|
+
},
|
|
602
|
+
revenueText: {
|
|
603
|
+
color: '#111111'
|
|
604
|
+
},
|
|
605
|
+
rightColumn: {
|
|
606
|
+
color: '#111111'
|
|
607
|
+
}
|
|
608
|
+
},
|
|
609
|
+
appBar: {
|
|
610
|
+
header: {
|
|
611
|
+
background: '#f2f2f2',
|
|
612
|
+
color: '#222',
|
|
613
|
+
},
|
|
614
|
+
headerAlternate: {
|
|
615
|
+
background: '#111',
|
|
616
|
+
color: '#fff',
|
|
617
|
+
},
|
|
618
|
+
},
|
|
619
|
+
appBarButton: {
|
|
620
|
+
close: {
|
|
621
|
+
color: '#222'
|
|
622
|
+
},
|
|
623
|
+
helpMenu: {
|
|
624
|
+
color: '#222'
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
tabList: {
|
|
628
|
+
listContainer: {
|
|
629
|
+
backgroundColor: '#292929'
|
|
630
|
+
},
|
|
631
|
+
listItemRoot: {
|
|
632
|
+
color: '#fff'
|
|
633
|
+
},
|
|
634
|
+
},
|
|
635
|
+
table: {
|
|
636
|
+
contrastRow: {
|
|
637
|
+
main: '#f8f8f8',
|
|
638
|
+
light: '#f4f3ec'
|
|
639
|
+
}
|
|
640
|
+
},
|
|
641
|
+
addButtonColor: {
|
|
642
|
+
color: '#111111'
|
|
643
|
+
},
|
|
644
|
+
palette: Object.assign(Object.assign({}, pallete), { text: {
|
|
645
|
+
primary: '#111111',
|
|
646
|
+
primaryEditable: '#070707',
|
|
647
|
+
secondary: '#111111',
|
|
648
|
+
disabled: 'rgba(34, 34, 34, 0.38)',
|
|
649
|
+
hint: 'rgba(34, 34, 34, 0.38)',
|
|
650
|
+
grey: '#434343',
|
|
651
|
+
} })
|
|
652
|
+
});
|
|
653
|
+
export const highcontrastTheme = createTheme(Object.assign(Object.assign(Object.assign({ palette: createPalette(highcontrastThemePalette) }, commonTypography), getHighcontrastThemeOverrides(highcontrastThemePalette)), createOverrides(highcontrastThemePalette)));
|
|
335
654
|
export const currentTheme = (themeName) => {
|
|
336
655
|
switch (themeName) {
|
|
337
656
|
case DarkThemeKey: {
|
package/package.json
CHANGED
package/dist/themes/appTheme.js
DELETED
|
@@ -1,322 +0,0 @@
|
|
|
1
|
-
import { grey, yellow } from '@mui/material/colors';
|
|
2
|
-
import { alpha, darken } from '@mui/material/styles';
|
|
3
|
-
export const theme = {
|
|
4
|
-
default: {
|
|
5
|
-
heading: {
|
|
6
|
-
color: '#4b6390'
|
|
7
|
-
},
|
|
8
|
-
blog: {
|
|
9
|
-
root: {
|
|
10
|
-
backgroundColor: yellow[100]
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
share: {
|
|
14
|
-
exportContainer: {
|
|
15
|
-
backgroundColor: '#302A22'
|
|
16
|
-
},
|
|
17
|
-
closeButton: {
|
|
18
|
-
color: '#f7941d'
|
|
19
|
-
},
|
|
20
|
-
shareButton: {
|
|
21
|
-
color: '#302A22',
|
|
22
|
-
backgroundColor: '#fff',
|
|
23
|
-
backgroundColorHover: alpha('#fff', 0.9)
|
|
24
|
-
},
|
|
25
|
-
color: {
|
|
26
|
-
headerText: '#fff',
|
|
27
|
-
itemText: 'rgba(255,255,255,0.6)',
|
|
28
|
-
selectedItemText: 'rgba(255,255,255,1)',
|
|
29
|
-
customLabel: 'rgba(255,255,255,.5)'
|
|
30
|
-
}
|
|
31
|
-
},
|
|
32
|
-
statistics: {
|
|
33
|
-
coloredHeaderText: {
|
|
34
|
-
color: '#f7941d'
|
|
35
|
-
},
|
|
36
|
-
enrolmentText: {
|
|
37
|
-
color: '#73cba7',
|
|
38
|
-
strokeColor: '#73cba7'
|
|
39
|
-
},
|
|
40
|
-
revenueText: {
|
|
41
|
-
color: '#ffd876',
|
|
42
|
-
strokeColor: '#ffd876'
|
|
43
|
-
},
|
|
44
|
-
rightColumn: {
|
|
45
|
-
color: alpha('rgba(0, 0, 0, 0.87)', 0.4)
|
|
46
|
-
}
|
|
47
|
-
},
|
|
48
|
-
appBar: {
|
|
49
|
-
header: {
|
|
50
|
-
background: '#fbf9f0',
|
|
51
|
-
color: '#222',
|
|
52
|
-
},
|
|
53
|
-
headerAlternate: {
|
|
54
|
-
background: '#fff',
|
|
55
|
-
color: '#222',
|
|
56
|
-
},
|
|
57
|
-
},
|
|
58
|
-
appBarButton: {
|
|
59
|
-
close: {
|
|
60
|
-
color: '#f7941d',
|
|
61
|
-
},
|
|
62
|
-
helpMenu: {
|
|
63
|
-
color: '#f7941d',
|
|
64
|
-
}
|
|
65
|
-
},
|
|
66
|
-
tabList: {
|
|
67
|
-
listContainer: {
|
|
68
|
-
backgroundColor: '#4b6390'
|
|
69
|
-
},
|
|
70
|
-
listItemRoot: {
|
|
71
|
-
color: '#fff'
|
|
72
|
-
},
|
|
73
|
-
},
|
|
74
|
-
table: {
|
|
75
|
-
contrastRow: {
|
|
76
|
-
main: '#f8f8f8',
|
|
77
|
-
light: '#f4f3ec'
|
|
78
|
-
}
|
|
79
|
-
},
|
|
80
|
-
addButtonColor: {
|
|
81
|
-
color: '#f7941d'
|
|
82
|
-
}
|
|
83
|
-
},
|
|
84
|
-
dark: {
|
|
85
|
-
heading: {
|
|
86
|
-
color: '#9bbeff'
|
|
87
|
-
},
|
|
88
|
-
blog: {
|
|
89
|
-
root: {
|
|
90
|
-
backgroundColor: '#303030'
|
|
91
|
-
}
|
|
92
|
-
},
|
|
93
|
-
share: {
|
|
94
|
-
exportContainer: {
|
|
95
|
-
backgroundColor: '#302A22'
|
|
96
|
-
},
|
|
97
|
-
closeButton: {
|
|
98
|
-
color: '#f7941d'
|
|
99
|
-
},
|
|
100
|
-
shareButton: {
|
|
101
|
-
color: '#302A22',
|
|
102
|
-
backgroundColor: '#fff',
|
|
103
|
-
backgroundColorHover: alpha('#fff', 0.9)
|
|
104
|
-
},
|
|
105
|
-
color: {
|
|
106
|
-
headerText: '#fff',
|
|
107
|
-
itemText: 'rgba(255,255,255,0.6)',
|
|
108
|
-
selectedItemText: 'rgba(255,255,255,1)',
|
|
109
|
-
customLabel: 'rgba(255,255,255,.5)'
|
|
110
|
-
}
|
|
111
|
-
},
|
|
112
|
-
statistics: {
|
|
113
|
-
coloredHeaderText: {
|
|
114
|
-
color: '#f7941d'
|
|
115
|
-
},
|
|
116
|
-
enrolmentText: {
|
|
117
|
-
color: '#73cba7',
|
|
118
|
-
strokeColor: '#73cba7'
|
|
119
|
-
},
|
|
120
|
-
revenueText: {
|
|
121
|
-
color: '#ffd876',
|
|
122
|
-
strokeColor: '#ffd876'
|
|
123
|
-
},
|
|
124
|
-
rightColumn: {
|
|
125
|
-
color: alpha('rgba(255, 255, 255, 0.87)', 0.4)
|
|
126
|
-
}
|
|
127
|
-
},
|
|
128
|
-
appBar: {
|
|
129
|
-
header: {
|
|
130
|
-
background: '#1b1b1b',
|
|
131
|
-
color: '#fff',
|
|
132
|
-
},
|
|
133
|
-
headerAlternate: {
|
|
134
|
-
background: '#f7941d',
|
|
135
|
-
color: '#fff',
|
|
136
|
-
},
|
|
137
|
-
},
|
|
138
|
-
appBarButton: {
|
|
139
|
-
close: {
|
|
140
|
-
color: 'white'
|
|
141
|
-
},
|
|
142
|
-
helpMenu: {
|
|
143
|
-
color: '#fff'
|
|
144
|
-
}
|
|
145
|
-
},
|
|
146
|
-
tabList: {
|
|
147
|
-
listContainer: {
|
|
148
|
-
backgroundColor: '#302A22'
|
|
149
|
-
},
|
|
150
|
-
listItemRoot: {
|
|
151
|
-
color: '#fff'
|
|
152
|
-
},
|
|
153
|
-
},
|
|
154
|
-
table: {
|
|
155
|
-
contrastRow: {
|
|
156
|
-
main: '#696969',
|
|
157
|
-
light: '#696969bf'
|
|
158
|
-
}
|
|
159
|
-
},
|
|
160
|
-
addButtonColor: {
|
|
161
|
-
color: darken(grey[400], 0.1)
|
|
162
|
-
}
|
|
163
|
-
},
|
|
164
|
-
monochrome: {
|
|
165
|
-
heading: {
|
|
166
|
-
color: '#000'
|
|
167
|
-
},
|
|
168
|
-
blog: {
|
|
169
|
-
root: {
|
|
170
|
-
backgroundColor: '#eee'
|
|
171
|
-
}
|
|
172
|
-
},
|
|
173
|
-
share: {
|
|
174
|
-
exportContainer: {
|
|
175
|
-
backgroundColor: '#222222'
|
|
176
|
-
},
|
|
177
|
-
closeButton: {
|
|
178
|
-
color: '#eaeaea'
|
|
179
|
-
},
|
|
180
|
-
shareButton: {
|
|
181
|
-
color: '#fff',
|
|
182
|
-
backgroundColor: '#3e8ef7',
|
|
183
|
-
backgroundColorHover: alpha('#3e8ef7', 0.9)
|
|
184
|
-
},
|
|
185
|
-
color: {
|
|
186
|
-
headerText: '#fff',
|
|
187
|
-
itemText: 'rgba(255,255,255,0.6)',
|
|
188
|
-
selectedItemText: 'rgba(255,255,255,1)',
|
|
189
|
-
customLabel: 'rgba(255,255,255,.5)'
|
|
190
|
-
}
|
|
191
|
-
},
|
|
192
|
-
statistics: {
|
|
193
|
-
coloredHeaderText: {
|
|
194
|
-
color: '#222222'
|
|
195
|
-
},
|
|
196
|
-
enrolmentText: {
|
|
197
|
-
color: '#73cba7',
|
|
198
|
-
strokeColor: '#73cba7'
|
|
199
|
-
},
|
|
200
|
-
revenueText: {
|
|
201
|
-
color: '#ffd876',
|
|
202
|
-
strokeColor: '#ffd876'
|
|
203
|
-
},
|
|
204
|
-
rightColumn: {
|
|
205
|
-
color: alpha('#222222', 0.4)
|
|
206
|
-
}
|
|
207
|
-
},
|
|
208
|
-
appBar: {
|
|
209
|
-
header: {
|
|
210
|
-
background: '#fff',
|
|
211
|
-
color: '#000',
|
|
212
|
-
},
|
|
213
|
-
headerAlternate: {
|
|
214
|
-
background: '#f4f4f4',
|
|
215
|
-
color: '#000',
|
|
216
|
-
},
|
|
217
|
-
},
|
|
218
|
-
appBarButton: {
|
|
219
|
-
close: {
|
|
220
|
-
color: '#222222'
|
|
221
|
-
},
|
|
222
|
-
helpMenu: {
|
|
223
|
-
color: '#222222'
|
|
224
|
-
}
|
|
225
|
-
},
|
|
226
|
-
tabList: {
|
|
227
|
-
listContainer: {
|
|
228
|
-
backgroundColor: '#e3e3e3'
|
|
229
|
-
},
|
|
230
|
-
listItemRoot: {
|
|
231
|
-
color: '#000',
|
|
232
|
-
},
|
|
233
|
-
},
|
|
234
|
-
table: {
|
|
235
|
-
contrastRow: {
|
|
236
|
-
main: '#f8f8f8',
|
|
237
|
-
light: '#f4f3ec'
|
|
238
|
-
}
|
|
239
|
-
},
|
|
240
|
-
addButtonColor: {
|
|
241
|
-
color: '#000'
|
|
242
|
-
}
|
|
243
|
-
},
|
|
244
|
-
highcontrast: {
|
|
245
|
-
heading: {
|
|
246
|
-
color: '#424242'
|
|
247
|
-
},
|
|
248
|
-
blog: {
|
|
249
|
-
root: {
|
|
250
|
-
backgroundColor: '#fff'
|
|
251
|
-
}
|
|
252
|
-
},
|
|
253
|
-
share: {
|
|
254
|
-
exportContainer: {
|
|
255
|
-
backgroundColor: '#eee'
|
|
256
|
-
},
|
|
257
|
-
closeButton: {
|
|
258
|
-
color: '#111111'
|
|
259
|
-
},
|
|
260
|
-
shareButton: {
|
|
261
|
-
color: '#fff',
|
|
262
|
-
backgroundColor: '#111111',
|
|
263
|
-
backgroundColorHover: alpha('#fff', 0.9)
|
|
264
|
-
},
|
|
265
|
-
color: {
|
|
266
|
-
headerText: '#000',
|
|
267
|
-
itemText: 'rgba(17,17,17,0.6)',
|
|
268
|
-
selectedItemText: 'rgba(17,17,17,1)',
|
|
269
|
-
customLabel: 'rgba(17,17,17,.5)'
|
|
270
|
-
}
|
|
271
|
-
},
|
|
272
|
-
statistics: {
|
|
273
|
-
coloredHeaderText: {
|
|
274
|
-
color: '#111111'
|
|
275
|
-
},
|
|
276
|
-
enrolmentText: {
|
|
277
|
-
color: '#111111'
|
|
278
|
-
},
|
|
279
|
-
revenueText: {
|
|
280
|
-
color: '#111111'
|
|
281
|
-
},
|
|
282
|
-
rightColumn: {
|
|
283
|
-
color: '#111111'
|
|
284
|
-
}
|
|
285
|
-
},
|
|
286
|
-
appBar: {
|
|
287
|
-
header: {
|
|
288
|
-
background: '#f2f2f2',
|
|
289
|
-
color: '#222',
|
|
290
|
-
},
|
|
291
|
-
headerAlternate: {
|
|
292
|
-
background: '#111',
|
|
293
|
-
color: '#fff',
|
|
294
|
-
},
|
|
295
|
-
},
|
|
296
|
-
appBarButton: {
|
|
297
|
-
close: {
|
|
298
|
-
color: '#222'
|
|
299
|
-
},
|
|
300
|
-
helpMenu: {
|
|
301
|
-
color: '#222'
|
|
302
|
-
}
|
|
303
|
-
},
|
|
304
|
-
tabList: {
|
|
305
|
-
listContainer: {
|
|
306
|
-
backgroundColor: '#292929'
|
|
307
|
-
},
|
|
308
|
-
listItemRoot: {
|
|
309
|
-
color: '#fff'
|
|
310
|
-
},
|
|
311
|
-
},
|
|
312
|
-
table: {
|
|
313
|
-
contrastRow: {
|
|
314
|
-
main: '#f8f8f8',
|
|
315
|
-
light: '#f4f3ec'
|
|
316
|
-
}
|
|
317
|
-
},
|
|
318
|
-
addButtonColor: {
|
|
319
|
-
color: '#111111'
|
|
320
|
-
}
|
|
321
|
-
}
|
|
322
|
-
};
|