@ammarkhalidfarooq/dashboard-package 0.6.9 → 0.6.11

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
@@ -3953,7 +3953,9 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
3953
3953
  fontFamily: "Inter, sans-serif",
3954
3954
  sparkline: {
3955
3955
  enabled: false
3956
- }
3956
+ },
3957
+ // Shift rendered plot area away from the left labels.
3958
+ offsetX: 10
3957
3959
  },
3958
3960
  dataLabels: {
3959
3961
  enabled: false
@@ -3996,9 +3998,10 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
3996
3998
  formatter: function formatter(val) {
3997
3999
  return "".concat(parseFloat(val.toFixed(1)), "%");
3998
4000
  },
3999
- align: "right",
4000
- minWidth: 40,
4001
- maxWidth: 40,
4001
+ // align: "right",
4002
+ // minWidth: 40,
4003
+ // maxWidth: 40,
4004
+ offsetX: -6,
4002
4005
  style: {
4003
4006
  colors: "rgba(0, 0, 0, 0.4)",
4004
4007
  fontSize: "11px"
@@ -4015,8 +4018,8 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
4015
4018
  },
4016
4019
  // Reserve room for y-axis labels so the plotted lines don't bleed into them.
4017
4020
  padding: {
4018
- left: 14,
4019
- right: 4
4021
+ left: 24,
4022
+ right: 6
4020
4023
  }
4021
4024
  },
4022
4025
  colors: ["#F59E0B", "#EF4444"],
@@ -15641,9 +15644,9 @@ var OverallSection = function OverallSection(_ref) {
15641
15644
  }), /*#__PURE__*/jsxRuntime.jsx(OverallDetailsGrid, {
15642
15645
  activeCampaignsRows: activeCampaignsData.map(function (campaign) {
15643
15646
  return {
15644
- id: campaign.campaignName ? campaign.campaignName.split(" ").filter(Boolean).map(function (word) {
15647
+ id: campaign.title ? campaign.title.trim().split(/\s+/).slice(0, 2).filter(Boolean).map(function (word) {
15645
15648
  return word[0];
15646
- }).join("").toUpperCase().slice(0, 2) : "??",
15649
+ }).join("").toUpperCase() : "??",
15647
15650
  name: campaign.title || "Untitled Campaign",
15648
15651
  val1: "$".concat(formatNumber(campaign.collectedAmount || 0)),
15649
15652
  type: "progress",