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