@ammarkhalidfarooq/dashboard-package 0.6.73 → 0.6.75
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 +5 -5
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +5 -5
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -1544,7 +1544,7 @@ var buildReportData = function buildReportData() {
|
|
|
1544
1544
|
var hero = {
|
|
1545
1545
|
value: "$".concat(formatNumber(totalRaised)),
|
|
1546
1546
|
trend: "".concat(formatTrend((_growth$totalRevenue = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue !== void 0 ? _growth$totalRevenue : 18), " vs pp"),
|
|
1547
|
-
detail: "".concat(passThrough, " \xB7 ").concat(formatNumber(totalDonors), " donors \xB7 $").concat(formatNumber(avgDonation), " avg \xB7 ").concat(formatNumber(totalVisits), " visits")
|
|
1547
|
+
detail: "".concat(passThrough, " \xB7 ").concat(formatNumber(totalDonors), " donors \xB7 $").concat(formatNumber(Number(avgDonation).toFixed(2)), " avg \xB7 ").concat(formatNumber(totalVisits), " visits")
|
|
1548
1548
|
};
|
|
1549
1549
|
var metrics = [{
|
|
1550
1550
|
title: "Net Raised",
|
|
@@ -3167,7 +3167,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3167
3167
|
title: "Active campaigns",
|
|
3168
3168
|
subtitle: "Live fundraisers ranked by velocity",
|
|
3169
3169
|
children: /*#__PURE__*/jsxRuntime.jsx(MiniTable, {
|
|
3170
|
-
head: ["
|
|
3170
|
+
head: ["Campaign", "Raised", "Progress", "Donors", "Avg Gift"],
|
|
3171
3171
|
colAlign: ["left", "right", "left", "right", "right"],
|
|
3172
3172
|
rows: activeCampaigns.map(function (c, i) {
|
|
3173
3173
|
return [c.name, c.val1, /*#__PURE__*/jsxRuntime.jsx(ProgressBar, {
|
|
@@ -3337,7 +3337,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3337
3337
|
color: "#6B7280",
|
|
3338
3338
|
marginBottom: 2
|
|
3339
3339
|
},
|
|
3340
|
-
children: "
|
|
3340
|
+
children: "Refunds"
|
|
3341
3341
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3342
3342
|
style: {
|
|
3343
3343
|
fontSize: 15,
|
|
@@ -3367,7 +3367,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3367
3367
|
color: "#6B7280",
|
|
3368
3368
|
marginBottom: 2
|
|
3369
3369
|
},
|
|
3370
|
-
children: "
|
|
3370
|
+
children: "Chargebacks"
|
|
3371
3371
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
3372
3372
|
style: {
|
|
3373
3373
|
fontSize: 15,
|
|
@@ -3403,7 +3403,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
|
|
|
3403
3403
|
title: "Traffic source",
|
|
3404
3404
|
subtitle: "Revenue by channel \xB7 ".concat(daysLabel),
|
|
3405
3405
|
children: /*#__PURE__*/jsxRuntime.jsx(MiniTable, {
|
|
3406
|
-
head: ["
|
|
3406
|
+
head: ["Source", "Revenue", "Share"],
|
|
3407
3407
|
rows: [].concat(_toConsumableArray(trafficItems.map(function (t) {
|
|
3408
3408
|
return [t.source || t.name || "-", d$(t.revenue || t.raised || 0), "".concat(formatNumber(t.share || t.percentage || 0), "%")];
|
|
3409
3409
|
})), [["Total", d$(trafficTotal), ""]])
|