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