@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.es.js CHANGED
@@ -4367,6 +4367,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
4367
4367
  mt: 1
4368
4368
  },
4369
4369
  children: rows.map(function (row, idx) {
4370
+ var _row$progress;
4370
4371
  return /*#__PURE__*/jsxs(Box, {
4371
4372
  sx: {
4372
4373
  display: "grid",
@@ -4431,7 +4432,7 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
4431
4432
  },
4432
4433
  children: /*#__PURE__*/jsx(LinearProgress, {
4433
4434
  variant: "determinate",
4434
- value: row.progress,
4435
+ value: Math.min(100, Math.max(0, (_row$progress = row.progress) !== null && _row$progress !== void 0 ? _row$progress : 0)),
4435
4436
  sx: {
4436
4437
  height: 8,
4437
4438
  borderRadius: 4,
@@ -8064,7 +8065,7 @@ var OrganicSection = function OrganicSection(_ref) {
8064
8065
  var donationsSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalDonations);
8065
8066
  var conversionSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.conversionRate);
8066
8067
  var revenueSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalRevenue);
8067
- var avgDonationSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.avdDonations);
8068
+ var avgDonationSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.avgDonations);
8068
8069
  var fallbackCategories = organicUsersSeries.categories.length ? organicUsersSeries.categories : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
8069
8070
  var growthCaption = function growthCaption(key) {
8070
8071
  return formatGrowth(growth[key], dateName);