@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.cjs.js +4 -4
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +4 -4
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1721,7 +1721,7 @@ var THEME = {
|
|
|
1721
1721
|
trendUpBg: "#D1FAE5",
|
|
1722
1722
|
trendUpText: "#059669"
|
|
1723
1723
|
};
|
|
1724
|
-
var BULLET = "
|
|
1724
|
+
var BULLET = " - ";
|
|
1725
1725
|
|
|
1726
1726
|
// ─── Number helpers ───────────────────────────────────────────────────────────
|
|
1727
1727
|
var d$ = function d$(v) {
|
|
@@ -3393,7 +3393,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
|
|
|
3393
3393
|
var heroTrendText = revenueTrendText;
|
|
3394
3394
|
var heroDetailText = [passThrough, "".concat(formatNumber(totalDonors), " donors"), "$".concat(formatNumber(Number(avgDonation).toFixed(2)), " avg"), "".concat(formatNumber(totalVisits), " visits")].join(BULLET);
|
|
3395
3395
|
var formatMetricDetail = function formatMetricDetail(detail) {
|
|
3396
|
-
return String(detail !== null && detail !== void 0 ? detail : "").replace(/\s-\s/g, BULLET);
|
|
3396
|
+
return String(detail !== null && detail !== void 0 ? detail : "").replace(/\s·\s/g, BULLET).replace(/\s-\s/g, BULLET);
|
|
3397
3397
|
};
|
|
3398
3398
|
var formatRoasTrend = function formatRoasTrend(trend) {
|
|
3399
3399
|
return String(trend !== null && trend !== void 0 ? trend : "").replace(/x$/, "×");
|
|
@@ -3482,7 +3482,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
|
|
|
3482
3482
|
title: "Total Donors",
|
|
3483
3483
|
value: ((_metricByTitle$Total = metricByTitle["Total Donors"]) === null || _metricByTitle$Total === void 0 ? void 0 : _metricByTitle$Total.value) || "".concat(formatNumber(totalDonors)),
|
|
3484
3484
|
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),
|
|
3485
|
-
detail: formatMetricDetail(((_metricByTitle$Total3 = metricByTitle["Total Donors"]) === null || _metricByTitle$Total3 === void 0 ? void 0 : _metricByTitle$Total3.detail) || "".concat(formatNumber(newDonors), " new
|
|
3485
|
+
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"))
|
|
3486
3486
|
}), /*#__PURE__*/jsxRuntime.jsx(MetricGridCard, {
|
|
3487
3487
|
title: "Avg Donation",
|
|
3488
3488
|
value: kpi$(avgDonation),
|
|
@@ -3499,7 +3499,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref34, ref) {
|
|
|
3499
3499
|
title: "ROAS",
|
|
3500
3500
|
value: kpiRoas((_apiData$roasCard = apiData === null || apiData === void 0 ? void 0 : apiData.roasCard) !== null && _apiData$roasCard !== void 0 ? _apiData$roasCard : 0),
|
|
3501
3501
|
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")),
|
|
3502
|
-
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
|
|
3502
|
+
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."))
|
|
3503
3503
|
}), /*#__PURE__*/jsxRuntime.jsx(MetricGridCard, {
|
|
3504
3504
|
title: "Conversion",
|
|
3505
3505
|
value: kpiPct(convRate),
|