@ammarkhalidfarooq/dashboard-package 0.4.76 → 0.4.78

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
@@ -3248,7 +3248,8 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
3248
3248
  _ref$chartColor = _ref.chartColor,
3249
3249
  chartColor = _ref$chartColor === void 0 ? "rgb(99, 99, 230)" : _ref$chartColor,
3250
3250
  _ref$footerMetrics = _ref.footerMetrics,
3251
- footerMetrics = _ref$footerMetrics === void 0 ? [] : _ref$footerMetrics;
3251
+ footerMetrics = _ref$footerMetrics === void 0 ? [] : _ref$footerMetrics,
3252
+ sx = _ref.sx;
3252
3253
  // Extract values for chart series
3253
3254
  var series = [{
3254
3255
  name: title,
@@ -3321,7 +3322,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
3321
3322
  }
3322
3323
  };
3323
3324
  return /*#__PURE__*/jsxs(Card, {
3324
- sx: {
3325
+ sx: _objectSpread2({
3325
3326
  p: 3,
3326
3327
  borderRadius: 4,
3327
3328
  border: "1px solid #f0f0f0",
@@ -3329,7 +3330,7 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
3329
3330
  bgcolor: "#fff",
3330
3331
  display: "flex",
3331
3332
  flexDirection: "column"
3332
- },
3333
+ }, sx),
3333
3334
  children: [/*#__PURE__*/jsxs(Box, {
3334
3335
  sx: {
3335
3336
  mb: 1
@@ -3452,7 +3453,8 @@ var MetricDonutCard = function MetricDonutCard(_ref) {
3452
3453
  raisedVal = _ref.raisedVal,
3453
3454
  raisedTrend = _ref.raisedTrend,
3454
3455
  _ref$chartColors = _ref.chartColors,
3455
- chartColors = _ref$chartColors === void 0 ? ["rgb(99, 99, 230)", "#88bfd290"] : _ref$chartColors;
3456
+ chartColors = _ref$chartColors === void 0 ? ["rgb(99, 99, 230)", "#88bfd290"] : _ref$chartColors,
3457
+ sx = _ref.sx;
3456
3458
  var chartOptions = {
3457
3459
  chart: {
3458
3460
  type: "radialBar",
@@ -3507,7 +3509,7 @@ var MetricDonutCard = function MetricDonutCard(_ref) {
3507
3509
  };
3508
3510
  var series = [acceptanceRate];
3509
3511
  return /*#__PURE__*/jsxs(Card, {
3510
- sx: {
3512
+ sx: _objectSpread2({
3511
3513
  p: 3,
3512
3514
  borderRadius: 4,
3513
3515
  border: "1px solid #f0f0f0",
@@ -3516,7 +3518,7 @@ var MetricDonutCard = function MetricDonutCard(_ref) {
3516
3518
  // height: "100%",
3517
3519
  display: "flex",
3518
3520
  flexDirection: "column"
3519
- },
3521
+ }, sx),
3520
3522
  children: [/*#__PURE__*/jsxs(Box, {
3521
3523
  sx: {},
3522
3524
  children: [/*#__PURE__*/jsx(Typography, {
@@ -5730,21 +5732,21 @@ var OverallSection = function OverallSection(_ref) {
5730
5732
  },
5731
5733
  children: [/*#__PURE__*/jsx(DonationTypeBarChart, {
5732
5734
  sx: {
5733
- maxHeight: 300
5735
+ maxHeight: 280
5734
5736
  },
5735
5737
  donationTypeData: donationTypeData
5736
5738
  }), /*#__PURE__*/jsx(PaidDonorGeographyCard, {
5737
5739
  sx: {
5738
- maxHeight: 300
5740
+ maxHeight: 280
5739
5741
  },
5740
5742
  donorGeographyData: donorGeographyData
5741
5743
  }), /*#__PURE__*/jsx(RefundsChargebacksCard, {
5742
5744
  sx: {
5743
- maxHeight: 300
5745
+ maxHeight: 280
5744
5746
  }
5745
5747
  }), /*#__PURE__*/jsx(TrafficSourceCard, {
5746
5748
  sx: {
5747
- maxHeight: 300
5749
+ maxHeight: 280
5748
5750
  },
5749
5751
  trafficSourceData: trafficSourceData
5750
5752
  }), /*#__PURE__*/jsx(MetricSparklineCard, {
@@ -5753,7 +5755,10 @@ var OverallSection = function OverallSection(_ref) {
5753
5755
  value: "$".concat(formatNumber((orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.totalValue) || 0)),
5754
5756
  trend: "\u25B2 ".concat(orderBumpData === null || orderBumpData === void 0 || (_orderBumpData$prevTr = orderBumpData.prevTrend) === null || _orderBumpData$prevTr === void 0 ? void 0 : _orderBumpData$prevTr.toFixed(1), "% vs last month"),
5755
5757
  chartData: orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.orderBumpMetrics,
5756
- footerMetrics: orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.footerMetrics
5758
+ footerMetrics: orderBumpData === null || orderBumpData === void 0 ? void 0 : orderBumpData.footerMetrics,
5759
+ sx: {
5760
+ maxHeight: 280
5761
+ }
5757
5762
  }), /*#__PURE__*/jsx(MetricDonutCard, {
5758
5763
  title: "Upsell",
5759
5764
  subtitle: "Acceptance & raised",
@@ -5761,7 +5766,10 @@ var OverallSection = function OverallSection(_ref) {
5761
5766
  acceptanceVal: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceVal) || 0), "%"),
5762
5767
  acceptanceTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.acceptanceTrend) || 0), "%"),
5763
5768
  raisedVal: "$".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedVal) || 0)),
5764
- raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%")
5769
+ raisedTrend: "".concat(formatNumber((upsellData === null || upsellData === void 0 ? void 0 : upsellData.raisedTrend) || 0), "%"),
5770
+ sx: {
5771
+ maxHeight: 280
5772
+ }
5765
5773
  }), /*#__PURE__*/jsx(MetricDonutCard, {
5766
5774
  title: "Downsell",
5767
5775
  subtitle: "Acceptance & raised",
@@ -5769,7 +5777,10 @@ var OverallSection = function OverallSection(_ref) {
5769
5777
  acceptanceVal: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceVal) || 0), "%"),
5770
5778
  acceptanceTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.acceptanceTrend) || 0), "%"),
5771
5779
  raisedVal: "$".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedVal) || 0)),
5772
- raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%")
5780
+ raisedTrend: "".concat(formatNumber((downsellData === null || downsellData === void 0 ? void 0 : downsellData.raisedTrend) || 0), "%"),
5781
+ sx: {
5782
+ maxHeight: 280
5783
+ }
5773
5784
  }), /*#__PURE__*/jsx(MetricSparklineCard, {
5774
5785
  title: "Referrals",
5775
5786
  subtitle: "Revenue trend \xB7 last 30 days",
@@ -5785,7 +5796,10 @@ var OverallSection = function OverallSection(_ref) {
5785
5796
  }, {
5786
5797
  label: "Conv. rate",
5787
5798
  value: "27.5%"
5788
- }]
5799
+ }],
5800
+ sx: {
5801
+ maxHeight: 280
5802
+ }
5789
5803
  })]
5790
5804
  })]
5791
5805
  });