@ammarkhalidfarooq/dashboard-package 0.6.114 → 0.6.115

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