@ammarkhalidfarooq/dashboard-package 0.6.29 → 0.6.31
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/ActiveCampaignsCard.cjs.js +4 -2
- package/dist/ActiveCampaignsCard.cjs.js.map +1 -1
- package/dist/ActiveCampaignsCard.es.js +4 -2
- package/dist/ActiveCampaignsCard.es.js.map +1 -1
- package/dist/RenderChartCard.cjs.js +3 -2
- package/dist/RenderChartCard.cjs.js.map +1 -1
- package/dist/RenderChartCard.es.js +3 -2
- package/dist/RenderChartCard.es.js.map +1 -1
- package/dist/index.cjs.js +51 -37
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +51 -37
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -673,14 +673,15 @@ var RenderChartCard = function RenderChartCard(_ref) {
|
|
|
673
673
|
color: "#000000",
|
|
674
674
|
fontWeight: 700,
|
|
675
675
|
fontSize: "18px",
|
|
676
|
-
|
|
676
|
+
lineHeight: 1.15
|
|
677
677
|
},
|
|
678
678
|
children: item.label
|
|
679
679
|
}), /*#__PURE__*/jsx(Typography, {
|
|
680
|
-
variant: "caption",
|
|
681
680
|
sx: {
|
|
682
681
|
color: "rgba(0, 0, 0, 0.4)",
|
|
683
682
|
fontWeight: 400,
|
|
683
|
+
fontSize: "12px",
|
|
684
|
+
lineHeight: 1.15,
|
|
684
685
|
display: "block",
|
|
685
686
|
mb: 1.5
|
|
686
687
|
},
|
|
@@ -994,14 +995,16 @@ var ActiveCampaignsCard = function ActiveCampaignsCard(_ref) {
|
|
|
994
995
|
fontWeight: 700,
|
|
995
996
|
fontSize: compact ? "14px" : "18px",
|
|
996
997
|
color: "#000",
|
|
997
|
-
textAlign: "left"
|
|
998
|
+
textAlign: "left",
|
|
999
|
+
lineHeight: 1.15
|
|
998
1000
|
},
|
|
999
1001
|
children: title
|
|
1000
1002
|
}), /*#__PURE__*/jsx(Typography, {
|
|
1001
1003
|
sx: {
|
|
1002
1004
|
fontSize: compact ? "10px" : "13px",
|
|
1003
1005
|
color: "rgba(0, 0, 0, 0.4)",
|
|
1004
|
-
|
|
1006
|
+
textAlign: "left",
|
|
1007
|
+
lineHeight: 1.15
|
|
1005
1008
|
},
|
|
1006
1009
|
children: subtitle
|
|
1007
1010
|
})]
|
|
@@ -1860,14 +1863,14 @@ var Panel = function Panel(_ref5) {
|
|
|
1860
1863
|
fontSize: 12,
|
|
1861
1864
|
fontWeight: 700,
|
|
1862
1865
|
color: THEME.text,
|
|
1863
|
-
lineHeight: 1.
|
|
1866
|
+
lineHeight: 1.15
|
|
1864
1867
|
},
|
|
1865
1868
|
children: title
|
|
1866
1869
|
}), subtitle && /*#__PURE__*/jsx("div", {
|
|
1867
1870
|
style: {
|
|
1868
1871
|
fontSize: 9.5,
|
|
1869
1872
|
color: THEME.muted,
|
|
1870
|
-
|
|
1873
|
+
lineHeight: 1.15
|
|
1871
1874
|
},
|
|
1872
1875
|
children: subtitle
|
|
1873
1876
|
})]
|
|
@@ -3845,14 +3848,16 @@ var DonorMixCard = function DonorMixCard(_ref) {
|
|
|
3845
3848
|
fontWeight: 700,
|
|
3846
3849
|
fontSize: compact ? "14px" : "18px",
|
|
3847
3850
|
color: "#000",
|
|
3848
|
-
textAlign: "left"
|
|
3851
|
+
textAlign: "left",
|
|
3852
|
+
lineHeight: 1.15
|
|
3849
3853
|
},
|
|
3850
3854
|
children: title
|
|
3851
3855
|
}), /*#__PURE__*/jsx(Typography, {
|
|
3852
3856
|
sx: {
|
|
3853
3857
|
fontSize: compact ? "10px" : "13px",
|
|
3854
3858
|
color: "rgba(0, 0, 0, 0.4)",
|
|
3855
|
-
textAlign: "left"
|
|
3859
|
+
textAlign: "left",
|
|
3860
|
+
lineHeight: 1.15
|
|
3856
3861
|
},
|
|
3857
3862
|
children: subtitle
|
|
3858
3863
|
})]
|
|
@@ -3999,16 +4004,17 @@ var TrafficSourceCard = function TrafficSourceCard(_ref) {
|
|
|
3999
4004
|
fontWeight: 700,
|
|
4000
4005
|
fontSize: "18px",
|
|
4001
4006
|
color: "#000",
|
|
4002
|
-
textAlign: "left"
|
|
4007
|
+
textAlign: "left",
|
|
4008
|
+
lineHeight: 1.15
|
|
4003
4009
|
},
|
|
4004
4010
|
children: title
|
|
4005
4011
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4006
4012
|
sx: {
|
|
4007
4013
|
fontSize: "13px",
|
|
4008
4014
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4009
|
-
mt: 0.5,
|
|
4010
4015
|
mb: 0.5,
|
|
4011
|
-
textAlign: "left"
|
|
4016
|
+
textAlign: "left",
|
|
4017
|
+
lineHeight: 1.15
|
|
4012
4018
|
},
|
|
4013
4019
|
children: resolvedSubtitle
|
|
4014
4020
|
})]
|
|
@@ -4263,15 +4269,16 @@ var MetricSparklineCard = function MetricSparklineCard(_ref) {
|
|
|
4263
4269
|
fontWeight: 700,
|
|
4264
4270
|
fontSize: compact ? "13px" : "16px",
|
|
4265
4271
|
color: "#000",
|
|
4266
|
-
textAlign: "left"
|
|
4272
|
+
textAlign: "left",
|
|
4273
|
+
lineHeight: 1.15
|
|
4267
4274
|
},
|
|
4268
4275
|
children: title
|
|
4269
4276
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4270
4277
|
sx: {
|
|
4271
4278
|
fontSize: "12px",
|
|
4272
4279
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4273
|
-
|
|
4274
|
-
|
|
4280
|
+
textAlign: "left",
|
|
4281
|
+
lineHeight: 1.15
|
|
4275
4282
|
},
|
|
4276
4283
|
children: subtitle
|
|
4277
4284
|
})]
|
|
@@ -4471,15 +4478,16 @@ var MetricDonutCard = function MetricDonutCard(_ref2) {
|
|
|
4471
4478
|
fontWeight: 700,
|
|
4472
4479
|
fontSize: compact ? "13px" : "16px",
|
|
4473
4480
|
color: "#000",
|
|
4474
|
-
textAlign: "left"
|
|
4481
|
+
textAlign: "left",
|
|
4482
|
+
lineHeight: 1.15
|
|
4475
4483
|
},
|
|
4476
4484
|
children: title
|
|
4477
4485
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4478
4486
|
sx: {
|
|
4479
4487
|
fontSize: "12px",
|
|
4480
4488
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4481
|
-
|
|
4482
|
-
|
|
4489
|
+
textAlign: "left",
|
|
4490
|
+
lineHeight: 1.15
|
|
4483
4491
|
},
|
|
4484
4492
|
children: subtitle
|
|
4485
4493
|
})]
|
|
@@ -4787,14 +4795,15 @@ var DonationTypeBarChart = function DonationTypeBarChart(_ref) {
|
|
|
4787
4795
|
sx: {
|
|
4788
4796
|
fontWeight: 700,
|
|
4789
4797
|
fontSize: "18px",
|
|
4790
|
-
color: "#000"
|
|
4798
|
+
color: "#000",
|
|
4799
|
+
lineHeight: 1.15
|
|
4791
4800
|
},
|
|
4792
4801
|
children: title
|
|
4793
4802
|
}), /*#__PURE__*/jsx(Typography, {
|
|
4794
4803
|
sx: {
|
|
4795
4804
|
fontSize: "13px",
|
|
4796
4805
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4797
|
-
|
|
4806
|
+
lineHeight: 1.15
|
|
4798
4807
|
},
|
|
4799
4808
|
children: "Donation type"
|
|
4800
4809
|
})]
|
|
@@ -4872,13 +4881,12 @@ var CardWrapper = function CardWrapper(_ref) {
|
|
|
4872
4881
|
}),
|
|
4873
4882
|
children: /*#__PURE__*/jsxs(CardContent, {
|
|
4874
4883
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
4875
|
-
variant: "subtitle2",
|
|
4876
4884
|
sx: {
|
|
4877
4885
|
color: "#000000",
|
|
4878
4886
|
fontWeight: 700,
|
|
4879
4887
|
fontSize: "16px",
|
|
4880
|
-
|
|
4881
|
-
|
|
4888
|
+
textAlign: "left",
|
|
4889
|
+
lineHeight: 1.15
|
|
4882
4890
|
},
|
|
4883
4891
|
children: title
|
|
4884
4892
|
}), subtitle && /*#__PURE__*/jsx(Typography, {
|
|
@@ -4886,7 +4894,8 @@ var CardWrapper = function CardWrapper(_ref) {
|
|
|
4886
4894
|
color: "rgba(0, 0, 0, 0.4)",
|
|
4887
4895
|
fontSize: "13px",
|
|
4888
4896
|
mb: 3,
|
|
4889
|
-
textAlign: "left"
|
|
4897
|
+
textAlign: "left",
|
|
4898
|
+
lineHeight: 1.15
|
|
4890
4899
|
},
|
|
4891
4900
|
children: subtitle
|
|
4892
4901
|
}), /*#__PURE__*/jsx(Box, {
|
|
@@ -5820,14 +5829,15 @@ var PaidDonorGeographyCard = function PaidDonorGeographyCard(_ref8) {
|
|
|
5820
5829
|
sx: {
|
|
5821
5830
|
fontWeight: 700,
|
|
5822
5831
|
fontSize: "18px",
|
|
5823
|
-
color: "#000"
|
|
5832
|
+
color: "#000",
|
|
5833
|
+
lineHeight: 1.15
|
|
5824
5834
|
},
|
|
5825
5835
|
children: "Paid donor geography"
|
|
5826
5836
|
}), /*#__PURE__*/jsx(Typography, {
|
|
5827
5837
|
sx: {
|
|
5828
5838
|
fontSize: "13px",
|
|
5829
5839
|
color: "rgba(0, 0, 0, 0.4)",
|
|
5830
|
-
|
|
5840
|
+
lineHeight: 1.15
|
|
5831
5841
|
},
|
|
5832
5842
|
children: "Where ad-acquired donors come from"
|
|
5833
5843
|
})]
|
|
@@ -6059,14 +6069,16 @@ var RefundsChargebacksCard = function RefundsChargebacksCard(_ref) {
|
|
|
6059
6069
|
fontWeight: 700,
|
|
6060
6070
|
fontSize: "18px",
|
|
6061
6071
|
color: "#000",
|
|
6062
|
-
textAlign: "left"
|
|
6072
|
+
textAlign: "left",
|
|
6073
|
+
lineHeight: 1.15
|
|
6063
6074
|
},
|
|
6064
6075
|
children: "Refunds & chargebacks"
|
|
6065
6076
|
}), /*#__PURE__*/jsxs(Typography, {
|
|
6066
6077
|
sx: {
|
|
6067
6078
|
fontSize: "13px",
|
|
6068
6079
|
color: "rgba(0, 0, 0, 0.4)",
|
|
6069
|
-
textAlign: "left"
|
|
6080
|
+
textAlign: "left",
|
|
6081
|
+
lineHeight: 1.15
|
|
6070
6082
|
},
|
|
6071
6083
|
children: ["Trust health \xB7 ", windowLabel]
|
|
6072
6084
|
})]
|
|
@@ -7441,13 +7453,12 @@ var DropOffPoints = function DropOffPoints() {
|
|
|
7441
7453
|
p: 3
|
|
7442
7454
|
},
|
|
7443
7455
|
children: [/*#__PURE__*/jsx(Typography, {
|
|
7444
|
-
variant: "subtitle2",
|
|
7445
7456
|
sx: {
|
|
7446
7457
|
color: "#000000",
|
|
7447
7458
|
fontWeight: 700,
|
|
7448
7459
|
fontSize: "16px",
|
|
7449
|
-
|
|
7450
|
-
|
|
7460
|
+
textAlign: "left",
|
|
7461
|
+
lineHeight: 1.15
|
|
7451
7462
|
},
|
|
7452
7463
|
children: "Drop off points in donation flow"
|
|
7453
7464
|
}), /*#__PURE__*/jsx(Typography, {
|
|
@@ -7455,7 +7466,8 @@ var DropOffPoints = function DropOffPoints() {
|
|
|
7455
7466
|
color: "rgba(0, 0, 0, 0.4)",
|
|
7456
7467
|
fontSize: "13px",
|
|
7457
7468
|
mb: 3,
|
|
7458
|
-
textAlign: "left"
|
|
7469
|
+
textAlign: "left",
|
|
7470
|
+
lineHeight: 1.15
|
|
7459
7471
|
},
|
|
7460
7472
|
children: "Points where donors exit the donation flow"
|
|
7461
7473
|
}), /*#__PURE__*/jsx(Box, {
|
|
@@ -17683,8 +17695,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17683
17695
|
});
|
|
17684
17696
|
return {
|
|
17685
17697
|
series: sources.map(function (item) {
|
|
17686
|
-
var _item$
|
|
17687
|
-
return Number((_item$
|
|
17698
|
+
var _item$visitors3;
|
|
17699
|
+
return Number((_item$visitors3 = item.visitors) !== null && _item$visitors3 !== void 0 ? _item$visitors3 : 0);
|
|
17688
17700
|
}),
|
|
17689
17701
|
labels: sources.map(function (item) {
|
|
17690
17702
|
return item.source;
|
|
@@ -17693,10 +17705,10 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17693
17705
|
centerLabel: "visitors",
|
|
17694
17706
|
centerValue: formatNumber((_breakdown$totalVisit = breakdown.totalVisitors) !== null && _breakdown$totalVisit !== void 0 ? _breakdown$totalVisit : 0),
|
|
17695
17707
|
items: sources.map(function (item, index) {
|
|
17696
|
-
var _item$
|
|
17708
|
+
var _item$visitors4;
|
|
17697
17709
|
return {
|
|
17698
17710
|
label: item.source,
|
|
17699
|
-
val:
|
|
17711
|
+
val: formatNumber((_item$visitors4 = item.visitors) !== null && _item$visitors4 !== void 0 ? _item$visitors4 : 0),
|
|
17700
17712
|
color: colors[index]
|
|
17701
17713
|
};
|
|
17702
17714
|
})
|
|
@@ -18068,14 +18080,16 @@ var EmailTrendCard = function EmailTrendCard(_ref) {
|
|
|
18068
18080
|
sx: {
|
|
18069
18081
|
fontWeight: 700,
|
|
18070
18082
|
fontSize: "18px",
|
|
18071
|
-
color: "#000"
|
|
18083
|
+
color: "#000",
|
|
18084
|
+
lineHeight: 1.15
|
|
18072
18085
|
},
|
|
18073
18086
|
children: title
|
|
18074
18087
|
}), /*#__PURE__*/jsx(Typography, {
|
|
18075
18088
|
sx: {
|
|
18076
18089
|
fontSize: "12px",
|
|
18077
18090
|
color: "rgba(0, 0, 0, 0.4)",
|
|
18078
|
-
fontWeight: 500
|
|
18091
|
+
fontWeight: 500,
|
|
18092
|
+
lineHeight: 1.15
|
|
18079
18093
|
},
|
|
18080
18094
|
children: subtitle
|
|
18081
18095
|
})]
|