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