@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 +81 -46
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +81 -46
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
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__*/
|
|
6609
|
-
title: "Paid Donor Geography",
|
|
6610
|
-
subtitle: "Where ad-acquired donors come from",
|
|
6608
|
+
return /*#__PURE__*/jsxs(Card, {
|
|
6611
6609
|
sx: _objectSpread2({
|
|
6612
|
-
|
|
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:
|
|
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
|
-
}) :
|
|
6622
|
-
|
|
6623
|
-
|
|
6624
|
-
|
|
6625
|
-
|
|
6626
|
-
|
|
6627
|
-
|
|
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
|
-
|
|
6658
|
+
display: "flex",
|
|
6659
|
+
alignItems: "center",
|
|
6660
|
+
gap: 2,
|
|
6661
|
+
py: 0.7
|
|
6641
6662
|
},
|
|
6642
|
-
children: /*#__PURE__*/jsx(
|
|
6643
|
-
variant: "determinate",
|
|
6644
|
-
value: item.percentage,
|
|
6663
|
+
children: [/*#__PURE__*/jsx(Typography, {
|
|
6645
6664
|
sx: {
|
|
6646
|
-
|
|
6647
|
-
|
|
6648
|
-
|
|
6649
|
-
|
|
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: "#
|
|
6682
|
+
bgcolor: "#F3F4F6",
|
|
6683
|
+
"& .MuiLinearProgress-bar": {
|
|
6684
|
+
borderRadius: 4,
|
|
6685
|
+
bgcolor: "#6366F1"
|
|
6686
|
+
}
|
|
6652
6687
|
}
|
|
6653
|
-
}
|
|
6654
|
-
})
|
|
6655
|
-
|
|
6656
|
-
|
|
6657
|
-
|
|
6658
|
-
|
|
6659
|
-
|
|
6660
|
-
|
|
6661
|
-
|
|
6662
|
-
|
|
6663
|
-
|
|
6664
|
-
})
|
|
6665
|
-
}
|
|
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
|
|