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