@janiscommerce/ui-web 1.0.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -16144,7 +16144,7 @@
16144
16144
  className: "google-map-component__info-window",
16145
16145
  data: position,
16146
16146
  infoWindowHandles: infoWindowHandles
16147
- }, infoWindowContent()));
16147
+ }, infoWindowContent(markerData)));
16148
16148
  };
16149
16149
 
16150
16150
  var Marker$1 = /*#__PURE__*/React__default["default"].memo(Marker, function (prev, next) {
@@ -35771,7 +35771,11 @@
35771
35771
  };
35772
35772
 
35773
35773
  var isValidValue = function isValidValue(value) {
35774
- return !!value && isNumber(value) && value > 0;
35774
+ return isNumber(value) && value >= 0;
35775
+ };
35776
+
35777
+ var isValidMaxValue = function isValidMaxValue(maxValue) {
35778
+ return isNumber(maxValue) && maxValue > 0;
35775
35779
  };
35776
35780
 
35777
35781
  var ProgressBar = function ProgressBar(_ref) {
@@ -35786,7 +35790,7 @@
35786
35790
  height = _ref$height === void 0 ? 16 : _ref$height,
35787
35791
  _ref$color = _ref.color,
35788
35792
  color = _ref$color === void 0 ? 'blue' : _ref$color;
35789
- if (!isValidValue(value) || !isValidValue(maxValue) || value > maxValue) return null;
35793
+ if (!isValidValue(value) || !isValidMaxValue(maxValue) || value > maxValue) return null;
35790
35794
  var progress = Math.max(0, Math.min(maxValue, value));
35791
35795
  return /*#__PURE__*/React__default["default"].createElement(styled.Bar, {
35792
35796
  height: height,