@opengeoweb/theme 4.17.0 → 4.18.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.
package/index.esm.js CHANGED
@@ -923,10 +923,12 @@ var defaultButtonStyle = function defaultButtonStyle(button) {
923
923
  borderColor: button.disabled.borderColor
924
924
  },
925
925
  // focus styling
926
- '&.Mui-focusVisible:not(.Mui-selected)': {
926
+ '&.Mui-focusVisible': {
927
927
  outline: button.focus.outline,
928
- borderColor: 'transparent',
929
- backgroundColor: button.mouseOver.fill
928
+ '&:not(.Mui-selected)': {
929
+ borderColor: 'transparent',
930
+ backgroundColor: button.mouseOver.fill
931
+ }
930
932
  }
931
933
  };
932
934
  };
@@ -972,6 +974,22 @@ var buttonVariants = function buttonVariants(buttons) {
972
974
  });
973
975
  };
974
976
 
977
+ /* *
978
+ * Licensed under the Apache License, Version 2.0 (the "License");
979
+ * you may not use this file except in compliance with the License.
980
+ * You may obtain a copy of the License at
981
+ *
982
+ * http://www.apache.org/licenses/LICENSE-2.0
983
+ *
984
+ * Unless required by applicable law or agreed to in writing, software
985
+ * distributed under the License is distributed on an "AS IS" BASIS,
986
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
987
+ * See the License for the specific language governing permissions and
988
+ * limitations under the License.
989
+ *
990
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
991
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
992
+ * */
975
993
  var hex2rgba = function hex2rgba(hex) {
976
994
  var alpha = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 1;
977
995
 
@@ -1020,649 +1038,123 @@ var createShadows = function createShadows(elevations) {
1020
1038
  return value;
1021
1039
  });
1022
1040
  };
1023
- var breakpoints = {
1024
- mobile: 0,
1025
- tablet: 768,
1026
- desktop: 1024,
1027
- dekstopHD: 1440,
1028
- dekstopHDWide: 1920
1029
- };
1030
- var createTheme = function createTheme(paletteType, geowebColors, shadows) {
1031
- return createTheme$1({
1032
- breakpoints: {
1033
- values: {
1034
- xs: breakpoints.mobile,
1035
- sm: breakpoints.tablet,
1036
- md: breakpoints.desktop,
1037
- lg: breakpoints.dekstopHD,
1038
- xl: breakpoints.dekstopHDWide
1039
- }
1040
- },
1041
- palette: {
1042
- mode: paletteType,
1043
- secondary: {
1044
- main: geowebColors.typographyAndIcons.iconLinkActive
1041
+
1042
+ /* *
1043
+ * Licensed under the Apache License, Version 2.0 (the "License");
1044
+ * you may not use this file except in compliance with the License.
1045
+ * You may obtain a copy of the License at
1046
+ *
1047
+ * http://www.apache.org/licenses/LICENSE-2.0
1048
+ *
1049
+ * Unless required by applicable law or agreed to in writing, software
1050
+ * distributed under the License is distributed on an "AS IS" BASIS,
1051
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1052
+ * See the License for the specific language governing permissions and
1053
+ * limitations under the License.
1054
+ *
1055
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1056
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
1057
+ * */
1058
+ var focusButtonStyle$1 = {
1059
+ outline: 'solid 2px #419cfe'
1060
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/5ecf84d920b99428d7f98555
1061
+
1062
+ var colors$1 = {
1063
+ background: {
1064
+ surface: '#FFFFFF',
1065
+ surfaceApp: '#F5F5F5',
1066
+ surfaceBrowser: '#CFCFCF'
1067
+ },
1068
+ brand: {
1069
+ brand: '#FFFFFF'
1070
+ },
1071
+ buttons: {
1072
+ primary: {
1073
+ "default": {
1074
+ fill: '#186DFF',
1075
+ color: '#FFFFFF',
1076
+ borderColor: 'transparent'
1045
1077
  },
1046
- background: {
1047
- paper: geowebColors.background.surfaceApp,
1048
- "default": geowebColors.background.surfaceBrowser
1078
+ mouseOver: {
1079
+ fill: '#1047B0',
1080
+ color: '#FFFFFF',
1081
+ borderColor: '#71A6FF'
1049
1082
  },
1050
- text: {
1051
- primary: geowebColors.typographyAndIcons.text
1083
+ active: {
1084
+ fill: '#186DFF',
1085
+ color: '#FFFFFF',
1086
+ borderColor: 'transparent'
1052
1087
  },
1053
- // geoweb color palette
1054
- geowebColors: geowebColors
1055
- },
1056
- shape: {
1057
- borderRadius: BORDER_RADIUS
1058
- },
1059
- typography: {
1060
- fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
1088
+ activeMouseOver: {},
1089
+ disabled: {
1090
+ fill: 'transparent',
1091
+ color: '#626262',
1092
+ borderColor: 'transparent'
1093
+ },
1094
+ focus: focusButtonStyle$1
1061
1095
  },
1062
- shadows: shadows,
1063
- components: {
1064
- MuiButton: {
1065
- variants: buttonVariants(geowebColors.buttons),
1066
- defaultProps: {
1067
- focusRipple: false
1068
- }
1096
+ secondary: {
1097
+ "default": {
1098
+ fill: '#374061',
1099
+ color: '#FFFFFF',
1100
+ borderColor: 'transparent'
1069
1101
  },
1070
- MuiToggleButton: {
1071
- defaultProps: {
1072
- focusRipple: false
1073
- },
1074
- styleOverrides: {
1075
- root: variantsToClassName(buttonVariants(geowebColors.buttons))
1076
- }
1102
+ mouseOver: {
1103
+ fill: '#1047B0',
1104
+ color: '#FFFFFF',
1105
+ borderColor: 'transparent'
1077
1106
  },
1078
- MuiIconButton: {
1079
- // TODO: https://gitlab.com/opengeoweb/opengeoweb/-/issues/1926 remove default styling and create CustomIconButton
1080
- defaultProps: {
1081
- focusRipple: false
1082
- },
1083
- styleOverrides: {
1084
- root: defaultButtonStyle(geowebColors.buttons.flat)
1085
- }
1107
+ active: {
1108
+ fill: '#186DFF',
1109
+ color: '#FFFFFF',
1110
+ borderColor: 'transparent'
1086
1111
  },
1087
- MuiCssBaseline: {
1088
- styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
1112
+ activeMouseOver: {},
1113
+ disabled: {
1114
+ fill: 'transparent',
1115
+ color: '#626262',
1116
+ borderColor: 'transparent'
1089
1117
  },
1090
- MuiMenuItem: {
1091
- styleOverrides: {
1092
- root: {
1093
- minHeight: '48px!important',
1094
- fontSize: '0.875rem',
1095
- letterSpacing: '0.25px',
1096
- divider: {
1097
- borderBottomColor: geowebColors.greys.accessibleLight
1098
- },
1099
- li: {
1100
- '&:hover': {
1101
- backgroundColor: geowebColors.tab.mouseOver.rgba
1102
- }
1103
- },
1104
- '&.Mui-selected': {
1105
- background: 'none',
1106
- boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive)
1107
- }
1108
- }
1109
- }
1118
+ focus: focusButtonStyle$1
1119
+ },
1120
+ tertiary: {
1121
+ "default": {
1122
+ fill: 'transparent',
1123
+ color: '#374061',
1124
+ borderColor: '#374061'
1110
1125
  },
1111
- MuiRadio: {
1112
- styleOverrides: {
1113
- root: {
1114
- color: geowebColors.typographyAndIcons.iconLinkActive,
1115
- '&.MuiRadio-root.Mui-disabled': {
1116
- color: "".concat(geowebColors.typographyAndIcons.iconLinkDisabled)
1117
- },
1118
- '&.Mui-checked': {
1119
- color: geowebColors.typographyAndIcons.iconLinkActive
1120
- }
1121
- }
1122
- }
1126
+ mouseOver: {
1127
+ fill: '#E0E8F5',
1128
+ color: '#374061',
1129
+ borderColor: '#374061'
1123
1130
  },
1124
- MuiCheckbox: {
1125
- styleOverrides: {
1126
- root: {
1127
- color: geowebColors.typographyAndIcons.iconLinkActive,
1128
- '&.MuiCheckbox-root.Mui-disabled': {
1129
- color: geowebColors.typographyAndIcons.iconLinkDisabled
1130
- },
1131
- '&.Mui-checked': {
1132
- color: geowebColors.typographyAndIcons.iconLinkActive
1133
- }
1134
- }
1135
- }
1131
+ active: {
1132
+ fill: 'transparent',
1133
+ color: '#186DFF',
1134
+ borderColor: '#186DFF'
1136
1135
  },
1137
- MuiPaper: {
1138
- styleOverrides: {
1139
- root: {
1140
- backgroundImage: 'unset'
1141
- },
1142
- outlined: {
1143
- borderColor: geowebColors.cards.cardContainerBorder
1144
- }
1145
- }
1136
+ activeMouseOver: {
1137
+ fill: '#E0E8F5',
1138
+ color: '#186DFF',
1139
+ borderColor: '#186DFF'
1146
1140
  },
1147
- MuiCard: {
1148
- styleOverrides: {
1149
- root: {
1150
- backgroundColor: geowebColors.cards.cardContainer
1151
- }
1152
- }
1141
+ disabled: {
1142
+ fill: 'transparent',
1143
+ color: '#626262',
1144
+ borderColor: 'transparent'
1153
1145
  },
1154
- MuiSlider: {
1155
- styleOverrides: {
1156
- root: {
1157
- color: geowebColors.typographyAndIcons.iconLinkActive
1158
- }
1159
- }
1146
+ focus: focusButtonStyle$1
1147
+ },
1148
+ flat: {
1149
+ "default": {
1150
+ fill: 'transparent',
1151
+ color: '#374061',
1152
+ borderColor: 'transparent'
1160
1153
  },
1161
- MuiTable: {
1162
- styleOverrides: {
1163
- root: {
1164
- borderSpacing: '0 0.25rem',
1165
- borderCollapse: 'separate'
1166
- }
1167
- }
1168
- },
1169
- MuiTableRow: {
1170
- styleOverrides: {
1171
- head: {
1172
- '&:hover': {
1173
- boxShadow: shadows[0]
1174
- }
1175
- },
1176
- root: {
1177
- transition: 'box-shadow 100ms ease-out',
1178
- boxShadow: shadows[0],
1179
- borderRadius: BORDER_RADIUS,
1180
- '&:hover': {
1181
- boxShadow: shadows[1]
1182
- },
1183
- position: 'relative'
1184
- }
1185
- }
1186
- },
1187
- MuiTableCell: {
1188
- styleOverrides: {
1189
- head: {
1190
- borderBottom: 'none',
1191
- fontSize: '0.875rem',
1192
- fontWeight: 400
1193
- },
1194
- body: {
1195
- padding: 12,
1196
- fontWeight: 500,
1197
- backgroundColor: geowebColors.background.surface,
1198
- borderStyle: 'solid',
1199
- borderColor: 'transparent',
1200
- borderWidth: 1,
1201
- borderTopColor: geowebColors.cards.cardContainerBorder,
1202
- borderBottomColor: geowebColors.cards.cardContainerBorder,
1203
- '&:first-child': {
1204
- borderLeftColor: geowebColors.cards.cardContainerBorder,
1205
- borderRadius: "".concat(BORDER_RADIUS, "px 0px 0px ").concat(BORDER_RADIUS, "px")
1206
- },
1207
- '&:last-child': {
1208
- borderRightColor: geowebColors.cards.cardContainerBorder,
1209
- borderRadius: "0px ".concat(BORDER_RADIUS, "px ").concat(BORDER_RADIUS, "px 0px")
1210
- }
1211
- }
1212
- }
1213
- },
1214
- MuiTabs: {
1215
- styleOverrides: {
1216
- root: {
1217
- position: 'relative',
1218
- '&:after': {
1219
- content: '""',
1220
- position: 'absolute',
1221
- bottom: 0,
1222
- height: 1,
1223
- width: '100%',
1224
- zIndex: 0,
1225
- backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
1226
- }
1227
- },
1228
- indicator: {
1229
- zIndex: 1,
1230
- backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
1231
- }
1232
- }
1233
- },
1234
- MuiTab: {
1235
- styleOverrides: {
1236
- root: {
1237
- textTransform: 'initial',
1238
- '&.Mui-selected': {
1239
- color: geowebColors.typographyAndIcons.iconLinkActive
1240
- },
1241
- '&:hover': {
1242
- opacity: 1,
1243
- color: geowebColors.typographyAndIcons.iconLinkActive,
1244
- backgroundColor: geowebColors.tab.mouseOver.rgba
1245
- }
1246
- }
1247
- }
1248
- },
1249
- MuiListItem: {
1250
- styleOverrides: {
1251
- root: {
1252
- color: geowebColors.typographyAndIcons.text,
1253
- fontSize: '14px',
1254
- minHeight: '36px'
1255
- },
1256
- divider: {
1257
- borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
1258
- }
1259
- }
1260
- },
1261
- MuiListItemIcon: {
1262
- styleOverrides: {
1263
- root: {
1264
- color: geowebColors.typographyAndIcons.icon,
1265
- width: '24px',
1266
- height: '24px'
1267
- }
1268
- }
1269
- },
1270
- MuiListItemButton: {
1271
- styleOverrides: {
1272
- root: {
1273
- '&:hover': {
1274
- backgroundColor: geowebColors.cards.cardContainerMouseOver
1275
- },
1276
- '&.Mui-selected': {
1277
- backgroundColor: geowebColors.cards.cardContainerMouseOver,
1278
- boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive),
1279
- '&:hover': {
1280
- backgroundColor: geowebColors.cards.cardContainerMouseOver
1281
- }
1282
- },
1283
- '&.Mui-focusVisible': {
1284
- backgroundColor: geowebColors.cards.cardContainerMouseOver,
1285
- outline: geowebColors.buttons.focusDefault.outline
1286
- },
1287
- ' .MuiListItemIcon-root': {
1288
- minWidth: 40
1289
- }
1290
- }
1291
- }
1292
- },
1293
- MuiBackdrop: {
1294
- styleOverrides: {
1295
- root: {
1296
- backgroundColor: geowebColors.backdrops.black.rgba
1297
- }
1298
- }
1299
- },
1300
- MuiTooltip: {
1301
- styleOverrides: {
1302
- tooltip: {
1303
- backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
1304
- color: geowebColors.tooltips.tooltipText.color,
1305
- padding: '8px 12px',
1306
- fontSize: 16,
1307
- fontWeight: 400,
1308
- fontStretch: 'normal',
1309
- fontStyle: 'normal',
1310
- letterSpacing: 0.44,
1311
- lineHeight: 1.56
1312
- }
1313
- }
1314
- },
1315
- MuiLink: {
1316
- styleOverrides: {
1317
- root: {
1318
- color: geowebColors.typographyAndIcons.textLinkActive,
1319
- textDecoration: 'none',
1320
- '&:hover': {
1321
- textDecoration: 'underline',
1322
- textDecorationColor: geowebColors.typographyAndIcons.textLinkActive
1323
- }
1324
- }
1325
- }
1326
- },
1327
- MuiAlert: {
1328
- styleOverrides: {
1329
- standardError: {
1330
- border: geowebColors.functional.errorOutline.border,
1331
- borderRadius: '0px',
1332
- backgroundColor: geowebColors.functional.errorOutline.fill,
1333
- '& .MuiAlert-icon': {
1334
- color: geowebColors.functional.error,
1335
- opacity: 1
1336
- }
1337
- },
1338
- standardWarning: {
1339
- border: geowebColors.functional.warningOutline.border,
1340
- borderRadius: '0px',
1341
- backgroundColor: geowebColors.functional.warningOutline.fill,
1342
- '& .MuiAlert-icon': {
1343
- color: geowebColors.functional.warning,
1344
- opacity: 1
1345
- }
1346
- },
1347
- standardInfo: {
1348
- border: geowebColors.functional.notificationOutline.border,
1349
- borderRadius: '0px',
1350
- backgroundColor: geowebColors.functional.notificationOutline.fill,
1351
- '& .MuiAlert-icon': {
1352
- color: geowebColors.functional.notification,
1353
- opacity: 1
1354
- }
1355
- },
1356
- standardSuccess: {
1357
- border: geowebColors.functional.successOutline.border,
1358
- borderRadius: '0px',
1359
- backgroundColor: geowebColors.functional.successOutline.fill,
1360
- '& .MuiAlert-icon': {
1361
- color: geowebColors.functional.success,
1362
- opacity: 1
1363
- }
1364
- },
1365
- action: {
1366
- color: geowebColors.buttons.tertiary["default"].color
1367
- },
1368
- message: {
1369
- fontSize: '14px',
1370
- lineHeight: 1.43,
1371
- letterSpacing: '0.25px',
1372
- color: geowebColors.typographyAndIcons.text
1373
- }
1374
- }
1375
- },
1376
- MuiTextField: {
1377
- defaultProps: {
1378
- variant: 'filled'
1379
- }
1380
- },
1381
- MuiFilledInput: {
1382
- styleOverrides: {
1383
- root: {
1384
- backgroundColor: geowebColors.textInputField["default"].rgba,
1385
- '&.Mui-focused': {
1386
- backgroundColor: geowebColors.textInputField.active.rgba,
1387
- '&:after': {
1388
- borderColor: 'transparent'
1389
- }
1390
- },
1391
- '&.Mui-disabled': {
1392
- backgroundColor: geowebColors.textInputField.disabled.rgba
1393
- },
1394
- '&.Mui-error': {
1395
- '&:after': {
1396
- borderColor: geowebColors.captions.captionError.color
1397
- }
1398
- },
1399
- // can be improved in MUI6 or after this PR is merged https://github.com/mui/material-ui/pull/32822#issuecomment-1275927288
1400
- '&.MuiInputBase-readOnly': {
1401
- background: 'transparent',
1402
- color: geowebColors.typographyAndIcons.text,
1403
- ' .MuiInputBase-readOnly': {
1404
- WebkitTextFillColor: 'inherit'
1405
- },
1406
- '&:before': {
1407
- border: 'transparent'
1408
- }
1409
- }
1410
- },
1411
- underline: {
1412
- '&:after': {
1413
- borderWidth: '1px'
1414
- },
1415
- '&.Mui-disabled:before': {
1416
- borderBottomStyle: 'solid'
1417
- }
1418
- }
1419
- }
1420
- },
1421
- MuiFormLabel: {
1422
- styleOverrides: {
1423
- root: {
1424
- color: geowebColors.captions.captionStatus.color,
1425
- opacity: geowebColors.captions.captionStatus.opacity,
1426
- '&.Mui-focused': {
1427
- color: geowebColors.captions.captionInformation.color,
1428
- opacity: geowebColors.captions.captionInformation.opacity
1429
- },
1430
- '&.Mui-error': {
1431
- color: geowebColors.captions.captionError.color,
1432
- opacity: geowebColors.captions.captionError.opacity
1433
- },
1434
- '&.Mui-disabled': {
1435
- color: geowebColors.captions.captionDisabled.color,
1436
- opacity: geowebColors.captions.captionDisabled.opacity
1437
- }
1438
- }
1439
- }
1440
- },
1441
- MuiFormHelperText: {
1442
- styleOverrides: {
1443
- root: {
1444
- color: geowebColors.captions.captionStatus.color,
1445
- opacity: geowebColors.captions.captionStatus.opacity,
1446
- '&.Mui-error': {
1447
- color: geowebColors.captions.captionError.color,
1448
- opacity: geowebColors.captions.captionError.opacity
1449
- },
1450
- '&.Mui-disabled': {
1451
- color: geowebColors.captions.captionDisabled.color,
1452
- opacity: geowebColors.captions.captionDisabled.opacity
1453
- }
1454
- }
1455
- }
1456
- },
1457
- MuiSwitch: {
1458
- styleOverrides: {
1459
- switchBase: {
1460
- color: geowebColors.customSwitch.thumb,
1461
- '&.Mui-checked': {
1462
- color: geowebColors.customSwitch.thumb
1463
- },
1464
- '&.Mui-disabled': {
1465
- color: geowebColors.customSwitch.thumbDisabled
1466
- },
1467
- '&.Mui-checked.Mui-disabled': {
1468
- color: geowebColors.customSwitch.thumbDisabled
1469
- },
1470
- '&.Mui-checked+.MuiSwitch-track': {
1471
- backgroundColor: geowebColors.customSwitch.trackActive
1472
- },
1473
- '&.Mui-disabled+.MuiSwitch-track': {
1474
- backgroundColor: geowebColors.customSwitch.track
1475
- },
1476
- '&.Mui-checked.Mui-disabled+.MuiSwitch-track': {
1477
- backgroundColor: geowebColors.customSwitch.trackActive
1478
- }
1479
- },
1480
- track: {
1481
- backgroundColor: geowebColors.customSwitch.track,
1482
- opacity: '1 !important'
1483
- }
1484
- }
1485
- },
1486
- MuiSnackbarContent: {
1487
- styleOverrides: {
1488
- root: {
1489
- backgroundColor: geowebColors.snackbar.background,
1490
- color: geowebColors.snackbar.text,
1491
- fontSize: '16px',
1492
- letterSpacing: '0.44px',
1493
- borderRadius: '2px',
1494
- boxShadow: shadows[8]
1495
- }
1496
- }
1497
- },
1498
- MuiAvatar: {
1499
- styleOverrides: {
1500
- root: Object.assign(Object.assign({}, defaultButtonStyle(geowebColors.buttons.primary)), {
1501
- fontWeight: 500,
1502
- '&:hover': {
1503
- backgroundColor: 'geowebColors.buttons.primary.default.fill'
1504
- },
1505
- height: 32,
1506
- width: 32,
1507
- fontSize: 16,
1508
- borderRadius: '50%'
1509
- })
1510
- }
1511
- },
1512
- MuiAccordion: {
1513
- styleOverrides: {
1514
- root: {
1515
- backgroundColor: geowebColors.cards.cardContainer,
1516
- borderRadius: '3px',
1517
- border: 'solid 1px',
1518
- borderColor: geowebColors.cards.cardContainerBorder,
1519
- color: geowebColors.buttons.flat["default"].color,
1520
- padding: '0px',
1521
- margin: '0px 12px 4px 12px',
1522
- fontSize: '12px',
1523
- '&:before': {
1524
- display: 'none'
1525
- },
1526
- '& .MuiAccordionSummary-root.Mui-expanded': {
1527
- borderBottom: 'solid 1px',
1528
- borderColor: geowebColors.cards.cardContainerBorder
1529
- },
1530
- '& .MuiAccordionSummary-content': {
1531
- margin: '2px',
1532
- padding: '4px 4px 4px 10px'
1533
- }
1534
- }
1535
- }
1536
- },
1537
- MuiAccordionSummary: {
1538
- styleOverrides: {
1539
- root: {
1540
- minHeight: '32px',
1541
- padding: '0px',
1542
- paddingRight: '5px'
1543
- }
1544
- }
1545
- }
1546
- }
1547
- });
1548
- };
1549
-
1550
- /* *
1551
- * Licensed under the Apache License, Version 2.0 (the "License");
1552
- * you may not use this file except in compliance with the License.
1553
- * You may obtain a copy of the License at
1554
- *
1555
- * http://www.apache.org/licenses/LICENSE-2.0
1556
- *
1557
- * Unless required by applicable law or agreed to in writing, software
1558
- * distributed under the License is distributed on an "AS IS" BASIS,
1559
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1560
- * See the License for the specific language governing permissions and
1561
- * limitations under the License.
1562
- *
1563
- * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1564
- * Copyright 2023 - Finnish Meteorological Institute (FMI)
1565
- * */
1566
- var focusButtonStyle$1 = {
1567
- outline: 'solid 2px #419cfe'
1568
- }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/5ecf84d920b99428d7f98555
1569
-
1570
- var colors$1 = {
1571
- background: {
1572
- surface: '#FFFFFF',
1573
- surfaceApp: '#F5F5F5',
1574
- surfaceBrowser: '#CFCFCF'
1575
- },
1576
- brand: {
1577
- brand: '#FFFFFF'
1578
- },
1579
- buttons: {
1580
- primary: {
1581
- "default": {
1582
- fill: '#186DFF',
1583
- color: '#FFFFFF',
1584
- borderColor: 'transparent'
1585
- },
1586
- mouseOver: {
1587
- fill: '#1047B0',
1588
- color: '#FFFFFF',
1589
- borderColor: '#71A6FF'
1590
- },
1591
- active: {
1592
- fill: '#186DFF',
1593
- color: '#FFFFFF',
1594
- borderColor: 'transparent'
1595
- },
1596
- activeMouseOver: {},
1597
- disabled: {
1598
- fill: 'transparent',
1599
- color: '#626262',
1600
- borderColor: 'transparent'
1601
- },
1602
- focus: focusButtonStyle$1
1603
- },
1604
- secondary: {
1605
- "default": {
1606
- fill: '#374061',
1607
- color: '#FFFFFF',
1608
- borderColor: 'transparent'
1609
- },
1610
- mouseOver: {
1611
- fill: '#1047B0',
1612
- color: '#FFFFFF',
1613
- borderColor: 'transparent'
1614
- },
1615
- active: {
1616
- fill: '#186DFF',
1617
- color: '#FFFFFF',
1618
- borderColor: 'transparent'
1619
- },
1620
- activeMouseOver: {},
1621
- disabled: {
1622
- fill: 'transparent',
1623
- color: '#626262',
1624
- borderColor: 'transparent'
1625
- },
1626
- focus: focusButtonStyle$1
1627
- },
1628
- tertiary: {
1629
- "default": {
1630
- fill: 'transparent',
1631
- color: '#374061',
1632
- borderColor: '#374061'
1633
- },
1634
- mouseOver: {
1635
- fill: '#E0E8F5',
1636
- color: '#374061',
1637
- borderColor: '#374061'
1638
- },
1639
- active: {
1640
- fill: 'transparent',
1641
- color: '#186DFF',
1642
- borderColor: '#186DFF'
1643
- },
1644
- activeMouseOver: {
1645
- fill: '#E0E8F5',
1646
- color: '#186DFF',
1647
- borderColor: '#186DFF'
1648
- },
1649
- disabled: {
1650
- fill: 'transparent',
1651
- color: '#626262',
1652
- borderColor: 'transparent'
1653
- },
1654
- focus: focusButtonStyle$1
1655
- },
1656
- flat: {
1657
- "default": {
1658
- fill: 'transparent',
1659
- color: '#374061',
1660
- borderColor: 'transparent'
1661
- },
1662
- mouseOver: {
1663
- fill: '#E0E8F5',
1664
- color: '#374061',
1665
- borderColor: 'transparent'
1154
+ mouseOver: {
1155
+ fill: '#E0E8F5',
1156
+ color: '#374061',
1157
+ borderColor: 'transparent'
1666
1158
  },
1667
1159
  active: {
1668
1160
  fill: 'transparent',
@@ -1907,7 +1399,7 @@ var colors$1 = {
1907
1399
  },
1908
1400
  legendNoDataBackground: {
1909
1401
  fill: '#575F7A',
1910
- opacity: '0.95'
1402
+ opacity: 0.95
1911
1403
  }
1912
1404
  },
1913
1405
  customSlider: {
@@ -2049,7 +1541,6 @@ var elevations$1 = {
2049
1541
  elevation_16: '0 8px 10px 0 rgba(0, 0, 0, 0.2), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 16px 24px 2px rgba(0, 0, 0, 0.14)',
2050
1542
  elevation_24: '0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.14)'
2051
1543
  };
2052
- var lightTheme = createTheme('light', parseColors(colors$1), createShadows(elevations$1));
2053
1544
 
2054
1545
  /* *
2055
1546
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -2064,304 +1555,543 @@ var lightTheme = createTheme('light', parseColors(colors$1), createShadows(eleva
2064
1555
  * See the License for the specific language governing permissions and
2065
1556
  * limitations under the License.
2066
1557
  *
2067
- * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2068
- * Copyright 2021 - Finnish Meteorological Institute (FMI)
1558
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1559
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2069
1560
  * */
2070
-
2071
- var geowebColors = Object.assign({}, colors$1);
2072
- var GWTheme = createTheme$1({
2073
- breakpoints: {
2074
- values: {
2075
- xs: breakpoints.mobile,
2076
- sm: breakpoints.tablet,
2077
- md: breakpoints.desktop,
2078
- lg: breakpoints.dekstopHD,
2079
- xl: breakpoints.dekstopHDWide
2080
- }
2081
- },
2082
- palette: {
2083
- secondary: {
2084
- main: '#0075a9'
2085
- },
2086
- action: {
2087
- active: '#ffa800'
2088
- },
2089
- text: {
2090
- disabled: '#051039'
2091
- },
2092
- geowebColors: parseColors(geowebColors)
2093
- },
2094
- shape: {
2095
- borderRadius: 3
2096
- },
2097
- typography: {
2098
- h6: {
2099
- fontSize: '16px'
2100
- },
2101
- subtitle1: {
2102
- fontSize: '16px',
2103
- fontWeight: 500,
2104
- lineHeight: 1.5,
2105
- letterSpacing: '0.15px',
2106
- opacity: 0.87,
2107
- color: '#051039'
2108
- },
2109
- subtitle2: {
2110
- fontSize: '14px',
2111
- fontWeight: 500,
2112
- lineHeight: 1.71,
2113
- letterSpacing: '0.1px',
2114
- opacity: 0.87,
2115
- color: '#051039'
2116
- },
2117
- body1: {
2118
- fontSize: '16px',
2119
- lineHeight: 1.56,
2120
- letterSpacing: '0.44px',
2121
- color: '#051039'
1561
+ var breakpoints = {
1562
+ mobile: 0,
1563
+ tablet: 768,
1564
+ desktop: 1024,
1565
+ dekstopHD: 1440,
1566
+ dekstopHDWide: 1920
1567
+ };
1568
+ var createTheme = function createTheme(_ref) {
1569
+ var _ref$paletteType = _ref.paletteType,
1570
+ paletteType = _ref$paletteType === void 0 ? 'light' : _ref$paletteType,
1571
+ _ref$geowebColors = _ref.geowebColors,
1572
+ defaultGeowebColors = _ref$geowebColors === void 0 ? colors$1 : _ref$geowebColors,
1573
+ _ref$elevations = _ref.elevations,
1574
+ defaultShadows = _ref$elevations === void 0 ? elevations$1 : _ref$elevations;
1575
+ var geowebColors = parseColors(defaultGeowebColors);
1576
+ var shadows = createShadows(defaultShadows);
1577
+ return createTheme$1({
1578
+ breakpoints: {
1579
+ values: {
1580
+ xs: breakpoints.mobile,
1581
+ sm: breakpoints.tablet,
1582
+ md: breakpoints.desktop,
1583
+ lg: breakpoints.dekstopHD,
1584
+ xl: breakpoints.dekstopHDWide
1585
+ }
2122
1586
  },
2123
- body2: {
2124
- fontSize: '14px',
2125
- lineHeight: 1.43,
2126
- letterSpacing: '0.25px',
2127
- color: '#051039'
1587
+ palette: {
1588
+ mode: paletteType,
1589
+ secondary: {
1590
+ main: geowebColors.typographyAndIcons.iconLinkActive
1591
+ },
1592
+ background: {
1593
+ paper: geowebColors.background.surfaceApp,
1594
+ "default": geowebColors.background.surfaceBrowser
1595
+ },
1596
+ text: {
1597
+ primary: geowebColors.typographyAndIcons.text
1598
+ },
1599
+ // geoweb color palette
1600
+ geowebColors: geowebColors
2128
1601
  },
2129
- overline: {
2130
- textTransform: 'none',
2131
- fontSize: '12px',
2132
- lineHeight: 1.43,
2133
- letterSpacing: '0.25px',
2134
- color: '#051039',
2135
- opacity: 0.7
1602
+ shape: {
1603
+ borderRadius: BORDER_RADIUS
2136
1604
  },
2137
- caption: {
2138
- fontSize: '12px',
2139
- lineHeight: 1.33,
2140
- letterSpacing: '0.4px',
2141
- color: '#051039',
2142
- opacity: 0.7
1605
+ typography: {
1606
+ fontFamily: ['Roboto', 'Helvetica', 'Arial', 'sans-serif'].join(',')
2143
1607
  },
2144
- button: {
2145
- fontWeight: 500,
2146
- fontSize: '14px',
2147
- color: '0075a9'
2148
- }
2149
- },
2150
- components: {
2151
- MuiTooltip: {
2152
- styleOverrides: {
2153
- tooltip: {
2154
- borderRadius: '2px',
2155
- fontSize: '16px',
2156
- fontWeight: 'normal',
2157
- padding: '10px',
2158
- backgroundColor: '#232323'
1608
+ shadows: shadows,
1609
+ components: {
1610
+ MuiButton: {
1611
+ variants: buttonVariants(geowebColors.buttons),
1612
+ defaultProps: {
1613
+ focusRipple: false
1614
+ }
1615
+ },
1616
+ MuiToggleButton: {
1617
+ defaultProps: {
1618
+ focusRipple: false
1619
+ },
1620
+ styleOverrides: {
1621
+ root: variantsToClassName(buttonVariants(geowebColors.buttons))
1622
+ }
1623
+ },
1624
+ MuiIconButton: {
1625
+ // TODO: https://gitlab.com/opengeoweb/opengeoweb/-/issues/1926 remove default styling and create CustomIconButton
1626
+ defaultProps: {
1627
+ focusRipple: false
1628
+ },
1629
+ styleOverrides: {
1630
+ root: defaultButtonStyle(geowebColors.buttons.flat)
1631
+ }
1632
+ },
1633
+ MuiCssBaseline: {
1634
+ styleOverrides: "\n html {\n -webkit-font-smoothing: auto;\n }\n "
1635
+ },
1636
+ MuiMenuItem: {
1637
+ styleOverrides: {
1638
+ root: {
1639
+ minHeight: '48px!important',
1640
+ fontSize: '0.875rem',
1641
+ letterSpacing: '0.25px',
1642
+ divider: {
1643
+ borderBottomColor: geowebColors.greys.accessibleLight
1644
+ },
1645
+ li: {
1646
+ '&:hover': {
1647
+ backgroundColor: geowebColors.tab.mouseOver.rgba
1648
+ }
1649
+ },
1650
+ '&.Mui-selected': {
1651
+ background: 'none',
1652
+ boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive)
1653
+ }
1654
+ }
1655
+ }
1656
+ },
1657
+ MuiRadio: {
1658
+ styleOverrides: {
1659
+ root: {
1660
+ color: geowebColors.typographyAndIcons.iconLinkActive,
1661
+ '&.MuiRadio-root.Mui-disabled': {
1662
+ color: "".concat(geowebColors.typographyAndIcons.iconLinkDisabled)
1663
+ },
1664
+ '&.Mui-checked': {
1665
+ color: geowebColors.typographyAndIcons.iconLinkActive
1666
+ }
1667
+ }
1668
+ }
1669
+ },
1670
+ MuiCheckbox: {
1671
+ styleOverrides: {
1672
+ root: {
1673
+ color: geowebColors.typographyAndIcons.iconLinkActive,
1674
+ '&.MuiCheckbox-root.Mui-disabled': {
1675
+ color: geowebColors.typographyAndIcons.iconLinkDisabled
1676
+ },
1677
+ '&.Mui-checked': {
1678
+ color: geowebColors.typographyAndIcons.iconLinkActive
1679
+ }
1680
+ }
1681
+ }
1682
+ },
1683
+ MuiPaper: {
1684
+ styleOverrides: {
1685
+ root: {
1686
+ backgroundImage: 'unset'
1687
+ },
1688
+ outlined: {
1689
+ borderColor: geowebColors.cards.cardContainerBorder
1690
+ }
1691
+ }
1692
+ },
1693
+ MuiCard: {
1694
+ styleOverrides: {
1695
+ root: {
1696
+ backgroundColor: geowebColors.cards.cardContainer
1697
+ }
1698
+ }
1699
+ },
1700
+ MuiSlider: {
1701
+ styleOverrides: {
1702
+ root: {
1703
+ color: geowebColors.typographyAndIcons.iconLinkActive
1704
+ }
1705
+ }
1706
+ },
1707
+ MuiTable: {
1708
+ styleOverrides: {
1709
+ root: {
1710
+ borderSpacing: '0 0.25rem',
1711
+ borderCollapse: 'separate'
1712
+ }
1713
+ }
1714
+ },
1715
+ MuiTableRow: {
1716
+ styleOverrides: {
1717
+ head: {
1718
+ '&:hover': {
1719
+ boxShadow: shadows[0]
1720
+ }
1721
+ },
1722
+ root: {
1723
+ transition: 'box-shadow 100ms ease-out',
1724
+ boxShadow: shadows[0],
1725
+ borderRadius: BORDER_RADIUS,
1726
+ '&:hover': {
1727
+ boxShadow: shadows[1]
1728
+ },
1729
+ position: 'relative'
1730
+ }
2159
1731
  }
2160
- }
2161
- },
2162
- MuiIconButton: {
2163
- styleOverrides: {
2164
- root: {
2165
- color: '#0075a9'
1732
+ },
1733
+ MuiTableCell: {
1734
+ styleOverrides: {
1735
+ head: {
1736
+ borderBottom: 'none',
1737
+ fontSize: '0.875rem',
1738
+ fontWeight: 400
1739
+ },
1740
+ body: {
1741
+ padding: 12,
1742
+ fontWeight: 500,
1743
+ backgroundColor: geowebColors.background.surface,
1744
+ borderStyle: 'solid',
1745
+ borderColor: 'transparent',
1746
+ borderWidth: 1,
1747
+ borderTopColor: geowebColors.cards.cardContainerBorder,
1748
+ borderBottomColor: geowebColors.cards.cardContainerBorder,
1749
+ '&:first-child': {
1750
+ borderLeftColor: geowebColors.cards.cardContainerBorder,
1751
+ borderRadius: "".concat(BORDER_RADIUS, "px 0px 0px ").concat(BORDER_RADIUS, "px")
1752
+ },
1753
+ '&:last-child': {
1754
+ borderRightColor: geowebColors.cards.cardContainerBorder,
1755
+ borderRadius: "0px ".concat(BORDER_RADIUS, "px ").concat(BORDER_RADIUS, "px 0px")
1756
+ }
1757
+ }
2166
1758
  }
2167
- }
2168
- },
2169
- MuiCheckbox: {
2170
- styleOverrides: {
2171
- root: {
2172
- '&.Mui-disabled': {
2173
- color: '#CCCCCC!important'
1759
+ },
1760
+ MuiTabs: {
1761
+ styleOverrides: {
1762
+ root: {
1763
+ position: 'relative',
1764
+ '&:after': {
1765
+ content: '""',
1766
+ position: 'absolute',
1767
+ bottom: 0,
1768
+ height: 1,
1769
+ width: '100%',
1770
+ zIndex: 0,
1771
+ backgroundColor: hex2rgba(geowebColors.greys.accessible, 0.2)
1772
+ }
2174
1773
  },
2175
- '&.Mui-checked': {
2176
- color: '#0075a9'
1774
+ indicator: {
1775
+ zIndex: 1,
1776
+ backgroundColor: geowebColors.typographyAndIcons.iconLinkActive
2177
1777
  }
2178
1778
  }
2179
- }
2180
- },
2181
- MuiSelect: {
2182
- styleOverrides: {
2183
- icon: {
2184
- color: '#0075a9'
2185
- },
2186
- select: {
2187
- '&:focus': {
2188
- backgroundColor: 'rgba(0, 117, 169, 0.05)'
1779
+ },
1780
+ MuiTab: {
1781
+ styleOverrides: {
1782
+ root: {
1783
+ textTransform: 'initial',
1784
+ '&.Mui-selected': {
1785
+ color: geowebColors.typographyAndIcons.iconLinkActive
1786
+ },
1787
+ '&:hover': {
1788
+ opacity: 1,
1789
+ color: geowebColors.typographyAndIcons.iconLinkActive,
1790
+ backgroundColor: geowebColors.tab.mouseOver.rgba
1791
+ }
2189
1792
  }
2190
1793
  }
2191
- }
2192
- },
2193
- MuiAlert: {
2194
- styleOverrides: {
2195
- standardError: {
2196
- border: '1px solid #c00000',
2197
- borderRadius: '0px',
2198
- backgroundColor: '#fff0ea'
2199
- },
2200
- standardWarning: {
2201
- border: '1px solid #ffa800',
2202
- borderRadius: '0px',
2203
- backgroundColor: '#fff8eb'
2204
- },
2205
- standardInfo: {
2206
- border: '1px solid #0062e6',
2207
- borderRadius: '0px',
2208
- backgroundColor: '#eaf3ff'
2209
- },
2210
- standardSuccess: {
2211
- border: '1px solid #72bb23',
2212
- borderRadius: '0px',
2213
- backgroundColor: '#fcffeb'
2214
- },
2215
- action: {
2216
- color: '#0075a9'
2217
- },
2218
- message: {
2219
- fontSize: '14px',
2220
- lineHeight: 1.43,
2221
- letterSpacing: '0.25px',
2222
- color: '#051039'
1794
+ },
1795
+ MuiListItem: {
1796
+ styleOverrides: {
1797
+ root: {
1798
+ color: geowebColors.typographyAndIcons.text,
1799
+ fontSize: '14px',
1800
+ minHeight: '36px'
1801
+ },
1802
+ divider: {
1803
+ borderBottomColor: hex2rgba(geowebColors.greys.accessible, 0.2)
1804
+ }
2223
1805
  }
2224
- }
2225
- },
2226
- MuiTabs: {
2227
- styleOverrides: {
2228
- root: {
2229
- backgroundColor: '#ffffff',
2230
- minHeight: '30px'
2231
- },
2232
- scrollButtons: {
2233
- width: '20px'
1806
+ },
1807
+ MuiListItemIcon: {
1808
+ styleOverrides: {
1809
+ root: {
1810
+ color: geowebColors.typographyAndIcons.icon,
1811
+ width: '24px',
1812
+ height: '24px'
1813
+ }
2234
1814
  }
2235
- }
2236
- },
2237
- MuiTab: {
2238
- styleOverrides: {
2239
- root: {
2240
- minHeight: '30px',
2241
- textTransform: 'none',
2242
- minWidth: '76px',
2243
- '@media (min-width: 600px)': {
2244
- minWidth: '76px'
1815
+ },
1816
+ MuiListItemButton: {
1817
+ styleOverrides: {
1818
+ root: {
1819
+ '&:hover': {
1820
+ backgroundColor: geowebColors.cards.cardContainerMouseOver
1821
+ },
1822
+ '&.Mui-selected': {
1823
+ backgroundColor: geowebColors.cards.cardContainerMouseOver,
1824
+ boxShadow: "inset 4px 0px 0px 0px ".concat(geowebColors.typographyAndIcons.iconLinkActive),
1825
+ '&:hover': {
1826
+ backgroundColor: geowebColors.cards.cardContainerMouseOver
1827
+ }
1828
+ },
1829
+ '&.Mui-focusVisible': {
1830
+ backgroundColor: geowebColors.cards.cardContainerMouseOver,
1831
+ outline: geowebColors.buttons.focusDefault.outline
1832
+ },
1833
+ ' .MuiListItemIcon-root': {
1834
+ minWidth: 40
1835
+ }
2245
1836
  }
2246
- },
2247
- labelIcon: {
2248
- minHeight: '30px'
2249
1837
  }
2250
- }
2251
- },
2252
- MuiListItem: {
2253
- styleOverrides: {
2254
- root: {
2255
- '&$selected': {
2256
- backgroundColor: 'rgba(0, 117, 169, 0.15)',
2257
- borderLeft: '4px solid #0075a9',
1838
+ },
1839
+ MuiBackdrop: {
1840
+ styleOverrides: {
1841
+ root: {
1842
+ backgroundColor: geowebColors.backdrops.black.rgba
1843
+ }
1844
+ }
1845
+ },
1846
+ MuiTooltip: {
1847
+ styleOverrides: {
1848
+ tooltip: {
1849
+ backgroundColor: geowebColors.tooltips.tooltipContainer.rgba,
1850
+ color: geowebColors.tooltips.tooltipText.color,
1851
+ padding: '8px 12px',
1852
+ fontSize: 16,
1853
+ fontWeight: 400,
1854
+ fontStretch: 'normal',
1855
+ fontStyle: 'normal',
1856
+ letterSpacing: 0.44,
1857
+ lineHeight: 1.56
1858
+ }
1859
+ }
1860
+ },
1861
+ MuiLink: {
1862
+ styleOverrides: {
1863
+ root: {
1864
+ color: geowebColors.typographyAndIcons.textLinkActive,
1865
+ textDecoration: 'none',
2258
1866
  '&:hover': {
2259
- backgroundColor: 'rgba(0, 117, 169, 0.10)'
1867
+ textDecoration: 'underline',
1868
+ textDecorationColor: geowebColors.typographyAndIcons.textLinkActive
1869
+ }
1870
+ }
1871
+ }
1872
+ },
1873
+ MuiAlert: {
1874
+ styleOverrides: {
1875
+ standardError: {
1876
+ border: geowebColors.functional.errorOutline.border,
1877
+ borderRadius: '0px',
1878
+ backgroundColor: geowebColors.functional.errorOutline.fill,
1879
+ '& .MuiAlert-icon': {
1880
+ color: geowebColors.functional.error,
1881
+ opacity: 1
1882
+ }
1883
+ },
1884
+ standardWarning: {
1885
+ border: geowebColors.functional.warningOutline.border,
1886
+ borderRadius: '0px',
1887
+ backgroundColor: geowebColors.functional.warningOutline.fill,
1888
+ '& .MuiAlert-icon': {
1889
+ color: geowebColors.functional.warning,
1890
+ opacity: 1
1891
+ }
1892
+ },
1893
+ standardInfo: {
1894
+ border: geowebColors.functional.notificationOutline.border,
1895
+ borderRadius: '0px',
1896
+ backgroundColor: geowebColors.functional.notificationOutline.fill,
1897
+ '& .MuiAlert-icon': {
1898
+ color: geowebColors.functional.notification,
1899
+ opacity: 1
2260
1900
  }
2261
- }
2262
- },
2263
- button: {
2264
- '&:hover': {
2265
- backgroundColor: 'rgba(0, 117, 169, 0.15)'
2266
- }
2267
- }
2268
- }
2269
- },
2270
- MuiMenuItem: {
2271
- styleOverrides: {
2272
- root: {
2273
- '&.Mui-selected': {
2274
- backgroundColor: 'rgba(0, 117, 169, 0.15)',
2275
- borderLeft: '4px solid #0075a9',
2276
- '&:hover': {
2277
- backgroundColor: 'rgba(0, 117, 169, 0.10)'
1901
+ },
1902
+ standardSuccess: {
1903
+ border: geowebColors.functional.successOutline.border,
1904
+ borderRadius: '0px',
1905
+ backgroundColor: geowebColors.functional.successOutline.fill,
1906
+ '& .MuiAlert-icon': {
1907
+ color: geowebColors.functional.success,
1908
+ opacity: 1
2278
1909
  }
2279
1910
  },
2280
- '&:hover': {
2281
- backgroundColor: 'rgba(0, 117, 169, 0.15)'
1911
+ action: {
1912
+ color: geowebColors.buttons.tertiary["default"].color
1913
+ },
1914
+ message: {
1915
+ fontSize: '14px',
1916
+ lineHeight: 1.43,
1917
+ letterSpacing: '0.25px',
1918
+ color: geowebColors.typographyAndIcons.text
2282
1919
  }
2283
1920
  }
2284
- }
2285
- },
2286
- MuiFormLabel: {
2287
- styleOverrides: {
2288
- root: {
2289
- color: 'rgba(5, 16, 57, 0.7)',
2290
- '&.Mui-focused': {
2291
- color: '#0075a9'
1921
+ },
1922
+ MuiTextField: {
1923
+ defaultProps: {
1924
+ variant: 'filled'
1925
+ }
1926
+ },
1927
+ MuiFilledInput: {
1928
+ styleOverrides: {
1929
+ root: {
1930
+ backgroundColor: geowebColors.textInputField["default"].rgba,
1931
+ '&.Mui-focused': {
1932
+ backgroundColor: geowebColors.textInputField.active.rgba,
1933
+ '&:after': {
1934
+ borderColor: 'transparent'
1935
+ }
1936
+ },
1937
+ '&.Mui-disabled': {
1938
+ backgroundColor: geowebColors.textInputField.disabled.rgba
1939
+ },
1940
+ '&.Mui-error': {
1941
+ '&:after': {
1942
+ borderColor: geowebColors.captions.captionError.color
1943
+ }
1944
+ },
1945
+ // can be improved in MUI6 or after this PR is merged https://github.com/mui/material-ui/pull/32822#issuecomment-1275927288
1946
+ '&.MuiInputBase-readOnly': {
1947
+ background: 'transparent',
1948
+ color: geowebColors.typographyAndIcons.text,
1949
+ ' .MuiInputBase-readOnly': {
1950
+ WebkitTextFillColor: 'inherit'
1951
+ },
1952
+ '&:before': {
1953
+ border: 'transparent'
1954
+ }
1955
+ }
2292
1956
  },
2293
- '&.Mui-error': {
2294
- color: '#d32f2f!important'
1957
+ underline: {
1958
+ '&:after': {
1959
+ borderWidth: '1px'
1960
+ },
1961
+ '&.Mui-disabled:before': {
1962
+ borderBottomStyle: 'solid'
1963
+ }
2295
1964
  }
2296
1965
  }
2297
- }
2298
- },
2299
- MuiOutlinedInput: {
2300
- styleOverrides: {
2301
- root: {
2302
- '&$focused $notchedOutline': {
2303
- borderColor: '#0075a9'
1966
+ },
1967
+ MuiFormLabel: {
1968
+ styleOverrides: {
1969
+ root: {
1970
+ color: geowebColors.captions.captionStatus.color,
1971
+ opacity: geowebColors.captions.captionStatus.opacity,
1972
+ '&.Mui-focused': {
1973
+ color: geowebColors.captions.captionInformation.color,
1974
+ opacity: geowebColors.captions.captionInformation.opacity
1975
+ },
1976
+ '&.Mui-error': {
1977
+ color: geowebColors.captions.captionError.color,
1978
+ opacity: geowebColors.captions.captionError.opacity
1979
+ },
1980
+ '&.Mui-disabled': {
1981
+ color: geowebColors.captions.captionDisabled.color,
1982
+ opacity: geowebColors.captions.captionDisabled.opacity
1983
+ }
2304
1984
  }
2305
1985
  }
2306
- }
2307
- },
2308
- MuiFilledInput: {
2309
- styleOverrides: {
2310
- root: {
2311
- backgroundColor: 'rgba(0, 117, 169, 0.05)',
2312
- color: '#051039',
2313
- '&.Mui-disabled': {
2314
- backgroundColor: 'white'
2315
- },
2316
- '&.Mui-focused': {
2317
- backgroundColor: 'rgba(0,0,0,0.09)'
2318
- }
2319
- },
2320
- underline: {
2321
- '&.Mui-disabled:before': {
2322
- borderBottomStyle: 'none'
1986
+ },
1987
+ MuiFormHelperText: {
1988
+ styleOverrides: {
1989
+ root: {
1990
+ color: geowebColors.captions.captionStatus.color,
1991
+ opacity: geowebColors.captions.captionStatus.opacity,
1992
+ '&.Mui-error': {
1993
+ color: geowebColors.captions.captionError.color,
1994
+ opacity: geowebColors.captions.captionError.opacity
1995
+ },
1996
+ '&.Mui-disabled': {
1997
+ color: geowebColors.captions.captionDisabled.color,
1998
+ opacity: geowebColors.captions.captionDisabled.opacity
1999
+ }
2323
2000
  }
2324
2001
  }
2325
- }
2326
- },
2327
- MuiRadio: {
2328
- styleOverrides: {
2329
- root: {
2330
- '&.Mui-disabled': {
2331
- color: '#CCCCCC!important'
2002
+ },
2003
+ MuiSwitch: {
2004
+ styleOverrides: {
2005
+ switchBase: {
2006
+ color: geowebColors.customSwitch.thumb,
2007
+ '&.Mui-checked': {
2008
+ color: geowebColors.customSwitch.thumb
2009
+ },
2010
+ '&.Mui-disabled': {
2011
+ color: geowebColors.customSwitch.thumbDisabled
2012
+ },
2013
+ '&.Mui-checked.Mui-disabled': {
2014
+ color: geowebColors.customSwitch.thumbDisabled
2015
+ },
2016
+ '&.Mui-checked+.MuiSwitch-track': {
2017
+ backgroundColor: geowebColors.customSwitch.trackActive
2018
+ },
2019
+ '&.Mui-disabled+.MuiSwitch-track': {
2020
+ backgroundColor: geowebColors.customSwitch.track
2021
+ },
2022
+ '&.Mui-checked.Mui-disabled+.MuiSwitch-track': {
2023
+ backgroundColor: geowebColors.customSwitch.trackActive
2024
+ }
2332
2025
  },
2333
- '&.Mui-checked': {
2334
- color: '#0075a9'
2026
+ track: {
2027
+ backgroundColor: geowebColors.customSwitch.track,
2028
+ opacity: '1 !important'
2335
2029
  }
2336
2030
  }
2337
- }
2338
- },
2339
- MuiCardContent: {
2340
- styleOverrides: {
2341
- root: {
2342
- '&:last-child': {
2343
- paddingBottom: 0
2031
+ },
2032
+ MuiSnackbarContent: {
2033
+ styleOverrides: {
2034
+ root: {
2035
+ backgroundColor: geowebColors.snackbar.background,
2036
+ color: geowebColors.snackbar.text,
2037
+ fontSize: '16px',
2038
+ letterSpacing: '0.44px',
2039
+ borderRadius: '2px',
2040
+ boxShadow: shadows[8]
2344
2041
  }
2345
2042
  }
2346
- }
2347
- },
2348
- MuiDialog: {
2349
- styleOverrides: {
2350
- paperWidthLg: {
2351
- maxWidth: '1280px'
2043
+ },
2044
+ MuiAvatar: {
2045
+ styleOverrides: {
2046
+ root: Object.assign(Object.assign({}, defaultButtonStyle(geowebColors.buttons.primary)), {
2047
+ fontWeight: 500,
2048
+ '&:hover': {
2049
+ backgroundColor: 'geowebColors.buttons.primary.default.fill'
2050
+ },
2051
+ height: 32,
2052
+ width: 32,
2053
+ fontSize: 16,
2054
+ borderRadius: '50%'
2055
+ })
2056
+ }
2057
+ },
2058
+ MuiAccordion: {
2059
+ styleOverrides: {
2060
+ root: {
2061
+ backgroundColor: geowebColors.cards.cardContainer,
2062
+ borderRadius: '3px',
2063
+ border: 'solid 1px',
2064
+ borderColor: geowebColors.cards.cardContainerBorder,
2065
+ color: geowebColors.buttons.flat["default"].color,
2066
+ padding: '0px',
2067
+ margin: '0px 12px 4px 12px',
2068
+ fontSize: '12px',
2069
+ '&:before': {
2070
+ display: 'none'
2071
+ },
2072
+ '& .MuiAccordionSummary-root.Mui-expanded': {
2073
+ borderBottom: 'solid 1px',
2074
+ borderColor: geowebColors.cards.cardContainerBorder
2075
+ },
2076
+ '& .MuiAccordionSummary-content': {
2077
+ margin: '2px',
2078
+ padding: '4px 4px 4px 10px'
2079
+ }
2080
+ }
2081
+ }
2082
+ },
2083
+ MuiAccordionSummary: {
2084
+ styleOverrides: {
2085
+ root: {
2086
+ minHeight: '32px',
2087
+ padding: '0px',
2088
+ paddingRight: '5px'
2089
+ }
2352
2090
  }
2353
- }
2354
- },
2355
- MuiButton: {
2356
- variants: buttonVariants(geowebColors.buttons)
2357
- },
2358
- MuiToggleButton: {
2359
- styleOverrides: {
2360
- root: variantsToClassName(buttonVariants(geowebColors.buttons))
2361
2091
  }
2362
2092
  }
2363
- }
2364
- });
2093
+ });
2094
+ };
2365
2095
 
2366
2096
  /* *
2367
2097
  * Licensed under the Apache License, Version 2.0 (the "License");
@@ -2639,7 +2369,7 @@ var colors = {
2639
2369
  screenManager: {
2640
2370
  activeWindow: '#242424',
2641
2371
  inactiveWindow: '#303030',
2642
- tabButtonHover: '#414751;'
2372
+ tabButtonHover: '#414751'
2643
2373
  },
2644
2374
  timeSlider: {
2645
2375
  // player
@@ -2724,7 +2454,7 @@ var colors = {
2724
2454
  },
2725
2455
  legendNoDataBackground: {
2726
2456
  fill: '#575F7A',
2727
- opacity: '0.95'
2457
+ opacity: 0.95
2728
2458
  }
2729
2459
  },
2730
2460
  customSlider: {
@@ -2764,109 +2494,447 @@ var colors = {
2764
2494
  opacity: 0.87,
2765
2495
  fontSize: 12
2766
2496
  },
2767
- tableRowDisabledCardContainer: {
2768
- fill: '#2B2B2B',
2769
- border: '1px solid #404040',
2770
- borderColor: '#404040'
2771
- }
2772
- },
2773
- tooltips: {
2774
- tooltipContainer: {
2775
- fill: '#232323',
2776
- opacity: 1
2497
+ tableRowDisabledCardContainer: {
2498
+ fill: '#2B2B2B',
2499
+ border: '1px solid #404040',
2500
+ borderColor: '#404040'
2501
+ }
2502
+ },
2503
+ tooltips: {
2504
+ tooltipContainer: {
2505
+ fill: '#232323',
2506
+ opacity: 1
2507
+ },
2508
+ tooltipText: {
2509
+ color: '#FFFFFF'
2510
+ }
2511
+ },
2512
+ captions: {
2513
+ captionStatus: {
2514
+ color: '#FFFFFF',
2515
+ opacity: 0.7
2516
+ },
2517
+ captionInformation: {
2518
+ color: '#9EC2FF',
2519
+ opacity: 1
2520
+ },
2521
+ captionError: {
2522
+ color: '#FF8F8F',
2523
+ opacity: 1
2524
+ },
2525
+ captionErrorBackground: {
2526
+ color: '#C00000',
2527
+ opacity: 0.25
2528
+ },
2529
+ captionDisabled: {
2530
+ color: '#B0B0B0',
2531
+ opacity: 1
2532
+ }
2533
+ },
2534
+ functional: {
2535
+ success: '#72BB23',
2536
+ successOutline: {
2537
+ fill: 'rgba(114, 187, 35, 0.25)',
2538
+ border: '1px solid #72BB23',
2539
+ borderColor: '#72BB23'
2540
+ },
2541
+ error: '#C00000',
2542
+ errorOutline: {
2543
+ fill: 'rgba(192, 0, 0, 0.25)',
2544
+ border: '1px solid #C00000',
2545
+ borderColor: '#C00000'
2546
+ },
2547
+ warning: '#FFA800',
2548
+ warningOutline: {
2549
+ fill: 'rgba(255, 168, 0, 0.25)',
2550
+ border: '1px solid #FFA800',
2551
+ borderColor: '#FFA800'
2552
+ },
2553
+ warningHighlight: {
2554
+ fill: '#FFA800',
2555
+ opacity: 0.2
2556
+ },
2557
+ notification: '#186DFF',
2558
+ notificationOutline: {
2559
+ fill: 'rgba(24, 109, 255, 0.25)',
2560
+ border: '1px solid #186DFF',
2561
+ borderColor: '#186DFF'
2562
+ },
2563
+ summary: '#9595FF',
2564
+ summaryOutline: {
2565
+ fill: 'rgba(131, 131, 242, 0.25)',
2566
+ border: '1px solid #8383F2',
2567
+ borderColor: '#8383F2'
2568
+ },
2569
+ disabled: '#9B9FB0',
2570
+ disabledOutline: {
2571
+ fill: 'rgba(155, 159, 176, 0.25)',
2572
+ border: '1px solid #9B9FB0',
2573
+ borderColor: '#9B9FB0'
2574
+ }
2575
+ },
2576
+ snackbar: {
2577
+ background: '#051039',
2578
+ text: '#FFFFFF',
2579
+ action: '#98e1f1',
2580
+ actionHover: {
2581
+ fill: '#7BACFF',
2582
+ opacity: 0.2
2583
+ }
2584
+ }
2585
+ }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
2586
+
2587
+ var elevations = {
2588
+ elevation_01: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
2589
+ elevation_02: '0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
2590
+ elevation_03: '0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 3px 3px 0 rgba(0, 0, 0, 0.14)',
2591
+ elevation_04: '0 1px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
2592
+ elevation_06: '0 3px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 6px 10px 0 rgba(0, 0, 0, 0.14)',
2593
+ elevation_08: '0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 8px 10px 1px rgba(0, 0, 0, 0.14)',
2594
+ elevation_09: '0 5px 6px 0 rgba(0, 0, 0, 0.2), 0 3px 16px 2px rgba(0, 0, 0, 0.12), 0 9px 12px 1px rgba(0, 0, 0, 0.14)',
2595
+ elevation_12: '0 7px 8px 0 rgba(0, 0, 0, 0.2), 0 5px 22px 4px rgba(0, 0, 0, 0.12), 0 12px 17px 2px rgba(0, 0, 0, 0.14)',
2596
+ elevation_16: '0 8px 10px 0 rgba(0, 0, 0, 0.2), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 16px 24px 2px rgba(0, 0, 0, 0.14)',
2597
+ elevation_24: '0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.14)'
2598
+ };
2599
+
2600
+ /* *
2601
+ * Licensed under the Apache License, Version 2.0 (the "License");
2602
+ * you may not use this file except in compliance with the License.
2603
+ * You may obtain a copy of the License at
2604
+ *
2605
+ * http://www.apache.org/licenses/LICENSE-2.0
2606
+ *
2607
+ * Unless required by applicable law or agreed to in writing, software
2608
+ * distributed under the License is distributed on an "AS IS" BASIS,
2609
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2610
+ * See the License for the specific language governing permissions and
2611
+ * limitations under the License.
2612
+ *
2613
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2614
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2615
+ * */
2616
+
2617
+ var geowebColors = Object.assign({}, colors$1);
2618
+ var GWTheme = createTheme$1({
2619
+ breakpoints: {
2620
+ values: {
2621
+ xs: breakpoints.mobile,
2622
+ sm: breakpoints.tablet,
2623
+ md: breakpoints.desktop,
2624
+ lg: breakpoints.dekstopHD,
2625
+ xl: breakpoints.dekstopHDWide
2626
+ }
2627
+ },
2628
+ palette: {
2629
+ secondary: {
2630
+ main: '#0075a9'
2631
+ },
2632
+ action: {
2633
+ active: '#ffa800'
2634
+ },
2635
+ text: {
2636
+ disabled: '#051039'
2637
+ },
2638
+ geowebColors: parseColors(geowebColors)
2639
+ },
2640
+ shape: {
2641
+ borderRadius: 3
2642
+ },
2643
+ typography: {
2644
+ h6: {
2645
+ fontSize: '16px'
2646
+ },
2647
+ subtitle1: {
2648
+ fontSize: '16px',
2649
+ fontWeight: 500,
2650
+ lineHeight: 1.5,
2651
+ letterSpacing: '0.15px',
2652
+ opacity: 0.87,
2653
+ color: '#051039'
2654
+ },
2655
+ subtitle2: {
2656
+ fontSize: '14px',
2657
+ fontWeight: 500,
2658
+ lineHeight: 1.71,
2659
+ letterSpacing: '0.1px',
2660
+ opacity: 0.87,
2661
+ color: '#051039'
2662
+ },
2663
+ body1: {
2664
+ fontSize: '16px',
2665
+ lineHeight: 1.56,
2666
+ letterSpacing: '0.44px',
2667
+ color: '#051039'
2668
+ },
2669
+ body2: {
2670
+ fontSize: '14px',
2671
+ lineHeight: 1.43,
2672
+ letterSpacing: '0.25px',
2673
+ color: '#051039'
2674
+ },
2675
+ overline: {
2676
+ textTransform: 'none',
2677
+ fontSize: '12px',
2678
+ lineHeight: 1.43,
2679
+ letterSpacing: '0.25px',
2680
+ color: '#051039',
2681
+ opacity: 0.7
2682
+ },
2683
+ caption: {
2684
+ fontSize: '12px',
2685
+ lineHeight: 1.33,
2686
+ letterSpacing: '0.4px',
2687
+ color: '#051039',
2688
+ opacity: 0.7
2689
+ },
2690
+ button: {
2691
+ fontWeight: 500,
2692
+ fontSize: '14px',
2693
+ color: '0075a9'
2694
+ }
2695
+ },
2696
+ components: {
2697
+ MuiTooltip: {
2698
+ styleOverrides: {
2699
+ tooltip: {
2700
+ borderRadius: '2px',
2701
+ fontSize: '16px',
2702
+ fontWeight: 'normal',
2703
+ padding: '10px',
2704
+ backgroundColor: '#232323'
2705
+ }
2706
+ }
2707
+ },
2708
+ MuiIconButton: {
2709
+ styleOverrides: {
2710
+ root: {
2711
+ color: '#0075a9'
2712
+ }
2713
+ }
2714
+ },
2715
+ MuiCheckbox: {
2716
+ styleOverrides: {
2717
+ root: {
2718
+ '&.Mui-disabled': {
2719
+ color: '#CCCCCC!important'
2720
+ },
2721
+ '&.Mui-checked': {
2722
+ color: '#0075a9'
2723
+ }
2724
+ }
2725
+ }
2726
+ },
2727
+ MuiSelect: {
2728
+ styleOverrides: {
2729
+ icon: {
2730
+ color: '#0075a9'
2731
+ },
2732
+ select: {
2733
+ '&:focus': {
2734
+ backgroundColor: 'rgba(0, 117, 169, 0.05)'
2735
+ }
2736
+ }
2737
+ }
2738
+ },
2739
+ MuiAlert: {
2740
+ styleOverrides: {
2741
+ standardError: {
2742
+ border: '1px solid #c00000',
2743
+ borderRadius: '0px',
2744
+ backgroundColor: '#fff0ea'
2745
+ },
2746
+ standardWarning: {
2747
+ border: '1px solid #ffa800',
2748
+ borderRadius: '0px',
2749
+ backgroundColor: '#fff8eb'
2750
+ },
2751
+ standardInfo: {
2752
+ border: '1px solid #0062e6',
2753
+ borderRadius: '0px',
2754
+ backgroundColor: '#eaf3ff'
2755
+ },
2756
+ standardSuccess: {
2757
+ border: '1px solid #72bb23',
2758
+ borderRadius: '0px',
2759
+ backgroundColor: '#fcffeb'
2760
+ },
2761
+ action: {
2762
+ color: '#0075a9'
2763
+ },
2764
+ message: {
2765
+ fontSize: '14px',
2766
+ lineHeight: 1.43,
2767
+ letterSpacing: '0.25px',
2768
+ color: '#051039'
2769
+ }
2770
+ }
2771
+ },
2772
+ MuiTabs: {
2773
+ styleOverrides: {
2774
+ root: {
2775
+ backgroundColor: '#ffffff',
2776
+ minHeight: '30px'
2777
+ },
2778
+ scrollButtons: {
2779
+ width: '20px'
2780
+ }
2781
+ }
2777
2782
  },
2778
- tooltipText: {
2779
- color: '#FFFFFF'
2780
- }
2781
- },
2782
- captions: {
2783
- captionStatus: {
2784
- color: '#FFFFFF',
2785
- opacity: 0.7
2783
+ MuiTab: {
2784
+ styleOverrides: {
2785
+ root: {
2786
+ minHeight: '30px',
2787
+ textTransform: 'none',
2788
+ minWidth: '76px',
2789
+ '@media (min-width: 600px)': {
2790
+ minWidth: '76px'
2791
+ }
2792
+ },
2793
+ labelIcon: {
2794
+ minHeight: '30px'
2795
+ }
2796
+ }
2786
2797
  },
2787
- captionInformation: {
2788
- color: '#9EC2FF',
2789
- opacity: 1
2798
+ MuiListItem: {
2799
+ styleOverrides: {
2800
+ root: {
2801
+ '&$selected': {
2802
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
2803
+ borderLeft: '4px solid #0075a9',
2804
+ '&:hover': {
2805
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
2806
+ }
2807
+ }
2808
+ },
2809
+ button: {
2810
+ '&:hover': {
2811
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
2812
+ }
2813
+ }
2814
+ }
2790
2815
  },
2791
- captionError: {
2792
- color: '#FF8F8F',
2793
- opacity: 1
2816
+ MuiMenuItem: {
2817
+ styleOverrides: {
2818
+ root: {
2819
+ '&.Mui-selected': {
2820
+ backgroundColor: 'rgba(0, 117, 169, 0.15)',
2821
+ borderLeft: '4px solid #0075a9',
2822
+ '&:hover': {
2823
+ backgroundColor: 'rgba(0, 117, 169, 0.10)'
2824
+ }
2825
+ },
2826
+ '&:hover': {
2827
+ backgroundColor: 'rgba(0, 117, 169, 0.15)'
2828
+ }
2829
+ }
2830
+ }
2794
2831
  },
2795
- captionErrorBackground: {
2796
- color: '#C00000',
2797
- opacity: 0.25
2832
+ MuiFormLabel: {
2833
+ styleOverrides: {
2834
+ root: {
2835
+ color: 'rgba(5, 16, 57, 0.7)',
2836
+ '&.Mui-focused': {
2837
+ color: '#0075a9'
2838
+ },
2839
+ '&.Mui-error': {
2840
+ color: '#d32f2f!important'
2841
+ }
2842
+ }
2843
+ }
2798
2844
  },
2799
- captionDisabled: {
2800
- color: '#B0B0B0',
2801
- opacity: 1
2802
- }
2803
- },
2804
- functional: {
2805
- success: '#72BB23',
2806
- successOutline: {
2807
- fill: 'rgba(114, 187, 35, 0.25)',
2808
- border: '1px solid #72BB23',
2809
- borderColor: '#72BB23'
2845
+ MuiOutlinedInput: {
2846
+ styleOverrides: {
2847
+ root: {
2848
+ '&$focused $notchedOutline': {
2849
+ borderColor: '#0075a9'
2850
+ }
2851
+ }
2852
+ }
2810
2853
  },
2811
- error: '#C00000',
2812
- errorOutline: {
2813
- fill: 'rgba(192, 0, 0, 0.25)',
2814
- border: '1px solid #C00000',
2815
- borderColor: '#C00000'
2854
+ MuiFilledInput: {
2855
+ styleOverrides: {
2856
+ root: {
2857
+ backgroundColor: 'rgba(0, 117, 169, 0.05)',
2858
+ color: '#051039',
2859
+ '&.Mui-disabled': {
2860
+ backgroundColor: 'white'
2861
+ },
2862
+ '&.Mui-focused': {
2863
+ backgroundColor: 'rgba(0,0,0,0.09)'
2864
+ }
2865
+ },
2866
+ underline: {
2867
+ '&.Mui-disabled:before': {
2868
+ borderBottomStyle: 'none'
2869
+ }
2870
+ }
2871
+ }
2816
2872
  },
2817
- warning: '#FFA800',
2818
- warningOutline: {
2819
- fill: 'rgba(255, 168, 0, 0.25)',
2820
- border: '1px solid #FFA800',
2821
- borderColor: '#FFA800'
2873
+ MuiRadio: {
2874
+ styleOverrides: {
2875
+ root: {
2876
+ '&.Mui-disabled': {
2877
+ color: '#CCCCCC!important'
2878
+ },
2879
+ '&.Mui-checked': {
2880
+ color: '#0075a9'
2881
+ }
2882
+ }
2883
+ }
2822
2884
  },
2823
- warningHighlight: {
2824
- fill: '#FFA800',
2825
- opacity: 0.2
2885
+ MuiCardContent: {
2886
+ styleOverrides: {
2887
+ root: {
2888
+ '&:last-child': {
2889
+ paddingBottom: 0
2890
+ }
2891
+ }
2892
+ }
2826
2893
  },
2827
- notification: '#186DFF',
2828
- notificationOutline: {
2829
- fill: 'rgba(24, 109, 255, 0.25)',
2830
- border: '1px solid #186DFF',
2831
- borderColor: '#186DFF'
2894
+ MuiDialog: {
2895
+ styleOverrides: {
2896
+ paperWidthLg: {
2897
+ maxWidth: '1280px'
2898
+ }
2899
+ }
2832
2900
  },
2833
- summary: '#9595FF',
2834
- summaryOutline: {
2835
- fill: 'rgba(131, 131, 242, 0.25)',
2836
- border: '1px solid #8383F2',
2837
- borderColor: '#8383F2'
2901
+ MuiButton: {
2902
+ variants: buttonVariants(geowebColors.buttons)
2838
2903
  },
2839
- disabled: '#9B9FB0',
2840
- disabledOutline: {
2841
- fill: 'rgba(155, 159, 176, 0.25)',
2842
- border: '1px solid #9B9FB0',
2843
- borderColor: '#9B9FB0'
2844
- }
2845
- },
2846
- snackbar: {
2847
- background: '#051039',
2848
- text: '#FFFFFF',
2849
- action: '#98e1f1',
2850
- actionHover: {
2851
- fill: '#7BACFF',
2852
- opacity: 0.2
2904
+ MuiToggleButton: {
2905
+ styleOverrides: {
2906
+ root: variantsToClassName(buttonVariants(geowebColors.buttons))
2907
+ }
2853
2908
  }
2854
2909
  }
2855
- }; // https://app.zeplin.io/project/5ecf84a3c6ae1047a368f393/screen/6093e694124ecf3886de76d4
2910
+ });
2856
2911
 
2857
- var elevations = {
2858
- elevation_01: '0 1px 3px 0 rgba(0, 0, 0, 0.2), 0 2px 2px 0 rgba(0, 0, 0, 0.12), 0 0 2px 0 rgba(0, 0, 0, 0.14)',
2859
- elevation_02: '0 1px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
2860
- elevation_03: '0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.12), 0 3px 3px 0 rgba(0, 0, 0, 0.14)',
2861
- elevation_04: '0 1px 10px 0 rgba(0, 0, 0, 0.2), 0 4px 5px 0 rgba(0, 0, 0, 0.12), 0 2px 4px 0 rgba(0, 0, 0, 0.14)',
2862
- elevation_06: '0 3px 5px 0 rgba(0, 0, 0, 0.2), 0 1px 18px 0 rgba(0, 0, 0, 0.12), 0 6px 10px 0 rgba(0, 0, 0, 0.14)',
2863
- elevation_08: '0 4px 5px 0 rgba(0, 0, 0, 0.2), 0 3px 14px 3px rgba(0, 0, 0, 0.12), 0 8px 10px 1px rgba(0, 0, 0, 0.14)',
2864
- elevation_09: '0 5px 6px 0 rgba(0, 0, 0, 0.2), 0 3px 16px 2px rgba(0, 0, 0, 0.12), 0 9px 12px 1px rgba(0, 0, 0, 0.14)',
2865
- elevation_12: '0 7px 8px 0 rgba(0, 0, 0, 0.2), 0 5px 22px 4px rgba(0, 0, 0, 0.12), 0 12px 17px 2px rgba(0, 0, 0, 0.14)',
2866
- elevation_16: '0 8px 10px 0 rgba(0, 0, 0, 0.2), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 16px 24px 2px rgba(0, 0, 0, 0.14)',
2867
- elevation_24: '0 11px 15px 0 rgba(0, 0, 0, 0.2), 0 9px 46px 8px rgba(0, 0, 0, 0.12), 0 24px 38px 3px rgba(0, 0, 0, 0.14)'
2868
- };
2869
- var darkTheme = createTheme('dark', parseColors(colors), createShadows(elevations));
2912
+ /* *
2913
+ * Licensed under the Apache License, Version 2.0 (the "License");
2914
+ * you may not use this file except in compliance with the License.
2915
+ * You may obtain a copy of the License at
2916
+ *
2917
+ * http://www.apache.org/licenses/LICENSE-2.0
2918
+ *
2919
+ * Unless required by applicable law or agreed to in writing, software
2920
+ * distributed under the License is distributed on an "AS IS" BASIS,
2921
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2922
+ * See the License for the specific language governing permissions and
2923
+ * limitations under the License.
2924
+ *
2925
+ * Copyright 2023 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2926
+ * Copyright 2023 - Finnish Meteorological Institute (FMI)
2927
+ * */
2928
+ var lightTheme = createTheme({
2929
+ paletteType: 'light',
2930
+ geowebColors: colors$1,
2931
+ elevations: elevations$1
2932
+ });
2933
+ var darkTheme = createTheme({
2934
+ paletteType: 'dark',
2935
+ geowebColors: colors,
2936
+ elevations: elevations
2937
+ });
2870
2938
 
2871
2939
  var ThemeContext = /*#__PURE__*/React.createContext({
2872
2940
  toggleTheme: undefined,
@@ -2932,4 +3000,4 @@ var ThemeWrapperOldTheme = function ThemeWrapperOldTheme(_a) {
2932
3000
  }, props), children);
2933
3001
  };
2934
3002
 
2935
- export { Add, Animation, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, ExitDomain, Expand, ExpandWindow, Export, FastForward, Filter, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Menu, Minus, None, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, darkTheme, dragHandlePath, gwButtonVariants, lightTheme, useThemeContext };
3003
+ export { Add, Animation, ArrowDown, ArrowLeft, ArrowRight, ArrowUp, AutoUpdateActive, AutoUpdateInActive, Both, Cached, CalendarToday, Cancel, ChevronDown, ChevronLeft, ChevronRight, ChevronUp, Clear, Clock, Close, CollapseLarge, CollapseMedium, CollapseSmall, CollapseWindow, Copy, Delete, DimensionsElevation, DimensionsOther, DimensionsRefTime, DimensionsTime, DragHandle, DrawFIRLand, DrawPolygon, DrawRegion, Edit, Equalizer, Exclamation, ExitDomain, Expand, ExpandWindow, Export, FastForward, Filter, GWTheme, GeoWebLogo, HamburgerMenu, Home, index as Icons, Info, KeyCommand, KeyOption, Layers, Link, LinkOff, List, ListItem, Location, Menu, Minus, None, Notifications, Now, Options, Pause, Picture, Play, Preset, PresetTiles, PresetWorkspace, Resize, Search, SliderThumb, Speed, SplitHorizontal, SplitVertical, StepBackward, StepForward, SubdirectoryArrowRight, Success, TextIcon, ThemeContext, ThemeProvider, ThemeTypes, ThemeWrapper, ThemeWrapperOldTheme, ThumbsUp, TimeSeriesManager, UnExpand, Update, Visibility, VisibilityOff, WebAssetOff, colors$1 as colorsLight, createShadows, createTheme, darkTheme, dragHandlePath, elevations$1 as elevationsLight, gwButtonVariants, lightTheme, parseColors, useThemeContext };