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