@opengeoweb/theme 2.1.2 → 2.2.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.
@@ -1,8 +1,8 @@
1
1
  (function (global, factory) {
2
- typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@material-ui/core'), require('react')) :
3
- typeof define === 'function' && define.amd ? define(['exports', '@material-ui/core', 'react'], factory) :
4
- (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Theme = {}, global.core, global.React));
5
- })(this, (function (exports, core, React) { 'use strict';
2
+ typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@mui/material'), require('react')) :
3
+ typeof define === 'function' && define.amd ? define(['exports', '@mui/material', 'react'], factory) :
4
+ (global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Theme = {}, global.material, global.React));
5
+ })(this, (function (exports, material, React) { 'use strict';
6
6
 
7
7
  function _interopNamespace(e) {
8
8
  if (e && e.__esModule) return e;
@@ -79,6 +79,91 @@
79
79
  return ar;
80
80
  }
81
81
 
82
+ var buttonStyle = function buttonStyle(button) {
83
+ return {
84
+ // default styling
85
+ color: button["default"].color,
86
+ backgroundColor: button["default"].fill,
87
+ textTransform: 'capitalize',
88
+ padding: '12px 8px',
89
+ height: '40px',
90
+ borderStyle: 'solid',
91
+ borderWidth: '1px',
92
+ borderColor: button["default"].borderColor,
93
+ borderRadius: '5px',
94
+ // hover styling
95
+ '&:hover': {
96
+ backgroundColor: button.mouseOver.fill,
97
+ borderColor: button.mouseOver.borderColor
98
+ },
99
+ // active styling
100
+ '&.Mui-selected': {
101
+ backgroundColor: button.active.fill,
102
+ color: button.active.color,
103
+ borderColor: button.active.borderColor,
104
+ '&:hover': {
105
+ backgroundColor: button.activeMouseOver.fill
106
+ }
107
+ },
108
+ // disabled styling
109
+ '&.Mui-disabled': {
110
+ backgroundColor: button.disabled.fill,
111
+ color: button.disabled.color,
112
+ borderColor: button.disabled.borderColor
113
+ },
114
+ // size styling
115
+ '&[class*="sizeSmall"]': {
116
+ fontSize: '12px',
117
+ height: '32px',
118
+ lineHeight: '12px'
119
+ },
120
+ // icon styling
121
+ '& .MuiButton-startIcon': {
122
+ marginRight: '2px',
123
+ '& .MuiSvgIcon-root': {
124
+ fontSize: '26px'
125
+ }
126
+ }
127
+ };
128
+ };
129
+ var toggleButtonStyle = function toggleButtonStyle(buttonVariants) {
130
+ return buttonVariants.reduce(function (variants, _a) {
131
+ var _b;
132
+
133
+ var variant = _a.props.variant,
134
+ style = _a.style;
135
+ return __assign(__assign({}, variants), (_b = {}, _b["&." + variant] = style, _b));
136
+ }, {});
137
+ };
138
+ var buttonVariants = function buttonVariants(buttons) {
139
+ return [{
140
+ props: {
141
+ variant: 'primary'
142
+ },
143
+ style: buttonStyle(buttons.primary)
144
+ }, {
145
+ props: {
146
+ variant: 'secondary'
147
+ },
148
+ style: buttonStyle(buttons.secondary)
149
+ }, {
150
+ props: {
151
+ variant: 'tertiary'
152
+ },
153
+ style: buttonStyle(buttons.tertiary)
154
+ }, {
155
+ props: {
156
+ variant: 'flat'
157
+ },
158
+ style: buttonStyle(buttons.flat)
159
+ }, {
160
+ props: {
161
+ variant: 'tool'
162
+ },
163
+ style: buttonStyle(buttons.tool)
164
+ }];
165
+ };
166
+
82
167
  var hex2rgba = function hex2rgba(hex, alpha) {
83
168
  if (alpha === void 0) {
84
169
  alpha = 1;
@@ -134,9 +219,9 @@
134
219
  };
135
220
  var BORDER_RADIUS = 3;
136
221
  var createTheme = function createTheme(paletteType, geowebColors, shadows) {
137
- return core.createMuiTheme({
222
+ return material.createTheme({
138
223
  palette: {
139
- type: paletteType,
224
+ mode: paletteType,
140
225
  secondary: {
141
226
  main: geowebColors.typographyAndIcons.iconLinkActive
142
227
  },
@@ -157,243 +242,311 @@
157
242
  fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
158
243
  },
159
244
  shadows: shadows,
160
- overrides: {
161
- MuiCssBaseline: {
162
- '@global': {
163
- body: {
164
- fontSmoothing: 'auto'
165
- }
245
+ components: {
246
+ MuiButton: {
247
+ variants: buttonVariants(geowebColors.buttons)
248
+ },
249
+ MuiToggleButton: {
250
+ styleOverrides: {
251
+ root: toggleButtonStyle(buttonVariants(geowebColors.buttons))
166
252
  }
167
253
  },
254
+ MuiCssBaseline: {
255
+ styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
256
+ },
168
257
  MuiMenuItem: {
169
- root: {
170
- fontSize: '0.875rem',
171
- letterSpacing: '0.25px',
172
- ':not(:last-child)&:after': {
173
- content: '""',
174
- position: 'absolute',
175
- width: '100%',
176
- height: 1,
177
- background: geowebColors.greys.accessible,
178
- bottom: 0,
179
- left: 0,
180
- opacity: 0.5
181
- },
182
- '&.Mui-selected': {
183
- background: 'none',
184
- boxShadow: "inset 4px 0px 0px 0px " + geowebColors.typographyAndIcons.iconLinkActive
258
+ styleOverrides: {
259
+ root: {
260
+ fontSize: '0.875rem',
261
+ letterSpacing: '0.25px',
262
+ ':not(:last-child)&:after': {
263
+ content: '""',
264
+ position: 'absolute',
265
+ width: '100%',
266
+ height: 1,
267
+ background: geowebColors.greys.accessible,
268
+ bottom: 0,
269
+ left: 0,
270
+ opacity: 0.5
271
+ },
272
+ '&.Mui-selected': {
273
+ background: 'none',
274
+ boxShadow: "inset 4px 0px 0px 0px " + geowebColors.typographyAndIcons.iconLinkActive
275
+ }
185
276
  }
186
277
  }
187
278
  },
188
279
  MuiRadio: {
189
- root: {
190
- color: geowebColors.typographyAndIcons.iconLinkActive
280
+ styleOverrides: {
281
+ root: {
282
+ color: geowebColors.typographyAndIcons.iconLinkActive,
283
+ '&.Mui-disabled': {
284
+ color: geowebColors.typographyAndIcons.iconLinkDisabled + "!important"
285
+ },
286
+ '&.Mui-checked': {
287
+ color: geowebColors.typographyAndIcons.iconLinkActive
288
+ }
289
+ }
290
+ }
291
+ },
292
+ MuiCheckbox: {
293
+ styleOverrides: {
294
+ root: {
295
+ color: geowebColors.typographyAndIcons.iconLinkActive,
296
+ '&.Mui-disabled': {
297
+ color: geowebColors.typographyAndIcons.iconLinkDisabled + "!important"
298
+ },
299
+ '&.Mui-checked': {
300
+ color: geowebColors.typographyAndIcons.iconLinkActive
301
+ }
302
+ }
191
303
  }
192
304
  },
193
305
  MuiPaper: {
194
- outlined: {
195
- borderColor: geowebColors.cards.cardContainerBorder
306
+ styleOverrides: {
307
+ root: {
308
+ backgroundImage: 'unset'
309
+ },
310
+ outlined: {
311
+ borderColor: geowebColors.cards.cardContainerBorder
312
+ }
196
313
  }
197
314
  },
198
315
  MuiCard: {
199
- root: {
200
- backgroundColor: geowebColors.cards.cardContainer
316
+ styleOverrides: {
317
+ root: {
318
+ backgroundColor: geowebColors.cards.cardContainer
319
+ }
201
320
  }
202
321
  },
203
322
  MuiSlider: {
204
- root: {
205
- color: geowebColors.typographyAndIcons.iconLinkActive
323
+ styleOverrides: {
324
+ root: {
325
+ color: geowebColors.typographyAndIcons.iconLinkActive
326
+ }
206
327
  }
207
328
  },
208
329
  MuiTable: {
209
- root: {
210
- borderSpacing: '0 0.25rem',
211
- borderCollapse: 'separate'
330
+ styleOverrides: {
331
+ root: {
332
+ borderSpacing: '0 0.25rem',
333
+ borderCollapse: 'separate'
334
+ }
212
335
  }
213
336
  },
214
337
  MuiTableRow: {
215
- head: {
216
- '&:hover': {
217
- boxShadow: shadows[0]
218
- }
219
- },
220
- root: {
221
- transition: 'box-shadow 100ms ease-out',
222
- boxShadow: shadows[0],
223
- borderRadius: BORDER_RADIUS,
224
- '&:hover': {
225
- boxShadow: shadows[1]
338
+ styleOverrides: {
339
+ head: {
340
+ '&:hover': {
341
+ boxShadow: shadows[0]
342
+ }
226
343
  },
227
- position: 'relative'
344
+ root: {
345
+ transition: 'box-shadow 100ms ease-out',
346
+ boxShadow: shadows[0],
347
+ borderRadius: BORDER_RADIUS,
348
+ '&:hover': {
349
+ boxShadow: shadows[1]
350
+ },
351
+ position: 'relative'
352
+ }
228
353
  }
229
354
  },
230
355
  MuiTableCell: {
231
- head: {
232
- borderBottom: 'none',
233
- fontSize: '0.875rem',
234
- fontWeight: 400
235
- },
236
- body: {
237
- padding: 12,
238
- fontWeight: 500,
239
- backgroundColor: geowebColors.background.surface,
240
- borderStyle: 'solid',
241
- borderColor: 'transparent',
242
- borderWidth: 1,
243
- borderTopColor: geowebColors.cards.cardContainerBorder,
244
- borderBottomColor: geowebColors.cards.cardContainerBorder,
245
- '&:first-child': {
246
- borderLeftColor: geowebColors.cards.cardContainerBorder,
247
- borderRadius: BORDER_RADIUS + "px 0px 0px " + BORDER_RADIUS + "px"
356
+ styleOverrides: {
357
+ head: {
358
+ borderBottom: 'none',
359
+ fontSize: '0.875rem',
360
+ fontWeight: 400
248
361
  },
249
- '&:last-child': {
250
- borderRightColor: geowebColors.cards.cardContainerBorder,
251
- borderRadius: "0px " + BORDER_RADIUS + "px " + BORDER_RADIUS + "px 0px"
362
+ body: {
363
+ padding: 12,
364
+ fontWeight: 500,
365
+ backgroundColor: geowebColors.background.surface,
366
+ borderStyle: 'solid',
367
+ borderColor: 'transparent',
368
+ borderWidth: 1,
369
+ borderTopColor: geowebColors.cards.cardContainerBorder,
370
+ borderBottomColor: geowebColors.cards.cardContainerBorder,
371
+ '&:first-child': {
372
+ borderLeftColor: geowebColors.cards.cardContainerBorder,
373
+ borderRadius: BORDER_RADIUS + "px 0px 0px " + BORDER_RADIUS + "px"
374
+ },
375
+ '&:last-child': {
376
+ borderRightColor: geowebColors.cards.cardContainerBorder,
377
+ borderRadius: "0px " + BORDER_RADIUS + "px " + BORDER_RADIUS + "px 0px"
378
+ }
252
379
  }
253
380
  }
254
381
  },
255
382
  MuiTabs: {
256
- root: {
257
- position: 'relative',
258
- '&:after': {
259
- content: '""',
260
- position: 'absolute',
261
- bottom: 0,
262
- height: 1,
263
- width: '100%',
264
- zIndex: 0,
265
- backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
383
+ styleOverrides: {
384
+ root: {
385
+ position: 'relative',
386
+ '&:after': {
387
+ content: '""',
388
+ position: 'absolute',
389
+ bottom: 0,
390
+ height: 1,
391
+ width: '100%',
392
+ zIndex: 0,
393
+ backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
394
+ }
395
+ },
396
+ indicator: {
397
+ zIndex: 1,
398
+ backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
266
399
  }
267
- },
268
- indicator: {
269
- zIndex: 1,
270
- backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
271
400
  }
272
401
  },
273
402
  MuiTab: {
274
- root: {
275
- textTransform: 'initial',
276
- '&.Mui-selected': {
277
- color: geowebColors.typographyAndIcons.iconLinkActive
278
- },
279
- '&:hover': {
280
- opacity: 1,
281
- color: geowebColors.typographyAndIcons.iconLinkActive,
282
- backgroundColor: geowebColors.tab.mouseOver.rgba
403
+ styleOverrides: {
404
+ root: {
405
+ textTransform: 'initial',
406
+ '&.Mui-selected': {
407
+ color: geowebColors.typographyAndIcons.iconLinkActive
408
+ },
409
+ '&:hover': {
410
+ opacity: 1,
411
+ color: geowebColors.typographyAndIcons.iconLinkActive,
412
+ backgroundColor: geowebColors.tab.mouseOver.rgba
413
+ }
283
414
  }
284
415
  }
285
416
  },
286
417
  MuiListItem: {
287
- root: {
288
- color: geowebColors.typographyAndIcons.text
289
- },
290
- divider: {
291
- borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
418
+ styleOverrides: {
419
+ root: {
420
+ color: geowebColors.typographyAndIcons.text,
421
+ fontSize: '14px'
422
+ },
423
+ divider: {
424
+ borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
425
+ }
292
426
  }
293
427
  },
294
428
  MuiBackdrop: {
295
- root: {
296
- backgroundColor: geowebColors.backdrops.black.rgba
429
+ styleOverrides: {
430
+ root: {
431
+ backgroundColor: geowebColors.backdrops.black.rgba
432
+ }
297
433
  }
298
434
  },
299
435
  MuiTooltip: {
300
- tooltip: {
301
- backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
302
- color: geowebColors.tooltips.tooltipText.color,
303
- padding: '8px 12px',
304
- fontSize: 16,
305
- fontWeight: 400,
306
- fontStretch: 'normal',
307
- fontStyle: 'normal',
308
- letterSpacing: 0.44,
309
- lineHeight: 1.56
436
+ styleOverrides: {
437
+ tooltip: {
438
+ backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
439
+ color: geowebColors.tooltips.tooltipText.color,
440
+ padding: '8px 12px',
441
+ fontSize: 16,
442
+ fontWeight: 400,
443
+ fontStretch: 'normal',
444
+ fontStyle: 'normal',
445
+ letterSpacing: 0.44,
446
+ lineHeight: 1.56
447
+ }
310
448
  }
311
449
  },
312
450
  MuiLink: {
313
- root: {
314
- color: geowebColors.typographyAndIcons.textLinkActive
451
+ styleOverrides: {
452
+ root: {
453
+ color: geowebColors.typographyAndIcons.textLinkActive,
454
+ textDecoration: 'none',
455
+ '&:hover': {
456
+ textDecoration: 'underline',
457
+ textDecorationColor: geowebColors.typographyAndIcons.textLinkActive
458
+ }
459
+ }
315
460
  }
316
461
  },
317
462
  // TODO: implement correct theming values https://gitlab.com/opengeoweb/opengeoweb/-/issues/1369
318
463
  MuiAlert: {
319
- standardError: {
320
- border: '1px solid #c00000',
321
- borderRadius: '0px',
322
- backgroundColor: '#fff0ea'
323
- },
324
- standardWarning: {
325
- border: '1px solid #ffa800',
326
- borderRadius: '0px',
327
- backgroundColor: '#fff8eb'
328
- },
329
- standardInfo: {
330
- border: '1px solid #0062e6',
331
- borderRadius: '0px',
332
- backgroundColor: '#eaf3ff'
333
- },
334
- standardSuccess: {
335
- border: '1px solid #72bb23',
336
- borderRadius: '0px',
337
- backgroundColor: '#fcffeb'
338
- },
339
- action: {
340
- color: '#0075a9'
341
- },
342
- message: {
343
- fontSize: '14px',
344
- lineHeight: 1.43,
345
- letterSpacing: '0.25px',
346
- color: '#051039'
464
+ styleOverrides: {
465
+ standardError: {
466
+ border: '1px solid #c00000',
467
+ borderRadius: '0px',
468
+ backgroundColor: '#fff0ea'
469
+ },
470
+ standardWarning: {
471
+ border: '1px solid #ffa800',
472
+ borderRadius: '0px',
473
+ backgroundColor: '#fff8eb'
474
+ },
475
+ standardInfo: {
476
+ border: '1px solid #0062e6',
477
+ borderRadius: '0px',
478
+ backgroundColor: '#eaf3ff'
479
+ },
480
+ standardSuccess: {
481
+ border: '1px solid #72bb23',
482
+ borderRadius: '0px',
483
+ backgroundColor: '#fcffeb'
484
+ },
485
+ action: {
486
+ color: '#0075a9'
487
+ },
488
+ message: {
489
+ fontSize: '14px',
490
+ lineHeight: 1.43,
491
+ letterSpacing: '0.25px',
492
+ color: '#051039'
493
+ }
347
494
  }
348
495
  },
349
496
  MuiFilledInput: {
350
- root: {
351
- backgroundColor: geowebColors.textInputField["default"].rgba,
352
- '&.Mui-focused': {
353
- backgroundColor: geowebColors.textInputField.active.rgba
354
- },
355
- '&.Mui-disabled': {
356
- backgroundColor: geowebColors.textInputField.disabled.rgba
357
- }
358
- },
359
- underline: {
360
- '&:after': {
361
- borderBottom: 'transparent'
497
+ styleOverrides: {
498
+ root: {
499
+ backgroundColor: geowebColors.textInputField["default"].rgba,
500
+ '&.Mui-focused': {
501
+ backgroundColor: geowebColors.textInputField.active.rgba
502
+ },
503
+ '&.Mui-disabled': {
504
+ backgroundColor: geowebColors.textInputField.disabled.rgba
505
+ }
362
506
  },
363
- '&.Mui-disabled:before': {
364
- borderBottomStyle: 'solid'
507
+ underline: {
508
+ '&:after': {
509
+ borderBottom: 'transparent'
510
+ },
511
+ '&.Mui-disabled:before': {
512
+ borderBottomStyle: 'solid'
513
+ }
365
514
  }
366
515
  }
367
516
  },
368
517
  MuiFormLabel: {
369
- root: {
370
- color: geowebColors.captions.captionStatus.color,
371
- opacity: geowebColors.captions.captionStatus.opacity,
372
- '&.Mui-focused': {
373
- color: geowebColors.captions.captionInformation.color,
374
- opacity: geowebColors.captions.captionInformation.opacity
375
- },
376
- '&.Mui-error': {
377
- color: geowebColors.captions.captionError.color,
378
- opacity: geowebColors.captions.captionError.opacity
379
- },
380
- '&.Mui-disabled': {
381
- color: geowebColors.captions.captionDisabled.color,
382
- opacity: geowebColors.captions.captionDisabled.opacity
518
+ styleOverrides: {
519
+ root: {
520
+ color: geowebColors.captions.captionStatus.color,
521
+ opacity: geowebColors.captions.captionStatus.opacity,
522
+ '&.Mui-focused': {
523
+ color: geowebColors.captions.captionInformation.color,
524
+ opacity: geowebColors.captions.captionInformation.opacity
525
+ },
526
+ '&.Mui-error': {
527
+ color: geowebColors.captions.captionError.color,
528
+ opacity: geowebColors.captions.captionError.opacity
529
+ },
530
+ '&.Mui-disabled': {
531
+ color: geowebColors.captions.captionDisabled.color,
532
+ opacity: geowebColors.captions.captionDisabled.opacity
533
+ }
383
534
  }
384
535
  }
385
536
  },
386
537
  MuiFormHelperText: {
387
- root: {
388
- color: geowebColors.captions.captionStatus.color,
389
- opacity: geowebColors.captions.captionStatus.opacity,
390
- '&.Mui-error': {
391
- color: geowebColors.captions.captionError.color,
392
- opacity: geowebColors.captions.captionError.opacity
393
- },
394
- '&.Mui-disabled': {
395
- color: geowebColors.captions.captionDisabled.color,
396
- opacity: geowebColors.captions.captionDisabled.opacity
538
+ styleOverrides: {
539
+ root: {
540
+ color: geowebColors.captions.captionStatus.color,
541
+ opacity: geowebColors.captions.captionStatus.opacity,
542
+ '&.Mui-error': {
543
+ color: geowebColors.captions.captionError.color,
544
+ opacity: geowebColors.captions.captionError.opacity
545
+ },
546
+ '&.Mui-disabled': {
547
+ color: geowebColors.captions.captionDisabled.color,
548
+ opacity: geowebColors.captions.captionDisabled.opacity
549
+ }
397
550
  }
398
551
  }
399
552
  }
@@ -429,7 +582,131 @@
429
582
  },
430
583
  buttons: {
431
584
  primary: {
432
- fill: '#186DFF'
585
+ "default": {
586
+ fill: '#186DFF',
587
+ color: '#FFFFFF',
588
+ borderColor: 'transparent'
589
+ },
590
+ mouseOver: {
591
+ fill: '#1047B0',
592
+ color: '#FFFFFF',
593
+ borderColor: '#71A6FF'
594
+ },
595
+ active: {
596
+ fill: '#186DFF',
597
+ color: '#FFFFFF',
598
+ borderColor: 'transparent'
599
+ },
600
+ activeMouseOver: {},
601
+ disabled: {
602
+ fill: 'transparent',
603
+ color: '#707070',
604
+ borderColor: 'transparent'
605
+ }
606
+ },
607
+ secondary: {
608
+ "default": {
609
+ fill: '#0876b6',
610
+ color: '#FFFFFF',
611
+ borderColor: 'transparent'
612
+ },
613
+ mouseOver: {
614
+ fill: '#064c84',
615
+ color: '#FFFFFF',
616
+ borderColor: '#3DA6FF'
617
+ },
618
+ active: {
619
+ fill: '#0876b6',
620
+ color: '#FFFFFF',
621
+ borderColor: 'transparent'
622
+ },
623
+ activeMouseOver: {},
624
+ disabled: {
625
+ fill: 'transparent',
626
+ color: '#707070',
627
+ borderColor: 'transparent'
628
+ }
629
+ },
630
+ tertiary: {
631
+ "default": {
632
+ fill: 'transparent',
633
+ color: '#575F7A',
634
+ borderColor: '#575F7A'
635
+ },
636
+ mouseOver: {
637
+ fill: '#E3E4E7',
638
+ color: '#575F7A',
639
+ borderColor: '#575F7A'
640
+ },
641
+ active: {
642
+ fill: 'transparent',
643
+ color: '#186DFF',
644
+ borderColor: '#186DFF'
645
+ },
646
+ activeMouseOver: {
647
+ fill: 'rgba(24, 109, 255, 0.1)',
648
+ color: '#186DFF',
649
+ borderColor: '#186DFF'
650
+ },
651
+ disabled: {
652
+ fill: 'transparent',
653
+ color: '#707070',
654
+ borderColor: 'transparent'
655
+ }
656
+ },
657
+ flat: {
658
+ "default": {
659
+ fill: 'transparent',
660
+ color: '#575F7A',
661
+ borderColor: 'transparent'
662
+ },
663
+ mouseOver: {
664
+ fill: '#E3E4E7',
665
+ color: '#575F7A',
666
+ borderColor: 'transparent'
667
+ },
668
+ active: {
669
+ fill: 'transparent',
670
+ color: '#186DFF',
671
+ borderColor: 'transparent'
672
+ },
673
+ activeMouseOver: {
674
+ fill: 'rgba(24, 109, 255, 0.1)',
675
+ color: '#186DFF',
676
+ borderColor: 'transparent'
677
+ },
678
+ disabled: {
679
+ fill: 'transparent',
680
+ color: '#707070',
681
+ borderColor: 'transparent'
682
+ }
683
+ },
684
+ tool: {
685
+ "default": {
686
+ fill: '#ECEDEE',
687
+ color: '#575F7A',
688
+ borderColor: 'transparent'
689
+ },
690
+ mouseOver: {
691
+ fill: '#E3E4E7',
692
+ color: '#575F7A',
693
+ borderColor: 'transparent'
694
+ },
695
+ active: {
696
+ fill: '#186DFF',
697
+ color: '#FFFFFF',
698
+ borderColor: 'transparent'
699
+ },
700
+ activeMouseOver: {
701
+ fill: '#1047B0',
702
+ color: '#FFFFFF',
703
+ borderColor: 'transparent'
704
+ },
705
+ disabled: {
706
+ fill: 'transparent',
707
+ color: '#707070',
708
+ borderColor: 'transparent'
709
+ }
433
710
  },
434
711
  primaryMouseover: {
435
712
  fill: '#1047B0'
@@ -653,7 +930,7 @@
653
930
  opacity: 1
654
931
  },
655
932
  captionDisabled: {
656
- color: '#767676',
933
+ color: '#707070',
657
934
  opacity: 1
658
935
  }
659
936
  }
@@ -675,7 +952,7 @@
675
952
 
676
953
  var geowebColors = __assign({}, colors$1);
677
954
 
678
- var GWTheme = core.createMuiTheme({
955
+ var GWTheme = material.createTheme({
679
956
  palette: {
680
957
  secondary: {
681
958
  main: '#0075a9'
@@ -744,138 +1021,208 @@
744
1021
  color: '0075a9'
745
1022
  }
746
1023
  },
747
- overrides: {
1024
+ components: {
748
1025
  MuiTooltip: {
749
- tooltip: {
750
- borderRadius: '2px',
751
- fontSize: '16px',
752
- fontWeight: 'normal',
753
- padding: '10px',
754
- backgroundColor: '#232323'
1026
+ styleOverrides: {
1027
+ tooltip: {
1028
+ borderRadius: '2px',
1029
+ fontSize: '16px',
1030
+ fontWeight: 'normal',
1031
+ padding: '10px',
1032
+ backgroundColor: '#232323'
1033
+ }
755
1034
  }
756
1035
  },
757
1036
  MuiIconButton: {
758
- root: {
759
- color: '#0075a9'
1037
+ styleOverrides: {
1038
+ root: {
1039
+ color: '#0075a9'
1040
+ }
760
1041
  }
761
1042
  },
762
1043
  MuiCheckbox: {
763
- root: {
764
- color: '#0075a9'
1044
+ styleOverrides: {
1045
+ root: {
1046
+ '&.Mui-disabled': {
1047
+ color: '#CCCCCC!important'
1048
+ },
1049
+ '&.Mui-checked': {
1050
+ color: '#0075a9'
1051
+ }
1052
+ }
765
1053
  }
766
1054
  },
767
1055
  MuiSelect: {
768
- icon: {
769
- color: '#0075a9'
770
- },
771
- select: {
772
- '&:focus': {
773
- backgroundColor: 'rgba(0, 117, 169, 0.05)'
1056
+ styleOverrides: {
1057
+ icon: {
1058
+ color: '#0075a9'
1059
+ },
1060
+ select: {
1061
+ '&:focus': {
1062
+ backgroundColor: 'rgba(0, 117, 169, 0.05)'
1063
+ }
774
1064
  }
775
1065
  }
776
1066
  },
777
1067
  MuiAlert: {
778
- standardError: {
779
- border: '1px solid #c00000',
780
- borderRadius: '0px',
781
- backgroundColor: '#fff0ea'
782
- },
783
- standardWarning: {
784
- border: '1px solid #ffa800',
785
- borderRadius: '0px',
786
- backgroundColor: '#fff8eb'
787
- },
788
- standardInfo: {
789
- border: '1px solid #0062e6',
790
- borderRadius: '0px',
791
- backgroundColor: '#eaf3ff'
792
- },
793
- standardSuccess: {
794
- border: '1px solid #72bb23',
795
- borderRadius: '0px',
796
- backgroundColor: '#fcffeb'
797
- },
798
- action: {
799
- color: '#0075a9'
800
- },
801
- message: {
802
- fontSize: '14px',
803
- lineHeight: 1.43,
804
- letterSpacing: '0.25px',
805
- color: '#051039'
1068
+ styleOverrides: {
1069
+ standardError: {
1070
+ border: '1px solid #c00000',
1071
+ borderRadius: '0px',
1072
+ backgroundColor: '#fff0ea'
1073
+ },
1074
+ standardWarning: {
1075
+ border: '1px solid #ffa800',
1076
+ borderRadius: '0px',
1077
+ backgroundColor: '#fff8eb'
1078
+ },
1079
+ standardInfo: {
1080
+ border: '1px solid #0062e6',
1081
+ borderRadius: '0px',
1082
+ backgroundColor: '#eaf3ff'
1083
+ },
1084
+ standardSuccess: {
1085
+ border: '1px solid #72bb23',
1086
+ borderRadius: '0px',
1087
+ backgroundColor: '#fcffeb'
1088
+ },
1089
+ action: {
1090
+ color: '#0075a9'
1091
+ },
1092
+ message: {
1093
+ fontSize: '14px',
1094
+ lineHeight: 1.43,
1095
+ letterSpacing: '0.25px',
1096
+ color: '#051039'
1097
+ }
806
1098
  }
807
1099
  },
808
1100
  MuiTabs: {
809
- root: {
810
- backgroundColor: '#ffffff',
811
- minHeight: '30px'
812
- },
813
- scrollButtons: {
814
- width: '20px'
1101
+ styleOverrides: {
1102
+ root: {
1103
+ backgroundColor: '#ffffff',
1104
+ minHeight: '30px'
1105
+ },
1106
+ scrollButtons: {
1107
+ width: '20px'
1108
+ }
815
1109
  }
816
1110
  },
817
1111
  MuiTab: {
818
- root: {
819
- minHeight: '30px',
820
- textTransform: 'none',
821
- minWidth: '76px',
822
- '@media (min-width: 600px)': {
823
- minWidth: '76px'
1112
+ styleOverrides: {
1113
+ root: {
1114
+ minHeight: '30px',
1115
+ textTransform: 'none',
1116
+ minWidth: '76px',
1117
+ '@media (min-width: 600px)': {
1118
+ minWidth: '76px'
1119
+ }
1120
+ },
1121
+ labelIcon: {
1122
+ minHeight: '30px'
824
1123
  }
825
- },
826
- labelIcon: {
827
- minHeight: '30px'
828
1124
  }
829
1125
  },
830
1126
  MuiListItem: {
831
- root: {
832
- '&$selected': {
833
- backgroundColor: 'rgba(0, 117, 169, 0.15)',
834
- borderLeft: '4px solid #0075a9',
1127
+ styleOverrides: {
1128
+ root: {
1129
+ '&$selected': {
1130
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
1131
+ borderLeft: '4px solid #0075a9',
1132
+ '&:hover': {
1133
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
1134
+ }
1135
+ }
1136
+ },
1137
+ button: {
835
1138
  '&:hover': {
836
- backgroundColor: 'rgba(0, 117, 169, 0.10)'
1139
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
837
1140
  }
838
1141
  }
839
- },
840
- button: {
841
- '&:hover': {
842
- backgroundColor: 'rgba(0, 117, 169, 0.15)'
1142
+ }
1143
+ },
1144
+ MuiMenuItem: {
1145
+ styleOverrides: {
1146
+ root: {
1147
+ '&.Mui-selected': {
1148
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
1149
+ borderLeft: '4px solid #0075a9',
1150
+ '&:hover': {
1151
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
1152
+ }
1153
+ },
1154
+ '&:hover': {
1155
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
1156
+ }
843
1157
  }
844
1158
  }
845
1159
  },
846
1160
  MuiFormLabel: {
847
- root: {
848
- color: 'rgba(5, 16, 57, 0.7)',
849
- '&$focused': {
850
- color: '#0075a9'
1161
+ styleOverrides: {
1162
+ root: {
1163
+ color: 'rgba(5, 16, 57, 0.7)',
1164
+ '&.Mui-focused': {
1165
+ color: '#0075a9'
1166
+ },
1167
+ '&.Mui-error': {
1168
+ color: '#d32f2f!important'
1169
+ }
851
1170
  }
852
1171
  }
853
1172
  },
854
1173
  MuiOutlinedInput: {
855
- root: {
856
- '&$focused $notchedOutline': {
857
- borderColor: '#0075a9'
1174
+ styleOverrides: {
1175
+ root: {
1176
+ '&$focused $notchedOutline': {
1177
+ borderColor: '#0075a9'
1178
+ }
858
1179
  }
859
1180
  }
860
1181
  },
861
1182
  MuiFilledInput: {
862
- root: {
863
- backgroundColor: 'rgba(0, 117, 169, 0.05)',
864
- color: '#051039',
865
- '&$disabled': {
866
- backgroundColor: 'transparent'
1183
+ styleOverrides: {
1184
+ root: {
1185
+ backgroundColor: 'rgba(0, 117, 169, 0.05)',
1186
+ color: '#051039',
1187
+ '&.Mui-disabled': {
1188
+ backgroundColor: 'white'
1189
+ },
1190
+ '&.Mui-focused': {
1191
+ backgroundColor: 'rgba(0,0,0,0.09)'
1192
+ }
1193
+ },
1194
+ underline: {
1195
+ '&.Mui-disabled:before': {
1196
+ borderBottomStyle: 'none'
1197
+ }
867
1198
  }
868
- },
869
- underline: {
870
- '&$disabled:before': {
871
- borderBottomStyle: 'none'
1199
+ }
1200
+ },
1201
+ MuiRadio: {
1202
+ styleOverrides: {
1203
+ root: {
1204
+ '&.Mui-disabled': {
1205
+ color: '#CCCCCC!important'
1206
+ },
1207
+ '&.Mui-checked': {
1208
+ color: '#0075a9'
1209
+ }
872
1210
  }
873
1211
  }
874
1212
  },
875
1213
  MuiCardContent: {
876
- root: {
877
- '&:last-child': {
878
- paddingBottom: 0
1214
+ styleOverrides: {
1215
+ root: {
1216
+ '&:last-child': {
1217
+ paddingBottom: 0
1218
+ }
1219
+ }
1220
+ }
1221
+ },
1222
+ MuiDialog: {
1223
+ styleOverrides: {
1224
+ paperWidthLg: {
1225
+ maxWidth: '1280px'
879
1226
  }
880
1227
  }
881
1228
  }
@@ -910,7 +1257,131 @@
910
1257
  },
911
1258
  buttons: {
912
1259
  primary: {
913
- fill: '#186DFF'
1260
+ "default": {
1261
+ fill: '#186DFF',
1262
+ color: '#FFFFFF',
1263
+ borderColor: 'transparent'
1264
+ },
1265
+ mouseOver: {
1266
+ fill: '#1047B0',
1267
+ color: '#FFFFFF',
1268
+ borderColor: '#71A6FF'
1269
+ },
1270
+ active: {
1271
+ fill: '#186DFF',
1272
+ color: '#FFFFFF',
1273
+ borderColor: 'transparent'
1274
+ },
1275
+ activeMouseOver: {},
1276
+ disabled: {
1277
+ fill: 'transparent',
1278
+ color: '#B0B0B0',
1279
+ borderColor: 'transparent'
1280
+ }
1281
+ },
1282
+ secondary: {
1283
+ "default": {
1284
+ fill: '#0876b6',
1285
+ color: '#FFFFFF',
1286
+ borderColor: 'transparent'
1287
+ },
1288
+ mouseOver: {
1289
+ fill: '#064C84',
1290
+ color: '#FFFFFF',
1291
+ borderColor: '#3DA6FF'
1292
+ },
1293
+ active: {
1294
+ fill: '#0876B6',
1295
+ color: '#FFFFFF',
1296
+ borderColor: 'transparent'
1297
+ },
1298
+ activeMouseOver: {},
1299
+ disabled: {
1300
+ fill: 'transparent',
1301
+ color: '#707070',
1302
+ borderColor: 'transparent'
1303
+ }
1304
+ },
1305
+ tertiary: {
1306
+ "default": {
1307
+ fill: 'transparent',
1308
+ color: '#E5E5E5',
1309
+ borderColor: '#E5E5E5'
1310
+ },
1311
+ mouseOver: {
1312
+ fill: '#494949',
1313
+ color: '#E5E5E5',
1314
+ borderColor: '#E5E5E5'
1315
+ },
1316
+ active: {
1317
+ fill: 'transparent',
1318
+ color: '#488BFD',
1319
+ borderColor: '#48A8FA'
1320
+ },
1321
+ activeMouseOver: {
1322
+ fill: 'rgba(24, 109, 255, 0.1)',
1323
+ color: '#488BFD',
1324
+ borderColor: '#488BFD'
1325
+ },
1326
+ disabled: {
1327
+ fill: 'transparent',
1328
+ color: '#B0B0B0',
1329
+ borderColor: 'transparent'
1330
+ }
1331
+ },
1332
+ flat: {
1333
+ "default": {
1334
+ fill: 'transparent',
1335
+ color: '#E5E5E5',
1336
+ borderColor: 'transparent'
1337
+ },
1338
+ mouseOver: {
1339
+ fill: '#494949',
1340
+ color: '#E5E5E5',
1341
+ borderColor: 'transparent'
1342
+ },
1343
+ active: {
1344
+ fill: 'transparent',
1345
+ color: '#488BFD',
1346
+ borderColor: 'transparent'
1347
+ },
1348
+ activeMouseOver: {
1349
+ fill: 'rgba(24, 109, 255, 0.1)',
1350
+ color: '#488BFD',
1351
+ borderColor: 'transparent'
1352
+ },
1353
+ disabled: {
1354
+ fill: 'transparent',
1355
+ color: '#B0B0B0',
1356
+ borderColor: 'transparent'
1357
+ }
1358
+ },
1359
+ tool: {
1360
+ "default": {
1361
+ fill: '#393939',
1362
+ color: '#E5E5E5',
1363
+ borderColor: 'transparent'
1364
+ },
1365
+ mouseOver: {
1366
+ fill: '#494949',
1367
+ color: '#E5E5E5',
1368
+ borderColor: 'transparent'
1369
+ },
1370
+ active: {
1371
+ fill: '#186DFF',
1372
+ color: '#FFFFFF',
1373
+ borderColor: 'transparent'
1374
+ },
1375
+ activeMouseOver: {
1376
+ fill: '#1047B0',
1377
+ color: '#FFFFFF',
1378
+ borderColor: 'transparent'
1379
+ },
1380
+ disabled: {
1381
+ fill: 'transparent',
1382
+ color: '#B0B0B0',
1383
+ borderColor: 'transparent'
1384
+ }
914
1385
  },
915
1386
  primaryMouseover: {
916
1387
  fill: '#1047B0'
@@ -919,7 +1390,7 @@
919
1390
  fill: '#186DFF'
920
1391
  },
921
1392
  flatMouseover: {
922
- fill: '#242424'
1393
+ fill: '#494949'
923
1394
  },
924
1395
  focusDefault: {
925
1396
  outline: 'solid 2px #419cfe'
@@ -1134,7 +1605,7 @@
1134
1605
  opacity: 1
1135
1606
  },
1136
1607
  captionDisabled: {
1137
- color: '#909090',
1608
+ color: '#B0B0B0',
1138
1609
  opacity: 1
1139
1610
  }
1140
1611
  }
@@ -1182,9 +1653,9 @@
1182
1653
  toggleTheme: toggleTheme,
1183
1654
  isDark: isDark
1184
1655
  }
1185
- }, /*#__PURE__*/React__namespace.createElement(core.ThemeProvider, {
1656
+ }, /*#__PURE__*/React__namespace.createElement(material.ThemeProvider, {
1186
1657
  theme: currentTheme
1187
- }, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(core.CssBaseline, null), children));
1658
+ }, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(material.CssBaseline, null), children));
1188
1659
  };
1189
1660
  var useThemeContext = function useThemeContext() {
1190
1661
  return React__namespace.useContext(ThemeContext);
@@ -1196,10 +1667,12 @@
1196
1667
  theme = _b === void 0 ? lightTheme : _b,
1197
1668
  _c = _a.disableCssBaseline,
1198
1669
  disableCssBaseline = _c === void 0 ? false : _c;
1199
- return /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
1670
+ return /*#__PURE__*/React__namespace.createElement(material.StyledEngineProvider, {
1671
+ injectFirst: true
1672
+ }, /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
1200
1673
  theme: theme,
1201
1674
  disableCssBaseline: disableCssBaseline
1202
- }, children);
1675
+ }, children));
1203
1676
  }; // Wrapper for storybook stories with GWTheme. Will be deprecated
1204
1677
 
1205
1678
  var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {