@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.
- package/README.md +1 -6
- package/{theme.esm.js → index.esm.js} +400 -268
- package/{theme.umd.js → index.umd.js} +405 -273
- 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 -0
- package/package.json +7 -7
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
(function (global, factory) {
|
|
2
|
-
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@material
|
|
3
|
-
typeof define === 'function' && define.amd ? define(['exports', '@material
|
|
4
|
-
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.Theme = {}, global.
|
|
5
|
-
})(this, (function (exports,
|
|
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
|
|
137
|
+
return material.createTheme({
|
|
138
138
|
palette: {
|
|
139
|
-
|
|
139
|
+
mode: paletteType,
|
|
140
140
|
secondary: {
|
|
141
141
|
main: geowebColors.typographyAndIcons.iconLinkActive
|
|
142
142
|
},
|
|
@@ -157,243 +157,303 @@
|
|
|
157
157
|
fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
|
|
158
158
|
},
|
|
159
159
|
shadows: shadows,
|
|
160
|
-
|
|
160
|
+
components: {
|
|
161
161
|
MuiCssBaseline: {
|
|
162
|
-
|
|
163
|
-
body: {
|
|
164
|
-
fontSmoothing: 'auto'
|
|
165
|
-
}
|
|
166
|
-
}
|
|
162
|
+
styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
|
|
167
163
|
},
|
|
168
164
|
MuiMenuItem: {
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
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
|
-
|
|
190
|
-
|
|
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
|
-
|
|
195
|
-
|
|
213
|
+
styleOverrides: {
|
|
214
|
+
root: {
|
|
215
|
+
backgroundImage: 'unset'
|
|
216
|
+
},
|
|
217
|
+
outlined: {
|
|
218
|
+
borderColor: geowebColors.cards.cardContainerBorder
|
|
219
|
+
}
|
|
196
220
|
}
|
|
197
221
|
},
|
|
198
222
|
MuiCard: {
|
|
199
|
-
|
|
200
|
-
|
|
223
|
+
styleOverrides: {
|
|
224
|
+
root: {
|
|
225
|
+
backgroundColor: geowebColors.cards.cardContainer
|
|
226
|
+
}
|
|
201
227
|
}
|
|
202
228
|
},
|
|
203
229
|
MuiSlider: {
|
|
204
|
-
|
|
205
|
-
|
|
230
|
+
styleOverrides: {
|
|
231
|
+
root: {
|
|
232
|
+
color: geowebColors.typographyAndIcons.iconLinkActive
|
|
233
|
+
}
|
|
206
234
|
}
|
|
207
235
|
},
|
|
208
236
|
MuiTable: {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
237
|
+
styleOverrides: {
|
|
238
|
+
root: {
|
|
239
|
+
borderSpacing: '0 0.25rem',
|
|
240
|
+
borderCollapse: 'separate'
|
|
241
|
+
}
|
|
212
242
|
}
|
|
213
243
|
},
|
|
214
244
|
MuiTableRow: {
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
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
|
-
|
|
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
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
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
|
-
|
|
250
|
-
|
|
251
|
-
|
|
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
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
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
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
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
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
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
|
-
|
|
296
|
-
|
|
336
|
+
styleOverrides: {
|
|
337
|
+
root: {
|
|
338
|
+
backgroundColor: geowebColors.backdrops.black.rgba
|
|
339
|
+
}
|
|
297
340
|
}
|
|
298
341
|
},
|
|
299
342
|
MuiTooltip: {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
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
|
-
|
|
314
|
-
|
|
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
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
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
|
+
}
|
|
347
401
|
}
|
|
348
402
|
},
|
|
349
403
|
MuiFilledInput: {
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
underline: {
|
|
360
|
-
'&:after': {
|
|
361
|
-
borderBottom: 'transparent'
|
|
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
|
+
}
|
|
362
413
|
},
|
|
363
|
-
|
|
364
|
-
|
|
414
|
+
underline: {
|
|
415
|
+
'&:after': {
|
|
416
|
+
borderBottom: 'transparent'
|
|
417
|
+
},
|
|
418
|
+
'&.Mui-disabled:before': {
|
|
419
|
+
borderBottomStyle: 'solid'
|
|
420
|
+
}
|
|
365
421
|
}
|
|
366
422
|
}
|
|
367
423
|
},
|
|
368
424
|
MuiFormLabel: {
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
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
|
+
}
|
|
383
441
|
}
|
|
384
442
|
}
|
|
385
443
|
},
|
|
386
444
|
MuiFormHelperText: {
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
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
|
+
}
|
|
397
457
|
}
|
|
398
458
|
}
|
|
399
459
|
}
|
|
@@ -675,7 +735,7 @@
|
|
|
675
735
|
|
|
676
736
|
var geowebColors = __assign({}, colors$1);
|
|
677
737
|
|
|
678
|
-
var GWTheme =
|
|
738
|
+
var GWTheme = material.createTheme({
|
|
679
739
|
palette: {
|
|
680
740
|
secondary: {
|
|
681
741
|
main: '#0075a9'
|
|
@@ -744,138 +804,208 @@
|
|
|
744
804
|
color: '0075a9'
|
|
745
805
|
}
|
|
746
806
|
},
|
|
747
|
-
|
|
807
|
+
components: {
|
|
748
808
|
MuiTooltip: {
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
809
|
+
styleOverrides: {
|
|
810
|
+
tooltip: {
|
|
811
|
+
borderRadius: '2px',
|
|
812
|
+
fontSize: '16px',
|
|
813
|
+
fontWeight: 'normal',
|
|
814
|
+
padding: '10px',
|
|
815
|
+
backgroundColor: '#232323'
|
|
816
|
+
}
|
|
755
817
|
}
|
|
756
818
|
},
|
|
757
819
|
MuiIconButton: {
|
|
758
|
-
|
|
759
|
-
|
|
820
|
+
styleOverrides: {
|
|
821
|
+
root: {
|
|
822
|
+
color: '#0075a9'
|
|
823
|
+
}
|
|
760
824
|
}
|
|
761
825
|
},
|
|
762
826
|
MuiCheckbox: {
|
|
763
|
-
|
|
764
|
-
|
|
827
|
+
styleOverrides: {
|
|
828
|
+
root: {
|
|
829
|
+
'&.Mui-disabled': {
|
|
830
|
+
color: '#CCCCCC!important'
|
|
831
|
+
},
|
|
832
|
+
'&.Mui-checked': {
|
|
833
|
+
color: '#0075a9'
|
|
834
|
+
}
|
|
835
|
+
}
|
|
765
836
|
}
|
|
766
837
|
},
|
|
767
838
|
MuiSelect: {
|
|
768
|
-
|
|
769
|
-
|
|
770
|
-
|
|
771
|
-
|
|
772
|
-
|
|
773
|
-
|
|
839
|
+
styleOverrides: {
|
|
840
|
+
icon: {
|
|
841
|
+
color: '#0075a9'
|
|
842
|
+
},
|
|
843
|
+
select: {
|
|
844
|
+
'&:focus': {
|
|
845
|
+
backgroundColor: 'rgba(0, 117, 169, 0.05)'
|
|
846
|
+
}
|
|
774
847
|
}
|
|
775
848
|
}
|
|
776
849
|
},
|
|
777
850
|
MuiAlert: {
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
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
|
+
}
|
|
806
881
|
}
|
|
807
882
|
},
|
|
808
883
|
MuiTabs: {
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
884
|
+
styleOverrides: {
|
|
885
|
+
root: {
|
|
886
|
+
backgroundColor: '#ffffff',
|
|
887
|
+
minHeight: '30px'
|
|
888
|
+
},
|
|
889
|
+
scrollButtons: {
|
|
890
|
+
width: '20px'
|
|
891
|
+
}
|
|
815
892
|
}
|
|
816
893
|
},
|
|
817
894
|
MuiTab: {
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
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'
|
|
824
906
|
}
|
|
825
|
-
},
|
|
826
|
-
labelIcon: {
|
|
827
|
-
minHeight: '30px'
|
|
828
907
|
}
|
|
829
908
|
},
|
|
830
909
|
MuiListItem: {
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
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: {
|
|
835
921
|
'&:hover': {
|
|
836
|
-
backgroundColor: 'rgba(0, 117, 169, 0.
|
|
922
|
+
backgroundColor: 'rgba(0, 117, 169, 0.15)'
|
|
837
923
|
}
|
|
838
924
|
}
|
|
839
|
-
}
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
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
|
+
}
|
|
843
940
|
}
|
|
844
941
|
}
|
|
845
942
|
},
|
|
846
943
|
MuiFormLabel: {
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
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
|
+
}
|
|
851
953
|
}
|
|
852
954
|
}
|
|
853
955
|
},
|
|
854
956
|
MuiOutlinedInput: {
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
957
|
+
styleOverrides: {
|
|
958
|
+
root: {
|
|
959
|
+
'&$focused $notchedOutline': {
|
|
960
|
+
borderColor: '#0075a9'
|
|
961
|
+
}
|
|
858
962
|
}
|
|
859
963
|
}
|
|
860
964
|
},
|
|
861
965
|
MuiFilledInput: {
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
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
|
+
}
|
|
867
981
|
}
|
|
868
|
-
}
|
|
869
|
-
|
|
870
|
-
|
|
871
|
-
|
|
982
|
+
}
|
|
983
|
+
},
|
|
984
|
+
MuiRadio: {
|
|
985
|
+
styleOverrides: {
|
|
986
|
+
root: {
|
|
987
|
+
'&.Mui-disabled': {
|
|
988
|
+
color: '#CCCCCC!important'
|
|
989
|
+
},
|
|
990
|
+
'&.Mui-checked': {
|
|
991
|
+
color: '#0075a9'
|
|
992
|
+
}
|
|
872
993
|
}
|
|
873
994
|
}
|
|
874
995
|
},
|
|
875
996
|
MuiCardContent: {
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
997
|
+
styleOverrides: {
|
|
998
|
+
root: {
|
|
999
|
+
'&:last-child': {
|
|
1000
|
+
paddingBottom: 0
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
},
|
|
1005
|
+
MuiDialog: {
|
|
1006
|
+
styleOverrides: {
|
|
1007
|
+
paperWidthLg: {
|
|
1008
|
+
maxWidth: '1280px'
|
|
879
1009
|
}
|
|
880
1010
|
}
|
|
881
1011
|
}
|
|
@@ -919,7 +1049,7 @@
|
|
|
919
1049
|
fill: '#186DFF'
|
|
920
1050
|
},
|
|
921
1051
|
flatMouseover: {
|
|
922
|
-
fill: '#
|
|
1052
|
+
fill: '#494949'
|
|
923
1053
|
},
|
|
924
1054
|
focusDefault: {
|
|
925
1055
|
outline: 'solid 2px #419cfe'
|
|
@@ -1182,9 +1312,9 @@
|
|
|
1182
1312
|
toggleTheme: toggleTheme,
|
|
1183
1313
|
isDark: isDark
|
|
1184
1314
|
}
|
|
1185
|
-
}, /*#__PURE__*/React__namespace.createElement(
|
|
1315
|
+
}, /*#__PURE__*/React__namespace.createElement(material.ThemeProvider, {
|
|
1186
1316
|
theme: currentTheme
|
|
1187
|
-
}, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(
|
|
1317
|
+
}, !disableCssBaseline && /*#__PURE__*/React__namespace.createElement(material.CssBaseline, null), children));
|
|
1188
1318
|
};
|
|
1189
1319
|
var useThemeContext = function useThemeContext() {
|
|
1190
1320
|
return React__namespace.useContext(ThemeContext);
|
|
@@ -1196,10 +1326,12 @@
|
|
|
1196
1326
|
theme = _b === void 0 ? lightTheme : _b,
|
|
1197
1327
|
_c = _a.disableCssBaseline,
|
|
1198
1328
|
disableCssBaseline = _c === void 0 ? false : _c;
|
|
1199
|
-
return /*#__PURE__*/React__namespace.createElement(
|
|
1329
|
+
return /*#__PURE__*/React__namespace.createElement(material.StyledEngineProvider, {
|
|
1330
|
+
injectFirst: true
|
|
1331
|
+
}, /*#__PURE__*/React__namespace.createElement(ThemeProvider, {
|
|
1200
1332
|
theme: theme,
|
|
1201
1333
|
disableCssBaseline: disableCssBaseline
|
|
1202
|
-
}, children);
|
|
1334
|
+
}, children));
|
|
1203
1335
|
}; // Wrapper for storybook stories with GWTheme. Will be deprecated
|
|
1204
1336
|
|
|
1205
1337
|
var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
|