@ammarkhalidfarooq/dashboard-package 0.6.65 → 0.6.67
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 +71 -42
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +71 -42
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -2650,7 +2650,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2650
2650
|
data: []
|
|
2651
2651
|
}];
|
|
2652
2652
|
var revCats = mainChart.categories || [];
|
|
2653
|
-
|
|
2653
|
+
((apiData === null || apiData === void 0 ? void 0 : apiData.activeCampaigns) || []).length ? apiData.activeCampaigns : [{
|
|
2654
2654
|
title: "Orphan sponsorship — Yemen",
|
|
2655
2655
|
collectedAmount: 78400,
|
|
2656
2656
|
usdTargetAmount: 100000,
|
|
@@ -2686,9 +2686,6 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2686
2686
|
averageDonation: 1940,
|
|
2687
2687
|
status: "Active"
|
|
2688
2688
|
}];
|
|
2689
|
-
var campaignStatusByIndex = campaigns.map(function (c) {
|
|
2690
|
-
return c.status || "Active";
|
|
2691
|
-
});
|
|
2692
2689
|
var ob = (apiData === null || apiData === void 0 ? void 0 : apiData.orderBumpDetails) || {};
|
|
2693
2690
|
var obData = ((ob === null || ob === void 0 ? void 0 : ob.chart) || []).map(function (i) {
|
|
2694
2691
|
return Number(i.revenue || 0);
|
|
@@ -2930,12 +2927,12 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2930
2927
|
title: "Active campaigns",
|
|
2931
2928
|
subtitle: "Live fundraisers ranked by velocity",
|
|
2932
2929
|
children: /*#__PURE__*/jsx(MiniTable, {
|
|
2933
|
-
head: ["CAMPAIGN", "RAISED", "PROGRESS", "DONORS", "AVG GIFT"
|
|
2934
|
-
colAlign: ["left", "right", "left", "right", "right"
|
|
2930
|
+
head: ["CAMPAIGN", "RAISED", "PROGRESS", "DONORS", "AVG GIFT"],
|
|
2931
|
+
colAlign: ["left", "right", "left", "right", "right"],
|
|
2935
2932
|
rows: activeCampaigns.map(function (c, i) {
|
|
2936
2933
|
return [c.name, c.val1, /*#__PURE__*/jsx(ProgressBar, {
|
|
2937
2934
|
value: c.progress
|
|
2938
|
-
}, "campaign-progress-".concat(i)), c.val3, c.val4
|
|
2935
|
+
}, "campaign-progress-".concat(i)), c.val3, c.val4];
|
|
2939
2936
|
})
|
|
2940
2937
|
})
|
|
2941
2938
|
}), /*#__PURE__*/jsx(Panel, {
|
|
@@ -2944,8 +2941,8 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2944
2941
|
children: /*#__PURE__*/jsxs("div", {
|
|
2945
2942
|
style: {
|
|
2946
2943
|
display: "flex",
|
|
2947
|
-
|
|
2948
|
-
|
|
2944
|
+
flexDirection: "column",
|
|
2945
|
+
alignItems: "center"
|
|
2949
2946
|
},
|
|
2950
2947
|
children: [/*#__PURE__*/jsx(Donut, {
|
|
2951
2948
|
segments: [{
|
|
@@ -2955,82 +2952,114 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref13, ref) {
|
|
|
2955
2952
|
value: returningDonors,
|
|
2956
2953
|
color: C.emerald
|
|
2957
2954
|
}],
|
|
2958
|
-
size:
|
|
2955
|
+
size: 88,
|
|
2959
2956
|
centerVal: "".concat(formatNumber(totalMix)),
|
|
2960
2957
|
centerLabel: "donors"
|
|
2961
2958
|
}), /*#__PURE__*/jsxs("div", {
|
|
2962
2959
|
style: {
|
|
2963
|
-
|
|
2960
|
+
width: "100%",
|
|
2961
|
+
marginTop: 6
|
|
2964
2962
|
},
|
|
2965
2963
|
children: [/*#__PURE__*/jsxs("div", {
|
|
2966
2964
|
style: {
|
|
2967
2965
|
display: "flex",
|
|
2966
|
+
justifyContent: "space-between",
|
|
2968
2967
|
alignItems: "center",
|
|
2969
|
-
gap: 6,
|
|
2970
2968
|
marginBottom: 5
|
|
2971
2969
|
},
|
|
2972
|
-
children: [/*#__PURE__*/
|
|
2970
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
2973
2971
|
style: {
|
|
2974
|
-
|
|
2975
|
-
|
|
2976
|
-
|
|
2977
|
-
|
|
2978
|
-
|
|
2979
|
-
|
|
2972
|
+
display: "flex",
|
|
2973
|
+
alignItems: "center",
|
|
2974
|
+
gap: 5
|
|
2975
|
+
},
|
|
2976
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
2977
|
+
style: {
|
|
2978
|
+
width: 8,
|
|
2979
|
+
height: 8,
|
|
2980
|
+
borderRadius: 2,
|
|
2981
|
+
background: C.indigo,
|
|
2982
|
+
flexShrink: 0
|
|
2983
|
+
}
|
|
2984
|
+
}), /*#__PURE__*/jsx("span", {
|
|
2985
|
+
style: {
|
|
2986
|
+
fontSize: 9.5,
|
|
2987
|
+
color: "#6B7280"
|
|
2988
|
+
},
|
|
2989
|
+
children: "New donors"
|
|
2990
|
+
})]
|
|
2980
2991
|
}), /*#__PURE__*/jsxs("span", {
|
|
2981
2992
|
style: {
|
|
2982
2993
|
fontSize: 9.5,
|
|
2983
|
-
|
|
2994
|
+
fontWeight: 700,
|
|
2995
|
+
color: "#111827"
|
|
2984
2996
|
},
|
|
2985
|
-
children: [
|
|
2997
|
+
children: [formatNumber(newDonors), " \xB7 ", newPct, "%"]
|
|
2986
2998
|
})]
|
|
2987
2999
|
}), /*#__PURE__*/jsxs("div", {
|
|
2988
3000
|
style: {
|
|
2989
3001
|
display: "flex",
|
|
3002
|
+
justifyContent: "space-between",
|
|
2990
3003
|
alignItems: "center",
|
|
2991
|
-
|
|
2992
|
-
marginBottom: 7
|
|
3004
|
+
marginBottom: 8
|
|
2993
3005
|
},
|
|
2994
|
-
children: [/*#__PURE__*/
|
|
3006
|
+
children: [/*#__PURE__*/jsxs("div", {
|
|
2995
3007
|
style: {
|
|
2996
|
-
|
|
2997
|
-
|
|
2998
|
-
|
|
2999
|
-
|
|
3000
|
-
|
|
3001
|
-
|
|
3008
|
+
display: "flex",
|
|
3009
|
+
alignItems: "center",
|
|
3010
|
+
gap: 5
|
|
3011
|
+
},
|
|
3012
|
+
children: [/*#__PURE__*/jsx("div", {
|
|
3013
|
+
style: {
|
|
3014
|
+
width: 8,
|
|
3015
|
+
height: 8,
|
|
3016
|
+
borderRadius: 2,
|
|
3017
|
+
background: C.emerald,
|
|
3018
|
+
flexShrink: 0
|
|
3019
|
+
}
|
|
3020
|
+
}), /*#__PURE__*/jsx("span", {
|
|
3021
|
+
style: {
|
|
3022
|
+
fontSize: 9.5,
|
|
3023
|
+
color: "#6B7280"
|
|
3024
|
+
},
|
|
3025
|
+
children: "Returning"
|
|
3026
|
+
})]
|
|
3002
3027
|
}), /*#__PURE__*/jsxs("span", {
|
|
3003
3028
|
style: {
|
|
3004
3029
|
fontSize: 9.5,
|
|
3005
|
-
|
|
3030
|
+
fontWeight: 700,
|
|
3031
|
+
color: "#111827"
|
|
3006
3032
|
},
|
|
3007
|
-
children: [
|
|
3033
|
+
children: [formatNumber(returningDonors), " \xB7 ", retPct, "%"]
|
|
3008
3034
|
})]
|
|
3009
3035
|
}), /*#__PURE__*/jsx(Divider, {
|
|
3010
3036
|
mb: 6
|
|
3011
3037
|
}), /*#__PURE__*/jsx("div", {
|
|
3012
3038
|
style: {
|
|
3013
|
-
fontSize:
|
|
3014
|
-
|
|
3015
|
-
|
|
3039
|
+
fontSize: 9.5,
|
|
3040
|
+
color: "#9CA3AF",
|
|
3041
|
+
marginBottom: 2
|
|
3016
3042
|
},
|
|
3017
|
-
children:
|
|
3043
|
+
children: "Avg gift"
|
|
3018
3044
|
}), /*#__PURE__*/jsx("div", {
|
|
3019
3045
|
style: {
|
|
3020
|
-
fontSize:
|
|
3021
|
-
|
|
3046
|
+
fontSize: 14,
|
|
3047
|
+
fontWeight: 800,
|
|
3048
|
+
color: "#111827",
|
|
3049
|
+
marginBottom: 2
|
|
3022
3050
|
},
|
|
3023
|
-
children:
|
|
3051
|
+
children: kpi$(mixAvgGift)
|
|
3024
3052
|
}), /*#__PURE__*/jsx("div", {
|
|
3025
3053
|
style: {
|
|
3026
|
-
fontSize: 9
|
|
3027
|
-
marginTop: 1
|
|
3054
|
+
fontSize: 9
|
|
3028
3055
|
},
|
|
3029
3056
|
children: /*#__PURE__*/jsx(TrendText, {
|
|
3030
3057
|
style: {
|
|
3031
3058
|
fontSize: 9
|
|
3032
3059
|
},
|
|
3033
|
-
children:
|
|
3060
|
+
children: formatArrowTrend((_ref16 = donorMixPrev !== null && donorMixPrev !== void 0 ? donorMixPrev : growth === null || growth === void 0 ? void 0 : growth.overallAVGDonations) !== null && _ref16 !== void 0 ? _ref16 : 0, {
|
|
3061
|
+
label: "vs last month"
|
|
3062
|
+
})
|
|
3034
3063
|
})
|
|
3035
3064
|
})]
|
|
3036
3065
|
})]
|