@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 CHANGED
@@ -5695,6 +5695,8 @@ 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) || [];
5699
+ var downsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.downsellData) || [];
5698
5700
  var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
5699
5701
  var getExtendedCharts = function getExtendedCharts() {
5700
5702
  var charts = _toConsumableArray(allCharts);
@@ -6233,11 +6235,11 @@ var OverallSection = function OverallSection(_ref) {
6233
6235
  children: /*#__PURE__*/jsxRuntime.jsx(MetricDonutCard, {
6234
6236
  title: "Upsell",
6235
6237
  subtitle: "Acceptance & raised",
6236
- acceptanceRate: 34,
6237
- acceptanceVal: "34.2%",
6238
- acceptanceTrend: "4.1%",
6239
- raisedVal: "$28.4K",
6240
- raisedTrend: "11.3%"
6238
+ acceptanceRate: (upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceRate) || 0,
6239
+ acceptanceVal: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceVal) || 0), "%"),
6240
+ acceptanceTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceTrend) || 0), "%"),
6241
+ raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedVal) || 0)),
6242
+ raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%")
6241
6243
  })
6242
6244
  }), /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
6243
6245
  item: true,
@@ -6246,11 +6248,11 @@ var OverallSection = function OverallSection(_ref) {
6246
6248
  children: /*#__PURE__*/jsxRuntime.jsx(MetricDonutCard, {
6247
6249
  title: "Downsell",
6248
6250
  subtitle: "Acceptance & raised",
6249
- acceptanceRate: 19,
6250
- acceptanceVal: "18.7%",
6251
- acceptanceTrend: "2.3%",
6252
- raisedVal: "$11.9K",
6253
- raisedTrend: "6.8%"
6251
+ acceptanceRate: (downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceRate) || 0,
6252
+ acceptanceVal: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceVal) || 0), "%"),
6253
+ acceptanceTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceTrend) || 0), "%"),
6254
+ raisedVal: "$".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedVal) || 0)),
6255
+ raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%")
6254
6256
  })
6255
6257
  }), /*#__PURE__*/jsxRuntime.jsx(material.Grid, {
6256
6258
  item: true,