@ammarkhalidfarooq/dashboard-package 0.5.21 → 0.5.23
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 +8 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +8 -6
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -8065,6 +8065,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8065
8065
|
var organicUsersSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.organicUsers);
|
|
8066
8066
|
var donationsSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalDonations);
|
|
8067
8067
|
var conversionSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.conversionRate);
|
|
8068
|
+
var revenueSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.totalRevenue);
|
|
8069
|
+
var avgDonationSeries = mapTimeSeries(apiData === null || apiData === void 0 ? void 0 : apiData.avgDonations);
|
|
8068
8070
|
var fallbackCategories = organicUsersSeries.categories.length ? organicUsersSeries.categories : ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
8069
8071
|
var growthCaption = function growthCaption(key) {
|
|
8070
8072
|
return formatGrowth(growth[key], dateName);
|
|
@@ -8135,11 +8137,11 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8135
8137
|
}
|
|
8136
8138
|
};
|
|
8137
8139
|
}
|
|
8138
|
-
|
|
8140
|
+
organicUsersSeries.data.length > 0 ? organicUsersSeries.data.map(function () {
|
|
8139
8141
|
var _overview$totalRevenu;
|
|
8140
8142
|
return (_overview$totalRevenu = overview.totalRevenue) !== null && _overview$totalRevenu !== void 0 ? _overview$totalRevenu : 0;
|
|
8141
8143
|
}) : [(_overview$totalRevenu2 = overview.totalRevenue) !== null && _overview$totalRevenu2 !== void 0 ? _overview$totalRevenu2 : 0];
|
|
8142
|
-
|
|
8144
|
+
organicUsersSeries.data.length > 0 ? organicUsersSeries.data.map(function () {
|
|
8143
8145
|
var _overview$overallAVGD;
|
|
8144
8146
|
return (_overview$overallAVGD = overview.overallAVGDonations) !== null && _overview$overallAVGD !== void 0 ? _overview$overallAVGD : 0;
|
|
8145
8147
|
}) : [(_overview$overallAVGD2 = overview.overallAVGDonations) !== null && _overview$overallAVGD2 !== void 0 ? _overview$overallAVGD2 : 0];
|
|
@@ -8189,8 +8191,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8189
8191
|
"Revenue raised": {
|
|
8190
8192
|
value: "$".concat(formatNumber((_overview$totalRevenu3 = overview.totalRevenue) !== null && _overview$totalRevenu3 !== void 0 ? _overview$totalRevenu3 : 0)),
|
|
8191
8193
|
subValue: growthCaption("totalRevenue"),
|
|
8192
|
-
data:
|
|
8193
|
-
categories:
|
|
8194
|
+
data: revenueSeries.data,
|
|
8195
|
+
categories: revenueSeries.categories,
|
|
8194
8196
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
8195
8197
|
money: true,
|
|
8196
8198
|
warning: false,
|
|
@@ -8199,8 +8201,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
8199
8201
|
"Avg donation": {
|
|
8200
8202
|
value: "$".concat(formatNumber((_overview$overallAVGD3 = overview.overallAVGDonations) !== null && _overview$overallAVGD3 !== void 0 ? _overview$overallAVGD3 : 0)),
|
|
8201
8203
|
subValue: growthCaption("overallAVGDonations"),
|
|
8202
|
-
data:
|
|
8203
|
-
categories:
|
|
8204
|
+
data: avgDonationSeries.data,
|
|
8205
|
+
categories: avgDonationSeries.categories,
|
|
8204
8206
|
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
8205
8207
|
money: true,
|
|
8206
8208
|
warning: false,
|