@ammarkhalidfarooq/dashboard-package 0.6.114 → 0.6.116

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
@@ -6605,65 +6605,100 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
6605
6605
  value: item.donations !== undefined ? item.donations : item.value || 0
6606
6606
  };
6607
6607
  });
6608
- return /*#__PURE__*/jsx(CardWrapper, {
6609
- title: "Paid Donor Geography",
6610
- subtitle: "Where ad-acquired donors come from",
6608
+ return /*#__PURE__*/jsxs(Card, {
6611
6609
  sx: _objectSpread2({
6612
- width: "100%"
6610
+ bgcolor: "#fff",
6611
+ borderRadius: 4,
6612
+ border: "1px solid #f0f0f0",
6613
+ boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
6614
+ p: 3,
6615
+ width: "100%",
6616
+ display: "flex",
6617
+ flexDirection: "column",
6618
+ boxSizing: "border-box"
6613
6619
  }, sx),
6614
- children: data.length === 0 ? /*#__PURE__*/jsx(Typography, {
6620
+ children: [/*#__PURE__*/jsxs(Box, {
6621
+ sx: {
6622
+ marginBottom: "12px"
6623
+ },
6624
+ children: [/*#__PURE__*/jsx(Typography, {
6625
+ sx: {
6626
+ fontWeight: 700,
6627
+ fontSize: "18px",
6628
+ color: "#000",
6629
+ textAlign: "left",
6630
+ lineHeight: 1.15
6631
+ },
6632
+ children: "Paid Donor Geography"
6633
+ }), /*#__PURE__*/jsx(Typography, {
6634
+ sx: {
6635
+ fontSize: "13px",
6636
+ color: "rgba(0, 0, 0, 0.4)",
6637
+ textAlign: "left",
6638
+ lineHeight: 1.15
6639
+ },
6640
+ children: "Where ad-acquired donors come from"
6641
+ })]
6642
+ }), data.length === 0 ? /*#__PURE__*/jsx(Typography, {
6615
6643
  sx: {
6616
6644
  fontSize: "13px",
6617
6645
  color: "rgba(0, 0, 0, 0.4)",
6618
6646
  py: 2
6619
6647
  },
6620
6648
  children: "No geography data for this period"
6621
- }) : data.map(function (item, index) {
6622
- return /*#__PURE__*/jsxs(Box, {
6623
- sx: {
6624
- display: "flex",
6625
- alignItems: "center",
6626
- gap: 2,
6627
- py: 0.7
6628
- },
6629
- children: [/*#__PURE__*/jsx(Typography, {
6630
- sx: {
6631
- fontSize: "13px",
6632
- fontWeight: 500,
6633
- color: "rgba(0, 0, 0, 0.4)",
6634
- minWidth: "100px",
6635
- textAlign: "left"
6636
- },
6637
- children: item.country
6638
- }), /*#__PURE__*/jsx(Box, {
6649
+ }) : /*#__PURE__*/jsx(Box, {
6650
+ sx: {
6651
+ display: "flex",
6652
+ flexDirection: "column",
6653
+ gap: 1
6654
+ },
6655
+ children: data.map(function (item, index) {
6656
+ return /*#__PURE__*/jsxs(Box, {
6639
6657
  sx: {
6640
- flexGrow: 1
6658
+ display: "flex",
6659
+ alignItems: "center",
6660
+ gap: 2,
6661
+ py: 0.7
6641
6662
  },
6642
- children: /*#__PURE__*/jsx(LinearProgress, {
6643
- variant: "determinate",
6644
- value: item.percentage,
6663
+ children: [/*#__PURE__*/jsx(Typography, {
6645
6664
  sx: {
6646
- height: 8,
6647
- borderRadius: 4,
6648
- bgcolor: "#F3F4F6",
6649
- "& .MuiLinearProgress-bar": {
6665
+ fontSize: "13px",
6666
+ fontWeight: 500,
6667
+ color: "rgba(0, 0, 0, 0.4)",
6668
+ minWidth: "100px",
6669
+ textAlign: "left"
6670
+ },
6671
+ children: item.country
6672
+ }), /*#__PURE__*/jsx(Box, {
6673
+ sx: {
6674
+ flexGrow: 1
6675
+ },
6676
+ children: /*#__PURE__*/jsx(LinearProgress, {
6677
+ variant: "determinate",
6678
+ value: item.percentage,
6679
+ sx: {
6680
+ height: 8,
6650
6681
  borderRadius: 4,
6651
- bgcolor: "#6366F1"
6682
+ bgcolor: "#F3F4F6",
6683
+ "& .MuiLinearProgress-bar": {
6684
+ borderRadius: 4,
6685
+ bgcolor: "#6366F1"
6686
+ }
6652
6687
  }
6653
- }
6654
- })
6655
- }), /*#__PURE__*/jsxs(Typography, {
6656
- sx: {
6657
- fontSize: "13px",
6658
- fontWeight: 700,
6659
- color: "#111",
6660
- minWidth: "60px",
6661
- textAlign: "right"
6662
- },
6663
- children: [item.value, " - ", item.percentage, "%"]
6664
- })]
6665
- }, index);
6666
- })
6688
+ })
6689
+ }), /*#__PURE__*/jsxs(Typography, {
6690
+ sx: {
6691
+ fontSize: "13px",
6692
+ fontWeight: 700,
6693
+ color: "#111",
6694
+ minWidth: "60px",
6695
+ textAlign: "right"
6696
+ },
6697
+ children: [item.value, " - ", item.percentage, "%"]
6698
+ })]
6699
+ }, index);
6700
+ })
6701
+ })]
6667
6702
  });
6668
6703
  };
6669
6704
 
@@ -7126,7 +7161,8 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7126
7161
  title: "Active Campaigns",
7127
7162
  subtitle: "Live fundraisers ranked by velocity",
7128
7163
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7129
- rows: activeCampaignsRows
7164
+ rows: activeCampaignsRows,
7165
+ height: "100%"
7130
7166
  }), /*#__PURE__*/jsx(DonorMixCard, {
7131
7167
  title: "Donor Mix",
7132
7168
  subtitle: "Acquisition vs retention",
@@ -7147,27 +7183,34 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7147
7183
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
7148
7184
  bottomSummaryTrend: "".concat(donorMixPrev, "% vs pp"),
7149
7185
  sx: {
7150
- width: "100%"
7186
+ width: "100%",
7187
+ height: "100%"
7151
7188
  }
7152
7189
  })]
7153
7190
  }) : /*#__PURE__*/jsxs(Grid, {
7154
7191
  container: true,
7155
7192
  spacing: GRID_GAP,
7156
7193
  sx: {
7157
- mt: GRID_GAP
7194
+ mt: GRID_GAP,
7195
+ alignItems: "stretch"
7158
7196
  },
7159
7197
  children: [/*#__PURE__*/jsx(Grid, {
7160
7198
  item: true,
7161
7199
  xs: 12,
7162
7200
  md: 9,
7163
7201
  sx: {
7202
+ display: "flex",
7164
7203
  paddingTop: "0px !important"
7165
7204
  },
7166
7205
  children: /*#__PURE__*/jsx(ActiveCampaignsCard, {
7167
7206
  title: "Active Campaigns",
7168
7207
  subtitle: "Live fundraisers ranked by velocity",
7169
7208
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7170
- rows: activeCampaignsRows
7209
+ rows: activeCampaignsRows,
7210
+ height: "100%",
7211
+ sx: {
7212
+ width: "100%"
7213
+ }
7171
7214
  })
7172
7215
  }), /*#__PURE__*/jsx(Grid, {
7173
7216
  item: true,
@@ -7201,7 +7244,8 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7201
7244
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
7202
7245
  bottomSummaryTrend: "".concat(donorMixPrev, "% vs pp"),
7203
7246
  sx: {
7204
- width: "100%"
7247
+ width: "100%",
7248
+ height: "100%"
7205
7249
  }
7206
7250
  })
7207
7251
  })]