@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.
- package/README.md +3 -8
- package/{theme.esm.js → index.esm.js} +413 -230
- package/{theme.umd.js → index.umd.js} +418 -235
- package/lib/components/Theme/ThemeContext.d.ts +1 -1
- package/lib/components/Theme/darkTheme.d.ts +1 -1
- package/lib/components/Theme/gwTheme.d.ts +1 -7
- package/lib/components/Theme/lightTheme.d.ts +1 -1
- package/lib/components/Theme/types.d.ts +1 -1
- package/lib/components/Theme/utils.d.ts +3 -3
- package/lib/stories/Backdrop.stories.d.ts +1 -1
- package/lib/stories/Tooltip.stories.d.ts +1 -5
- package/lib/stories/snapshots/FormElements.stories.d.ts +1 -0
- package/package.json +7 -7
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
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
|
|
125
|
+
return createTheme$1({
|
|
126
126
|
palette: {
|
|
127
|
-
|
|
127
|
+
mode: paletteType,
|
|
128
128
|
secondary: {
|
|
129
129
|
main: geowebColors.typographyAndIcons.iconLinkActive
|
|
130
130
|
},
|
|
@@ -145,193 +145,304 @@ var createTheme = function createTheme(paletteType, geowebColors, shadows) {
|
|
|
145
145
|
fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
|
|
146
146
|
},
|
|
147
147
|
shadows: shadows,
|
|
148
|
-
|
|
148
|
+
components: {
|
|
149
149
|
MuiCssBaseline: {
|
|
150
|
-
|
|
151
|
-
body: {
|
|
152
|
-
fontSmoothing: 'auto'
|
|
153
|
-
}
|
|
154
|
-
}
|
|
150
|
+
styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
|
|
155
151
|
},
|
|
156
152
|
MuiMenuItem: {
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
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
|
-
|
|
178
|
-
|
|
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
|
-
|
|
183
|
-
|
|
201
|
+
styleOverrides: {
|
|
202
|
+
root: {
|
|
203
|
+
backgroundImage: 'unset'
|
|
204
|
+
},
|
|
205
|
+
outlined: {
|
|
206
|
+
borderColor: geowebColors.cards.cardContainerBorder
|
|
207
|
+
}
|
|
184
208
|
}
|
|
185
209
|
},
|
|
186
210
|
MuiCard: {
|
|
187
|
-
|
|
188
|
-
|
|
211
|
+
styleOverrides: {
|
|
212
|
+
root: {
|
|
213
|
+
backgroundColor: geowebColors.cards.cardContainer
|
|
214
|
+
}
|
|
189
215
|
}
|
|
190
216
|
},
|
|
191
217
|
MuiSlider: {
|
|
192
|
-
|
|
193
|
-
|
|
218
|
+
styleOverrides: {
|
|
219
|
+
root: {
|
|
220
|
+
color: geowebColors.typographyAndIcons.iconLinkActive
|
|
221
|
+
}
|
|
194
222
|
}
|
|
195
223
|
},
|
|
196
224
|
MuiTable: {
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
225
|
+
styleOverrides: {
|
|
226
|
+
root: {
|
|
227
|
+
borderSpacing: '0 0.25rem',
|
|
228
|
+
borderCollapse: 'separate'
|
|
229
|
+
}
|
|
200
230
|
}
|
|
201
231
|
},
|
|
202
232
|
MuiTableRow: {
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
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
|
-
|
|
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
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
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
|
-
|
|
238
|
-
|
|
239
|
-
|
|
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
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
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
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
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
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
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
|
-
|
|
284
|
-
|
|
324
|
+
styleOverrides: {
|
|
325
|
+
root: {
|
|
326
|
+
backgroundColor: geowebColors.backdrops.black.rgba
|
|
327
|
+
}
|
|
285
328
|
}
|
|
286
329
|
},
|
|
287
330
|
MuiTooltip: {
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
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
|
-
|
|
302
|
-
|
|
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
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
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
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
MuiFilledInput: {
|
|
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
|
+
}
|
|
401
|
+
},
|
|
402
|
+
underline: {
|
|
403
|
+
'&:after': {
|
|
404
|
+
borderBottom: 'transparent'
|
|
405
|
+
},
|
|
406
|
+
'&.Mui-disabled:before': {
|
|
407
|
+
borderBottomStyle: 'solid'
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
},
|
|
412
|
+
MuiFormLabel: {
|
|
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
|
+
}
|
|
429
|
+
}
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
MuiFormHelperText: {
|
|
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
|
+
}
|
|
445
|
+
}
|
|
335
446
|
}
|
|
336
447
|
}
|
|
337
448
|
}
|
|
@@ -628,7 +739,7 @@ var lightTheme = createTheme('light', parseColors(colors$1), createShadows(eleva
|
|
|
628
739
|
* */
|
|
629
740
|
|
|
630
741
|
var geowebColors = Object.assign({}, colors$1);
|
|
631
|
-
var GWTheme =
|
|
742
|
+
var GWTheme = createTheme$1({
|
|
632
743
|
palette: {
|
|
633
744
|
secondary: {
|
|
634
745
|
main: '#0075a9'
|
|
@@ -697,138 +808,208 @@ var GWTheme = createMuiTheme({
|
|
|
697
808
|
color: '0075a9'
|
|
698
809
|
}
|
|
699
810
|
},
|
|
700
|
-
|
|
811
|
+
components: {
|
|
701
812
|
MuiTooltip: {
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
813
|
+
styleOverrides: {
|
|
814
|
+
tooltip: {
|
|
815
|
+
borderRadius: '2px',
|
|
816
|
+
fontSize: '16px',
|
|
817
|
+
fontWeight: 'normal',
|
|
818
|
+
padding: '10px',
|
|
819
|
+
backgroundColor: '#232323'
|
|
820
|
+
}
|
|
708
821
|
}
|
|
709
822
|
},
|
|
710
823
|
MuiIconButton: {
|
|
711
|
-
|
|
712
|
-
|
|
824
|
+
styleOverrides: {
|
|
825
|
+
root: {
|
|
826
|
+
color: '#0075a9'
|
|
827
|
+
}
|
|
713
828
|
}
|
|
714
829
|
},
|
|
715
830
|
MuiCheckbox: {
|
|
716
|
-
|
|
717
|
-
|
|
831
|
+
styleOverrides: {
|
|
832
|
+
root: {
|
|
833
|
+
'&.Mui-disabled': {
|
|
834
|
+
color: '#CCCCCC!important'
|
|
835
|
+
},
|
|
836
|
+
'&.Mui-checked': {
|
|
837
|
+
color: '#0075a9'
|
|
838
|
+
}
|
|
839
|
+
}
|
|
718
840
|
}
|
|
719
841
|
},
|
|
720
842
|
MuiSelect: {
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
843
|
+
styleOverrides: {
|
|
844
|
+
icon: {
|
|
845
|
+
color: '#0075a9'
|
|
846
|
+
},
|
|
847
|
+
select: {
|
|
848
|
+
'&:focus': {
|
|
849
|
+
backgroundColor: 'rgba(0, 117, 169, 0.05)'
|
|
850
|
+
}
|
|
727
851
|
}
|
|
728
852
|
}
|
|
729
853
|
},
|
|
730
854
|
MuiAlert: {
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
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
|
+
}
|
|
759
885
|
}
|
|
760
886
|
},
|
|
761
887
|
MuiTabs: {
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
|
|
766
|
-
|
|
767
|
-
|
|
888
|
+
styleOverrides: {
|
|
889
|
+
root: {
|
|
890
|
+
backgroundColor: '#ffffff',
|
|
891
|
+
minHeight: '30px'
|
|
892
|
+
},
|
|
893
|
+
scrollButtons: {
|
|
894
|
+
width: '20px'
|
|
895
|
+
}
|
|
768
896
|
}
|
|
769
897
|
},
|
|
770
898
|
MuiTab: {
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
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'
|
|
777
910
|
}
|
|
778
|
-
},
|
|
779
|
-
labelIcon: {
|
|
780
|
-
minHeight: '30px'
|
|
781
911
|
}
|
|
782
912
|
},
|
|
783
913
|
MuiListItem: {
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
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: {
|
|
788
925
|
'&:hover': {
|
|
789
|
-
backgroundColor: 'rgba(0, 117, 169, 0.
|
|
926
|
+
backgroundColor: 'rgba(0, 117, 169, 0.15)'
|
|
790
927
|
}
|
|
791
928
|
}
|
|
792
|
-
}
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
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
|
+
}
|
|
796
944
|
}
|
|
797
945
|
}
|
|
798
946
|
},
|
|
799
947
|
MuiFormLabel: {
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
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
|
+
}
|
|
804
957
|
}
|
|
805
958
|
}
|
|
806
959
|
},
|
|
807
960
|
MuiOutlinedInput: {
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
961
|
+
styleOverrides: {
|
|
962
|
+
root: {
|
|
963
|
+
'&$focused $notchedOutline': {
|
|
964
|
+
borderColor: '#0075a9'
|
|
965
|
+
}
|
|
811
966
|
}
|
|
812
967
|
}
|
|
813
968
|
},
|
|
814
969
|
MuiFilledInput: {
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
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
|
+
}
|
|
820
985
|
}
|
|
821
|
-
}
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
986
|
+
}
|
|
987
|
+
},
|
|
988
|
+
MuiRadio: {
|
|
989
|
+
styleOverrides: {
|
|
990
|
+
root: {
|
|
991
|
+
'&.Mui-disabled': {
|
|
992
|
+
color: '#CCCCCC!important'
|
|
993
|
+
},
|
|
994
|
+
'&.Mui-checked': {
|
|
995
|
+
color: '#0075a9'
|
|
996
|
+
}
|
|
825
997
|
}
|
|
826
998
|
}
|
|
827
999
|
},
|
|
828
1000
|
MuiCardContent: {
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
1001
|
+
styleOverrides: {
|
|
1002
|
+
root: {
|
|
1003
|
+
'&:last-child': {
|
|
1004
|
+
paddingBottom: 0
|
|
1005
|
+
}
|
|
1006
|
+
}
|
|
1007
|
+
}
|
|
1008
|
+
},
|
|
1009
|
+
MuiDialog: {
|
|
1010
|
+
styleOverrides: {
|
|
1011
|
+
paperWidthLg: {
|
|
1012
|
+
maxWidth: '1280px'
|
|
832
1013
|
}
|
|
833
1014
|
}
|
|
834
1015
|
}
|
|
@@ -899,7 +1080,7 @@ var colors = {
|
|
|
899
1080
|
fill: '#186DFF'
|
|
900
1081
|
},
|
|
901
1082
|
flatMouseover: {
|
|
902
|
-
fill: '#
|
|
1083
|
+
fill: '#494949'
|
|
903
1084
|
},
|
|
904
1085
|
focusDefault: {
|
|
905
1086
|
outline: 'solid 2px #419cfe'
|
|
@@ -1177,10 +1358,12 @@ var ThemeWrapper = function ThemeWrapper(_ref2) {
|
|
|
1177
1358
|
theme = _ref2$theme === void 0 ? lightTheme : _ref2$theme,
|
|
1178
1359
|
_ref2$disableCssBasel = _ref2.disableCssBaseline,
|
|
1179
1360
|
disableCssBaseline = _ref2$disableCssBasel === void 0 ? false : _ref2$disableCssBasel;
|
|
1180
|
-
return /*#__PURE__*/React.createElement(
|
|
1361
|
+
return /*#__PURE__*/React.createElement(StyledEngineProvider, {
|
|
1362
|
+
injectFirst: true
|
|
1363
|
+
}, /*#__PURE__*/React.createElement(ThemeProvider, {
|
|
1181
1364
|
theme: theme,
|
|
1182
1365
|
disableCssBaseline: disableCssBaseline
|
|
1183
|
-
}, children);
|
|
1366
|
+
}, children));
|
|
1184
1367
|
}; // Wrapper for storybook stories with GWTheme. Will be deprecated
|
|
1185
1368
|
|
|
1186
1369
|
var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
|