@opengeoweb/theme 2.1.0 → 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,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;
@@ -134,9 +134,9 @@
134
134
  };
135
135
  var BORDER_RADIUS = 3;
136
136
  var createTheme = function createTheme(paletteType, geowebColors, shadows) {
137
- return core.createMuiTheme({
137
+ return material.createTheme({
138
138
  palette: {
139
- type: paletteType,
139
+ mode: paletteType,
140
140
  secondary: {
141
141
  main: geowebColors.typographyAndIcons.iconLinkActive
142
142
  },
@@ -157,193 +157,304 @@
157
157
  fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
158
158
  },
159
159
  shadows: shadows,
160
- overrides: {
160
+ components: {
161
161
  MuiCssBaseline: {
162
- '@global': {
163
- body: {
164
- fontSmoothing: 'auto'
165
- }
166
- }
162
+ styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
167
163
  },
168
164
  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
165
+ styleOverrides: {
166
+ root: {
167
+ fontSize: '0.875rem',
168
+ letterSpacing: '0.25px',
169
+ ':not(:last-child)&:after': {
170
+ content: '""',
171
+ position: 'absolute',
172
+ width: '100%',
173
+ height: 1,
174
+ background: geowebColors.greys.accessible,
175
+ bottom: 0,
176
+ left: 0,
177
+ opacity: 0.5
178
+ },
179
+ '&.Mui-selected': {
180
+ background: 'none',
181
+ boxShadow: "inset 4px 0px 0px 0px " + geowebColors.typographyAndIcons.iconLinkActive
182
+ }
185
183
  }
186
184
  }
187
185
  },
188
186
  MuiRadio: {
189
- root: {
190
- color: geowebColors.typographyAndIcons.iconLinkActive
187
+ styleOverrides: {
188
+ root: {
189
+ color: geowebColors.typographyAndIcons.iconLinkActive,
190
+ '&.Mui-disabled': {
191
+ color: geowebColors.typographyAndIcons.iconLinkDisabled + "!important"
192
+ },
193
+ '&.Mui-checked': {
194
+ color: geowebColors.typographyAndIcons.iconLinkActive
195
+ }
196
+ }
197
+ }
198
+ },
199
+ MuiCheckbox: {
200
+ styleOverrides: {
201
+ root: {
202
+ color: geowebColors.typographyAndIcons.iconLinkActive,
203
+ '&.Mui-disabled': {
204
+ color: geowebColors.typographyAndIcons.iconLinkDisabled + "!important"
205
+ },
206
+ '&.Mui-checked': {
207
+ color: geowebColors.typographyAndIcons.iconLinkActive
208
+ }
209
+ }
191
210
  }
192
211
  },
193
212
  MuiPaper: {
194
- outlined: {
195
- borderColor: geowebColors.cards.cardContainerBorder
213
+ styleOverrides: {
214
+ root: {
215
+ backgroundImage: 'unset'
216
+ },
217
+ outlined: {
218
+ borderColor: geowebColors.cards.cardContainerBorder
219
+ }
196
220
  }
197
221
  },
198
222
  MuiCard: {
199
- root: {
200
- backgroundColor: geowebColors.cards.cardContainer
223
+ styleOverrides: {
224
+ root: {
225
+ backgroundColor: geowebColors.cards.cardContainer
226
+ }
201
227
  }
202
228
  },
203
229
  MuiSlider: {
204
- root: {
205
- color: geowebColors.typographyAndIcons.iconLinkActive
230
+ styleOverrides: {
231
+ root: {
232
+ color: geowebColors.typographyAndIcons.iconLinkActive
233
+ }
206
234
  }
207
235
  },
208
236
  MuiTable: {
209
- root: {
210
- borderSpacing: '0 0.25rem',
211
- borderCollapse: 'separate'
237
+ styleOverrides: {
238
+ root: {
239
+ borderSpacing: '0 0.25rem',
240
+ borderCollapse: 'separate'
241
+ }
212
242
  }
213
243
  },
214
244
  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]
245
+ styleOverrides: {
246
+ head: {
247
+ '&:hover': {
248
+ boxShadow: shadows[0]
249
+ }
226
250
  },
227
- position: 'relative'
251
+ root: {
252
+ transition: 'box-shadow 100ms ease-out',
253
+ boxShadow: shadows[0],
254
+ borderRadius: BORDER_RADIUS,
255
+ '&:hover': {
256
+ boxShadow: shadows[1]
257
+ },
258
+ position: 'relative'
259
+ }
228
260
  }
229
261
  },
230
262
  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"
263
+ styleOverrides: {
264
+ head: {
265
+ borderBottom: 'none',
266
+ fontSize: '0.875rem',
267
+ fontWeight: 400
248
268
  },
249
- '&:last-child': {
250
- borderRightColor: geowebColors.cards.cardContainerBorder,
251
- borderRadius: "0px " + BORDER_RADIUS + "px " + BORDER_RADIUS + "px 0px"
269
+ body: {
270
+ padding: 12,
271
+ fontWeight: 500,
272
+ backgroundColor: geowebColors.background.surface,
273
+ borderStyle: 'solid',
274
+ borderColor: 'transparent',
275
+ borderWidth: 1,
276
+ borderTopColor: geowebColors.cards.cardContainerBorder,
277
+ borderBottomColor: geowebColors.cards.cardContainerBorder,
278
+ '&:first-child': {
279
+ borderLeftColor: geowebColors.cards.cardContainerBorder,
280
+ borderRadius: BORDER_RADIUS + "px 0px 0px " + BORDER_RADIUS + "px"
281
+ },
282
+ '&:last-child': {
283
+ borderRightColor: geowebColors.cards.cardContainerBorder,
284
+ borderRadius: "0px " + BORDER_RADIUS + "px " + BORDER_RADIUS + "px 0px"
285
+ }
252
286
  }
253
287
  }
254
288
  },
255
289
  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)
290
+ styleOverrides: {
291
+ root: {
292
+ position: 'relative',
293
+ '&:after': {
294
+ content: '""',
295
+ position: 'absolute',
296
+ bottom: 0,
297
+ height: 1,
298
+ width: '100%',
299
+ zIndex: 0,
300
+ backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
301
+ }
302
+ },
303
+ indicator: {
304
+ zIndex: 1,
305
+ backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
266
306
  }
267
- },
268
- indicator: {
269
- zIndex: 1,
270
- backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
271
307
  }
272
308
  },
273
309
  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
310
+ styleOverrides: {
311
+ root: {
312
+ textTransform: 'initial',
313
+ '&.Mui-selected': {
314
+ color: geowebColors.typographyAndIcons.iconLinkActive
315
+ },
316
+ '&:hover': {
317
+ opacity: 1,
318
+ color: geowebColors.typographyAndIcons.iconLinkActive,
319
+ backgroundColor: geowebColors.tab.mouseOver.rgba
320
+ }
283
321
  }
284
322
  }
285
323
  },
286
324
  MuiListItem: {
287
- root: {
288
- color: geowebColors.typographyAndIcons.text
289
- },
290
- divider: {
291
- borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
325
+ styleOverrides: {
326
+ root: {
327
+ color: geowebColors.typographyAndIcons.text,
328
+ fontSize: '14px'
329
+ },
330
+ divider: {
331
+ borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
332
+ }
292
333
  }
293
334
  },
294
335
  MuiBackdrop: {
295
- root: {
296
- backgroundColor: geowebColors.backdrops.black.rgba
336
+ styleOverrides: {
337
+ root: {
338
+ backgroundColor: geowebColors.backdrops.black.rgba
339
+ }
297
340
  }
298
341
  },
299
342
  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
343
+ styleOverrides: {
344
+ tooltip: {
345
+ backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
346
+ color: geowebColors.tooltips.tooltipText.color,
347
+ padding: '8px 12px',
348
+ fontSize: 16,
349
+ fontWeight: 400,
350
+ fontStretch: 'normal',
351
+ fontStyle: 'normal',
352
+ letterSpacing: 0.44,
353
+ lineHeight: 1.56
354
+ }
310
355
  }
311
356
  },
312
357
  MuiLink: {
313
- root: {
314
- color: geowebColors.typographyAndIcons.textLinkActive
358
+ styleOverrides: {
359
+ root: {
360
+ color: geowebColors.typographyAndIcons.textLinkActive,
361
+ textDecoration: 'none',
362
+ '&:hover': {
363
+ textDecoration: 'underline',
364
+ textDecorationColor: geowebColors.typographyAndIcons.textLinkActive
365
+ }
366
+ }
315
367
  }
316
368
  },
317
369
  // TODO: implement correct theming values https://gitlab.com/opengeoweb/opengeoweb/-/issues/1369
318
370
  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'
371
+ styleOverrides: {
372
+ standardError: {
373
+ border: '1px solid #c00000',
374
+ borderRadius: '0px',
375
+ backgroundColor: '#fff0ea'
376
+ },
377
+ standardWarning: {
378
+ border: '1px solid #ffa800',
379
+ borderRadius: '0px',
380
+ backgroundColor: '#fff8eb'
381
+ },
382
+ standardInfo: {
383
+ border: '1px solid #0062e6',
384
+ borderRadius: '0px',
385
+ backgroundColor: '#eaf3ff'
386
+ },
387
+ standardSuccess: {
388
+ border: '1px solid #72bb23',
389
+ borderRadius: '0px',
390
+ backgroundColor: '#fcffeb'
391
+ },
392
+ action: {
393
+ color: '#0075a9'
394
+ },
395
+ message: {
396
+ fontSize: '14px',
397
+ lineHeight: 1.43,
398
+ letterSpacing: '0.25px',
399
+ color: '#051039'
400
+ }
401
+ }
402
+ },
403
+ MuiFilledInput: {
404
+ styleOverrides: {
405
+ root: {
406
+ backgroundColor: geowebColors.textInputField["default"].rgba,
407
+ '&.Mui-focused': {
408
+ backgroundColor: geowebColors.textInputField.active.rgba
409
+ },
410
+ '&.Mui-disabled': {
411
+ backgroundColor: geowebColors.textInputField.disabled.rgba
412
+ }
413
+ },
414
+ underline: {
415
+ '&:after': {
416
+ borderBottom: 'transparent'
417
+ },
418
+ '&.Mui-disabled:before': {
419
+ borderBottomStyle: 'solid'
420
+ }
421
+ }
422
+ }
423
+ },
424
+ MuiFormLabel: {
425
+ styleOverrides: {
426
+ root: {
427
+ color: geowebColors.captions.captionStatus.color,
428
+ opacity: geowebColors.captions.captionStatus.opacity,
429
+ '&.Mui-focused': {
430
+ color: geowebColors.captions.captionInformation.color,
431
+ opacity: geowebColors.captions.captionInformation.opacity
432
+ },
433
+ '&.Mui-error': {
434
+ color: geowebColors.captions.captionError.color,
435
+ opacity: geowebColors.captions.captionError.opacity
436
+ },
437
+ '&.Mui-disabled': {
438
+ color: geowebColors.captions.captionDisabled.color,
439
+ opacity: geowebColors.captions.captionDisabled.opacity
440
+ }
441
+ }
442
+ }
443
+ },
444
+ MuiFormHelperText: {
445
+ styleOverrides: {
446
+ root: {
447
+ color: geowebColors.captions.captionStatus.color,
448
+ opacity: geowebColors.captions.captionStatus.opacity,
449
+ '&.Mui-error': {
450
+ color: geowebColors.captions.captionError.color,
451
+ opacity: geowebColors.captions.captionError.opacity
452
+ },
453
+ '&.Mui-disabled': {
454
+ color: geowebColors.captions.captionDisabled.color,
455
+ opacity: geowebColors.captions.captionDisabled.opacity
456
+ }
457
+ }
347
458
  }
348
459
  }
349
460
  }
@@ -624,7 +735,7 @@
624
735
 
625
736
  var geowebColors = __assign({}, colors$1);
626
737
 
627
- var GWTheme = core.createMuiTheme({
738
+ var GWTheme = material.createTheme({
628
739
  palette: {
629
740
  secondary: {
630
741
  main: '#0075a9'
@@ -693,138 +804,208 @@
693
804
  color: '0075a9'
694
805
  }
695
806
  },
696
- overrides: {
807
+ components: {
697
808
  MuiTooltip: {
698
- tooltip: {
699
- borderRadius: '2px',
700
- fontSize: '16px',
701
- fontWeight: 'normal',
702
- padding: '10px',
703
- backgroundColor: '#232323'
809
+ styleOverrides: {
810
+ tooltip: {
811
+ borderRadius: '2px',
812
+ fontSize: '16px',
813
+ fontWeight: 'normal',
814
+ padding: '10px',
815
+ backgroundColor: '#232323'
816
+ }
704
817
  }
705
818
  },
706
819
  MuiIconButton: {
707
- root: {
708
- color: '#0075a9'
820
+ styleOverrides: {
821
+ root: {
822
+ color: '#0075a9'
823
+ }
709
824
  }
710
825
  },
711
826
  MuiCheckbox: {
712
- root: {
713
- color: '#0075a9'
827
+ styleOverrides: {
828
+ root: {
829
+ '&.Mui-disabled': {
830
+ color: '#CCCCCC!important'
831
+ },
832
+ '&.Mui-checked': {
833
+ color: '#0075a9'
834
+ }
835
+ }
714
836
  }
715
837
  },
716
838
  MuiSelect: {
717
- icon: {
718
- color: '#0075a9'
719
- },
720
- select: {
721
- '&:focus': {
722
- backgroundColor: 'rgba(0, 117, 169, 0.05)'
839
+ styleOverrides: {
840
+ icon: {
841
+ color: '#0075a9'
842
+ },
843
+ select: {
844
+ '&:focus': {
845
+ backgroundColor: 'rgba(0, 117, 169, 0.05)'
846
+ }
723
847
  }
724
848
  }
725
849
  },
726
850
  MuiAlert: {
727
- standardError: {
728
- border: '1px solid #c00000',
729
- borderRadius: '0px',
730
- backgroundColor: '#fff0ea'
731
- },
732
- standardWarning: {
733
- border: '1px solid #ffa800',
734
- borderRadius: '0px',
735
- backgroundColor: '#fff8eb'
736
- },
737
- standardInfo: {
738
- border: '1px solid #0062e6',
739
- borderRadius: '0px',
740
- backgroundColor: '#eaf3ff'
741
- },
742
- standardSuccess: {
743
- border: '1px solid #72bb23',
744
- borderRadius: '0px',
745
- backgroundColor: '#fcffeb'
746
- },
747
- action: {
748
- color: '#0075a9'
749
- },
750
- message: {
751
- fontSize: '14px',
752
- lineHeight: 1.43,
753
- letterSpacing: '0.25px',
754
- color: '#051039'
851
+ styleOverrides: {
852
+ standardError: {
853
+ border: '1px solid #c00000',
854
+ borderRadius: '0px',
855
+ backgroundColor: '#fff0ea'
856
+ },
857
+ standardWarning: {
858
+ border: '1px solid #ffa800',
859
+ borderRadius: '0px',
860
+ backgroundColor: '#fff8eb'
861
+ },
862
+ standardInfo: {
863
+ border: '1px solid #0062e6',
864
+ borderRadius: '0px',
865
+ backgroundColor: '#eaf3ff'
866
+ },
867
+ standardSuccess: {
868
+ border: '1px solid #72bb23',
869
+ borderRadius: '0px',
870
+ backgroundColor: '#fcffeb'
871
+ },
872
+ action: {
873
+ color: '#0075a9'
874
+ },
875
+ message: {
876
+ fontSize: '14px',
877
+ lineHeight: 1.43,
878
+ letterSpacing: '0.25px',
879
+ color: '#051039'
880
+ }
755
881
  }
756
882
  },
757
883
  MuiTabs: {
758
- root: {
759
- backgroundColor: '#ffffff',
760
- minHeight: '30px'
761
- },
762
- scrollButtons: {
763
- width: '20px'
884
+ styleOverrides: {
885
+ root: {
886
+ backgroundColor: '#ffffff',
887
+ minHeight: '30px'
888
+ },
889
+ scrollButtons: {
890
+ width: '20px'
891
+ }
764
892
  }
765
893
  },
766
894
  MuiTab: {
767
- root: {
768
- minHeight: '30px',
769
- textTransform: 'none',
770
- minWidth: '76px',
771
- '@media (min-width: 600px)': {
772
- minWidth: '76px'
895
+ styleOverrides: {
896
+ root: {
897
+ minHeight: '30px',
898
+ textTransform: 'none',
899
+ minWidth: '76px',
900
+ '@media (min-width: 600px)': {
901
+ minWidth: '76px'
902
+ }
903
+ },
904
+ labelIcon: {
905
+ minHeight: '30px'
773
906
  }
774
- },
775
- labelIcon: {
776
- minHeight: '30px'
777
907
  }
778
908
  },
779
909
  MuiListItem: {
780
- root: {
781
- '&$selected': {
782
- backgroundColor: 'rgba(0, 117, 169, 0.15)',
783
- borderLeft: '4px solid #0075a9',
910
+ styleOverrides: {
911
+ root: {
912
+ '&$selected': {
913
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
914
+ borderLeft: '4px solid #0075a9',
915
+ '&:hover': {
916
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
917
+ }
918
+ }
919
+ },
920
+ button: {
784
921
  '&:hover': {
785
- backgroundColor: 'rgba(0, 117, 169, 0.10)'
922
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
786
923
  }
787
924
  }
788
- },
789
- button: {
790
- '&:hover': {
791
- backgroundColor: 'rgba(0, 117, 169, 0.15)'
925
+ }
926
+ },
927
+ MuiMenuItem: {
928
+ styleOverrides: {
929
+ root: {
930
+ '&.Mui-selected': {
931
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
932
+ borderLeft: '4px solid #0075a9',
933
+ '&:hover': {
934
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
935
+ }
936
+ },
937
+ '&:hover': {
938
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
939
+ }
792
940
  }
793
941
  }
794
942
  },
795
943
  MuiFormLabel: {
796
- root: {
797
- color: 'rgba(5, 16, 57, 0.7)',
798
- '&$focused': {
799
- color: '#0075a9'
944
+ styleOverrides: {
945
+ root: {
946
+ color: 'rgba(5, 16, 57, 0.7)',
947
+ '&.Mui-focused': {
948
+ color: '#0075a9'
949
+ },
950
+ '&.Mui-error': {
951
+ color: '#d32f2f!important'
952
+ }
800
953
  }
801
954
  }
802
955
  },
803
956
  MuiOutlinedInput: {
804
- root: {
805
- '&$focused $notchedOutline': {
806
- borderColor: '#0075a9'
957
+ styleOverrides: {
958
+ root: {
959
+ '&$focused $notchedOutline': {
960
+ borderColor: '#0075a9'
961
+ }
807
962
  }
808
963
  }
809
964
  },
810
965
  MuiFilledInput: {
811
- root: {
812
- backgroundColor: 'rgba(0, 117, 169, 0.05)',
813
- color: '#051039',
814
- '&$disabled': {
815
- backgroundColor: 'transparent'
966
+ styleOverrides: {
967
+ root: {
968
+ backgroundColor: 'rgba(0, 117, 169, 0.05)',
969
+ color: '#051039',
970
+ '&.Mui-disabled': {
971
+ backgroundColor: 'white'
972
+ },
973
+ '&.Mui-focused': {
974
+ backgroundColor: 'rgba(0,0,0,0.09)'
975
+ }
976
+ },
977
+ underline: {
978
+ '&.Mui-disabled:before': {
979
+ borderBottomStyle: 'none'
980
+ }
816
981
  }
817
- },
818
- underline: {
819
- '&$disabled:before': {
820
- borderBottomStyle: 'none'
982
+ }
983
+ },
984
+ MuiRadio: {
985
+ styleOverrides: {
986
+ root: {
987
+ '&.Mui-disabled': {
988
+ color: '#CCCCCC!important'
989
+ },
990
+ '&.Mui-checked': {
991
+ color: '#0075a9'
992
+ }
821
993
  }
822
994
  }
823
995
  },
824
996
  MuiCardContent: {
825
- root: {
826
- '&:last-child': {
827
- paddingBottom: 0
997
+ styleOverrides: {
998
+ root: {
999
+ '&:last-child': {
1000
+ paddingBottom: 0
1001
+ }
1002
+ }
1003
+ }
1004
+ },
1005
+ MuiDialog: {
1006
+ styleOverrides: {
1007
+ paperWidthLg: {
1008
+ maxWidth: '1280px'
828
1009
  }
829
1010
  }
830
1011
  }
@@ -868,7 +1049,7 @@
868
1049
  fill: '#186DFF'
869
1050
  },
870
1051
  flatMouseover: {
871
- fill: '#242424'
1052
+ fill: '#494949'
872
1053
  },
873
1054
  focusDefault: {
874
1055
  outline: 'solid 2px #419cfe'
@@ -1131,9 +1312,9 @@
1131
1312
  toggleTheme: toggleTheme,
1132
1313
  isDark: isDark
1133
1314
  }
1134
- }, /*#__PURE__*/React__namespace.createElement(core.ThemeProvider, {
1315
+ }, /*#__PURE__*/React__namespace.createElement(material.ThemeProvider, {
1135
1316
  theme: currentTheme
1136
- }, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(core.CssBaseline, null), children));
1317
+ }, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(material.CssBaseline, null), children));
1137
1318
  };
1138
1319
  var useThemeContext = function useThemeContext() {
1139
1320
  return React__namespace.useContext(ThemeContext);
@@ -1145,10 +1326,12 @@
1145
1326
  theme = _b === void 0 ? lightTheme : _b,
1146
1327
  _c = _a.disableCssBaseline,
1147
1328
  disableCssBaseline = _c === void 0 ? false : _c;
1148
- return /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
1329
+ return /*#__PURE__*/React__namespace.createElement(material.StyledEngineProvider, {
1330
+ injectFirst: true
1331
+ }, /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
1149
1332
  theme: theme,
1150
1333
  disableCssBaseline: disableCssBaseline
1151
- }, children);
1334
+ }, children));
1152
1335
  }; // Wrapper for storybook stories with GWTheme. Will be deprecated
1153
1336
 
1154
1337
  var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {