@evergis/react 2.0.56 → 2.0.59

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/react.esm.js CHANGED
@@ -3051,7 +3051,7 @@ function useSymbol(_ref, canvasRef) {
3051
3051
  maxWidth
3052
3052
  } = _ref;
3053
3053
  useEffect(() => {
3054
- if (canvasRef.current !== null) {
3054
+ if (canvasRef.current !== null && symbol !== undefined) {
3055
3055
  const canvas = canvasRef.current;
3056
3056
  setCanvasSize(canvas, size, maxWidth);
3057
3057
  render(symbol, size).then(renders => {
@@ -3983,25 +3983,10 @@ const SimpleAttribute = /*#__PURE__*/styled.div(_templateObject15 || (_templateO
3983
3983
  const ValueLink = /*#__PURE__*/styled.a(_templateObject16 || (_templateObject16 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n padding: 0 0.25rem;\n color: #1fb3aa;\n text-decoration: none;\n"])));
3984
3984
  const featureCardIconMixin = /*#__PURE__*/css(_templateObject17 || (_templateObject17 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n color: #30454f;\n"])));
3985
3985
  const StatIcon = /*#__PURE__*/styled(Icon)(_templateObject18 || (_templateObject18 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
3986
- StatIcon.defaultProps = {
3987
- kind: "statistics"
3988
- };
3989
3986
  const ZoomIcon = /*#__PURE__*/styled(Icon)(_templateObject19 || (_templateObject19 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
3990
- ZoomIcon.defaultProps = {
3991
- kind: "plus"
3992
- };
3993
3987
  const CloseIcon = /*#__PURE__*/styled(Icon)(_templateObject20 || (_templateObject20 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
3994
- CloseIcon.defaultProps = {
3995
- kind: "close"
3996
- };
3997
3988
  const PrevIcon = /*#__PURE__*/styled(Icon)(_templateObject21 || (_templateObject21 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
3998
- PrevIcon.defaultProps = {
3999
- kind: "prev"
4000
- };
4001
3989
  const NextIcon = /*#__PURE__*/styled(Icon)(_templateObject22 || (_templateObject22 = /*#__PURE__*/_taggedTemplateLiteralLoose(["\n ", "\n"])), featureCardIconMixin);
4002
- NextIcon.defaultProps = {
4003
- kind: "next"
4004
- };
4005
3990
 
4006
3991
  const MailValue = (_ref) => {
4007
3992
  let {
@@ -4126,16 +4111,21 @@ const StyledCard = (_ref) => {
4126
4111
  }), React.createElement(CardTitle, null, React.createElement(FeatureName, {
4127
4112
  title: feature.displayName || ''
4128
4113
  }, feature.displayName), React.createElement(LayerName, null, feature.layerAlias)), React.createElement(CardControls, null, onStatistics && React.createElement(StatIcon, {
4114
+ kind: "statistics",
4129
4115
  onClick: () => onStatistics(feature)
4130
4116
  }), !hideZoom && React.createElement(ZoomIcon, {
4117
+ kind: "zoom_to",
4131
4118
  onClick: zoom
4132
4119
  }), React.createElement(CloseIcon, {
4120
+ kind: "close",
4133
4121
  onClick: reset
4134
4122
  }))), features.length > 1 ? React.createElement(CardPagination, null, React.createElement(PrevIcon, {
4123
+ kind: "prev",
4135
4124
  onClick: prev
4136
4125
  }), React.createElement(PaginationDescription, null, React.createElement(CurrentFeatureIndex, {
4137
4126
  onClick: zoom
4138
4127
  }, current + 1), "\u043E\u0431\u044A\u0435\u043A\u0442 \u0438\u0437 ", features.length), React.createElement(NextIcon, {
4128
+ kind: "next",
4139
4129
  onClick: next
4140
4130
  })) : null, headerExtra), React.createElement(CardAttributes, null, feature.attributes && (typeof onAttributes === 'function' ? onAttributes(feature.attributes) : feature.attributes).map(attribute => {
4141
4131
  return attribute.render || React.createElement(EvergisCardAttribute, {