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