@ammarkhalidfarooq/dashboard-package 0.6.97 → 0.6.98

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
@@ -1719,7 +1719,7 @@ var THEME = {
1719
1719
  trendUpBg: "#D1FAE5",
1720
1720
  trendUpText: "#059669"
1721
1721
  };
1722
- var BULLET = " · ";
1722
+ var BULLET = " - ";
1723
1723
 
1724
1724
  // ─── Number helpers ───────────────────────────────────────────────────────────
1725
1725
  var d$ = function d$(v) {
@@ -3391,7 +3391,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
3391
3391
  var heroTrendText = revenueTrendText;
3392
3392
  var heroDetailText = [passThrough, "".concat(formatNumber(totalDonors), " donors"), "$".concat(formatNumber(Number(avgDonation).toFixed(2)), " avg"), "".concat(formatNumber(totalVisits), " visits")].join(BULLET);
3393
3393
  var formatMetricDetail = function formatMetricDetail(detail) {
3394
- return String(detail !== null && detail !== void 0 ? detail : "").replace(/\s-\s/g, BULLET);
3394
+ return String(detail !== null && detail !== void 0 ? detail : "").replace(/\s·\s/g, BULLET).replace(/\s-\s/g, BULLET);
3395
3395
  };
3396
3396
  var formatRoasTrend = function formatRoasTrend(trend) {
3397
3397
  return String(trend !== null && trend !== void 0 ? trend : "").replace(/x$/, "×");
@@ -3480,7 +3480,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
3480
3480
  title: "Total Donors",
3481
3481
  value: ((_metricByTitle$Total = metricByTitle["Total Donors"]) === null || _metricByTitle$Total === void 0 ? void 0 : _metricByTitle$Total.value) || "".concat(formatNumber(totalDonors)),
3482
3482
  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"))
3483
+ 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
3484
  }), /*#__PURE__*/jsx(MetricGridCard, {
3485
3485
  title: "Avg Donation",
3486
3486
  value: kpi$(avgDonation),
@@ -3497,7 +3497,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
3497
3497
  title: "ROAS",
3498
3498
  value: kpiRoas((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0),
3499
3499
  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."))
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").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
3501
  }), /*#__PURE__*/jsx(MetricGridCard, {
3502
3502
  title: "Conversion",
3503
3503
  value: kpiPct(convRate),