@ammarkhalidfarooq/dashboard-package 0.5.22 → 0.5.24

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
@@ -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,
@@ -8066,7 +8067,7 @@ var OrganicSection = function OrganicSection(_ref) {
8066
8067
  var donationsSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalDonations);
8067
8068
  var conversionSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.conversionRate);
8068
8069
  var revenueSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalRevenue);
8069
- var avgDonationSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.avdDonations);
8070
+ var avgDonationSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.avgDonations);
8070
8071
  var fallbackCategories = organicUsersSeries.categories.length ? organicUsersSeries.categories : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
8071
8072
  var growthCaption = function growthCaption(key) {
8072
8073
  return formatGrowth(growth[key], dateName);