@ammarkhalidfarooq/dashboard-package 0.6.60 → 0.6.61

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.cjs.js CHANGED
@@ -2088,7 +2088,8 @@ var ProgressBar = function ProgressBar(_ref9) {
2088
2088
  color = _ref9$color === void 0 ? "rgb(99, 99, 230)" : _ref9$color,
2089
2089
  _ref9$height = _ref9.height,
2090
2090
  height = _ref9$height === void 0 ? 6 : _ref9$height;
2091
- var pct = Math.min(100, Math.max(0, Number(value !== null && value !== void 0 ? value : 0)));
2091
+ var pct = Math.max(0, Number(value !== null && value !== void 0 ? value : 0));
2092
+ var barWidth = Math.min(100, pct);
2092
2093
  return /*#__PURE__*/jsxRuntime.jsxs("div", {
2093
2094
  style: {
2094
2095
  display: "flex",
@@ -2110,7 +2111,7 @@ var ProgressBar = function ProgressBar(_ref9) {
2110
2111
  },
2111
2112
  children: /*#__PURE__*/jsxRuntime.jsx("div", {
2112
2113
  style: {
2113
- width: "".concat(pct, "%"),
2114
+ width: "".concat(barWidth, "%"),
2114
2115
  height: "100%",
2115
2116
  background: color,
2116
2117
  borderRadius: 4