@ammarkhalidfarooq/dashboard-package 0.4.13 → 0.4.15
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 +12 -10
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +12 -10
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -5693,6 +5693,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5693
5693
|
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
|
|
5694
5694
|
var trafficSourceData = (apiData === null || apiData === void 0 ? void 0 : apiData.trafficSource) || [];
|
|
5695
5695
|
var orderBumpData = (apiData === null || apiData === void 0 ? void 0 : apiData.orderBumpData) || [];
|
|
5696
|
+
var upsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.upsellData) || [];
|
|
5697
|
+
var downsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.downsellData) || [];
|
|
5696
5698
|
var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
|
|
5697
5699
|
var getExtendedCharts = function getExtendedCharts() {
|
|
5698
5700
|
var charts = _toConsumableArray(allCharts);
|
|
@@ -6231,11 +6233,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6231
6233
|
children: /*#__PURE__*/jsx(MetricDonutCard, {
|
|
6232
6234
|
title: "Upsell",
|
|
6233
6235
|
subtitle: "Acceptance & raised",
|
|
6234
|
-
acceptanceRate:
|
|
6235
|
-
acceptanceVal: "
|
|
6236
|
-
acceptanceTrend: "
|
|
6237
|
-
raisedVal: "$
|
|
6238
|
-
raisedTrend: "
|
|
6236
|
+
acceptanceRate: (upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceRate) || 0,
|
|
6237
|
+
acceptanceVal: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceVal) || 0), "%"),
|
|
6238
|
+
acceptanceTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceTrend) || 0), "%"),
|
|
6239
|
+
raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedVal) || 0)),
|
|
6240
|
+
raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%")
|
|
6239
6241
|
})
|
|
6240
6242
|
}), /*#__PURE__*/jsx(Grid, {
|
|
6241
6243
|
item: true,
|
|
@@ -6244,11 +6246,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6244
6246
|
children: /*#__PURE__*/jsx(MetricDonutCard, {
|
|
6245
6247
|
title: "Downsell",
|
|
6246
6248
|
subtitle: "Acceptance & raised",
|
|
6247
|
-
acceptanceRate:
|
|
6248
|
-
acceptanceVal: "
|
|
6249
|
-
acceptanceTrend: "
|
|
6250
|
-
raisedVal: "$
|
|
6251
|
-
raisedTrend: "
|
|
6249
|
+
acceptanceRate: (downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceRate) || 0,
|
|
6250
|
+
acceptanceVal: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceVal) || 0), "%"),
|
|
6251
|
+
acceptanceTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceTrend) || 0), "%"),
|
|
6252
|
+
raisedVal: "$".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedVal) || 0)),
|
|
6253
|
+
raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%")
|
|
6252
6254
|
})
|
|
6253
6255
|
}), /*#__PURE__*/jsx(Grid, {
|
|
6254
6256
|
item: true,
|