@opengeoweb/theme 2.1.3 → 2.1.4

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,4 +1,4 @@
1
- import { createMuiTheme, ThemeProvider as ThemeProvider$1, CssBaseline } from '@material-ui/core';
1
+ import { createTheme as createTheme$1, ThemeProvider as ThemeProvider$1, CssBaseline, StyledEngineProvider } from '@mui/material';
2
2
  import * as React from 'react';
3
3
 
4
4
  function _defineProperty(obj, key, value) {
@@ -122,9 +122,9 @@ var createShadows = function createShadows(elevations) {
122
122
  };
123
123
  var BORDER_RADIUS = 3;
124
124
  var createTheme = function createTheme(paletteType, geowebColors, shadows) {
125
- return createMuiTheme({
125
+ return createTheme$1({
126
126
  palette: {
127
- type: paletteType,
127
+ mode: paletteType,
128
128
  secondary: {
129
129
  main: geowebColors.typographyAndIcons.iconLinkActive
130
130
  },
@@ -145,243 +145,303 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
145
145
  fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
146
146
  },
147
147
  shadows: shadows,
148
- overrides: {
148
+ components: {
149
149
  MuiCssBaseline: {
150
- '@global': {
151
- body: {
152
- fontSmoothing: 'auto'
153
- }
154
- }
150
+ styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
155
151
  },
156
152
  MuiMenuItem: {
157
- root: {
158
- fontSize: '0.875rem',
159
- letterSpacing: '0.25px',
160
- ':not(:last-child)&:after': {
161
- content: '""',
162
- position: 'absolute',
163
- width: '100%',
164
- height: 1,
165
- background: geowebColors.greys.accessible,
166
- bottom: 0,
167
- left: 0,
168
- opacity: 0.5
169
- },
170
- '&.Mui-selected': {
171
- background: 'none',
172
- boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive)
153
+ styleOverrides: {
154
+ root: {
155
+ fontSize: '0.875rem',
156
+ letterSpacing: '0.25px',
157
+ ':not(:last-child)&:after': {
158
+ content: '""',
159
+ position: 'absolute',
160
+ width: '100%',
161
+ height: 1,
162
+ background: geowebColors.greys.accessible,
163
+ bottom: 0,
164
+ left: 0,
165
+ opacity: 0.5
166
+ },
167
+ '&.Mui-selected': {
168
+ background: 'none',
169
+ boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive)
170
+ }
173
171
  }
174
172
  }
175
173
  },
176
174
  MuiRadio: {
177
- root: {
178
- color: geowebColors.typographyAndIcons.iconLinkActive
175
+ styleOverrides: {
176
+ root: {
177
+ color: geowebColors.typographyAndIcons.iconLinkActive,
178
+ '&.Mui-disabled': {
179
+ color: "".concat(geowebColors.typographyAndIcons.iconLinkDisabled, "!important")
180
+ },
181
+ '&.Mui-checked': {
182
+ color: geowebColors.typographyAndIcons.iconLinkActive
183
+ }
184
+ }
185
+ }
186
+ },
187
+ MuiCheckbox: {
188
+ styleOverrides: {
189
+ root: {
190
+ color: geowebColors.typographyAndIcons.iconLinkActive,
191
+ '&.Mui-disabled': {
192
+ color: "".concat(geowebColors.typographyAndIcons.iconLinkDisabled, "!important")
193
+ },
194
+ '&.Mui-checked': {
195
+ color: geowebColors.typographyAndIcons.iconLinkActive
196
+ }
197
+ }
179
198
  }
180
199
  },
181
200
  MuiPaper: {
182
- outlined: {
183
- borderColor: geowebColors.cards.cardContainerBorder
201
+ styleOverrides: {
202
+ root: {
203
+ backgroundImage: 'unset'
204
+ },
205
+ outlined: {
206
+ borderColor: geowebColors.cards.cardContainerBorder
207
+ }
184
208
  }
185
209
  },
186
210
  MuiCard: {
187
- root: {
188
- backgroundColor: geowebColors.cards.cardContainer
211
+ styleOverrides: {
212
+ root: {
213
+ backgroundColor: geowebColors.cards.cardContainer
214
+ }
189
215
  }
190
216
  },
191
217
  MuiSlider: {
192
- root: {
193
- color: geowebColors.typographyAndIcons.iconLinkActive
218
+ styleOverrides: {
219
+ root: {
220
+ color: geowebColors.typographyAndIcons.iconLinkActive
221
+ }
194
222
  }
195
223
  },
196
224
  MuiTable: {
197
- root: {
198
- borderSpacing: '0 0.25rem',
199
- borderCollapse: 'separate'
225
+ styleOverrides: {
226
+ root: {
227
+ borderSpacing: '0 0.25rem',
228
+ borderCollapse: 'separate'
229
+ }
200
230
  }
201
231
  },
202
232
  MuiTableRow: {
203
- head: {
204
- '&:hover': {
205
- boxShadow: shadows[0]
206
- }
207
- },
208
- root: {
209
- transition: 'box-shadow 100ms ease-out',
210
- boxShadow: shadows[0],
211
- borderRadius: BORDER_RADIUS,
212
- '&:hover': {
213
- boxShadow: shadows[1]
233
+ styleOverrides: {
234
+ head: {
235
+ '&:hover': {
236
+ boxShadow: shadows[0]
237
+ }
214
238
  },
215
- position: 'relative'
239
+ root: {
240
+ transition: 'box-shadow 100ms ease-out',
241
+ boxShadow: shadows[0],
242
+ borderRadius: BORDER_RADIUS,
243
+ '&:hover': {
244
+ boxShadow: shadows[1]
245
+ },
246
+ position: 'relative'
247
+ }
216
248
  }
217
249
  },
218
250
  MuiTableCell: {
219
- head: {
220
- borderBottom: 'none',
221
- fontSize: '0.875rem',
222
- fontWeight: 400
223
- },
224
- body: {
225
- padding: 12,
226
- fontWeight: 500,
227
- backgroundColor: geowebColors.background.surface,
228
- borderStyle: 'solid',
229
- borderColor: 'transparent',
230
- borderWidth: 1,
231
- borderTopColor: geowebColors.cards.cardContainerBorder,
232
- borderBottomColor: geowebColors.cards.cardContainerBorder,
233
- '&:first-child': {
234
- borderLeftColor: geowebColors.cards.cardContainerBorder,
235
- borderRadius: "".concat(BORDER_RADIUS, "px 0px 0px ").concat(BORDER_RADIUS, "px")
251
+ styleOverrides: {
252
+ head: {
253
+ borderBottom: 'none',
254
+ fontSize: '0.875rem',
255
+ fontWeight: 400
236
256
  },
237
- '&:last-child': {
238
- borderRightColor: geowebColors.cards.cardContainerBorder,
239
- borderRadius: "0px ".concat(BORDER_RADIUS, "px ").concat(BORDER_RADIUS, "px 0px")
257
+ body: {
258
+ padding: 12,
259
+ fontWeight: 500,
260
+ backgroundColor: geowebColors.background.surface,
261
+ borderStyle: 'solid',
262
+ borderColor: 'transparent',
263
+ borderWidth: 1,
264
+ borderTopColor: geowebColors.cards.cardContainerBorder,
265
+ borderBottomColor: geowebColors.cards.cardContainerBorder,
266
+ '&:first-child': {
267
+ borderLeftColor: geowebColors.cards.cardContainerBorder,
268
+ borderRadius: "".concat(BORDER_RADIUS, "px 0px 0px ").concat(BORDER_RADIUS, "px")
269
+ },
270
+ '&:last-child': {
271
+ borderRightColor: geowebColors.cards.cardContainerBorder,
272
+ borderRadius: "0px ".concat(BORDER_RADIUS, "px ").concat(BORDER_RADIUS, "px 0px")
273
+ }
240
274
  }
241
275
  }
242
276
  },
243
277
  MuiTabs: {
244
- root: {
245
- position: 'relative',
246
- '&:after': {
247
- content: '""',
248
- position: 'absolute',
249
- bottom: 0,
250
- height: 1,
251
- width: '100%',
252
- zIndex: 0,
253
- backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
278
+ styleOverrides: {
279
+ root: {
280
+ position: 'relative',
281
+ '&:after': {
282
+ content: '""',
283
+ position: 'absolute',
284
+ bottom: 0,
285
+ height: 1,
286
+ width: '100%',
287
+ zIndex: 0,
288
+ backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
289
+ }
290
+ },
291
+ indicator: {
292
+ zIndex: 1,
293
+ backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
254
294
  }
255
- },
256
- indicator: {
257
- zIndex: 1,
258
- backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
259
295
  }
260
296
  },
261
297
  MuiTab: {
262
- root: {
263
- textTransform: 'initial',
264
- '&.Mui-selected': {
265
- color: geowebColors.typographyAndIcons.iconLinkActive
266
- },
267
- '&:hover': {
268
- opacity: 1,
269
- color: geowebColors.typographyAndIcons.iconLinkActive,
270
- backgroundColor: geowebColors.tab.mouseOver.rgba
298
+ styleOverrides: {
299
+ root: {
300
+ textTransform: 'initial',
301
+ '&.Mui-selected': {
302
+ color: geowebColors.typographyAndIcons.iconLinkActive
303
+ },
304
+ '&:hover': {
305
+ opacity: 1,
306
+ color: geowebColors.typographyAndIcons.iconLinkActive,
307
+ backgroundColor: geowebColors.tab.mouseOver.rgba
308
+ }
271
309
  }
272
310
  }
273
311
  },
274
312
  MuiListItem: {
275
- root: {
276
- color: geowebColors.typographyAndIcons.text
277
- },
278
- divider: {
279
- borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
313
+ styleOverrides: {
314
+ root: {
315
+ color: geowebColors.typographyAndIcons.text,
316
+ fontSize: '14px'
317
+ },
318
+ divider: {
319
+ borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
320
+ }
280
321
  }
281
322
  },
282
323
  MuiBackdrop: {
283
- root: {
284
- backgroundColor: geowebColors.backdrops.black.rgba
324
+ styleOverrides: {
325
+ root: {
326
+ backgroundColor: geowebColors.backdrops.black.rgba
327
+ }
285
328
  }
286
329
  },
287
330
  MuiTooltip: {
288
- tooltip: {
289
- backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
290
- color: geowebColors.tooltips.tooltipText.color,
291
- padding: '8px 12px',
292
- fontSize: 16,
293
- fontWeight: 400,
294
- fontStretch: 'normal',
295
- fontStyle: 'normal',
296
- letterSpacing: 0.44,
297
- lineHeight: 1.56
331
+ styleOverrides: {
332
+ tooltip: {
333
+ backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
334
+ color: geowebColors.tooltips.tooltipText.color,
335
+ padding: '8px 12px',
336
+ fontSize: 16,
337
+ fontWeight: 400,
338
+ fontStretch: 'normal',
339
+ fontStyle: 'normal',
340
+ letterSpacing: 0.44,
341
+ lineHeight: 1.56
342
+ }
298
343
  }
299
344
  },
300
345
  MuiLink: {
301
- root: {
302
- color: geowebColors.typographyAndIcons.textLinkActive
346
+ styleOverrides: {
347
+ root: {
348
+ color: geowebColors.typographyAndIcons.textLinkActive,
349
+ textDecoration: 'none',
350
+ '&:hover': {
351
+ textDecoration: 'underline',
352
+ textDecorationColor: geowebColors.typographyAndIcons.textLinkActive
353
+ }
354
+ }
303
355
  }
304
356
  },
305
357
  // TODO: implement correct theming values https://gitlab.com/opengeoweb/opengeoweb/-/issues/1369
306
358
  MuiAlert: {
307
- standardError: {
308
- border: '1px solid #c00000',
309
- borderRadius: '0px',
310
- backgroundColor: '#fff0ea'
311
- },
312
- standardWarning: {
313
- border: '1px solid #ffa800',
314
- borderRadius: '0px',
315
- backgroundColor: '#fff8eb'
316
- },
317
- standardInfo: {
318
- border: '1px solid #0062e6',
319
- borderRadius: '0px',
320
- backgroundColor: '#eaf3ff'
321
- },
322
- standardSuccess: {
323
- border: '1px solid #72bb23',
324
- borderRadius: '0px',
325
- backgroundColor: '#fcffeb'
326
- },
327
- action: {
328
- color: '#0075a9'
329
- },
330
- message: {
331
- fontSize: '14px',
332
- lineHeight: 1.43,
333
- letterSpacing: '0.25px',
334
- color: '#051039'
359
+ styleOverrides: {
360
+ standardError: {
361
+ border: '1px solid #c00000',
362
+ borderRadius: '0px',
363
+ backgroundColor: '#fff0ea'
364
+ },
365
+ standardWarning: {
366
+ border: '1px solid #ffa800',
367
+ borderRadius: '0px',
368
+ backgroundColor: '#fff8eb'
369
+ },
370
+ standardInfo: {
371
+ border: '1px solid #0062e6',
372
+ borderRadius: '0px',
373
+ backgroundColor: '#eaf3ff'
374
+ },
375
+ standardSuccess: {
376
+ border: '1px solid #72bb23',
377
+ borderRadius: '0px',
378
+ backgroundColor: '#fcffeb'
379
+ },
380
+ action: {
381
+ color: '#0075a9'
382
+ },
383
+ message: {
384
+ fontSize: '14px',
385
+ lineHeight: 1.43,
386
+ letterSpacing: '0.25px',
387
+ color: '#051039'
388
+ }
335
389
  }
336
390
  },
337
391
  MuiFilledInput: {
338
- root: {
339
- backgroundColor: geowebColors.textInputField["default"].rgba,
340
- '&.Mui-focused': {
341
- backgroundColor: geowebColors.textInputField.active.rgba
392
+ styleOverrides: {
393
+ root: {
394
+ backgroundColor: geowebColors.textInputField["default"].rgba,
395
+ '&.Mui-focused': {
396
+ backgroundColor: geowebColors.textInputField.active.rgba
397
+ },
398
+ '&.Mui-disabled': {
399
+ backgroundColor: geowebColors.textInputField.disabled.rgba
400
+ }
342
401
  },
343
- '&.Mui-disabled': {
344
- backgroundColor: geowebColors.textInputField.disabled.rgba
345
- }
346
- },
347
- underline: {
348
- '&:after': {
349
- borderBottom: 'transparent'
350
- },
351
- '&.Mui-disabled:before': {
352
- borderBottomStyle: 'solid'
402
+ underline: {
403
+ '&:after': {
404
+ borderBottom: 'transparent'
405
+ },
406
+ '&.Mui-disabled:before': {
407
+ borderBottomStyle: 'solid'
408
+ }
353
409
  }
354
410
  }
355
411
  },
356
412
  MuiFormLabel: {
357
- root: {
358
- color: geowebColors.captions.captionStatus.color,
359
- opacity: geowebColors.captions.captionStatus.opacity,
360
- '&.Mui-focused': {
361
- color: geowebColors.captions.captionInformation.color,
362
- opacity: geowebColors.captions.captionInformation.opacity
363
- },
364
- '&.Mui-error': {
365
- color: geowebColors.captions.captionError.color,
366
- opacity: geowebColors.captions.captionError.opacity
367
- },
368
- '&.Mui-disabled': {
369
- color: geowebColors.captions.captionDisabled.color,
370
- opacity: geowebColors.captions.captionDisabled.opacity
413
+ styleOverrides: {
414
+ root: {
415
+ color: geowebColors.captions.captionStatus.color,
416
+ opacity: geowebColors.captions.captionStatus.opacity,
417
+ '&.Mui-focused': {
418
+ color: geowebColors.captions.captionInformation.color,
419
+ opacity: geowebColors.captions.captionInformation.opacity
420
+ },
421
+ '&.Mui-error': {
422
+ color: geowebColors.captions.captionError.color,
423
+ opacity: geowebColors.captions.captionError.opacity
424
+ },
425
+ '&.Mui-disabled': {
426
+ color: geowebColors.captions.captionDisabled.color,
427
+ opacity: geowebColors.captions.captionDisabled.opacity
428
+ }
371
429
  }
372
430
  }
373
431
  },
374
432
  MuiFormHelperText: {
375
- root: {
376
- color: geowebColors.captions.captionStatus.color,
377
- opacity: geowebColors.captions.captionStatus.opacity,
378
- '&.Mui-error': {
379
- color: geowebColors.captions.captionError.color,
380
- opacity: geowebColors.captions.captionError.opacity
381
- },
382
- '&.Mui-disabled': {
383
- color: geowebColors.captions.captionDisabled.color,
384
- opacity: geowebColors.captions.captionDisabled.opacity
433
+ styleOverrides: {
434
+ root: {
435
+ color: geowebColors.captions.captionStatus.color,
436
+ opacity: geowebColors.captions.captionStatus.opacity,
437
+ '&.Mui-error': {
438
+ color: geowebColors.captions.captionError.color,
439
+ opacity: geowebColors.captions.captionError.opacity
440
+ },
441
+ '&.Mui-disabled': {
442
+ color: geowebColors.captions.captionDisabled.color,
443
+ opacity: geowebColors.captions.captionDisabled.opacity
444
+ }
385
445
  }
386
446
  }
387
447
  }
@@ -679,7 +739,7 @@ var lightTheme = createTheme('light', parseColors(colors$1), createShadows(eleva
679
739
  * */
680
740
 
681
741
  var geowebColors = Object.assign({}, colors$1);
682
- var GWTheme = createMuiTheme({
742
+ var GWTheme = createTheme$1({
683
743
  palette: {
684
744
  secondary: {
685
745
  main: '#0075a9'
@@ -748,138 +808,208 @@ var GWTheme = createMuiTheme({
748
808
  color: '0075a9'
749
809
  }
750
810
  },
751
- overrides: {
811
+ components: {
752
812
  MuiTooltip: {
753
- tooltip: {
754
- borderRadius: '2px',
755
- fontSize: '16px',
756
- fontWeight: 'normal',
757
- padding: '10px',
758
- backgroundColor: '#232323'
813
+ styleOverrides: {
814
+ tooltip: {
815
+ borderRadius: '2px',
816
+ fontSize: '16px',
817
+ fontWeight: 'normal',
818
+ padding: '10px',
819
+ backgroundColor: '#232323'
820
+ }
759
821
  }
760
822
  },
761
823
  MuiIconButton: {
762
- root: {
763
- color: '#0075a9'
824
+ styleOverrides: {
825
+ root: {
826
+ color: '#0075a9'
827
+ }
764
828
  }
765
829
  },
766
830
  MuiCheckbox: {
767
- root: {
768
- color: '#0075a9'
831
+ styleOverrides: {
832
+ root: {
833
+ '&.Mui-disabled': {
834
+ color: '#CCCCCC!important'
835
+ },
836
+ '&.Mui-checked': {
837
+ color: '#0075a9'
838
+ }
839
+ }
769
840
  }
770
841
  },
771
842
  MuiSelect: {
772
- icon: {
773
- color: '#0075a9'
774
- },
775
- select: {
776
- '&:focus': {
777
- backgroundColor: 'rgba(0, 117, 169, 0.05)'
843
+ styleOverrides: {
844
+ icon: {
845
+ color: '#0075a9'
846
+ },
847
+ select: {
848
+ '&:focus': {
849
+ backgroundColor: 'rgba(0, 117, 169, 0.05)'
850
+ }
778
851
  }
779
852
  }
780
853
  },
781
854
  MuiAlert: {
782
- standardError: {
783
- border: '1px solid #c00000',
784
- borderRadius: '0px',
785
- backgroundColor: '#fff0ea'
786
- },
787
- standardWarning: {
788
- border: '1px solid #ffa800',
789
- borderRadius: '0px',
790
- backgroundColor: '#fff8eb'
791
- },
792
- standardInfo: {
793
- border: '1px solid #0062e6',
794
- borderRadius: '0px',
795
- backgroundColor: '#eaf3ff'
796
- },
797
- standardSuccess: {
798
- border: '1px solid #72bb23',
799
- borderRadius: '0px',
800
- backgroundColor: '#fcffeb'
801
- },
802
- action: {
803
- color: '#0075a9'
804
- },
805
- message: {
806
- fontSize: '14px',
807
- lineHeight: 1.43,
808
- letterSpacing: '0.25px',
809
- color: '#051039'
855
+ styleOverrides: {
856
+ standardError: {
857
+ border: '1px solid #c00000',
858
+ borderRadius: '0px',
859
+ backgroundColor: '#fff0ea'
860
+ },
861
+ standardWarning: {
862
+ border: '1px solid #ffa800',
863
+ borderRadius: '0px',
864
+ backgroundColor: '#fff8eb'
865
+ },
866
+ standardInfo: {
867
+ border: '1px solid #0062e6',
868
+ borderRadius: '0px',
869
+ backgroundColor: '#eaf3ff'
870
+ },
871
+ standardSuccess: {
872
+ border: '1px solid #72bb23',
873
+ borderRadius: '0px',
874
+ backgroundColor: '#fcffeb'
875
+ },
876
+ action: {
877
+ color: '#0075a9'
878
+ },
879
+ message: {
880
+ fontSize: '14px',
881
+ lineHeight: 1.43,
882
+ letterSpacing: '0.25px',
883
+ color: '#051039'
884
+ }
810
885
  }
811
886
  },
812
887
  MuiTabs: {
813
- root: {
814
- backgroundColor: '#ffffff',
815
- minHeight: '30px'
816
- },
817
- scrollButtons: {
818
- width: '20px'
888
+ styleOverrides: {
889
+ root: {
890
+ backgroundColor: '#ffffff',
891
+ minHeight: '30px'
892
+ },
893
+ scrollButtons: {
894
+ width: '20px'
895
+ }
819
896
  }
820
897
  },
821
898
  MuiTab: {
822
- root: {
823
- minHeight: '30px',
824
- textTransform: 'none',
825
- minWidth: '76px',
826
- '@media (min-width: 600px)': {
827
- minWidth: '76px'
899
+ styleOverrides: {
900
+ root: {
901
+ minHeight: '30px',
902
+ textTransform: 'none',
903
+ minWidth: '76px',
904
+ '@media (min-width: 600px)': {
905
+ minWidth: '76px'
906
+ }
907
+ },
908
+ labelIcon: {
909
+ minHeight: '30px'
828
910
  }
829
- },
830
- labelIcon: {
831
- minHeight: '30px'
832
911
  }
833
912
  },
834
913
  MuiListItem: {
835
- root: {
836
- '&$selected': {
837
- backgroundColor: 'rgba(0, 117, 169, 0.15)',
838
- borderLeft: '4px solid #0075a9',
914
+ styleOverrides: {
915
+ root: {
916
+ '&$selected': {
917
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
918
+ borderLeft: '4px solid #0075a9',
919
+ '&:hover': {
920
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
921
+ }
922
+ }
923
+ },
924
+ button: {
839
925
  '&:hover': {
840
- backgroundColor: 'rgba(0, 117, 169, 0.10)'
926
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
841
927
  }
842
928
  }
843
- },
844
- button: {
845
- '&:hover': {
846
- backgroundColor: 'rgba(0, 117, 169, 0.15)'
929
+ }
930
+ },
931
+ MuiMenuItem: {
932
+ styleOverrides: {
933
+ root: {
934
+ '&.Mui-selected': {
935
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
936
+ borderLeft: '4px solid #0075a9',
937
+ '&:hover': {
938
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
939
+ }
940
+ },
941
+ '&:hover': {
942
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
943
+ }
847
944
  }
848
945
  }
849
946
  },
850
947
  MuiFormLabel: {
851
- root: {
852
- color: 'rgba(5, 16, 57, 0.7)',
853
- '&$focused': {
854
- color: '#0075a9'
948
+ styleOverrides: {
949
+ root: {
950
+ color: 'rgba(5, 16, 57, 0.7)',
951
+ '&.Mui-focused': {
952
+ color: '#0075a9'
953
+ },
954
+ '&.Mui-error': {
955
+ color: '#d32f2f!important'
956
+ }
855
957
  }
856
958
  }
857
959
  },
858
960
  MuiOutlinedInput: {
859
- root: {
860
- '&$focused $notchedOutline': {
861
- borderColor: '#0075a9'
961
+ styleOverrides: {
962
+ root: {
963
+ '&$focused $notchedOutline': {
964
+ borderColor: '#0075a9'
965
+ }
862
966
  }
863
967
  }
864
968
  },
865
969
  MuiFilledInput: {
866
- root: {
867
- backgroundColor: 'rgba(0, 117, 169, 0.05)',
868
- color: '#051039',
869
- '&$disabled': {
870
- backgroundColor: 'transparent'
970
+ styleOverrides: {
971
+ root: {
972
+ backgroundColor: 'rgba(0, 117, 169, 0.05)',
973
+ color: '#051039',
974
+ '&.Mui-disabled': {
975
+ backgroundColor: 'white'
976
+ },
977
+ '&.Mui-focused': {
978
+ backgroundColor: 'rgba(0,0,0,0.09)'
979
+ }
980
+ },
981
+ underline: {
982
+ '&.Mui-disabled:before': {
983
+ borderBottomStyle: 'none'
984
+ }
871
985
  }
872
- },
873
- underline: {
874
- '&$disabled:before': {
875
- borderBottomStyle: 'none'
986
+ }
987
+ },
988
+ MuiRadio: {
989
+ styleOverrides: {
990
+ root: {
991
+ '&.Mui-disabled': {
992
+ color: '#CCCCCC!important'
993
+ },
994
+ '&.Mui-checked': {
995
+ color: '#0075a9'
996
+ }
876
997
  }
877
998
  }
878
999
  },
879
1000
  MuiCardContent: {
880
- root: {
881
- '&:last-child': {
882
- paddingBottom: 0
1001
+ styleOverrides: {
1002
+ root: {
1003
+ '&:last-child': {
1004
+ paddingBottom: 0
1005
+ }
1006
+ }
1007
+ }
1008
+ },
1009
+ MuiDialog: {
1010
+ styleOverrides: {
1011
+ paperWidthLg: {
1012
+ maxWidth: '1280px'
883
1013
  }
884
1014
  }
885
1015
  }
@@ -950,7 +1080,7 @@ var colors = {
950
1080
  fill: '#186DFF'
951
1081
  },
952
1082
  flatMouseover: {
953
- fill: '#242424'
1083
+ fill: '#494949'
954
1084
  },
955
1085
  focusDefault: {
956
1086
  outline: 'solid 2px #419cfe'
@@ -1228,10 +1358,12 @@ var ThemeWrapper = function ThemeWrapper(_ref2) {
1228
1358
  theme = _ref2$theme === void 0 ? lightTheme : _ref2$theme,
1229
1359
  _ref2$disableCssBasel = _ref2.disableCssBaseline,
1230
1360
  disableCssBaseline = _ref2$disableCssBasel === void 0 ? false : _ref2$disableCssBasel;
1231
- return /*#__PURE__*/React.createElement(ThemeProvider, {
1361
+ return /*#__PURE__*/React.createElement(StyledEngineProvider, {
1362
+ injectFirst: true
1363
+ }, /*#__PURE__*/React.createElement(ThemeProvider, {
1232
1364
  theme: theme,
1233
1365
  disableCssBaseline: disableCssBaseline
1234
- }, children);
1366
+ }, children));
1235
1367
  }; // Wrapper for storybook stories with GWTheme. Will be deprecated
1236
1368
 
1237
1369
  var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {