@ammarkhalidfarooq/dashboard-package 0.5.23 → 0.5.25
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 +3 -2
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +3 -2
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4369,6 +4369,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4369
4369
|
mt: 1
|
|
4370
4370
|
},
|
|
4371
4371
|
children: rows.map(function (row, idx) {
|
|
4372
|
+
var _row$progress;
|
|
4372
4373
|
return /*#__PURE__*/jsxRuntime.jsxs(material.Box, {
|
|
4373
4374
|
sx: {
|
|
4374
4375
|
display: "grid",
|
|
@@ -4433,7 +4434,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
4433
4434
|
},
|
|
4434
4435
|
children: /*#__PURE__*/jsxRuntime.jsx(material.LinearProgress, {
|
|
4435
4436
|
variant: "determinate",
|
|
4436
|
-
value: row.progress,
|
|
4437
|
+
value: Math.min(100, Math.max(0, (_row$progress = row.progress) !== null && _row$progress !== void 0 ? _row$progress : 0)),
|
|
4437
4438
|
sx: {
|
|
4438
4439
|
height: 8,
|
|
4439
4440
|
borderRadius: 4,
|
|
@@ -5156,7 +5157,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
5156
5157
|
fontWeight: 700,
|
|
5157
5158
|
color: "#000"
|
|
5158
5159
|
},
|
|
5159
|
-
children: "
|
|
5160
|
+
children: "".concat(formatNumber(m.value))
|
|
5160
5161
|
})]
|
|
5161
5162
|
}, idx);
|
|
5162
5163
|
})
|