@ammarkhalidfarooq/dashboard-package 0.4.12 → 0.4.14
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 +7 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +7 -6
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -4942,7 +4942,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
4942
4942
|
fontWeight: 700,
|
|
4943
4943
|
color: "#000"
|
|
4944
4944
|
},
|
|
4945
|
-
children: m.value
|
|
4945
|
+
children: "$".concat(formatNumber(m.value))
|
|
4946
4946
|
})]
|
|
4947
4947
|
}, idx);
|
|
4948
4948
|
})
|
|
@@ -5695,6 +5695,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
5695
5695
|
var donorGeographyData = (apiData === null || apiData === void 0 ? void 0 : apiData.donorGeography) || [];
|
|
5696
5696
|
var trafficSourceData = (apiData === null || apiData === void 0 ? void 0 : apiData.trafficSource) || [];
|
|
5697
5697
|
var orderBumpData = (apiData === null || apiData === void 0 ? void 0 : apiData.orderBumpData) || [];
|
|
5698
|
+
var upsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.upsellData) || [];
|
|
5698
5699
|
var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
|
|
5699
5700
|
var getExtendedCharts = function getExtendedCharts() {
|
|
5700
5701
|
var charts = _toConsumableArray(allCharts);
|
|
@@ -6233,11 +6234,11 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
6233
6234
|
children: /*#__PURE__*/jsxRuntime.jsx(MetricDonutCard, {
|
|
6234
6235
|
title: "Upsell",
|
|
6235
6236
|
subtitle: "Acceptance & raised",
|
|
6236
|
-
acceptanceRate:
|
|
6237
|
-
acceptanceVal: "
|
|
6238
|
-
acceptanceTrend: "
|
|
6239
|
-
raisedVal: "$
|
|
6240
|
-
raisedTrend: "
|
|
6237
|
+
acceptanceRate: (upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceRate) || 0,
|
|
6238
|
+
acceptanceVal: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceVal) || 0), "%"),
|
|
6239
|
+
acceptanceTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceTrend) || 0), "%"),
|
|
6240
|
+
raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedVal) || 0)),
|
|
6241
|
+
raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%")
|
|
6241
6242
|
})
|
|
6242
6243
|
}), /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
|
|
6243
6244
|
item: true,
|