@opengeoweb/shared 2.4.0 → 2.6.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.
Files changed (31) hide show
  1. package/index.esm.js +376 -106
  2. package/index.umd.js +404 -116
  3. package/lib/components/AlertBanner/AlertBanner.d.ts +1 -0
  4. package/lib/components/AlertIcon/AlertIcon.d.ts +8 -0
  5. package/lib/components/AlertIcon/index.d.ts +1 -0
  6. package/lib/components/ConfirmationDialog/ConfirmationDialog.stories.d.ts +10 -2
  7. package/lib/components/{Manager/EnableButton → EnableButton}/EnableButton.d.ts +0 -0
  8. package/lib/components/{Manager/EnableButton → EnableButton}/EnableButton.spec.d.ts +0 -0
  9. package/lib/components/{Manager/EnableButton → EnableButton}/EnableButton.stories.d.ts +0 -0
  10. package/lib/components/{Manager/EnableButton → EnableButton}/index.d.ts +0 -0
  11. package/lib/components/{Manager/ManagerButton → ManagerButton}/ManagerButton.d.ts +5 -0
  12. package/lib/components/{Manager/ManagerButton → ManagerButton}/ManagerButton.spec.d.ts +0 -0
  13. package/lib/components/{Manager/ManagerButton → ManagerButton}/ManagerButton.stories.d.ts +0 -0
  14. package/lib/components/{Manager/ManagerButton → ManagerButton}/index.d.ts +0 -0
  15. package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.d.ts +0 -0
  16. package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.spec.d.ts +0 -0
  17. package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/ManagerDeleteButton.stories.d.ts +0 -0
  18. package/lib/components/{Manager/ManagerDeleteButton → ManagerDeleteButton}/index.d.ts +0 -0
  19. package/lib/components/ToolContainer/ToolContainerDraggable.d.ts +1 -0
  20. package/lib/components/ToolContainer/types.d.ts +1 -0
  21. package/lib/components/TooltipSelect/TooltipSelect.d.ts +16 -0
  22. package/lib/components/TooltipSelect/TooltipSelect.spec.d.ts +1 -0
  23. package/lib/components/TooltipSelect/TooltipSelect.stories.d.ts +13 -0
  24. package/lib/components/TooltipSelect/index.d.ts +2 -0
  25. package/lib/components/TooltipSelect/tooltipContainerStyles.d.ts +2 -0
  26. package/lib/components/components.stories.d.ts +0 -1
  27. package/lib/components/index.d.ts +5 -1
  28. package/lib/hooks/useDraftFormHelpers/useDraftFormHelpers.d.ts +1 -1
  29. package/package.json +3 -3
  30. package/lib/components/Manager/index.d.ts +0 -4
  31. package/lib/components/Manager/styles.d.ts +0 -5
package/index.esm.js CHANGED
@@ -1,13 +1,14 @@
1
1
  import * as React from 'react';
2
2
  import React__default from 'react';
3
- import { Box, Typography, Dialog, DialogTitle, IconButton, DialogContent, DialogActions, Button, Alert, AlertTitle, SvgIcon, Grid, useTheme, Link, Avatar, Paper, ClickAwayListener, MenuList, MenuItem, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, Slider, ToggleButton, Tooltip, Menu, ListItemIcon, Checkbox } from '@mui/material';
4
- import makeStyles from '@mui/styles/makeStyles';
5
- import { Close, DragIndicator, Delete } from '@mui/icons-material';
3
+ import { Box, Typography, Dialog, DialogTitle, IconButton, DialogContent, DialogActions, Button, SvgIcon, Alert, AlertTitle, Grid, useTheme, Link, Avatar, Paper, ClickAwayListener, MenuList, MenuItem, RadioGroup, FormControlLabel, Radio, List, ListItem, Tabs, Tab, Backdrop, Slider, ToggleButton, Tooltip, Menu, ListItemIcon, Checkbox, Select } from '@mui/material';
4
+ import Close from '@mui/icons-material/Close';
6
5
  import { useFormContext } from 'react-hook-form';
7
6
  import { isEmpty, errorMessages } from '@opengeoweb/form-fields';
7
+ import makeStyles from '@mui/styles/makeStyles';
8
8
  import Draggable from 'react-draggable';
9
9
  import { Resizable } from 're-resizable';
10
10
  import { useThemeContext } from '@opengeoweb/theme';
11
+ import { DragIndicator, Close as Close$1, Delete } from '@mui/icons-material';
11
12
  import { throttle } from 'lodash';
12
13
  import withStyles from '@mui/styles/withStyles';
13
14
  import MoreVertIcon from '@mui/icons-material/MoreVert';
@@ -103,20 +104,6 @@ function __rest(s, e) {
103
104
  return t;
104
105
  }
105
106
 
106
- var useStyles$b = makeStyles(function () {
107
- return {
108
- dialogHeader: {
109
- zIndex: 1,
110
- padding: '8px 20px',
111
- display: 'flex',
112
- justifyContent: 'space-between',
113
- alignItems: 'center'
114
- },
115
- dialogContent: {
116
- padding: '40px 20px 0px 20px !important'
117
- }
118
- };
119
- });
120
107
  var ConfirmationDialog = function ConfirmationDialog(_a) {
121
108
  var open = _a.open,
122
109
  title = _a.title,
@@ -132,8 +119,6 @@ var ConfirmationDialog = function ConfirmationDialog(_a) {
132
119
  content = _a$content === void 0 ? null : _a$content,
133
120
  other = __rest(_a, ["open", "title", "description", "confirmLabel", "cancelLabel", "onSubmit", "onClose", "content"]);
134
121
 
135
- var classes = useStyles$b();
136
-
137
122
  other.catchOnCancel;
138
123
  var rest = __rest(other, ["catchOnCancel"]); // remove unwanted props
139
124
 
@@ -141,14 +126,33 @@ var ConfirmationDialog = function ConfirmationDialog(_a) {
141
126
  return /*#__PURE__*/React.createElement(Dialog, Object.assign({
142
127
  "data-testid": "confirmationDialog",
143
128
  open: open,
144
- maxWidth: "sm",
145
- fullWidth: true,
129
+ PaperProps: {
130
+ sx: {
131
+ width: '560px',
132
+ margin: 2.5
133
+ }
134
+ },
146
135
  // fix for briefly showing default options when closing dialog
147
136
  transitionDuration: 0
148
137
  }, rest), /*#__PURE__*/React.createElement(DialogTitle, {
149
- className: classes.dialogHeader
138
+ sx: {
139
+ zIndex: 1,
140
+ padding: 2,
141
+ display: 'flex',
142
+ justifyContent: 'space-between',
143
+ alignItems: 'center'
144
+ }
150
145
  }, /*#__PURE__*/React.createElement(Typography, {
151
- variant: "h5",
146
+ sx: {
147
+ fontSize: {
148
+ xs: '16px',
149
+ sm: '34px'
150
+ },
151
+ fontWeight: {
152
+ xs: 500,
153
+ sm: 400
154
+ }
155
+ },
152
156
  "data-testid": "confirmationDialog-title",
153
157
  component: "span"
154
158
  }, title), /*#__PURE__*/React.createElement(IconButton, {
@@ -159,22 +163,50 @@ var ConfirmationDialog = function ConfirmationDialog(_a) {
159
163
  },
160
164
  size: "small"
161
165
  }, /*#__PURE__*/React.createElement(Close, null))), /*#__PURE__*/React.createElement(DialogContent, {
162
- className: classes.dialogContent
166
+ sx: {
167
+ padding: '8px 16px'
168
+ }
163
169
  }, /*#__PURE__*/React.createElement(Typography, {
164
170
  variant: "body1"
165
- }, description), content), /*#__PURE__*/React.createElement(DialogActions, null, /*#__PURE__*/React.createElement(Button, {
166
- "data-testid": "conformationDialog-cancel",
167
- color: "secondary",
168
- variant: "outlined",
171
+ }, description), content), /*#__PURE__*/React.createElement(DialogActions, {
172
+ sx: {
173
+ padding: 2,
174
+ flexDirection: {
175
+ xs: 'column',
176
+ sm: 'row'
177
+ }
178
+ }
179
+ }, /*#__PURE__*/React.createElement(Button, {
180
+ "data-testid": "confirmationDialog-cancel",
181
+ variant: "tertiary",
182
+ sx: {
183
+ width: {
184
+ xs: '100%',
185
+ sm: '150px'
186
+ }
187
+ },
169
188
  onClick: function onClick() {
170
189
  return onClose('CANCELLED');
171
190
  },
172
191
  autoFocus: true,
173
192
  disableRipple: true
174
193
  }, cancelLabel), /*#__PURE__*/React.createElement(Button, {
175
- "data-testid": "conformationDialog-confirm",
176
- color: "secondary",
177
- variant: "contained",
194
+ "data-testid": "confirmationDialog-confirm",
195
+ variant: "primary",
196
+ sx: {
197
+ width: {
198
+ xs: '100%',
199
+ sm: '150px'
200
+ },
201
+ marginLeft: {
202
+ xs: '0px!important',
203
+ sm: '8px!important'
204
+ },
205
+ marginTop: {
206
+ xs: 2,
207
+ sm: 0
208
+ }
209
+ },
178
210
  onClick: onSubmit
179
211
  }, confirmLabel)));
180
212
  };
@@ -520,11 +552,17 @@ var useIsMounted = function useIsMounted() {
520
552
 
521
553
  var HIDDEN_INPUT_HELPER_IS_DRAFT = 'IS_DRAFT';
522
554
  var useDraftFormHelpers = function useDraftFormHelpers() {
555
+ var isDefaultDraft = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : false;
556
+
523
557
  var _useFormContext = useFormContext(),
524
558
  getValues = _useFormContext.getValues,
525
559
  setValue = _useFormContext.setValue,
526
560
  register = _useFormContext.register;
527
561
 
562
+ React.useEffect(function () {
563
+ setValue(HIDDEN_INPUT_HELPER_IS_DRAFT, isDefaultDraft); // eslint-disable-next-line react-hooks/exhaustive-deps
564
+ }, []);
565
+
528
566
  var isDraft = function isDraft() {
529
567
  return getValues(HIDDEN_INPUT_HELPER_IS_DRAFT) === true;
530
568
  };
@@ -542,9 +580,7 @@ var useDraftFormHelpers = function useDraftFormHelpers() {
542
580
  };
543
581
 
544
582
  var DraftFieldHelper = function DraftFieldHelper() {
545
- return /*#__PURE__*/React.createElement("input", Object.assign({
546
- defaultValue: "false"
547
- }, register(HIDDEN_INPUT_HELPER_IS_DRAFT), {
583
+ return /*#__PURE__*/React.createElement("input", Object.assign({}, register(HIDDEN_INPUT_HELPER_IS_DRAFT), {
548
584
  type: "hidden"
549
585
  }));
550
586
  };
@@ -651,24 +687,21 @@ var ConfirmationServiceProvider = function ConfirmationServiceProvider(_ref) {
651
687
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
652
688
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
653
689
  * */
654
- var useStyles$a = makeStyles(function () {
655
- return {
656
- title: {
657
- fontSize: '14px',
658
- fontWeight: 'normal',
659
- marginTop: '0px!important',
660
- paddingTop: '0px!important'
661
- },
662
- info: {
663
- fontSize: '16px'
664
- }
665
- };
666
- });
667
690
 
668
- var getIcon = function getIcon(severity) {
691
+ var AlertIcon = function AlertIcon(_ref) {
692
+ var _ref$severity = _ref.severity,
693
+ severity = _ref$severity === void 0 ? 'error' : _ref$severity,
694
+ _ref$dataTestId = _ref.dataTestId,
695
+ dataTestId = _ref$dataTestId === void 0 ? 'alert-icon' : _ref$dataTestId;
696
+
669
697
  switch (severity) {
670
698
  case 'info':
671
- return /*#__PURE__*/React.createElement(SvgIcon, null, /*#__PURE__*/React.createElement("rect", {
699
+ return /*#__PURE__*/React.createElement(SvgIcon, {
700
+ sx: {
701
+ color: 'geowebColors.functional.notification'
702
+ },
703
+ "data-testid": dataTestId
704
+ }, /*#__PURE__*/React.createElement("rect", {
672
705
  width: 24,
673
706
  height: 24,
674
707
  fill: "transparent"
@@ -678,7 +711,12 @@ var getIcon = function getIcon(severity) {
678
711
  }));
679
712
 
680
713
  case 'success':
681
- return /*#__PURE__*/React.createElement(SvgIcon, null, /*#__PURE__*/React.createElement("rect", {
714
+ return /*#__PURE__*/React.createElement(SvgIcon, {
715
+ sx: {
716
+ color: 'geowebColors.functional.success'
717
+ },
718
+ "data-testid": dataTestId
719
+ }, /*#__PURE__*/React.createElement("rect", {
682
720
  width: 24,
683
721
  height: 24,
684
722
  fill: "transparent"
@@ -688,7 +726,12 @@ var getIcon = function getIcon(severity) {
688
726
  }));
689
727
 
690
728
  case 'warning':
691
- return /*#__PURE__*/React.createElement(SvgIcon, null, /*#__PURE__*/React.createElement("rect", {
729
+ return /*#__PURE__*/React.createElement(SvgIcon, {
730
+ sx: {
731
+ color: 'geowebColors.functional.warning'
732
+ },
733
+ "data-testid": dataTestId
734
+ }, /*#__PURE__*/React.createElement("rect", {
692
735
  width: 24,
693
736
  height: 24,
694
737
  fill: "transparent"
@@ -699,7 +742,12 @@ var getIcon = function getIcon(severity) {
699
742
 
700
743
  case 'error':
701
744
  default:
702
- return /*#__PURE__*/React.createElement(SvgIcon, null, /*#__PURE__*/React.createElement("rect", {
745
+ return /*#__PURE__*/React.createElement(SvgIcon, {
746
+ sx: {
747
+ color: 'geowebColors.functional.error'
748
+ },
749
+ "data-testid": dataTestId
750
+ }, /*#__PURE__*/React.createElement("rect", {
703
751
  width: 24,
704
752
  height: 24,
705
753
  fill: "transparent"
@@ -719,12 +767,30 @@ var AlertBanner = function AlertBanner(_ref) {
719
767
  _ref$dataTestId = _ref.dataTestId,
720
768
  dataTestId = _ref$dataTestId === void 0 ? 'alert-banner' : _ref$dataTestId,
721
769
  _ref$isCompact = _ref.isCompact,
722
- isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact;
723
- var classes = useStyles$a();
724
- return /*#__PURE__*/React.createElement(Alert, {
770
+ isCompact = _ref$isCompact === void 0 ? false : _ref$isCompact,
771
+ _ref$shouldClose = _ref.shouldClose,
772
+ shouldClose = _ref$shouldClose === void 0 ? false : _ref$shouldClose;
773
+
774
+ var _React$useState = React.useState(true),
775
+ _React$useState2 = _slicedToArray(_React$useState, 2),
776
+ isOpen = _React$useState2[0],
777
+ setIsOpen = _React$useState2[1];
778
+
779
+ return isOpen && /*#__PURE__*/React.createElement(Alert, {
725
780
  "data-testid": dataTestId,
726
781
  severity: severity,
727
- icon: getIcon(severity),
782
+ icon: /*#__PURE__*/React.createElement(AlertIcon, {
783
+ severity: severity
784
+ }),
785
+ action: shouldClose ? /*#__PURE__*/React.createElement(Button, {
786
+ variant: "flat",
787
+ onClick: function onClick() {
788
+ return setIsOpen(false);
789
+ },
790
+ sx: {
791
+ backgroundColor: 'transparent!important'
792
+ }
793
+ }, "CLOSE") : undefined,
728
794
  sx: isCompact ? {
729
795
  height: '32px',
730
796
  boxSizing: 'border-box',
@@ -741,11 +807,31 @@ var AlertBanner = function AlertBanner(_ref) {
741
807
  margin: '-3px 10px 0px 0px',
742
808
  padding: '0px'
743
809
  }
744
- } : {}
810
+ } : {
811
+ padding: '3px 16px',
812
+ '& .MuiAlert-message': {
813
+ padding: '8px 0'
814
+ },
815
+ '& .MuiAlert-icon': {
816
+ padding: '8px 0'
817
+ },
818
+ '& .MuiAlert-action': {
819
+ padding: 0
820
+ }
821
+ }
745
822
  }, /*#__PURE__*/React.createElement(AlertTitle, {
746
- className: classes.title
747
- }, title), info && /*#__PURE__*/React.createElement("div", {
748
- className: classes.info
823
+ sx: {
824
+ fontSize: '14px',
825
+ fontWeight: 'normal',
826
+ marginTop: '0px!important',
827
+ paddingTop: '0px!important',
828
+ marginBottom: '0px!important'
829
+ }
830
+ }, title), info && /*#__PURE__*/React.createElement(Box, {
831
+ sx: {
832
+ fontSize: '16px',
833
+ marginTop: 1
834
+ }
749
835
  }, info));
750
836
  };
751
837
 
@@ -765,7 +851,7 @@ var AlertBanner = function AlertBanner(_ref) {
765
851
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
766
852
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
767
853
  * */
768
- var useStyles$9 = makeStyles(function () {
854
+ var useStyles$8 = makeStyles(function () {
769
855
  return {
770
856
  wrapper: {
771
857
  height: '100vh',
@@ -782,7 +868,7 @@ var useStyles$9 = makeStyles(function () {
782
868
  var AppLayout = function AppLayout(_ref) {
783
869
  var header = _ref.header,
784
870
  children = _ref.children;
785
- var classes = useStyles$9();
871
+ var classes = useStyles$8();
786
872
  return /*#__PURE__*/React__default.createElement("div", {
787
873
  className: classes.wrapper
788
874
  }, header, /*#__PURE__*/React__default.createElement("main", {
@@ -792,7 +878,7 @@ var AppLayout = function AppLayout(_ref) {
792
878
 
793
879
  var img = "data:image/svg+xml,%3c!--Licensed under the Apache License%2c Version 2.0 (the 'License')%3byou may not use this file except in compliance with the License.You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0Unless required by applicable law or agreed to in writing%2c softwaredistributed under the License is distributed on an 'AS IS' BASIS%2cWITHOUT WARRANTIES OR CONDITIONS OF ANY KIND%2c either express or implied.See the License for the specific language governing permissions andlimitations under the License.Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)Copyright 2021 - Finnish Meteorological Institute (FMI)--%3e%3csvg id='svg4550' xmlnsRdf='http://www.w3.org/1999/02/22-rdf-syntax-ns%23' xmlns='http://www.w3.org/2000/svg' height='55.156mm' viewBox='0 0 289.84072 195.43326' width='81.799mm' version='1.1' xmlnsCc='http://creativecommons.org/ns%23' xmlnsXlink='http://www.w3.org/1999/xlink' xmlnsDc='http://purl.org/dc/elements/1.1/'%3e %3cdefs id='defs14'%3e %3clinearGradient id='linearGradient4263' y2='113.1' gradientUnits='userSpaceOnUse' y1='76.066' gradientTransform='translate(0 -.0012816)' x2='199.26' x1='160.9'%3e %3cstop id='stop4259' stop-color='white' stop-opacity='.33333' offset='0'/%3e %3cstop id='stop4261' stop-color='white' stop-opacity='0' offset='1'/%3e %3c/linearGradient%3e %3clinearGradient id='linearGradient4240' y2='79.833' gradientUnits='userSpaceOnUse' x2='120.82' y1='120.77' x1='128.56'%3e %3cstop id='stop4236' stop-color='white' stop-opacity='0' offset='0'/%3e %3cstop id='stop4238' stop-color='white' stop-opacity='.33333' offset='1'/%3e %3c/linearGradient%3e %3c/defs%3e %3cg id='layer1' transform='translate(353.49 -626.07)'%3e %3cg id='g4'%3e %3cpath id='path4220' d='m-207 679.86c-7.6546-3.9726-16.149-6.0541-24.773-6.0703-24.585 0.0315-46.045 16.665-52.207 40.465-2.23-0.35755-4.4838-0.54689-6.7422-0.56642-24.881-0.00043-45.051 20.17-45.051 45.051-0.00043 24.881 20.17 45.051 45.051 45.051 36.152-0.20272 72.845-0.0898 109.18-0.0898 8.9834 0 22.962 0.009 36.879 0.0165 9.7409 0.38215 35.645-0.43398 53.537-23.548 17.892-23.115 7.1203-72.79-0.31513-94.017s-30.566-42.361-53.247-42.361c-26.664 0-50.367 14.562-62.311 36.07z' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='%230b9ee5'/%3e %3cpath id='path4220-7' opacity='.98' d='m-335.78 758.74c-0.00043 24.881 20.17 45.051 45.051 45.051 36.152-0.20272 72.845-0.0898 109.18-0.0898 10.101 0 27.126 0.009 42.523 0.0156 11.975-0.4199 32.775-4.017 47.893-23.547 4.439-5.7347 7.1108-13.107 8.5098-21.271-35.448-0.0105-239.67-0.15823-253.16-0.15823z' fill='%2360bce9'/%3e %3c/g%3e %3cpath id='path4220-2' d='m-144.69 643.79c-19.529 0-37.464 7.8167-50.359 20.447-4.6476 4.6419-8.6513 9.9041-11.953 15.623 0 40.944 0.0195 77.914 0.0195 123.83 8.4824 0.007 16.983 0.0137 25.438 0.0137 10.101 0 27.126 0.009 42.523 0.0156 11.975-0.4199 32.775-4.017 47.893-23.547 17.892-23.115 7.1209-72.791-0.31446-94.018s-30.565-42.361-53.246-42.361z' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='white' fill-opacity='.31373'/%3e %3c/g%3e %3cg id='g4244' transform='translate(2.926 -1.3827)'%3e %3cpath id='path4329' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='%23003232' d='m211.54 98.88c11.484 8.7901 14.857 8.43 22.486 19.238 3.6519 5.1733 5.5602 11.69 5.5645 18.164-0.00018 17.949-14.551 32.499-32.5 32.498-17.948-0.00018-32.498-14.55-32.498-32.498 0.006-0.50098 0.0236-1.0018 0.0527-1.502-3.4629-1.1175-6.9173-1.9297-9.6543-1.9297-2.7565 0-6.2409 0.82134-9.7285 1.9512 0.036 0.49286 0.0607 0.98649 0.0742 1.4805-0.00018 17.948-14.55 32.498-32.498 32.498-17.948-0.00019-32.498-14.55-32.498-32.498 0.006-3.5239 0.71774-6.9687 1.8781-10.26 5.474-20.521 8.7944-44.229 27.665-46.855 8.2552-1.1488 15.952 8.848 25.107 8.848 9.1558-0.00028 9.318-14.58 23.088-14.836 16.828-0.3123 31.185 16.304 43.462 25.701zm-4.7539 13.92c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24zm-84.125 0c-13.255 0-24 10.745-24 24s10.745 24 24 24 24-10.745 24-24-10.745-24-24-24z'/%3e %3cpath id='path4329-2' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' fill='url(%23linearGradient4263)' d='m157.24 77.869c-2.1199 2.1753-3.6401 4.4832-5.4018 6.5241-0.53185 0.61614-1.2448 1.3191-1.8477 1.7949-1.2058 0.9517-2.5477 1.6107-4.168 1.7793-0.27005 0.0281-0.54787 0.04296-0.83398 0.04297 5.0928 13.298 11.821 26.014 20 44.834 2.737 0 6.1914 0.8122 9.6543 1.9297-0.0291 0.5002-0.0467 1.001-0.0527 1.502 0 8.4131 3.196 16.08 8.4414 21.852 0.34969 0.38474 0.70861 0.75939 1.0762 1.127 5.881 5.8809 14.007 9.5194 22.98 9.5195 0.5609 0.00004 1.118-0.0149 1.6719-0.043 3.3236-0.16829 6.5154-0.83435 9.502-1.9277 0.99554-0.36446 1.9688-0.77802 2.916-1.2344 1.4208-0.68453 2.7833-1.4677 4.0801-2.3438 8.645-5.84 14.33-15.731 14.33-26.949-0.004-6.474-2.0849-12.873-5.5645-18.164-7.0668-10.745-14.684-12.763-22.486-19.238-11.815-9.8048-26.968-25.716-42.627-25.716-6.2104 0-9.3385 2.3185-11.67 4.7112zm49.543 34.924c4.9706 0 9.5876 1.5119 13.418 4.0996 0.6384 0.43129 1.255 0.89176 1.8476 1.3809 0.59266 0.4891 1.1622 1.0059 1.7051 1.5488 4.3431 4.3431 7.0293 10.343 7.0293 16.971 0 12.841-10.085 23.326-22.766 23.969-0.40906 0.0207-0.82015 0.0312-1.2344 0.0312-4.97 0-9.5878-1.5105-13.418-4.0976-0.00044-0.0003-0.002 0.00029-0.002 0-6.384-4.3129-10.58-11.618-10.58-19.902 0-6.6275 2.6862-12.628 7.0293-16.971 0.54288-0.54289 1.1124-1.0597 1.7051-1.5488 0.59266-0.4891 1.2073-0.94957 1.8457-1.3809 3.8304-2.5878 8.4493-4.0996 13.42-4.0996z'/%3e %3cpath id='path4329-7' style='color-rendering:auto%3bcolor:black%3bisolation:auto%3bmix-blend-mode:normal%3bshape-rendering:auto%3bsolid-color:black%3bimage-rendering:auto' d='m121.43 79.077c-0.51208-0.01011-1.027 0.01805-1.543 0.08985-18.871 2.626-22.19 26.335-27.664 46.856-1.1604 3.2913-1.8729 6.7359-1.8789 10.26 0 17.948 14.55 32.498 32.498 32.498s32.498-14.55 32.498-32.498c-0.0135-0.49402-0.0382-0.98762-0.0742-1.4805 3.5012-1.0071 5.7853-1.8693 9.6893-1.9248-4.8944-11.377-14.29-31.914-19.961-44.863-8.5828 0.000001-15.883-8.7859-23.565-8.9376zm1.2344 33.723c13.255 0 24 10.745 24 24s-10.745 24-24 24-24-10.745-24-24 10.745-24 24-24z' fill='url(%23linearGradient4240)'/%3e %3c/g%3e%3c/svg%3e";
794
880
 
795
- var useStyles$8 = makeStyles(function (theme) {
881
+ var useStyles$7 = makeStyles(function (theme) {
796
882
  var _header;
797
883
 
798
884
  return {
@@ -829,7 +915,7 @@ var AppHeader = function AppHeader(_ref) {
829
915
  userMenu = _ref.userMenu,
830
916
  _ref$title = _ref.title,
831
917
  title = _ref$title === void 0 ? 'GeoWeb' : _ref$title;
832
- var classes = useStyles$8();
918
+ var classes = useStyles$7();
833
919
  return /*#__PURE__*/React__default.createElement("header", {
834
920
  className: classes.header
835
921
  }, /*#__PURE__*/React__default.createElement(Grid, {
@@ -1111,7 +1197,7 @@ ErrorBoundary.defaultProps = {
1111
1197
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1112
1198
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
1113
1199
  * */
1114
- var useStyles$7 = makeStyles(function (theme) {
1200
+ var useStyles$6 = makeStyles(function (theme) {
1115
1201
  return {
1116
1202
  container: {
1117
1203
  position: 'absolute',
@@ -1159,7 +1245,7 @@ var UserMenu = function UserMenu(_ref) {
1159
1245
  } : _ref$onClose,
1160
1246
  children = _ref.children,
1161
1247
  initials = _ref.initials;
1162
- var classes = useStyles$7();
1248
+ var classes = useStyles$6();
1163
1249
  return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(IconButton, {
1164
1250
  "data-testid": "userButton",
1165
1251
  onClick: onToggle,
@@ -1242,7 +1328,7 @@ var MenuItemTheme = function MenuItemTheme() {
1242
1328
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1243
1329
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
1244
1330
  * */
1245
- var useStyles$6 = makeStyles(function (theme) {
1331
+ var useStyles$5 = makeStyles(function (theme) {
1246
1332
  return {
1247
1333
  footer: {
1248
1334
  boxShadow: theme.shadows[1],
@@ -1255,7 +1341,7 @@ var useStyles$6 = makeStyles(function (theme) {
1255
1341
  }); // drag handles will be handled by DraggableResizable/Resizable
1256
1342
 
1257
1343
  var ToolFooter = function ToolFooter() {
1258
- var classes = useStyles$6();
1344
+ var classes = useStyles$5();
1259
1345
  return /*#__PURE__*/React__default.createElement("footer", {
1260
1346
  className: classes.footer
1261
1347
  });
@@ -1338,13 +1424,17 @@ var ToolHeader = function ToolHeader(_ref) {
1338
1424
  _ref$isDraggable = _ref.isDraggable,
1339
1425
  isDraggable = _ref$isDraggable === void 0 ? false : _ref$isDraggable,
1340
1426
  _ref$className = _ref.className,
1341
- className = _ref$className === void 0 ? '' : _ref$className;
1427
+ className = _ref$className === void 0 ? '' : _ref$className,
1428
+ _ref$leftComponent = _ref.leftComponent,
1429
+ leftComponent = _ref$leftComponent === void 0 ? null : _ref$leftComponent;
1342
1430
  var styles = getStyle(size);
1343
1431
 
1344
1432
  var onClickClose = function onClickClose() {
1345
1433
  return onClose();
1346
1434
  };
1347
1435
 
1436
+ var columnSizeIcon = leftComponent ? 3 : 1;
1437
+ var columnSizeTitle = leftComponent ? 6 : 10;
1348
1438
  return /*#__PURE__*/React__default.createElement(Box, {
1349
1439
  component: "header",
1350
1440
  className: className,
@@ -1360,26 +1450,27 @@ var ToolHeader = function ToolHeader(_ref) {
1360
1450
  alignItems: "center"
1361
1451
  }, /*#__PURE__*/React__default.createElement(Grid, {
1362
1452
  item: true,
1363
- xs: 1
1364
- }, /*#__PURE__*/React__default.createElement(Grid, {
1453
+ xs: columnSizeIcon
1454
+ }, isDraggable && size !== 'xxs' && !leftComponent && /*#__PURE__*/React__default.createElement(Grid, {
1365
1455
  container: true,
1366
1456
  justifyContent: "flex-start"
1367
- }, isDraggable && size !== 'xxs' && /*#__PURE__*/React__default.createElement(IconButton, {
1457
+ }, /*#__PURE__*/React__default.createElement(IconButton, {
1368
1458
  "data-testid": "dragBtn",
1369
1459
  disableRipple: true,
1370
1460
  size: "large",
1371
1461
  sx: Object.assign(Object.assign({}, iconStyle), {
1372
1462
  pointerEvents: 'none'
1373
1463
  })
1374
- }, /*#__PURE__*/React__default.createElement(DragIndicator, null)))), /*#__PURE__*/React__default.createElement(Grid, {
1464
+ }, /*#__PURE__*/React__default.createElement(DragIndicator, null))), leftComponent && leftComponent), /*#__PURE__*/React__default.createElement(Grid, {
1375
1465
  item: true,
1376
- xs: 10
1466
+ xs: columnSizeTitle
1377
1467
  }, /*#__PURE__*/React__default.createElement(Grid, {
1378
1468
  container: true,
1379
1469
  justifyContent: "center",
1380
1470
  alignItems: "center"
1381
1471
  }, title && /*#__PURE__*/React__default.createElement(Typography, {
1382
1472
  variant: "h2",
1473
+ noWrap: true,
1383
1474
  sx: {
1384
1475
  fontSize: styles.fontSize,
1385
1476
  fontWeight: styles.fontWeight
@@ -1395,7 +1486,7 @@ var ToolHeader = function ToolHeader(_ref) {
1395
1486
  })
1396
1487
  }, /*#__PURE__*/React__default.createElement(DragIndicator, null)))), /*#__PURE__*/React__default.createElement(Grid, {
1397
1488
  item: true,
1398
- xs: 1,
1489
+ xs: columnSizeIcon,
1399
1490
  container: true,
1400
1491
  justifyContent: "flex-end"
1401
1492
  }, onClose && /*#__PURE__*/React__default.createElement(IconButton, {
@@ -1403,7 +1494,7 @@ var ToolHeader = function ToolHeader(_ref) {
1403
1494
  onClick: onClickClose,
1404
1495
  size: "large",
1405
1496
  sx: iconStyle
1406
- }, /*#__PURE__*/React__default.createElement(Close, null)))));
1497
+ }, /*#__PURE__*/React__default.createElement(Close$1, null)))));
1407
1498
  };
1408
1499
 
1409
1500
  /* *
@@ -1422,22 +1513,20 @@ var ToolHeader = function ToolHeader(_ref) {
1422
1513
  * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
1423
1514
  * Copyright 2021 - Finnish Meteorological Institute (FMI)
1424
1515
  * */
1425
- var useStyles$5 = makeStyles(function () {
1426
- return {
1427
- container: {
1428
- overflow: 'hidden',
1429
- borderRadius: 0,
1430
- display: 'flex',
1431
- flexDirection: 'column',
1432
- height: '100%'
1433
- },
1434
- content: {
1435
- flex: 1,
1436
- overflowY: 'auto',
1437
- position: 'relative'
1438
- }
1439
- };
1440
- });
1516
+ var styles$1 = {
1517
+ container: {
1518
+ overflow: 'hidden',
1519
+ borderRadius: 0,
1520
+ display: 'flex',
1521
+ flexDirection: 'column',
1522
+ height: '100%'
1523
+ },
1524
+ content: {
1525
+ flex: 1,
1526
+ overflowY: 'auto',
1527
+ position: 'relative'
1528
+ }
1529
+ };
1441
1530
  var BASE_ELEVATION = 5;
1442
1531
 
1443
1532
  var ToolContainer = function ToolContainer(_a) {
@@ -1457,20 +1546,22 @@ var ToolContainer = function ToolContainer(_a) {
1457
1546
  elevation = _a$elevation === void 0 ? BASE_ELEVATION : _a$elevation,
1458
1547
  _a$headerClassName = _a.headerClassName,
1459
1548
  headerClassName = _a$headerClassName === void 0 ? '' : _a$headerClassName,
1460
- props = __rest(_a, ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName"]);
1549
+ _a$leftComponent = _a.leftComponent,
1550
+ leftComponent = _a$leftComponent === void 0 ? null : _a$leftComponent,
1551
+ props = __rest(_a, ["title", "size", "children", "onClose", "isResizable", "isDraggable", "maxHeight", "elevation", "headerClassName", "leftComponent"]);
1461
1552
 
1462
- var classes = useStyles$5();
1463
1553
  return /*#__PURE__*/React__default.createElement(Paper, Object.assign({
1464
1554
  elevation: elevation,
1465
- className: classes.container
1555
+ sx: styles$1.container
1466
1556
  }, props), /*#__PURE__*/React__default.createElement(ToolHeader, {
1467
1557
  title: title,
1468
1558
  size: size,
1469
1559
  isDraggable: isDraggable,
1470
1560
  onClose: onClose,
1471
- className: headerClassName
1472
- }), /*#__PURE__*/React__default.createElement("div", {
1473
- className: classes.content,
1561
+ className: headerClassName,
1562
+ leftComponent: leftComponent
1563
+ }), /*#__PURE__*/React__default.createElement(Box, {
1564
+ sx: styles$1.content,
1474
1565
  style: {
1475
1566
  maxHeight: maxHeight
1476
1567
  }
@@ -1529,7 +1620,9 @@ var DraggableComponent = function DraggableComponent(_a) {
1529
1620
  order = _a$order === void 0 ? 1 : _a$order,
1530
1621
  _a$source = _a.source,
1531
1622
  source = _a$source === void 0 ? 'app' : _a$source,
1532
- props = __rest(_a, ["title", "bounds", "headerSize", "startSize", "startPosition", "children", "isOpen", "onClose", "initialMaxHeight", "onChangeSize", "onMouseDown", "order", "source"]);
1623
+ _a$leftComponent = _a.leftComponent,
1624
+ leftComponent = _a$leftComponent === void 0 ? null : _a$leftComponent,
1625
+ props = __rest(_a, ["title", "bounds", "headerSize", "startSize", "startPosition", "children", "isOpen", "onClose", "initialMaxHeight", "onChangeSize", "onMouseDown", "order", "source", "leftComponent"]);
1533
1626
 
1534
1627
  var zIndex = (source === 'app' ? BASE_Z_INDEX : 1000) + order;
1535
1628
  var elevation = BASE_ELEVATION + order;
@@ -1641,7 +1734,8 @@ var DraggableComponent = function DraggableComponent(_a) {
1641
1734
  isDraggable: true,
1642
1735
  isResizable: true,
1643
1736
  elevation: elevation,
1644
- headerClassName: headerClassName
1737
+ headerClassName: headerClassName,
1738
+ leftComponent: leftComponent
1645
1739
  }, children)))) : null;
1646
1740
  };
1647
1741
 
@@ -1937,11 +2031,11 @@ var shortcuts = [{
1937
2031
  }, /*#__PURE__*/React__default.createElement(ArrowRightIcon, null))),
1938
2032
  descriptionMac: /*#__PURE__*/React__default.createElement(React__default.Fragment, null, /*#__PURE__*/React__default.createElement(ShortCutSegment, {
1939
2033
  type: "icon"
1940
- }, /*#__PURE__*/React__default.createElement(OptionIcon, null)), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
2034
+ }, "Ctrl"), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
1941
2035
  type: "connect"
1942
2036
  }, "+"), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
1943
2037
  type: "icon"
1944
- }, /*#__PURE__*/React__default.createElement(CommandIcon, null)), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
2038
+ }, /*#__PURE__*/React__default.createElement(OptionIcon, null)), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
1945
2039
  type: "connect"
1946
2040
  }, "+"), /*#__PURE__*/React__default.createElement(ShortCutSegment, {
1947
2041
  type: "icon"
@@ -2410,10 +2504,12 @@ var ToolButton = function ToolButton(_a) {
2410
2504
  value = _a$value === void 0 ? 0 : _a$value,
2411
2505
  _a$sx = _a.sx,
2412
2506
  sx = _a$sx === void 0 ? {} : _a$sx,
2413
- props = __rest(_a, ["active", "width", "height", "children", "value", "sx"]);
2507
+ _a$variant = _a.variant,
2508
+ variant = _a$variant === void 0 ? 'tool' : _a$variant,
2509
+ props = __rest(_a, ["active", "width", "height", "children", "value", "sx", "variant"]);
2414
2510
 
2415
2511
  return /*#__PURE__*/React.createElement(CustomToggleButton, Object.assign({
2416
- variant: "tool",
2512
+ variant: variant,
2417
2513
  disableRipple: true,
2418
2514
  selected: active,
2419
2515
  value: value,
@@ -2733,11 +2829,185 @@ var EnableButton = function EnableButton(_ref) {
2733
2829
  disableFocusRipple: true,
2734
2830
  tabIndex: -1
2735
2831
  }),
2736
- testId: "enableLayer",
2832
+ testId: "enableButton",
2737
2833
  isEnabled: isEnabled
2738
2834
  });
2739
2835
  };
2740
2836
 
2837
+ /* *
2838
+ * Licensed under the Apache License, Version 2.0 (the "License");
2839
+ * you may not use this file except in compliance with the License.
2840
+ * You may obtain a copy of the License at
2841
+ *
2842
+ * http://www.apache.org/licenses/LICENSE-2.0
2843
+ *
2844
+ * Unless required by applicable law or agreed to in writing, software
2845
+ * distributed under the License is distributed on an "AS IS" BASIS,
2846
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
2847
+ * See the License for the specific language governing permissions and
2848
+ * limitations under the License.
2849
+ *
2850
+ * Copyright 2021 - Koninklijk Nederlands Meteorologisch Instituut (KNMI)
2851
+ * Copyright 2021 - Finnish Meteorological Institute (FMI)
2852
+ * */
2853
+ var tooltipContainerStyles = function tooltipContainerStyles(isEnabled) {
2854
+ return {
2855
+ width: '100%',
2856
+ height: 32,
2857
+ fontWeight: 500,
2858
+ fontSize: function fontSize(theme) {
2859
+ return theme.palette.geowebColors.layerManager.tableRowDefaultText.fontSize;
2860
+ },
2861
+ color: isEnabled ? 'geowebColors.layerManager.tableRowDefaultText.rgba' : 'geowebColors.layerManager.tableRowDisabledText.rgba',
2862
+ '& .MuiOutlinedInput-input': {
2863
+ padding: '6px 24px 6px 8px'
2864
+ },
2865
+ '& .MuiOutlinedInput-notchedOutline': {
2866
+ borderColor: 'transparent!important'
2867
+ },
2868
+ '&:hover .MuiSelect-select': {
2869
+ backgroundColor: 'geowebColors.buttons.tool.mouseOver.fill'
2870
+ },
2871
+ '&.Mui-focused .MuiSelect-select': {
2872
+ outline: function outline(theme) {
2873
+ return theme.palette.geowebColors.buttons.focusDefault.outline;
2874
+ },
2875
+ backgroundColor: 'geowebColors.buttons.tool.mouseOver.fill'
2876
+ },
2877
+ '&:hover&.MuiButton-root': {
2878
+ backgroundColor: 'geowebColors.buttons.tool.mouseOver.fill'
2879
+ },
2880
+ '&:focus&.MuiButton-root': {
2881
+ outline: function outline(theme) {
2882
+ return theme.palette.geowebColors.buttons.focusDefault.outline;
2883
+ },
2884
+ backgroundColor: 'geowebColors.buttons.tool.mouseOver.fill'
2885
+ },
2886
+ '& .MuiSvgIcon-root': {
2887
+ transition: 'none',
2888
+ fill: function fill(theme) {
2889
+ return isEnabled ? theme.palette.geowebColors.buttons.flat["default"].color : theme.palette.geowebColors.buttons.flat.disabled.color;
2890
+ }
2891
+ },
2892
+ '&>div': {
2893
+ paddingLeft: 1
2894
+ }
2895
+ };
2896
+ };
2897
+
2898
+ var TooltipSelect = function TooltipSelect(_a) {
2899
+ var tooltip = _a.tooltip,
2900
+ _a$list = _a.list,
2901
+ list = _a$list === void 0 ? [] : _a$list,
2902
+ _a$currentIndex = _a.currentIndex,
2903
+ currentIndex = _a$currentIndex === void 0 ? -1 : _a$currentIndex,
2904
+ _a$onChangeMouseWheel = _a.onChangeMouseWheel,
2905
+ onChangeMouseWheel = _a$onChangeMouseWheel === void 0 ? function () {} : _a$onChangeMouseWheel,
2906
+ _a$requiresCtrlToChan = _a.requiresCtrlToChange,
2907
+ requiresCtrlToChange = _a$requiresCtrlToChan === void 0 ? false : _a$requiresCtrlToChan,
2908
+ isEnabled = _a.isEnabled,
2909
+ noStyling = _a.noStyling,
2910
+ props = __rest(_a, ["tooltip", "list", "currentIndex", "onChangeMouseWheel", "requiresCtrlToChange", "isEnabled", "noStyling"]);
2911
+
2912
+ props.disableUnderline;
2913
+ var otherProps = __rest(props, ["disableUnderline"]);
2914
+
2915
+ var _React$useState = React.useState(false),
2916
+ _React$useState2 = _slicedToArray(_React$useState, 2),
2917
+ selectOpen = _React$useState2[0],
2918
+ setSelectOpen = _React$useState2[1];
2919
+
2920
+ var _React$useState3 = React.useState(false),
2921
+ _React$useState4 = _slicedToArray(_React$useState3, 2),
2922
+ tooltipOpen = _React$useState4[0],
2923
+ setTooltipOpen = _React$useState4[1];
2924
+
2925
+ var onWheel = React.useCallback(function (event) {
2926
+ if (requiresCtrlToChange && (event.ctrlKey || event.metaKey) || !requiresCtrlToChange) {
2927
+ if (selectOpen) return;
2928
+ var direction = event.deltaY < 0 ? 1 : -1;
2929
+ var newValue = list[Math.min(Math.max(currentIndex - direction, 0), list.length - 1)];
2930
+ onChangeMouseWheel(newValue);
2931
+ }
2932
+ }, [selectOpen, currentIndex, list, onChangeMouseWheel, requiresCtrlToChange]);
2933
+ var onOpen = React.useCallback(function () {
2934
+ setSelectOpen(true);
2935
+ setTooltipOpen(false);
2936
+ }, []);
2937
+ var onClose = React.useCallback(function () {
2938
+ setSelectOpen(false);
2939
+ }, []);
2940
+ var onMouseEnter = React.useCallback(function () {
2941
+ if (!selectOpen) setTooltipOpen(true);
2942
+ }, [selectOpen]);
2943
+ var onMouseLeave = React.useCallback(function () {
2944
+ setTooltipOpen(false);
2945
+ }, []);
2946
+ var onFocus = React.useCallback(function () {
2947
+ setTooltipOpen(true);
2948
+ }, []);
2949
+ var onBlur = React.useCallback(function () {
2950
+ setTooltipOpen(false);
2951
+ }, []);
2952
+ return /*#__PURE__*/React.createElement(Tooltip, {
2953
+ title: tooltip,
2954
+ placement: "top",
2955
+ open: tooltipOpen,
2956
+ sx: noStyling ? undefined : tooltipContainerStyles(isEnabled)
2957
+ }, /*#__PURE__*/React.createElement(Select, Object.assign({
2958
+ onOpen: onOpen,
2959
+ onClose: onClose,
2960
+ onMouseEnter: onMouseEnter,
2961
+ onMouseLeave: onMouseLeave,
2962
+ onFocus: onFocus,
2963
+ onBlur: onBlur,
2964
+ onWheel: onWheel,
2965
+ MenuProps: {
2966
+ BackdropProps: {
2967
+ sx: {
2968
+ '&.MuiBackdrop-root': {
2969
+ backgroundColor: 'transparent'
2970
+ }
2971
+ }
2972
+ },
2973
+ sx: {
2974
+ '& ul': {
2975
+ backgroundColor: 'geowebColors.background.surface'
2976
+ },
2977
+ '& li': {
2978
+ fontSize: '16px',
2979
+ padding: '12px',
2980
+ '&:hover': {
2981
+ backgroundColor: 'geowebColors.buttons.tool.mouseOver.fill'
2982
+ },
2983
+ '&.Mui-selected': {
2984
+ color: 'geowebColors.buttons.tool.active.color',
2985
+ backgroundColor: 'geowebColors.buttons.tool.active.fill',
2986
+ boxShadow: "none",
2987
+ '&:hover': {
2988
+ backgroundColor: 'geowebColors.buttons.tool.activeMouseOver.fill'
2989
+ },
2990
+ '&:focus': {
2991
+ backgroundColor: 'geowebColors.buttons.tool.activeMouseOver.fill'
2992
+ }
2993
+ },
2994
+ '&:after': {
2995
+ background: 'none!important'
2996
+ },
2997
+ '&.Mui-disabled': {
2998
+ fontSize: '12px',
2999
+ opacity: 0.67,
3000
+ padding: '0px 12px',
3001
+ '&.MuiMenuItem-root': {
3002
+ minHeight: '30px!important'
3003
+ }
3004
+ }
3005
+ }
3006
+ }
3007
+ }
3008
+ }, otherProps)));
3009
+ };
3010
+
2741
3011
  /* *
2742
3012
  * Licensed under the Apache License, Version 2.0 (the "License");
2743
3013
  * you may not use this file except in compliance with the License.
@@ -2772,4 +3042,4 @@ var getAxiosErrorMessage = function getAxiosErrorMessage(error) {
2772
3042
  return 'An error has occurred';
2773
3043
  };
2774
3044
 
2775
- export { AlertBanner, AppHeader, AppLayout, ConfirmationDialog, ConfirmationServiceProvider, CustomSlider, CustomToggleButton, DraggableComponent$1 as Draggable, EnableButton, ErrorBoundary, HIDDEN_INPUT_HELPER_IS_DRAFT, ManagerButton, ManagerDeleteButton, ResizeComponent as Resizable, StatusTag, ToggleMenu, ToolButton, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, calculateDialogSizeAndPosition, getAxiosErrorMessage, getInitials, isAxiosError, showPrompt, sliderStyles, useConfirmationDialog, useDialogActions, useDraftFormHelpers, useIsMounted, usePoller, usePreventBrowserClose, usePrevious, useUserMenu };
3045
+ export { AlertBanner, AlertIcon, AppHeader, AppLayout, ConfirmationDialog, ConfirmationServiceProvider, CustomSlider, CustomToggleButton, DraggableComponent$1 as Draggable, EnableButton, ErrorBoundary, HIDDEN_INPUT_HELPER_IS_DRAFT, ManagerButton, ManagerDeleteButton, ResizeComponent as Resizable, StatusTag, ToggleMenu, ToolButton, ToolContainer, DraggableComponent as ToolContainerDraggable, ToolFooter, ToolHeader, TooltipSelect, UserMenu, UserMenuItemCheatSheet, MenuItemTheme as UserMenuItemTheme, calculateDialogSizeAndPosition, getAxiosErrorMessage, getInitials, isAxiosError, showPrompt, sliderStyles, tooltipContainerStyles, useConfirmationDialog, useDialogActions, useDraftFormHelpers, useIsMounted, usePoller, usePreventBrowserClose, usePrevious, useUserMenu };