@ammarkhalidfarooq/dashboard-package 0.6.42 → 0.6.44

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 CHANGED
@@ -6368,7 +6368,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6368
6368
  color: "#10B981"
6369
6369
  }],
6370
6370
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
6371
- bottomSummaryTrend: "".concat(donorMixPrev, "% vs previous period"),
6371
+ bottomSummaryTrend: "".concat(donorMixPrev, "% vs pp"),
6372
6372
  sx: {
6373
6373
  width: "100%"
6374
6374
  }
@@ -6422,7 +6422,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6422
6422
  color: "#10B981"
6423
6423
  }],
6424
6424
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
6425
- bottomSummaryTrend: "".concat(donorMixPrev, "% vs previous period"),
6425
+ bottomSummaryTrend: "".concat(donorMixPrev, "% vs pp"),
6426
6426
  sx: {
6427
6427
  width: "100%"
6428
6428
  }
@@ -6452,7 +6452,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6452
6452
  title: "Order Bump",
6453
6453
  subtitle: "Revenue trend \xB7 last ".concat(daysLabel),
6454
6454
  value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalRevenue) || 0)),
6455
- trend: "".concat((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) || 0).toFixed(1), "% vs previous period"),
6455
+ trend: "".concat((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.growthPercentage) || 0).toFixed(1), "% vs pp"),
6456
6456
  chartData: (orderBumpData === null || orderBumpData === void 0 || (_orderBumpData$chart = orderBumpData.chart) === null || _orderBumpData$chart === void 0 ? void 0 : _orderBumpData$chart.map(function (item) {
6457
6457
  return {
6458
6458
  label: item.label,
@@ -6494,7 +6494,7 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
6494
6494
  title: "Referrals",
6495
6495
  subtitle: "Revenue trend \xB7 last ".concat(daysLabel),
6496
6496
  value: "$".concat(formatNumber((referralData === null || referralData === void 0 ? void 0 : referralData.totalRevenue) || 0)),
6497
- trend: "".concat((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) || 0).toFixed(1), "% vs previous period"),
6497
+ trend: "".concat((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) >= 0 ? "▲" : "▼", " ").concat(Math.abs((referralData === null || referralData === void 0 ? void 0 : referralData.growthPercentage) || 0).toFixed(1), "% vs pp"),
6498
6498
  chartData: (referralData === null || referralData === void 0 || (_referralData$chartDa = referralData.chartData) === null || _referralData$chartDa === void 0 ? void 0 : _referralData$chartDa.map(function (item) {
6499
6499
  return {
6500
6500
  label: item.date,
@@ -17514,7 +17514,7 @@ var PaidSection$1 = /*#__PURE__*/Object.freeze({
17514
17514
  });
17515
17515
 
17516
17516
  var formatGrowth$1 = function formatGrowth(value, dateName) {
17517
- return "".concat(Number(value !== null && value !== void 0 ? value : 0).toFixed(2), "% vs previous period");
17517
+ return "".concat(Number(value !== null && value !== void 0 ? value : 0).toFixed(2), "% vs pp");
17518
17518
  };
17519
17519
  var mapTimeSeries$1 = function mapTimeSeries(series) {
17520
17520
  if (!Array.isArray(series) || series.length === 0) {
@@ -17565,7 +17565,7 @@ var OrganicSection = function OrganicSection(_ref) {
17565
17565
  return {
17566
17566
  "Organic Users": {
17567
17567
  value: "".concat(formatNumber(8420)),
17568
- subValue: "18% vs previous period",
17568
+ subValue: "18% vs pp",
17569
17569
  data: [3200, 4100, 2800, 5600, 4200, 6100, 7500],
17570
17570
  categories: fallbackCategories,
17571
17571
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PeopleAltOutlined, {}),
@@ -17585,7 +17585,7 @@ var OrganicSection = function OrganicSection(_ref) {
17585
17585
  },
17586
17586
  Donations: {
17587
17587
  value: "".concat(formatNumber(420)),
17588
- subValue: "18% vs previous period",
17588
+ subValue: "18% vs pp",
17589
17589
  data: [15, 22, 18, 30, 25, 35, 42],
17590
17590
  categories: fallbackCategories,
17591
17591
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.FavoriteOutlined, {}),
@@ -17595,7 +17595,7 @@ var OrganicSection = function OrganicSection(_ref) {
17595
17595
  },
17596
17596
  "Conversion Rate": {
17597
17597
  value: "3.1%",
17598
- subValue: "8.4% vs previous period",
17598
+ subValue: "8.4% vs pp",
17599
17599
  data: [2.5, 2.7, 2.6, 3.1, 3.0, 2.9, 3.1],
17600
17600
  categories: fallbackCategories,
17601
17601
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Adjust, {}),
@@ -17605,7 +17605,7 @@ var OrganicSection = function OrganicSection(_ref) {
17605
17605
  },
17606
17606
  "Revenue raised": {
17607
17607
  value: "$".concat(formatNumber(240398)),
17608
- subValue: "0.4x vs previous period",
17608
+ subValue: "0.4x vs pp",
17609
17609
  data: [2.5, 3.1, 2.8, 4.2, 3.8, 4.5, 5.2],
17610
17610
  categories: fallbackCategories,
17611
17611
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
@@ -17615,7 +17615,7 @@ var OrganicSection = function OrganicSection(_ref) {
17615
17615
  },
17616
17616
  "Avg donation": {
17617
17617
  value: "$".concat(formatNumber(130.58)),
17618
- subValue: "18% vs previous period",
17618
+ subValue: "18% vs pp",
17619
17619
  data: [110, 125, 120, 135, 130, 128, 130.58],
17620
17620
  categories: fallbackCategories,
17621
17621
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
@@ -17798,7 +17798,8 @@ var OrganicSection = function OrganicSection(_ref) {
17798
17798
  value: selectedInfo.value,
17799
17799
  trend: selectedInfo.subValue,
17800
17800
  data: selectedInfo.data,
17801
- categories: chartCategories
17801
+ categories: chartCategories,
17802
+ hideControls: true
17802
17803
  };
17803
17804
  if (apiLoading) {
17804
17805
  return /*#__PURE__*/jsxRuntime.jsx(OrganicSectionSkeleton, {});
@@ -18205,7 +18206,7 @@ var EmailTrendCard = function EmailTrendCard(_ref) {
18205
18206
  };
18206
18207
 
18207
18208
  var formatGrowth = function formatGrowth(value, dateName) {
18208
- return "".concat(Number(value !== null && value !== void 0 ? value : 0).toFixed(2), "% vs previous period");
18209
+ return "".concat(Number(value !== null && value !== void 0 ? value : 0).toFixed(2), "% vs pp");
18209
18210
  };
18210
18211
  var mapTimeSeries = function mapTimeSeries(series) {
18211
18212
  if (!Array.isArray(series) || series.length === 0) {
@@ -18279,7 +18280,7 @@ var EmailSection = function EmailSection(_ref) {
18279
18280
  return {
18280
18281
  "Total raised": {
18281
18282
  value: "$".concat(formatNumber(48920)),
18282
- subValue: "12% vs previous period",
18283
+ subValue: "12% vs pp",
18283
18284
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
18284
18285
  money: true,
18285
18286
  error: false,
@@ -18287,7 +18288,7 @@ var EmailSection = function EmailSection(_ref) {
18287
18288
  },
18288
18289
  Donations: {
18289
18290
  value: "62",
18290
- subValue: "12% vs previous period",
18291
+ subValue: "12% vs pp",
18291
18292
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.FavoriteOutlined, {}),
18292
18293
  money: false,
18293
18294
  error: false,
@@ -18295,7 +18296,7 @@ var EmailSection = function EmailSection(_ref) {
18295
18296
  },
18296
18297
  "Conversion rate": {
18297
18298
  value: "3.2%",
18298
- subValue: "12% vs previous period",
18299
+ subValue: "12% vs pp",
18299
18300
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Adjust, {}),
18300
18301
  money: false,
18301
18302
  error: false,
@@ -18303,7 +18304,7 @@ var EmailSection = function EmailSection(_ref) {
18303
18304
  },
18304
18305
  CTR: {
18305
18306
  value: "8.1%",
18306
- subValue: "12% vs previous period",
18307
+ subValue: "12% vs pp",
18307
18308
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.NotInterested, {}),
18308
18309
  money: false,
18309
18310
  error: false,
@@ -18311,7 +18312,7 @@ var EmailSection = function EmailSection(_ref) {
18311
18312
  },
18312
18313
  "Revenue per email": {
18313
18314
  value: "$".concat(formatNumber(2.45)),
18314
- subValue: "12% vs previous period",
18315
+ subValue: "12% vs pp",
18315
18316
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.IndeterminateCheckBoxOutlined, {}),
18316
18317
  money: true,
18317
18318
  error: false,
@@ -18319,7 +18320,7 @@ var EmailSection = function EmailSection(_ref) {
18319
18320
  },
18320
18321
  "Open rate": {
18321
18322
  value: "42.3%",
18322
- subValue: "12% vs previous period",
18323
+ subValue: "12% vs pp",
18323
18324
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Email, {}),
18324
18325
  money: false,
18325
18326
  error: false,
@@ -18327,7 +18328,7 @@ var EmailSection = function EmailSection(_ref) {
18327
18328
  },
18328
18329
  Clicks: {
18329
18330
  value: "1,612",
18330
- subValue: "12% vs previous period",
18331
+ subValue: "12% vs pp",
18331
18332
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.NearMe, {}),
18332
18333
  money: false,
18333
18334
  error: false,
@@ -18335,7 +18336,7 @@ var EmailSection = function EmailSection(_ref) {
18335
18336
  },
18336
18337
  "Unique Clicks": {
18337
18338
  value: formatNumber(1148),
18338
- subValue: "12% vs previous period",
18339
+ subValue: "12% vs pp",
18339
18340
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.NearMe, {}),
18340
18341
  money: false,
18341
18342
  error: false,
@@ -18343,7 +18344,7 @@ var EmailSection = function EmailSection(_ref) {
18343
18344
  },
18344
18345
  "Bounce rate": {
18345
18346
  value: "1.8%",
18346
- subValue: "12% vs previous period",
18347
+ subValue: "12% vs pp",
18347
18348
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.HighlightOff, {}),
18348
18349
  money: false,
18349
18350
  error: false,
@@ -18351,7 +18352,7 @@ var EmailSection = function EmailSection(_ref) {
18351
18352
  },
18352
18353
  "Revenue per Click": {
18353
18354
  value: "$".concat(formatNumber(30.35)),
18354
- subValue: "12% vs previous period",
18355
+ subValue: "12% vs pp",
18355
18356
  icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.HighlightOff, {}),
18356
18357
  money: true,
18357
18358
  error: false,