@evergis/react 2.0.140 → 2.0.142

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.
@@ -1,4 +1,4 @@
1
- import { IIconProps } from '@evergis/ui';
1
+ import { IconProps } from '@evergis/icons';
2
2
  export declare const EvergisCardContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
3
3
  export declare const StickyHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
4
4
  export declare const CardHeader: import("styled-components").StyledComponent<"div", any, {}, never>;
@@ -16,11 +16,12 @@ export declare const AttributeValueContainer: import("styled-components").Styled
16
16
  export declare const SimpleAttribute: import("styled-components").StyledComponent<"div", any, {}, never>;
17
17
  export declare const ValueLink: import("styled-components").StyledComponent<"a", any, {}, never>;
18
18
  declare type CardIconProps = {
19
+ kind?: string;
19
20
  onClick?: () => void;
20
21
  };
21
- export declare const StatIcon: import("styled-components").StyledComponent<"span", any, IIconProps & CardIconProps, never>;
22
- export declare const ZoomIcon: import("styled-components").StyledComponent<"span", any, IIconProps & CardIconProps, never>;
23
- export declare const CloseIcon: import("styled-components").StyledComponent<"span", any, IIconProps & CardIconProps, never>;
24
- export declare const PrevIcon: import("styled-components").StyledComponent<"span", any, IIconProps & CardIconProps, never>;
25
- export declare const NextIcon: import("styled-components").StyledComponent<"span", any, IIconProps & CardIconProps, never>;
22
+ export declare const StatIcon: import("styled-components").StyledComponent<"i", any, IconProps & CardIconProps, never>;
23
+ export declare const ZoomIcon: import("styled-components").StyledComponent<"i", any, IconProps & CardIconProps, never>;
24
+ export declare const CloseIcon: import("styled-components").StyledComponent<"i", any, IconProps & CardIconProps, never>;
25
+ export declare const PrevIcon: import("styled-components").StyledComponent<"i", any, IconProps & CardIconProps, never>;
26
+ export declare const NextIcon: import("styled-components").StyledComponent<"i", any, IconProps & CardIconProps, never>;
26
27
  export {};
@@ -6,11 +6,11 @@ export declare type MapControlsProps = {
6
6
  declare type MapControlBtnProps = {
7
7
  onClick?: () => void;
8
8
  };
9
- export declare const ZoomInBtn: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps & MapControlBtnProps, never>;
10
- export declare const ZoomOutBtn: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps & MapControlBtnProps, never>;
11
- export declare const SearchBtn: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps & MapControlBtnProps, never>;
12
- export declare const FullscreenBtn: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps & MapControlBtnProps, never>;
13
- export declare const MeasureBtn: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps & MapControlBtnProps, never>;
9
+ export declare const ZoomInBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
10
+ export declare const ZoomOutBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
11
+ export declare const SearchBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
12
+ export declare const FullscreenBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
13
+ export declare const MeasureBtn: import("styled-components").StyledComponent<"i", any, import("@evergis/icons").IconProps & MapControlBtnProps, never>;
14
14
  export declare const MapControl: import("styled-components").StyledComponent<"div", any, {}, never>;
15
15
  export declare const MapControls: import("styled-components").StyledComponent<"div", any, MapControlsProps, never>;
16
16
  export {};
@@ -1,3 +1,2 @@
1
1
  export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
2
2
  export declare const InputField: import("styled-components").StyledComponent<"input", any, {}, never>;
3
- export declare const SearchPrefix: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps, never>;
@@ -30,4 +30,5 @@ export * from './useCrs';
30
30
  export * from './useDraggableMarker';
31
31
  export * from './useMetersToPixels';
32
32
  export * from './useDebouncedCallback';
33
+ export * from './useToggle';
33
34
  export * from './LayerProps';
@@ -0,0 +1 @@
1
+ export declare const useToggle: (initial?: boolean | undefined) => [boolean, VoidFunction, (value: boolean) => void];
package/dist/index.d.ts CHANGED
@@ -8,3 +8,4 @@ export * from './utils/format';
8
8
  export * from './utils/math';
9
9
  export * from './utils/metersToPixels';
10
10
  export * from './utils/polygonCircleFromPoint';
11
+ export * from './utils/isNumeric';
@@ -50,7 +50,7 @@ var PointEditor = require('@evergis/sgis/es/controls/PointEditor');
50
50
  var utils = require('@evergis/sgis/es/utils/utils');
51
51
  var styled = require('styled-components');
52
52
  var styled__default = _interopDefault(styled);
53
- var ui = require('@evergis/ui');
53
+ var icons = require('@evergis/icons');
54
54
  var punycode = _interopDefault(require('punycode'));
55
55
  var TileLayer$1 = require('@evergis/sgis/es/layers/TileLayer');
56
56
 
@@ -1945,6 +1945,8 @@ const polygonCircleFromPoint = (center, diameter) => {
1945
1945
  return [coordinates];
1946
1946
  };
1947
1947
 
1948
+ const isNumeric = number => !isNaN(parseFloat(number)) && isFinite(number);
1949
+
1948
1950
  let CircleLineMiterRender = /*#__PURE__*/function (_LineMiterRender) {
1949
1951
  _inherits(CircleLineMiterRender, _LineMiterRender);
1950
1952
 
@@ -4378,6 +4380,12 @@ const useDebouncedCallback = interval => {
4378
4380
  }, interval), [interval]);
4379
4381
  };
4380
4382
 
4383
+ const useToggle = initial => {
4384
+ const [state, setState] = React.useState(initial !== undefined ? initial : false);
4385
+ const toggle = React.useCallback(() => setState(!state), [state]);
4386
+ return [state, toggle, setState];
4387
+ };
4388
+
4381
4389
  const Symbol = _ref => {
4382
4390
  let {
4383
4391
  symbol,
@@ -4430,11 +4438,11 @@ const StyleSymbol = _ref => {
4430
4438
  };
4431
4439
 
4432
4440
  var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
4433
- const EvergisCardContainer = /*#__PURE__*/styled__default.div(_templateObject$1 || (_templateObject$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 2.25rem;\n right: 0.5rem;\n width: 22.5rem;\n margin-bottom: 1rem;\n max-height: 90%;\n min-height: 1rem;\n background: #fff;\n border-radius: 4px;\n z-index: 1;\n\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow: initial;\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);\n\n ", " {\n color: rgba(0, 0, 0, 0.65);\n cursor: pointer;\n user-select: none;\n\n &:hover {\n color: #1fb3aa;\n }\n }\n"])), ui.Icon);
4441
+ const EvergisCardContainer = /*#__PURE__*/styled__default.div(_templateObject$1 || (_templateObject$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n top: 2.25rem;\n right: 0.5rem;\n width: 22.5rem;\n margin-bottom: 1rem;\n max-height: 90%;\n min-height: 1rem;\n background: #fff;\n border-radius: 4px;\n z-index: 1;\n\n display: flex;\n flex-direction: column;\n flex-grow: 1;\n overflow: initial;\n box-shadow: 0 3px 10px 0 rgba(0, 0, 0, 0.15);\n\n ", " {\n color: rgba(0, 0, 0, 0.65);\n cursor: pointer;\n user-select: none;\n\n &:hover {\n color: #1fb3aa;\n }\n }\n"])), icons.Icon);
4434
4442
  const StickyHeader = /*#__PURE__*/styled__default.div(_templateObject2 || (_templateObject2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n position: sticky;\n top: 0;\n flex-direction: column;\n background: #fff;\n"])));
4435
4443
  const CardHeader = /*#__PURE__*/styled__default.div(_templateObject3 || (_templateObject3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n padding: 1.5rem 1.5rem 1rem;\n align-items: center;\n"])));
4436
4444
  const CardTitle = /*#__PURE__*/styled__default.div(_templateObject4 || (_templateObject4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n margin: 0 0.5rem;\n width: 13.5rem;\n flex-grow: 1;\n"])));
4437
- const CardControls = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n\n ", " {\n margin: 0 0.5rem;\n }\n"])), ui.Icon);
4445
+ const CardControls = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n\n ", " {\n margin: 0 0.5rem;\n }\n"])), icons.Icon);
4438
4446
  const FeatureName = /*#__PURE__*/styled__default.div(_templateObject6 || (_templateObject6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n font-size: 1.25rem;\n white-space: nowrap;\n overflow: hidden;\n text-overflow: ellipsis;\n"])));
4439
4447
  const LayerName = /*#__PURE__*/styled__default.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n"])));
4440
4448
  const CardPagination = /*#__PURE__*/styled__default.div(_templateObject8 || (_templateObject8 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n height: 2.5rem;\n padding: 0 1.5rem;\n align-items: center;\n font-size: 0.75rem;\n justify-content: space-between;\n background: linear-gradient(\n 0deg,\n rgba(161, 186, 208, 0.12),\n rgba(161, 186, 208, 0.12)\n );\n"])));
@@ -4442,16 +4450,16 @@ const PaginationDescription = /*#__PURE__*/styled__default.div(_templateObject9
4442
4450
  const CurrentFeatureIndex = /*#__PURE__*/styled__default.div(_templateObject10 || (_templateObject10 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: pointer;\n padding: 0 0.25rem;\n color: #1fb3aa;\n"])));
4443
4451
  const CardAttributes = /*#__PURE__*/styled__default.div(_templateObject11 || (_templateObject11 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 1rem 1.5rem;\n overflow-y: scroll;\n"])));
4444
4452
  const AttributeContainer = /*#__PURE__*/styled__default.div(_templateObject12 || (_templateObject12 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding-bottom: 0.5rem;\n"])));
4445
- const AttributeTitle = /*#__PURE__*/styled__default.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n margin: 0.25rem 0;\n"])));
4453
+ const AttributeTitle = /*#__PURE__*/styled__default.div(_templateObject13 || (_templateObject13 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin: 0.25rem 0;\n color: #30454f;\n font-size: 0.75rem;\n"])));
4446
4454
  const AttributeValueContainer = /*#__PURE__*/styled__default.div(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-wrap: wrap;\n display: flex;\n"])));
4447
4455
  const SimpleAttribute = /*#__PURE__*/styled__default.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
4448
4456
  const ValueLink = /*#__PURE__*/styled__default.a(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"])));
4449
4457
  const featureCardIconMixin = /*#__PURE__*/styled.css(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n"])));
4450
- const StatIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4451
- const ZoomIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4452
- const CloseIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4453
- const PrevIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4454
- const NextIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4458
+ const StatIcon = /*#__PURE__*/styled__default(icons.Icon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4459
+ const ZoomIcon = /*#__PURE__*/styled__default(icons.Icon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4460
+ const CloseIcon = /*#__PURE__*/styled__default(icons.Icon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4461
+ const PrevIcon = /*#__PURE__*/styled__default(icons.Icon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4462
+ const NextIcon = /*#__PURE__*/styled__default(icons.Icon)(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4455
4463
 
4456
4464
  const MailValue = _ref => {
4457
4465
  let {
@@ -4743,19 +4751,15 @@ const LegendSection = _ref => {
4743
4751
  return React__default.createElement(LegendSectionContainer, null, !hideTitle && React__default.createElement(LegendSectionHeader, null, renderLegendTitle ? renderLegendTitle(item) : item.title), item.values.map(children));
4744
4752
  };
4745
4753
 
4746
- var _templateObject$3, _templateObject2$2, _templateObject3$2;
4747
- const InputContainer = /*#__PURE__*/styled__default.div(_templateObject$3 || (_templateObject$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 0.125rem;\n box-sizing: border-box;\n border: 0.0625rem solid rgba(48, 69, 79, 0.12);\n margin-bottom: 0.5rem;\n"])));
4754
+ var _templateObject$3, _templateObject2$2;
4755
+ const InputContainer = /*#__PURE__*/styled__default.div(_templateObject$3 || (_templateObject$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: center;\n border-radius: 0.125rem;\n box-sizing: border-box;\n border: 0.0625rem solid rgba(48, 69, 79, 0.12);\n margin-bottom: 0.5rem;\n \n i {\n color: rgba(48, 69, 79, 0.54);\n padding: 0.25rem;\n\n &:hover {\n cursor: pointer;\n color: rgba(48, 69, 79, 0.87);\n }\n }\n"])));
4748
4756
  const InputField = /*#__PURE__*/styled__default.input(_templateObject2$2 || (_templateObject2$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 100%;\n border: none;\n outline: none;\n font-size: 1rem;\n line-height: 1.1875rem;\n padding: 0 0.5rem;\n background-color: transparent;\n color: rgba(48, 69, 79, 0.87);\n"])));
4749
- const SearchPrefix = /*#__PURE__*/styled__default(ui.Icon)(_templateObject3$2 || (_templateObject3$2 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: rgba(48, 69, 79, 0.54);\n padding: 0.25rem;\n\n &:hover {\n cursor: pointer;\n color: rgba(48, 69, 79, 0.87);\n }\n"])));
4750
- SearchPrefix.defaultProps = {
4751
- kind: "search"
4752
- };
4753
4757
 
4754
4758
  const SearchInput = _ref => {
4755
4759
  let {
4756
4760
  onChange
4757
4761
  } = _ref;
4758
- return React__default.createElement(InputContainer, null, React__default.createElement(SearchPrefix, null), React__default.createElement(InputField, {
4762
+ return React__default.createElement(InputContainer, null, React__default.createElement(icons.EverCloudSearchIcon, null), React__default.createElement(InputField, {
4759
4763
  onChange: onChange
4760
4764
  }));
4761
4765
  };
@@ -4905,13 +4909,13 @@ const Map = _ref => {
4905
4909
  }, children);
4906
4910
  };
4907
4911
 
4908
- var _templateObject$4, _templateObject2$3, _templateObject3$3, _templateObject4$2, _templateObject5$2;
4912
+ var _templateObject$4, _templateObject2$3, _templateObject3$2, _templateObject4$2, _templateObject5$2;
4909
4913
 
4910
4914
  const topLeft = distance => styled.css(_templateObject$4 || (_templateObject$4 = _taggedTemplateLiteralLoose(["\n top: ", ";\n left: ", ";\n"])), distance, distance);
4911
4915
 
4912
4916
  const topRight = distance => styled.css(_templateObject2$3 || (_templateObject2$3 = _taggedTemplateLiteralLoose(["\n top: ", ";\n right: ", ";\n"])), distance, distance);
4913
4917
 
4914
- const bottomLeft = distance => styled.css(_templateObject3$3 || (_templateObject3$3 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n left: ", ";\n"])), distance, distance);
4918
+ const bottomLeft = distance => styled.css(_templateObject3$2 || (_templateObject3$2 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n left: ", ";\n"])), distance, distance);
4915
4919
 
4916
4920
  const bottomRight = distance => styled.css(_templateObject4$2 || (_templateObject4$2 = _taggedTemplateLiteralLoose(["\n bottom: ", ";\n right: ", ";\n"])), distance, distance);
4917
4921
 
@@ -4927,29 +4931,19 @@ const placementMixin = function placementMixin(placement, distance) {
4927
4931
  return styled.css(_templateObject5$2 || (_templateObject5$2 = _taggedTemplateLiteralLoose(["\n ", "\n ", "\n ", "\n ", "\n"])), placement === 'top-left' && topLeft(distance), placement === 'top-right' && topRight(distance), placement === 'bottom-left' && bottomLeft(distance), placement === 'bottom-right' && bottomRight(distance));
4928
4932
  };
4929
4933
 
4930
- var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
4934
+ var _templateObject$5, _templateObject2$4, _templateObject3$3, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
4931
4935
  const mapControlBtnMixin = /*#__PURE__*/styled.css(_templateObject$5 || (_templateObject$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n width: 2rem;\n height: 2rem;\n display: flex;\n align-items: center;\n justify-content: center;\n cursor: pointer;\n color: #fff;\n"])));
4932
- const ZoomInBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject2$4 || (_templateObject2$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
4933
- ZoomInBtn.defaultProps = {
4934
- kind: "plus"
4935
- };
4936
- const ZoomOutBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
4937
- ZoomOutBtn.defaultProps = {
4938
- kind: "minus"
4939
- };
4940
- const SearchBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject4$3 || (_templateObject4$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
4941
- SearchBtn.defaultProps = {
4942
- kind: "search"
4943
- }; // TODO not exists in fonts
4944
-
4945
- const FullscreenBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
4946
- FullscreenBtn.defaultProps = {
4947
- kind: "maximize"
4948
- };
4949
- const MeasureBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
4950
- MeasureBtn.defaultProps = {
4951
- kind: "measure_length"
4952
- };
4936
+ const ZoomInBtn = /*#__PURE__*/styled__default(icons.Icon)(_templateObject2$4 || (_templateObject2$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin); // ZoomInBtn.defaultProps = { kind: "plus" };
4937
+
4938
+ const ZoomOutBtn = /*#__PURE__*/styled__default(icons.Icon)(_templateObject3$3 || (_templateObject3$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin); // ZoomOutBtn.defaultProps = { kind: "minus" };
4939
+
4940
+ const SearchBtn = /*#__PURE__*/styled__default(icons.Icon)(_templateObject4$3 || (_templateObject4$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin); // SearchBtn.defaultProps = { kind: "search" };
4941
+ // TODO not exists in fonts
4942
+
4943
+ const FullscreenBtn = /*#__PURE__*/styled__default(icons.Icon)(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin); // FullscreenBtn.defaultProps = { kind: "maximize" };
4944
+
4945
+ const MeasureBtn = /*#__PURE__*/styled__default(icons.Icon)(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin); // MeasureBtn.defaultProps = { kind: "measure_length" };
4946
+
4953
4947
  const MapControl = /*#__PURE__*/styled__default.div(_templateObject7$1 || (_templateObject7$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n border-radius: 0.15rem;\n background: rgba(28, 33, 48, 0.8);\n display: flex;\n align-items: center;\n justify-content: center;\n color: #fff;\n font-size: 1.5rem;\n cursor: pointer;\n height: auto;\n width: auto;\n padding: 0.25rem;\n"])));
4954
4948
  const MapControls = /*#__PURE__*/styled__default.div(_templateObject8$1 || (_templateObject8$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n position: absolute;\n display: flex;\n flex-direction: ", ";\n\n ", "\n\n ", " {\n margin-bottom: ", ";\n margin-right: ", ";\n flex-direction: ", ";\n }\n"])), _ref => {
4955
4949
  let {
@@ -4996,10 +4990,10 @@ const Fullscreen = () => {
4996
4990
  }));
4997
4991
  };
4998
4992
 
4999
- var _templateObject$6, _templateObject2$5, _templateObject3$5, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1;
4993
+ var _templateObject$6, _templateObject2$5, _templateObject3$4, _templateObject4$4, _templateObject5$4, _templateObject6$2, _templateObject7$2, _templateObject8$2, _templateObject9$1, _templateObject10$1, _templateObject11$1, _templateObject12$1, _templateObject13$1;
5000
4994
  const MapLegendControl = /*#__PURE__*/styled__default(MapControl)(_templateObject$6 || (_templateObject$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n cursor: default;\n"])));
5001
4995
  const MapLegendContainer = /*#__PURE__*/styled__default.div(_templateObject2$5 || (_templateObject2$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n flex-direction: column;\n justify-content: space-between;\n width: 12.5rem;\n box-sizing: border-box;\n\n canvas {\n height: 1.625rem;\n width: 1.625rem;\n }\n"])));
5002
- const MapLegendHeader = /*#__PURE__*/styled__default(LegendSectionHeader)(_templateObject3$5 || (_templateObject3$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-weight: 500;\n"])));
4996
+ const MapLegendHeader = /*#__PURE__*/styled__default(LegendSectionHeader)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n max-width: 15rem;\n margin-bottom: 0.25rem;\n font-weight: 500;\n"])));
5003
4997
  const MapLegendValueDescr = /*#__PURE__*/styled__default.div(_templateObject4$4 || (_templateObject4$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n margin-bottom: 0.25rem;\n font-size: 0.75rem;\n font-weight: 600;\n line-height: 1rem;\n"])));
5004
4998
  const MapLegendItem = /*#__PURE__*/styled__default.div(_templateObject5$4 || (_templateObject5$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex: 1;\n height: 1rem;\n background: ", ";\n border: 1px rgba(48, 69, 79, 0.1) solid;\n margin-right: -1px;\n \n ", "\n"])), _ref => {
5005
4999
  let {
@@ -5042,7 +5036,7 @@ const getValueFromLegendTitle = (title, minOrMax) => {
5042
5036
  return minOrMax === "min" ? result == null ? void 0 : result[0] : result == null ? void 0 : result[1];
5043
5037
  }
5044
5038
 
5045
- return (title == null ? void 0 : (_title$split = title.split(" ")) == null ? void 0 : _title$split.find(ui.isNumeric)) || "";
5039
+ return (title == null ? void 0 : (_title$split = title.split(" ")) == null ? void 0 : _title$split.find(isNumeric)) || "";
5046
5040
  };
5047
5041
 
5048
5042
  const MinimizedLegend = _ref => {
@@ -5074,7 +5068,7 @@ const MapLegend = _ref => {
5074
5068
  className
5075
5069
  } = _ref;
5076
5070
  const legend = useMapLegend(layer, config);
5077
- const [isExpanded, toggleExpanded] = ui.useToggle();
5071
+ const [isExpanded, toggleExpanded] = useToggle();
5078
5072
 
5079
5073
  if (!legend) {
5080
5074
  return null;
@@ -5331,7 +5325,7 @@ const Measurer = _ref => {
5331
5325
  }, props)) : null;
5332
5326
  };
5333
5327
 
5334
- var _templateObject$7, _templateObject2$6, _templateObject3$6;
5328
+ var _templateObject$7, _templateObject2$6, _templateObject3$5;
5335
5329
  const ScaleRulerContainer = /*#__PURE__*/styled__default.div(_templateObject$7 || (_templateObject$7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 2rem;\n cursor: default;\n display: flex;\n align-items: flex-end;\n padding: 0 0.5rem 0.5rem;\n box-sizing: border-box;\n"])));
5336
5330
  const ScaleRulerBlock = /*#__PURE__*/styled__default.div(_templateObject2$6 || (_templateObject2$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n align-items: flex-end;\n justify-content: center;\n width: ", ";\n height: 0.25rem;\n border: 0.0625rem solid white;\n border-top: 0;\n"])), _ref => {
5337
5331
  let {
@@ -5339,7 +5333,7 @@ const ScaleRulerBlock = /*#__PURE__*/styled__default.div(_templateObject2$6 || (
5339
5333
  } = _ref;
5340
5334
  return width + "px";
5341
5335
  });
5342
- const TextContainer = /*#__PURE__*/styled__default.div(_templateObject3$6 || (_templateObject3$6 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 2rem;\n display: flex;\n justify-content: center;\n align-items: ", ";\n width: ", ";\n color: #fff;\n font-size: 1rem;\n cursor: default;\n padding: 0 0.5rem;\n"])), _ref2 => {
5336
+ const TextContainer = /*#__PURE__*/styled__default.div(_templateObject3$5 || (_templateObject3$5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n height: 2rem;\n display: flex;\n justify-content: center;\n align-items: ", ";\n width: ", ";\n color: #fff;\n font-size: 1rem;\n cursor: default;\n padding: 0 0.5rem;\n"])), _ref2 => {
5343
5337
  let {
5344
5338
  alignEnd
5345
5339
  } = _ref2;
@@ -5392,13 +5386,13 @@ const ZoomLevel = () => {
5392
5386
  }, level || 0);
5393
5387
  };
5394
5388
 
5395
- var _templateObject$8, _templateObject2$7, _templateObject3$7, _templateObject4$5, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$2, _templateObject10$2, _templateObject11$2;
5389
+ var _templateObject$8, _templateObject2$7, _templateObject3$6, _templateObject4$5, _templateObject5$5, _templateObject6$3, _templateObject7$3, _templateObject8$3, _templateObject9$2, _templateObject10$2, _templateObject11$2;
5396
5390
 
5397
5391
  const cornerBottom = cornerSize => styled.css(_templateObject$8 || (_templateObject$8 = _taggedTemplateLiteralLoose(["\n &:before {\n left: 50%;\n transform: translate(-50%, 100%);\n bottom: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-top: ", " solid rgba(28, 33, 48, 0.8);\n }\n"])), cornerSize, cornerSize, cornerSize);
5398
5392
 
5399
5393
  const cornerLeft = cornerSize => styled.css(_templateObject2$7 || (_templateObject2$7 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(-100%, -50%);\n left: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-right: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"])), cornerSize, cornerSize, cornerSize);
5400
5394
 
5401
- const cornerRight = cornerSize => styled.css(_templateObject3$7 || (_templateObject3$7 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(100%, -50%);\n right: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-left: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"])), cornerSize, cornerSize, cornerSize);
5395
+ const cornerRight = cornerSize => styled.css(_templateObject3$6 || (_templateObject3$6 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(100%, -50%);\n right: 0;\n top: 50%;\n border-top: ", " solid transparent;\n border-left: ", " solid rgba(28, 33, 48, 0.8);\n border-bottom: ", " solid transparent;\n }\n"])), cornerSize, cornerSize, cornerSize);
5402
5396
 
5403
5397
  const cornerTop = cornerSize => styled.css(_templateObject4$5 || (_templateObject4$5 = _taggedTemplateLiteralLoose(["\n &:before {\n transform: translate(-50%, -100%);\n left: 50%;\n top: 0;\n border-left: ", " solid transparent;\n border-right: ", " solid transparent;\n border-bottom: ", " solid rgba(28, 33, 48, 0.8);\n }\n"])), cornerSize, cornerSize, cornerSize);
5404
5398
 
@@ -5631,6 +5625,7 @@ exports.isImageSymbol = isImageSymbol;
5631
5625
  exports.isLabelSymbol = isLabelSymbol;
5632
5626
  exports.isMaskedImageSymbol = isMaskedImageSymbol;
5633
5627
  exports.isMiterExist = isMiterExist;
5628
+ exports.isNumeric = isNumeric;
5634
5629
  exports.isParameterByAttribute = isParameterByAttribute;
5635
5630
  exports.isParameterValueSimple = isParameterValueSimple;
5636
5631
  exports.isParameterValueSymbol = isParameterValueSymbol;
@@ -5726,6 +5721,7 @@ exports.useMount = useMount;
5726
5721
  exports.useProperty = useProperty;
5727
5722
  exports.useScale = useScale;
5728
5723
  exports.useSymbol = useSymbol;
5724
+ exports.useToggle = useToggle;
5729
5725
  exports.useTooltip = useTooltip;
5730
5726
  exports.useTooltipContext = useTooltipContext;
5731
5727
  exports.useUpdate = useUpdate;