@evergis/react 2.0.52 → 2.0.55
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/dist/components/EvergisCard/styled.d.ts +6 -7
- package/dist/components/MapControls/styled.d.ts +5 -6
- package/dist/components/SearchInput/styled.d.ts +1 -2
- package/dist/react.cjs.development.js +51 -17
- package/dist/react.cjs.development.js.map +1 -1
- package/dist/react.cjs.production.min.js +1 -1
- package/dist/react.cjs.production.min.js.map +1 -1
- package/dist/react.esm.js +49 -15
- package/dist/react.esm.js.map +1 -1
- package/package.json +23 -20
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
import { IIconProps } from "@evergis/ui/dist/atoms/Icon/types";
|
|
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>;
|
|
@@ -17,11 +17,10 @@ export declare const SimpleAttribute: import("styled-components").StyledComponen
|
|
|
17
17
|
export declare const ValueLink: import("styled-components").StyledComponent<"a", any, {}, never>;
|
|
18
18
|
declare type CardIconProps = {
|
|
19
19
|
onClick?: () => void;
|
|
20
|
-
disabled?: boolean;
|
|
21
20
|
};
|
|
22
|
-
export declare const StatIcon: import("styled-components").StyledComponent<
|
|
23
|
-
export declare const ZoomIcon: import("styled-components").StyledComponent<
|
|
24
|
-
export declare const CloseIcon: import("styled-components").StyledComponent<
|
|
25
|
-
export declare const PrevIcon: import("styled-components").StyledComponent<
|
|
26
|
-
export declare const NextIcon: import("styled-components").StyledComponent<
|
|
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>;
|
|
27
26
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
import { Placement } from '../../ui/mixins/placementMixin';
|
|
3
2
|
export declare type MapControlsProps = {
|
|
4
3
|
placement?: Placement;
|
|
@@ -7,11 +6,11 @@ export declare type MapControlsProps = {
|
|
|
7
6
|
declare type MapControlBtnProps = {
|
|
8
7
|
onClick?: () => void;
|
|
9
8
|
};
|
|
10
|
-
export declare const ZoomInBtn: import("styled-components").StyledComponent<
|
|
11
|
-
export declare const ZoomOutBtn: import("styled-components").StyledComponent<
|
|
12
|
-
export declare const SearchBtn: import("styled-components").StyledComponent<
|
|
13
|
-
export declare const FullscreenBtn: import("styled-components").StyledComponent<
|
|
14
|
-
export declare const MeasureBtn: import("styled-components").StyledComponent<
|
|
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>;
|
|
15
14
|
export declare const MapControl: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
16
15
|
export declare const MapControls: import("styled-components").StyledComponent<"div", any, MapControlsProps, never>;
|
|
17
16
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
/// <reference types="react" />
|
|
2
1
|
export declare const InputContainer: import("styled-components").StyledComponent<"div", any, {}, never>;
|
|
3
2
|
export declare const InputField: import("styled-components").StyledComponent<"input", any, {}, never>;
|
|
4
|
-
export declare const SearchPrefix: import("styled-components").StyledComponent<
|
|
3
|
+
export declare const SearchPrefix: import("styled-components").StyledComponent<"span", any, import("@evergis/ui").IIconProps, never>;
|
|
@@ -45,7 +45,7 @@ var PointEditor = require('@evergis/sgis/es/controls/PointEditor');
|
|
|
45
45
|
var utils = require('@evergis/sgis/es/utils/utils');
|
|
46
46
|
var styled = require('styled-components');
|
|
47
47
|
var styled__default = _interopDefault(styled);
|
|
48
|
-
var
|
|
48
|
+
var ui = require('@evergis/ui');
|
|
49
49
|
var punycode = _interopDefault(require('punycode'));
|
|
50
50
|
var TileLayer$1 = require('@evergis/sgis/es/layers/TileLayer');
|
|
51
51
|
var PolylineControl = require('@evergis/sgis/es/controls/PolylineControl');
|
|
@@ -3966,12 +3966,12 @@ const StyleSymbol = (_ref) => {
|
|
|
3966
3966
|
}) : null));
|
|
3967
3967
|
};
|
|
3968
3968
|
|
|
3969
|
-
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21;
|
|
3970
|
-
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"])),
|
|
3969
|
+
var _templateObject$1, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11, _templateObject12, _templateObject13, _templateObject14, _templateObject15, _templateObject16, _templateObject17, _templateObject18, _templateObject19, _templateObject20, _templateObject21, _templateObject22;
|
|
3970
|
+
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);
|
|
3971
3971
|
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"])));
|
|
3972
3972
|
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"])));
|
|
3973
3973
|
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"])));
|
|
3974
|
-
const CardControls = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n\n ", " {\n margin: 0 0.5rem;\n }\n"])),
|
|
3974
|
+
const CardControls = /*#__PURE__*/styled__default.div(_templateObject5 || (_templateObject5 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n display: flex;\n\n ", " {\n margin: 0 0.5rem;\n }\n"])), ui.Icon);
|
|
3975
3975
|
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"])));
|
|
3976
3976
|
const LayerName = /*#__PURE__*/styled__default.div(_templateObject7 || (_templateObject7 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n font-size: 0.75rem;\n"])));
|
|
3977
3977
|
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"])));
|
|
@@ -3983,11 +3983,27 @@ const AttributeTitle = /*#__PURE__*/styled__default.div(_templateObject13 || (_t
|
|
|
3983
3983
|
const AttributeValueContainer = /*#__PURE__*/styled__default.div(_templateObject14 || (_templateObject14 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n flex-wrap: wrap;\n display: flex;\n"])));
|
|
3984
3984
|
const SimpleAttribute = /*#__PURE__*/styled__default.div(_templateObject15 || (_templateObject15 = /*#__PURE__*/_taggedTemplateLiteralLoose([""])));
|
|
3985
3985
|
const ValueLink = /*#__PURE__*/styled__default.a(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"])));
|
|
3986
|
-
const
|
|
3987
|
-
const
|
|
3988
|
-
|
|
3989
|
-
|
|
3990
|
-
|
|
3986
|
+
const featureCardIconMixin = /*#__PURE__*/styled.css(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n"])));
|
|
3987
|
+
const StatIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3988
|
+
StatIcon.defaultProps = {
|
|
3989
|
+
kind: "statistics"
|
|
3990
|
+
};
|
|
3991
|
+
const ZoomIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3992
|
+
ZoomIcon.defaultProps = {
|
|
3993
|
+
kind: "plus"
|
|
3994
|
+
};
|
|
3995
|
+
const CloseIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
3996
|
+
CloseIcon.defaultProps = {
|
|
3997
|
+
kind: "close"
|
|
3998
|
+
};
|
|
3999
|
+
const PrevIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
4000
|
+
PrevIcon.defaultProps = {
|
|
4001
|
+
kind: "prev"
|
|
4002
|
+
};
|
|
4003
|
+
const NextIcon = /*#__PURE__*/styled__default(ui.Icon)(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
|
|
4004
|
+
NextIcon.defaultProps = {
|
|
4005
|
+
kind: "next"
|
|
4006
|
+
};
|
|
3991
4007
|
|
|
3992
4008
|
const MailValue = (_ref) => {
|
|
3993
4009
|
let {
|
|
@@ -4276,7 +4292,10 @@ const LegendSection = (_ref) => {
|
|
|
4276
4292
|
var _templateObject$3, _templateObject2$2, _templateObject3$2;
|
|
4277
4293
|
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"])));
|
|
4278
4294
|
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"])));
|
|
4279
|
-
const SearchPrefix = /*#__PURE__*/styled__default(
|
|
4295
|
+
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"])));
|
|
4296
|
+
SearchPrefix.defaultProps = {
|
|
4297
|
+
kind: "search"
|
|
4298
|
+
};
|
|
4280
4299
|
|
|
4281
4300
|
const SearchInput = (_ref) => {
|
|
4282
4301
|
let {
|
|
@@ -4454,13 +4473,28 @@ const placementMixin = function placementMixin(placement, distance) {
|
|
|
4454
4473
|
};
|
|
4455
4474
|
|
|
4456
4475
|
var _templateObject$5, _templateObject2$4, _templateObject3$4, _templateObject4$3, _templateObject5$3, _templateObject6$1, _templateObject7$1, _templateObject8$1;
|
|
4457
|
-
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"])));
|
|
4458
|
-
const ZoomInBtn = /*#__PURE__*/styled__default(
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
const
|
|
4463
|
-
|
|
4476
|
+
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"])));
|
|
4477
|
+
const ZoomInBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject2$4 || (_templateObject2$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4478
|
+
ZoomInBtn.defaultProps = {
|
|
4479
|
+
kind: "plus"
|
|
4480
|
+
};
|
|
4481
|
+
const ZoomOutBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject3$4 || (_templateObject3$4 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4482
|
+
ZoomOutBtn.defaultProps = {
|
|
4483
|
+
kind: "minus"
|
|
4484
|
+
};
|
|
4485
|
+
const SearchBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject4$3 || (_templateObject4$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4486
|
+
SearchBtn.defaultProps = {
|
|
4487
|
+
kind: "search"
|
|
4488
|
+
}; // TODO not exists in fonts
|
|
4489
|
+
|
|
4490
|
+
const FullscreenBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject5$3 || (_templateObject5$3 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4491
|
+
FullscreenBtn.defaultProps = {
|
|
4492
|
+
kind: "maximize"
|
|
4493
|
+
};
|
|
4494
|
+
const MeasureBtn = /*#__PURE__*/styled__default(ui.Icon)(_templateObject6$1 || (_templateObject6$1 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), mapControlBtnMixin);
|
|
4495
|
+
MeasureBtn.defaultProps = {
|
|
4496
|
+
kind: "measure_length"
|
|
4497
|
+
};
|
|
4464
4498
|
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"])));
|
|
4465
4499
|
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) => {
|
|
4466
4500
|
let {
|