@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.es.js CHANGED
@@ -1542,7 +1542,7 @@ var buildReportData = function buildReportData() {
1542
1542
  var hero = {
1543
1543
  value: "$".concat(formatNumber(totalRaised)),
1544
1544
  trend: "".concat(formatTrend((_growth$totalRevenue = growth === null || growth === void 0 ? void 0 : growth.totalRevenue) !== null && _growth$totalRevenue !== void 0 ? _growth$totalRevenue : 18), " vs pp"),
1545
- detail: "".concat(passThrough, " \xB7 ").concat(formatNumber(totalDonors), " donors \xB7 $").concat(formatNumber(avgDonation), " avg \xB7 ").concat(formatNumber(totalVisits), " visits")
1545
+ detail: "".concat(passThrough, " \xB7 ").concat(formatNumber(totalDonors), " donors \xB7 $").concat(formatNumber(Number(avgDonation).toFixed(2)), " avg \xB7 ").concat(formatNumber(totalVisits), " visits")
1546
1546
  };
1547
1547
  var metrics = [{
1548
1548
  title: "Net Raised",
@@ -3165,7 +3165,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3165
3165
  title: "Active campaigns",
3166
3166
  subtitle: "Live fundraisers ranked by velocity",
3167
3167
  children: /*#__PURE__*/jsx(MiniTable, {
3168
- head: ["CAMPAIGN", "RAISED", "PROGRESS", "DONORS", "AVG GIFT"],
3168
+ head: ["Campaign", "Raised", "Progress", "Donors", "Avg Gift"],
3169
3169
  colAlign: ["left", "right", "left", "right", "right"],
3170
3170
  rows: activeCampaigns.map(function (c, i) {
3171
3171
  return [c.name, c.val1, /*#__PURE__*/jsx(ProgressBar, {
@@ -3335,7 +3335,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3335
3335
  color: "#6B7280",
3336
3336
  marginBottom: 2
3337
3337
  },
3338
- children: "REFUNDS"
3338
+ children: "Refunds"
3339
3339
  }), /*#__PURE__*/jsx("div", {
3340
3340
  style: {
3341
3341
  fontSize: 15,
@@ -3365,7 +3365,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3365
3365
  color: "#6B7280",
3366
3366
  marginBottom: 2
3367
3367
  },
3368
- children: "CHARGEBACKS"
3368
+ children: "Chargebacks"
3369
3369
  }), /*#__PURE__*/jsx("div", {
3370
3370
  style: {
3371
3371
  fontSize: 15,
@@ -3401,7 +3401,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref14, ref) {
3401
3401
  title: "Traffic source",
3402
3402
  subtitle: "Revenue by channel \xB7 ".concat(daysLabel),
3403
3403
  children: /*#__PURE__*/jsx(MiniTable, {
3404
- head: ["SOURCE", "REVENUE", "SHARE"],
3404
+ head: ["Source", "Revenue", "Share"],
3405
3405
  rows: [].concat(_toConsumableArray(trafficItems.map(function (t) {
3406
3406
  return [t.source || t.name || "-", d$(t.revenue || t.raised || 0), "".concat(formatNumber(t.share || t.percentage || 0), "%")];
3407
3407
  })), [["Total", d$(trafficTotal), ""]])