@ammarkhalidfarooq/dashboard-package 0.4.14 → 0.4.16

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.es.js CHANGED
@@ -5694,6 +5694,7 @@ var OverallSection = function OverallSection(_ref) {
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
5696
  var upsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.upsellData) || [];
5697
+ var downsellData = (apiData === null || apiData === void 0 ? void 0 : apiData.downsellData) || [];
5697
5698
  var allCharts = [].concat(_toConsumableArray(primaryCharts), _toConsumableArray(secondaryCharts), _toConsumableArray(tertiaryCharts), _toConsumableArray(quaternaryCharts));
5698
5699
  var getExtendedCharts = function getExtendedCharts() {
5699
5700
  var charts = _toConsumableArray(allCharts);
@@ -5830,7 +5831,11 @@ var OverallSection = function OverallSection(_ref) {
5830
5831
  categories: categories,
5831
5832
  stacked: true,
5832
5833
  colors: ["#6366F1", "#10B981", "#06B6D4"],
5833
- hideControls: true
5834
+ hideControls: true,
5835
+ stroke: {
5836
+ curve: "smooth",
5837
+ width: 3
5838
+ }
5834
5839
  });
5835
5840
  }
5836
5841
  }
@@ -6245,11 +6250,11 @@ var OverallSection = function OverallSection(_ref) {
6245
6250
  children: /*#__PURE__*/jsx(MetricDonutCard, {
6246
6251
  title: "Downsell",
6247
6252
  subtitle: "Acceptance & raised",
6248
- acceptanceRate: 19,
6249
- acceptanceVal: "18.7%",
6250
- acceptanceTrend: "2.3%",
6251
- raisedVal: "$11.9K",
6252
- raisedTrend: "6.8%"
6253
+ acceptanceRate: (downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceRate) || 0,
6254
+ acceptanceVal: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceVal) || 0), "%"),
6255
+ acceptanceTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceTrend) || 0), "%"),
6256
+ raisedVal: "$".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedVal) || 0)),
6257
+ raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%")
6253
6258
  })
6254
6259
  }), /*#__PURE__*/jsx(Grid, {
6255
6260
  item: true,