@ammarkhalidfarooq/dashboard-package 0.6.105 → 0.6.106
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 +19 -34
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +19 -34
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -6593,36 +6593,13 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
|
|
|
6593
6593
|
value: item.donations !== undefined ? item.donations : item.value || 0
|
|
6594
6594
|
};
|
|
6595
6595
|
});
|
|
6596
|
-
return /*#__PURE__*/
|
|
6596
|
+
return /*#__PURE__*/jsx(CardWrapper, {
|
|
6597
|
+
title: "Paid Donor Geography",
|
|
6598
|
+
subtitle: "Where ad-acquired donors come from",
|
|
6597
6599
|
sx: _objectSpread2({
|
|
6598
|
-
|
|
6599
|
-
borderRadius: 4,
|
|
6600
|
-
border: "1px solid #f0f0f0",
|
|
6601
|
-
boxShadow: "0 4px 24px rgba(0,0,0,0.06)",
|
|
6602
|
-
p: 3
|
|
6600
|
+
width: "100%"
|
|
6603
6601
|
}, sx),
|
|
6604
|
-
children:
|
|
6605
|
-
sx: {
|
|
6606
|
-
textAlign: "left",
|
|
6607
|
-
marginBottom: "12px"
|
|
6608
|
-
},
|
|
6609
|
-
children: [/*#__PURE__*/jsx(Typography, {
|
|
6610
|
-
sx: {
|
|
6611
|
-
fontWeight: 700,
|
|
6612
|
-
fontSize: "18px",
|
|
6613
|
-
color: "#000",
|
|
6614
|
-
lineHeight: 1.15
|
|
6615
|
-
},
|
|
6616
|
-
children: "Paid Donor Geography"
|
|
6617
|
-
}), /*#__PURE__*/jsx(Typography, {
|
|
6618
|
-
sx: {
|
|
6619
|
-
fontSize: "13px",
|
|
6620
|
-
color: "rgba(0, 0, 0, 0.4)",
|
|
6621
|
-
lineHeight: 1.15
|
|
6622
|
-
},
|
|
6623
|
-
children: "Where ad-acquired donors come from"
|
|
6624
|
-
})]
|
|
6625
|
-
}), data.length === 0 ? /*#__PURE__*/jsx(Typography, {
|
|
6602
|
+
children: data.length === 0 ? /*#__PURE__*/jsx(Typography, {
|
|
6626
6603
|
sx: {
|
|
6627
6604
|
fontSize: "13px",
|
|
6628
6605
|
color: "rgba(0, 0, 0, 0.4)",
|
|
@@ -6674,7 +6651,7 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref9) {
|
|
|
6674
6651
|
children: [item.value, " - ", item.percentage, "%"]
|
|
6675
6652
|
})]
|
|
6676
6653
|
}, index);
|
|
6677
|
-
})
|
|
6654
|
+
})
|
|
6678
6655
|
});
|
|
6679
6656
|
};
|
|
6680
6657
|
|
|
@@ -18722,17 +18699,24 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18722
18699
|
container: true,
|
|
18723
18700
|
spacing: 3,
|
|
18724
18701
|
sx: {
|
|
18725
|
-
mt: "6px"
|
|
18702
|
+
mt: "6px",
|
|
18703
|
+
alignItems: "stretch"
|
|
18726
18704
|
},
|
|
18727
18705
|
children: [/*#__PURE__*/jsx(Grid, {
|
|
18728
18706
|
item: true,
|
|
18729
18707
|
xs: 12,
|
|
18730
18708
|
md: 6,
|
|
18731
18709
|
sx: {
|
|
18732
|
-
paddingTop: "0px !important"
|
|
18710
|
+
paddingTop: "0px !important",
|
|
18711
|
+
display: "flex"
|
|
18733
18712
|
},
|
|
18734
|
-
children: /*#__PURE__*/jsx(
|
|
18735
|
-
|
|
18713
|
+
children: /*#__PURE__*/jsx(Box, {
|
|
18714
|
+
sx: {
|
|
18715
|
+
width: "100%"
|
|
18716
|
+
},
|
|
18717
|
+
children: /*#__PURE__*/jsx(TopPerformingCampaignsCard, {
|
|
18718
|
+
data: topCampaignsData !== null && topCampaignsData !== void 0 ? topCampaignsData : hasPaidOverview ? [] : null
|
|
18719
|
+
})
|
|
18736
18720
|
})
|
|
18737
18721
|
}), /*#__PURE__*/jsx(Grid, {
|
|
18738
18722
|
item: true,
|
|
@@ -18747,7 +18731,8 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
18747
18731
|
marginTop: {
|
|
18748
18732
|
xs: "6px",
|
|
18749
18733
|
md: "0px"
|
|
18750
|
-
}
|
|
18734
|
+
},
|
|
18735
|
+
display: "flex"
|
|
18751
18736
|
},
|
|
18752
18737
|
children: /*#__PURE__*/jsx(PaidDonorGeographyCard, {
|
|
18753
18738
|
donorGeographyData: donorGeographyData
|