@opengeoweb/shared 4.0.0 → 4.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/index.esm.js CHANGED
@@ -891,28 +891,29 @@ var AppLayout = function AppLayout(_ref) {
891
891
 
892
892
  var styles$5 = {
893
893
  header: function header(theme) {
894
- var _ref;
895
-
896
- return _ref = {
894
+ return _defineProperty({
897
895
  height: 40,
898
896
  backgroundColor: theme.palette.geowebColors.brand.brand,
899
897
  color: theme.palette.common.white,
900
898
  boxShadow: theme.shadows[1],
901
- zIndex: 1000
902
- }, _defineProperty(_ref, theme.breakpoints.down('sm'), {
903
- padding: '0 8px'
904
- }), _defineProperty(_ref, theme.breakpoints.up('sm'), {
899
+ zIndex: 1000,
900
+ padding: '0 16px'
901
+ }, theme.breakpoints.up('md'), {
905
902
  padding: '0 24px'
906
- }), _ref;
903
+ });
907
904
  },
908
905
  title: {
909
- marginLeft: 1,
910
- fontSize: '1.25rem',
911
- fontWeight: 400,
906
+ fontSize: '20px',
907
+ fontWeight: 500,
908
+ fontStretch: 'normal',
909
+ fontStyle: 'normal',
910
+ lineHeight: 'normal',
911
+ letterSpacing: '0.15px',
912
912
  overflow: 'hidden',
913
913
  whiteSpace: 'nowrap',
914
914
  textOverflow: 'ellipsis',
915
- letterSpacing: '0.15px'
915
+ color: 'geowebColors.typographyAndIcons.text',
916
+ marginLeft: 1
916
917
  },
917
918
  container: {
918
919
  height: '100%'
@@ -933,27 +934,35 @@ var AppHeader = function AppHeader(_ref2) {
933
934
  alignItems: "center"
934
935
  }, /*#__PURE__*/React__default.createElement(Grid, {
935
936
  item: true,
936
- xs: 1,
937
- sm: 3
938
- }, /*#__PURE__*/React__default.createElement(Grid, {
939
- container: true,
940
- justifyContent: "flex-start"
941
- }, menu)), /*#__PURE__*/React__default.createElement(Grid, {
942
- item: true,
943
- xs: 10,
937
+ xs: 6,
944
938
  sm: 6
945
939
  }, /*#__PURE__*/React__default.createElement(Grid, {
946
940
  container: true,
947
- justifyContent: "center",
948
941
  alignItems: "center",
949
- wrap: "nowrap"
950
- }, /*#__PURE__*/React__default.createElement(GeoWebLogo, null), /*#__PURE__*/React__default.createElement(Typography, {
942
+ wrap: "nowrap",
943
+ sx: {
944
+ button: {
945
+ marginLeft: 4,
946
+ color: 'geowebColors.typographyAndIcons.text'
947
+ }
948
+ }
949
+ }, /*#__PURE__*/React__default.createElement(Box, {
950
+ sx: {
951
+ display: 'flex'
952
+ }
953
+ }, /*#__PURE__*/React__default.createElement(GeoWebLogo, {
954
+ style: {
955
+ position: 'relative',
956
+ top: '-1px',
957
+ right: '-1px'
958
+ }
959
+ })), /*#__PURE__*/React__default.createElement(Typography, {
951
960
  variant: "h1",
952
961
  sx: styles$5.title
953
- }, title))), /*#__PURE__*/React__default.createElement(Grid, {
962
+ }, title), menu)), /*#__PURE__*/React__default.createElement(Grid, {
954
963
  item: true,
955
- xs: 1,
956
- sm: 3,
964
+ xs: 6,
965
+ sm: 6,
957
966
  container: true,
958
967
  justifyContent: "flex-end"
959
968
  }, userMenu)));
@@ -1192,11 +1201,7 @@ var styles$4 = {
1192
1201
  width: 16,
1193
1202
  fontSize: '0.5rem'
1194
1203
  },
1195
- large: {
1196
- height: 32,
1197
- width: 32,
1198
- fontSize: '0.938rem'
1199
- }
1204
+ large: {}
1200
1205
  };
1201
1206
 
1202
1207
  var Avatar = function Avatar(_ref) {
@@ -1205,13 +1210,7 @@ var Avatar = function Avatar(_ref) {
1205
1210
  size = _ref$size === void 0 ? 'large' : _ref$size;
1206
1211
  return /*#__PURE__*/React.createElement(Avatar$1, {
1207
1212
  "data-testid": "avatar",
1208
- sx: Object.assign(Object.assign({}, styles$4[size]), {
1209
- fontWeight: 500,
1210
- color: 'geowebColors.brand.brand',
1211
- backgroundColor: 'common.white',
1212
- border: '0.1px solid',
1213
- borderColor: 'geowebColors.brand.brand'
1214
- })
1213
+ sx: Object.assign({}, styles$4[size])
1215
1214
  }, children);
1216
1215
  };
1217
1216
 
@@ -1251,8 +1250,13 @@ var styles$3 = {
1251
1250
  }
1252
1251
  },
1253
1252
  button: {
1254
- color: 'common.white',
1255
- padding: 0
1253
+ padding: 0,
1254
+ border: 'none',
1255
+ background: 'transparent',
1256
+ '&:hover': {
1257
+ border: 'none',
1258
+ background: 'transparent'
1259
+ }
1256
1260
  }
1257
1261
  };
1258
1262
 
@@ -1376,8 +1380,8 @@ var ToolFooter = function ToolFooter() {
1376
1380
  * See the License for the specific language governing permissions and
1377
1381
  * limitations under the License.
1378
1382
  *
1379
- * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1380
- * Copyright 2021 - Finnish Meteorological Institute (FMI)
1383
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1384
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1381
1385
  * */
1382
1386
 
1383
1387
  var getStyle = function getStyle(size) {
package/index.umd.js CHANGED
@@ -755,8 +755,8 @@
755
755
  * See the License for the specific language governing permissions and
756
756
  * limitations under the License.
757
757
  *
758
- * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
759
- * Copyright 2021 - Finnish Meteorological Institute (FMI)
758
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
759
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
760
760
  * */
761
761
  var styles$5 = {
762
762
  header: function header(theme) {
@@ -767,21 +767,24 @@
767
767
  backgroundColor: theme.palette.geowebColors.brand.brand,
768
768
  color: theme.palette.common.white,
769
769
  boxShadow: theme.shadows[1],
770
- zIndex: 1000
771
- }, _a[theme.breakpoints.down('sm')] = {
772
- padding: '0 8px'
773
- }, _a[theme.breakpoints.up('sm')] = {
770
+ zIndex: 1000,
771
+ padding: '0 16px'
772
+ }, _a[theme.breakpoints.up('md')] = {
774
773
  padding: '0 24px'
775
774
  }, _a;
776
775
  },
777
776
  title: {
778
- marginLeft: 1,
779
- fontSize: '1.25rem',
780
- fontWeight: 400,
777
+ fontSize: '20px',
778
+ fontWeight: 500,
779
+ fontStretch: 'normal',
780
+ fontStyle: 'normal',
781
+ lineHeight: 'normal',
782
+ letterSpacing: '0.15px',
781
783
  overflow: 'hidden',
782
784
  whiteSpace: 'nowrap',
783
785
  textOverflow: 'ellipsis',
784
- letterSpacing: '0.15px'
786
+ color: 'geowebColors.typographyAndIcons.text',
787
+ marginLeft: 1
785
788
  },
786
789
  container: {
787
790
  height: '100%'
@@ -802,27 +805,35 @@
802
805
  alignItems: "center"
803
806
  }, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
804
807
  item: true,
805
- xs: 1,
806
- sm: 3
807
- }, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
808
- container: true,
809
- justifyContent: "flex-start"
810
- }, menu)), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
811
- item: true,
812
- xs: 10,
808
+ xs: 6,
813
809
  sm: 6
814
810
  }, /*#__PURE__*/React__default["default"].createElement(material.Grid, {
815
811
  container: true,
816
- justifyContent: "center",
817
812
  alignItems: "center",
818
- wrap: "nowrap"
819
- }, /*#__PURE__*/React__default["default"].createElement(theme.GeoWebLogo, null), /*#__PURE__*/React__default["default"].createElement(material.Typography, {
813
+ wrap: "nowrap",
814
+ sx: {
815
+ button: {
816
+ marginLeft: 4,
817
+ color: 'geowebColors.typographyAndIcons.text'
818
+ }
819
+ }
820
+ }, /*#__PURE__*/React__default["default"].createElement(material.Box, {
821
+ sx: {
822
+ display: 'flex'
823
+ }
824
+ }, /*#__PURE__*/React__default["default"].createElement(theme.GeoWebLogo, {
825
+ style: {
826
+ position: 'relative',
827
+ top: '-1px',
828
+ right: '-1px'
829
+ }
830
+ })), /*#__PURE__*/React__default["default"].createElement(material.Typography, {
820
831
  variant: "h1",
821
832
  sx: styles$5.title
822
- }, title))), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
833
+ }, title), menu)), /*#__PURE__*/React__default["default"].createElement(material.Grid, {
823
834
  item: true,
824
- xs: 1,
825
- sm: 3,
835
+ xs: 6,
836
+ sm: 6,
826
837
  container: true,
827
838
  justifyContent: "flex-end"
828
839
  }, userMenu)));
@@ -1037,11 +1048,7 @@
1037
1048
  width: 16,
1038
1049
  fontSize: '0.5rem'
1039
1050
  },
1040
- large: {
1041
- height: 32,
1042
- width: 32,
1043
- fontSize: '0.938rem'
1044
- }
1051
+ large: {}
1045
1052
  };
1046
1053
 
1047
1054
  var Avatar = function Avatar(_a) {
@@ -1050,13 +1057,7 @@
1050
1057
  size = _b === void 0 ? 'large' : _b;
1051
1058
  return /*#__PURE__*/React__namespace.createElement(material.Avatar, {
1052
1059
  "data-testid": "avatar",
1053
- sx: __assign(__assign({}, styles$4[size]), {
1054
- fontWeight: 500,
1055
- color: 'geowebColors.brand.brand',
1056
- backgroundColor: 'common.white',
1057
- border: '0.1px solid',
1058
- borderColor: 'geowebColors.brand.brand'
1059
- })
1060
+ sx: __assign({}, styles$4[size])
1060
1061
  }, children);
1061
1062
  };
1062
1063
 
@@ -1096,8 +1097,13 @@
1096
1097
  }
1097
1098
  },
1098
1099
  button: {
1099
- color: 'common.white',
1100
- padding: 0
1100
+ padding: 0,
1101
+ border: 'none',
1102
+ background: 'transparent',
1103
+ '&:hover': {
1104
+ border: 'none',
1105
+ background: 'transparent'
1106
+ }
1101
1107
  }
1102
1108
  };
1103
1109
 
@@ -1221,8 +1227,8 @@
1221
1227
  * See the License for the specific language governing permissions and
1222
1228
  * limitations under the License.
1223
1229
  *
1224
- * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1225
- * Copyright 2021 - Finnish Meteorological Institute (FMI)
1230
+ * Copyright 2022 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1231
+ * Copyright 2022 - Finnish Meteorological Institute (FMI)
1226
1232
  * */
1227
1233
 
1228
1234
  var getStyle = function getStyle(size) {
@@ -6,8 +6,20 @@ export default _default;
6
6
  export declare const AppHeaderDark: {
7
7
  (): React.ReactElement;
8
8
  storyName: string;
9
+ parameters: {
10
+ zeplinLink: {
11
+ name: string;
12
+ link: string;
13
+ }[];
14
+ };
9
15
  };
10
16
  export declare const AppHeaderLight: {
11
17
  (): React.ReactElement;
12
18
  storyName: string;
19
+ parameters: {
20
+ zeplinLink: {
21
+ name: string;
22
+ link: string;
23
+ }[];
24
+ };
13
25
  };
@@ -5,9 +5,25 @@ declare const _default: {
5
5
  export default _default;
6
6
  export declare const AvatarLight: {
7
7
  (): React.ReactElement;
8
- storyName: string;
8
+ story: {
9
+ name: string;
10
+ parameters: {
11
+ zeplinLink: {
12
+ name: string;
13
+ link: string;
14
+ }[];
15
+ };
16
+ };
9
17
  };
10
18
  export declare const AvatarDark: {
11
19
  (): React.ReactElement;
12
- storyName: string;
20
+ story: {
21
+ name: string;
22
+ parameters: {
23
+ zeplinLink: {
24
+ name: string;
25
+ link: string;
26
+ }[];
27
+ };
28
+ };
13
29
  };
@@ -8,5 +8,21 @@ interface ToolContainerDemoProps {
8
8
  isSnapShot?: boolean;
9
9
  }
10
10
  export declare const ToolContainerDemo: React.FC<ToolContainerDemoProps>;
11
- export declare const ThemeLight: () => React.ReactElement;
12
- export declare const ThemeDark: () => React.ReactElement;
11
+ export declare const ThemeLight: {
12
+ (): React.ReactElement;
13
+ parameters: {
14
+ zeplinLink: {
15
+ name: string;
16
+ link: string;
17
+ }[];
18
+ };
19
+ };
20
+ export declare const ThemeDark: {
21
+ (): React.ReactElement;
22
+ parameters: {
23
+ zeplinLink: {
24
+ name: string;
25
+ link: string;
26
+ }[];
27
+ };
28
+ };
@@ -3,8 +3,21 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- interface DemoStoryProps {
7
- linkToZeplinDesign?: string;
8
- }
9
- export declare const ThemeLight: React.FC<DemoStoryProps>;
10
- export declare const ThemeDark: React.FC<DemoStoryProps>;
6
+ export declare const ThemeLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ };
15
+ export declare const ThemeDark: {
16
+ (): React.ReactElement;
17
+ parameters: {
18
+ zeplinLink: {
19
+ name: string;
20
+ link: string;
21
+ }[];
22
+ };
23
+ };
@@ -3,8 +3,24 @@ declare const _default: {
3
3
  title: string;
4
4
  };
5
5
  export default _default;
6
- export declare const ThemeLight: () => React.ReactElement;
7
- export declare const ThemeDark: () => React.ReactElement;
6
+ export declare const ThemeLight: {
7
+ (): React.ReactElement;
8
+ parameters: {
9
+ zeplinLink: {
10
+ name: string;
11
+ link: string;
12
+ }[];
13
+ };
14
+ };
15
+ export declare const ThemeDark: {
16
+ (): React.ReactElement;
17
+ parameters: {
18
+ zeplinLink: {
19
+ name: string;
20
+ link: string;
21
+ }[];
22
+ };
23
+ };
8
24
  export declare const ThemeLightSnapShot: {
9
25
  (): React.ReactElement;
10
26
  storyName: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opengeoweb/shared",
3
- "version": "4.0.0",
3
+ "version": "4.1.0",
4
4
  "description": "GeoWeb shared library with shared components and utils for the opengeoweb project",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -14,11 +14,11 @@
14
14
  "peerDependencies": {
15
15
  "react": "^17.0.2",
16
16
  "@mui/material": "^5.2.8",
17
- "@opengeoweb/theme": "4.0.0",
17
+ "@opengeoweb/theme": "4.1.0",
18
18
  "react-draggable": "^4.4.3",
19
19
  "re-resizable": "^6.9.0",
20
20
  "lodash": "^4.17.20",
21
- "@opengeoweb/form-fields": "4.0.0",
21
+ "@opengeoweb/form-fields": "4.1.0",
22
22
  "react-hook-form": "^6.12.1",
23
23
  "moment": "^2.29.0",
24
24
  "moment-timezone": "^0.5.31",