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