@ammarkhalidfarooq/dashboard-package 0.4.43 → 0.4.44
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 +56 -21
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +56 -21
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -5928,65 +5928,100 @@ var PaidSection = function PaidSection() {
|
|
|
5928
5928
|
var categories = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
5929
5929
|
var metricInfo = {
|
|
5930
5930
|
"Total Spent": {
|
|
5931
|
-
value: "$
|
|
5931
|
+
value: "$".concat(formatNumber(80313)),
|
|
5932
5932
|
subValue: "12% vs last month",
|
|
5933
5933
|
chartLabel: "Daily Spend",
|
|
5934
5934
|
data: [800, 950, 700, 1100, 900, 1200, 1300],
|
|
5935
|
-
icon: iconsMaterial.IndeterminateCheckBoxOutlined
|
|
5935
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.IndeterminateCheckBoxOutlined, {}),
|
|
5936
|
+
money: true,
|
|
5937
|
+
error: false,
|
|
5938
|
+
warning: false
|
|
5936
5939
|
},
|
|
5937
5940
|
"Revinue Raised": {
|
|
5938
|
-
value: "$
|
|
5941
|
+
value: "$".concat(formatNumber(240398)),
|
|
5939
5942
|
subValue: "12% vs last month",
|
|
5940
5943
|
chartLabel: "Daily Revenue",
|
|
5941
5944
|
data: [3200, 4100, 2800, 5600, 4200, 6100, 7500],
|
|
5942
|
-
icon: iconsMaterial.PaidOutlined
|
|
5945
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
5946
|
+
money: true,
|
|
5947
|
+
error: false,
|
|
5948
|
+
warning: false
|
|
5943
5949
|
},
|
|
5944
5950
|
ROAS: {
|
|
5945
5951
|
value: "3.0",
|
|
5946
5952
|
subValue: "12% vs last month",
|
|
5947
5953
|
chartLabel: "ROAS Trend",
|
|
5948
5954
|
data: [2.5, 3.1, 2.8, 4.2, 3.8, 4.5, 5.2],
|
|
5949
|
-
icon: iconsMaterial.TrendingUp
|
|
5955
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.TrendingUp, {}),
|
|
5956
|
+
money: false,
|
|
5957
|
+
error: false,
|
|
5958
|
+
warning: false
|
|
5950
5959
|
},
|
|
5951
5960
|
"Cost per donor": {
|
|
5952
|
-
value: "$373
|
|
5961
|
+
value: "$".concat(formatNumber(373)),
|
|
5953
5962
|
subValue: "12% vs last month",
|
|
5954
5963
|
chartLabel: "CPA Trend",
|
|
5955
5964
|
data: [350, 380, 360, 410, 390, 370, 373],
|
|
5956
|
-
icon: iconsMaterial.PersonOutlined
|
|
5965
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PersonOutlined, {}),
|
|
5966
|
+
money: true,
|
|
5967
|
+
error: false,
|
|
5968
|
+
warning: false
|
|
5957
5969
|
},
|
|
5958
5970
|
"Conversion rate": {
|
|
5959
5971
|
value: "3.1%",
|
|
5960
5972
|
subValue: "12% vs last month",
|
|
5961
5973
|
chartLabel: "Conversion Rate",
|
|
5962
5974
|
data: [2.8, 3.0, 2.9, 3.4, 3.2, 3.1, 3.1],
|
|
5963
|
-
icon: iconsMaterial.Adjust
|
|
5975
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Adjust, {}),
|
|
5976
|
+
money: false,
|
|
5977
|
+
error: false,
|
|
5978
|
+
warning: false
|
|
5964
5979
|
},
|
|
5965
5980
|
"Avg donation": {
|
|
5966
|
-
value: "$130.58
|
|
5981
|
+
value: "$".concat(formatNumber(130.58)),
|
|
5967
5982
|
subValue: "12% vs last month",
|
|
5968
5983
|
chartLabel: "Average Donation",
|
|
5969
5984
|
data: [120, 135, 125, 140, 130, 128, 130.58],
|
|
5970
|
-
icon: iconsMaterial.PaidOutlined
|
|
5985
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
5986
|
+
money: true,
|
|
5987
|
+
error: false,
|
|
5988
|
+
warning: false
|
|
5971
5989
|
}
|
|
5972
5990
|
};
|
|
5973
5991
|
var renderCard = function renderCard(title) {
|
|
5974
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
5992
|
+
return /*#__PURE__*/jsxRuntime.jsx(MetricCard
|
|
5993
|
+
// key={title}
|
|
5994
|
+
, {
|
|
5975
5995
|
title: title,
|
|
5976
|
-
value: metricInfo[title].value,
|
|
5977
|
-
|
|
5996
|
+
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
5997
|
+
caption: metricInfo[title].subValue,
|
|
5978
5998
|
icon: metricInfo[title].icon,
|
|
5999
|
+
error: metricInfo[title].error,
|
|
6000
|
+
active: activeMetric === title,
|
|
5979
6001
|
onClick: function onClick() {
|
|
5980
6002
|
return setActiveMetric(title);
|
|
5981
6003
|
},
|
|
5982
|
-
|
|
5983
|
-
|
|
5984
|
-
|
|
5985
|
-
|
|
5986
|
-
|
|
5987
|
-
|
|
5988
|
-
|
|
5989
|
-
}
|
|
6004
|
+
sx: metricInfo[title].error ? {
|
|
6005
|
+
border: "2px solid #ef4444",
|
|
6006
|
+
bgcolor: "#fffafa"
|
|
6007
|
+
} : {}
|
|
6008
|
+
})
|
|
6009
|
+
// <DisplayCard
|
|
6010
|
+
// key={title}
|
|
6011
|
+
// title={title}
|
|
6012
|
+
// value={metricInfo[title].value}
|
|
6013
|
+
// subValue={metricInfo[title].subValue}
|
|
6014
|
+
// icon={metricInfo[title].icon}
|
|
6015
|
+
// onClick={() => setActiveMetric(title)}
|
|
6016
|
+
// isActive={activeMetric === title}
|
|
6017
|
+
// sx={{
|
|
6018
|
+
// // border:
|
|
6019
|
+
// // activeMetric === title
|
|
6020
|
+
// // ? "2px solid rgb(99, 99, 230)"
|
|
6021
|
+
// // : "2px solid #f0f0f0",
|
|
6022
|
+
// }}
|
|
6023
|
+
// />
|
|
6024
|
+
;
|
|
5990
6025
|
};
|
|
5991
6026
|
var selectedInfo = metricInfo[activeMetric];
|
|
5992
6027
|
var mainChart = {
|