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