@ammarkhalidfarooq/dashboard-package 0.6.97 → 0.6.99

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
@@ -1336,7 +1336,12 @@ var MetricCard$1 = function MetricCard(_ref) {
1336
1336
  width: 30,
1337
1337
  height: 30,
1338
1338
  bgcolor: warning ? "#FFF3CF" : error ? "#fee2e2" : "#EEF2FF",
1339
- color: warning ? "#B45309" : error ? "#ef4444" : "#4F46E5"
1339
+ color: warning ? "#B45309" : error ? "#ef4444" : "#4F46E5",
1340
+ p: 0.625,
1341
+ "& .MuiSvgIcon-root, & svg": {
1342
+ width: "100%",
1343
+ height: "100%"
1344
+ }
1340
1345
  }, avatarSx),
1341
1346
  children: icon
1342
1347
  })]
@@ -1719,7 +1724,7 @@ var THEME = {
1719
1724
  trendUpBg: "#D1FAE5",
1720
1725
  trendUpText: "#059669"
1721
1726
  };
1722
- var BULLET = " · ";
1727
+ var BULLET = " - ";
1723
1728
 
1724
1729
  // ─── Number helpers ───────────────────────────────────────────────────────────
1725
1730
  var d$ = function d$(v) {
@@ -3391,7 +3396,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
3391
3396
  var heroTrendText = revenueTrendText;
3392
3397
  var heroDetailText = [passThrough, "".concat(formatNumber(totalDonors), " donors"), "$".concat(formatNumber(Number(avgDonation).toFixed(2)), " avg"), "".concat(formatNumber(totalVisits), " visits")].join(BULLET);
3393
3398
  var formatMetricDetail = function formatMetricDetail(detail) {
3394
- return String(detail !== null && detail !== void 0 ? detail : "").replace(/\s-\s/g, BULLET);
3399
+ return String(detail !== null && detail !== void 0 ? detail : "").replace(/\s·\s/g, BULLET).replace(/\s-\s/g, BULLET);
3395
3400
  };
3396
3401
  var formatRoasTrend = function formatRoasTrend(trend) {
3397
3402
  return String(trend !== null && trend !== void 0 ? trend : "").replace(/x$/, "×");
@@ -3480,7 +3485,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
3480
3485
  title: "Total Donors",
3481
3486
  value: ((_metricByTitle$Total = metricByTitle["Total Donors"]) === null || _metricByTitle$Total === void 0 ? void 0 : _metricByTitle$Total.value) || "".concat(formatNumber(totalDonors)),
3482
3487
  trend: ((_metricByTitle$Total2 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total2 === void 0 ? void 0 : _metricByTitle$Total2.trend) || formatTrend((_growth$totalDonation = growth === null || growth === void 0 ? void 0 : growth.totalDonations) !== null && _growth$totalDonation !== void 0 ? _growth$totalDonation : 0),
3483
- detail: formatMetricDetail(((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new \xB7 ").concat(formatNumber(returningDonors), " returning"))
3488
+ detail: formatMetricDetail(((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new").concat(BULLET).concat(formatNumber(returningDonors), " returning"))
3484
3489
  }), /*#__PURE__*/jsx(MetricGridCard, {
3485
3490
  title: "Avg Donation",
3486
3491
  value: kpi$(avgDonation),
@@ -3497,7 +3502,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
3497
3502
  title: "ROAS",
3498
3503
  value: kpiRoas((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0),
3499
3504
  trend: formatRoasTrend(((_metricByTitle$ROAS = metricByTitle.ROAS) === null || _metricByTitle$ROAS === void 0 ? void 0 : _metricByTitle$ROAS.trend) || formatTrend((_apiData$roasCardPrev = apiData === null || apiData === void 0 ? void 0 : apiData.roasCardPrev) !== null && _apiData$roasCardPrev !== void 0 ? _apiData$roasCardPrev : 0, "x")),
3500
- detail: formatMetricDetail(((_metricByTitle$ROAS2 = metricByTitle.ROAS) === null || _metricByTitle$ROAS2 === void 0 ? void 0 : _metricByTitle$ROAS2.detail) || "".concat(d$Compact((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend \xB7 ").concat(d$Compact((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib."))
3505
+ detail: formatMetricDetail(((_metricByTitle$ROAS2 = metricByTitle.ROAS) === null || _metricByTitle$ROAS2 === void 0 ? void 0 : _metricByTitle$ROAS2.detail) || "".concat(d$Compact((_apiData$adSpend = apiData === null || apiData === void 0 ? void 0 : apiData.adSpend) !== null && _apiData$adSpend !== void 0 ? _apiData$adSpend : 0), " spend").concat(BULLET).concat(d$Compact((_apiData$attributedRe = apiData === null || apiData === void 0 ? void 0 : apiData.attributedRevenue) !== null && _apiData$attributedRe !== void 0 ? _apiData$attributedRe : 0), " attrib."))
3501
3506
  }), /*#__PURE__*/jsx(MetricGridCard, {
3502
3507
  title: "Conversion",
3503
3508
  value: kpiPct(convRate),