@ammarkhalidfarooq/dashboard-package 0.6.28 → 0.6.30

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
@@ -3922,14 +3922,16 @@ var DonorMixCard = function DonorMixCard(_ref) {
3922
3922
  sx: {
3923
3923
  fontSize: "13px",
3924
3924
  fontWeight: 500,
3925
- color: "rgba(0, 0, 0, 0.4)"
3925
+ color: "rgba(0, 0, 0, 0.4)",
3926
+ marginBottom: "2px"
3926
3927
  },
3927
3928
  children: "Avg gift"
3928
3929
  }), /*#__PURE__*/jsx(Typography, {
3929
3930
  sx: {
3930
3931
  fontSize: "13px",
3931
3932
  fontWeight: 700,
3932
- color: "#000"
3933
+ color: "#000",
3934
+ marginBottom: "4px"
3933
3935
  },
3934
3936
  children: bottomSummaryValue
3935
3937
  }), /*#__PURE__*/jsxs(Box, {
@@ -4024,7 +4026,7 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
4024
4026
  color: "rgba(0, 0, 0, 0.3)",
4025
4027
  letterSpacing: "0.05em"
4026
4028
  },
4027
- children: "SOURCE"
4029
+ children: "Source"
4028
4030
  }), /*#__PURE__*/jsx(Typography, {
4029
4031
  sx: {
4030
4032
  fontSize: "12px",
@@ -4032,7 +4034,7 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
4032
4034
  color: "rgba(0, 0, 0, 0.3)",
4033
4035
  letterSpacing: "0.05em"
4034
4036
  },
4035
- children: "REVENUE"
4037
+ children: "Revenue"
4036
4038
  }), /*#__PURE__*/jsx(Typography, {
4037
4039
  sx: {
4038
4040
  fontSize: "12px",
@@ -4041,7 +4043,7 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
4041
4043
  letterSpacing: "0.05em",
4042
4044
  textAlign: "right"
4043
4045
  },
4044
- children: "SHARE"
4046
+ children: "Share"
4045
4047
  })]
4046
4048
  }), /*#__PURE__*/jsx(Box, {
4047
4049
  children: trafficSourceData === null || trafficSourceData === void 0 ? void 0 : trafficSourceData.map(function (item, index) {
@@ -17681,8 +17683,8 @@ var OrganicSection = function OrganicSection(_ref) {
17681
17683
  });
17682
17684
  return {
17683
17685
  series: sources.map(function (item) {
17684
- var _item$percentage3;
17685
- return Number((_item$percentage3 = item.percentage) !== null && _item$percentage3 !== void 0 ? _item$percentage3 : 0);
17686
+ var _item$visitors3;
17687
+ return Number((_item$visitors3 = item.visitors) !== null && _item$visitors3 !== void 0 ? _item$visitors3 : 0);
17686
17688
  }),
17687
17689
  labels: sources.map(function (item) {
17688
17690
  return item.source;
@@ -17691,10 +17693,10 @@ var OrganicSection = function OrganicSection(_ref) {
17691
17693
  centerLabel: "visitors",
17692
17694
  centerValue: formatNumber((_breakdown$totalVisit = breakdown.totalVisitors) !== null && _breakdown$totalVisit !== void 0 ? _breakdown$totalVisit : 0),
17693
17695
  items: sources.map(function (item, index) {
17694
- var _item$percentage4;
17696
+ var _item$visitors4;
17695
17697
  return {
17696
17698
  label: item.source,
17697
- val: "".concat(Number((_item$percentage4 = item.percentage) !== null && _item$percentage4 !== void 0 ? _item$percentage4 : 0).toFixed(1), "%"),
17699
+ val: formatNumber((_item$visitors4 = item.visitors) !== null && _item$visitors4 !== void 0 ? _item$visitors4 : 0),
17698
17700
  color: colors[index]
17699
17701
  };
17700
17702
  })