@ammarkhalidfarooq/dashboard-package 0.4.44 → 0.4.45
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 +58 -23
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +58 -23
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -6240,40 +6240,58 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
6240
6240
|
var categories = ["Mon", "Tue", "Wed", "Thu", "Fri", "Sat", "Sun"];
|
|
6241
6241
|
var metricInfo = {
|
|
6242
6242
|
"Organic Users": {
|
|
6243
|
-
value: (
|
|
6243
|
+
value: "".concat(formatNumber(8420)),
|
|
6244
6244
|
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedTrend) || "18% vs last month",
|
|
6245
6245
|
data: [3200, 4100, 2800, 5600, 4200, 6100, 7500],
|
|
6246
|
-
icon: iconsMaterial.PeopleAltOutlined
|
|
6246
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PeopleAltOutlined, {}),
|
|
6247
|
+
money: false,
|
|
6248
|
+
warning: false,
|
|
6249
|
+
error: false
|
|
6247
6250
|
},
|
|
6248
6251
|
"Search Clicks": {
|
|
6249
|
-
value: (
|
|
6252
|
+
value: "".concat(formatNumber(5842)),
|
|
6250
6253
|
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.netRaisedSub) || "92.3% pass-through",
|
|
6251
6254
|
data: [1500, 1800, 1600, 2200, 2000, 2400, 2800],
|
|
6252
|
-
icon: iconsMaterial.SearchOutlined
|
|
6255
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.SearchOutlined, {}),
|
|
6256
|
+
money: false,
|
|
6257
|
+
warning: false,
|
|
6258
|
+
error: false
|
|
6253
6259
|
},
|
|
6254
6260
|
Donations: {
|
|
6255
|
-
value: (
|
|
6261
|
+
value: "".concat(formatNumber(420)),
|
|
6256
6262
|
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedTrend) || "18% vs last month",
|
|
6257
6263
|
data: [15, 22, 18, 30, 25, 35, 42],
|
|
6258
|
-
icon: iconsMaterial.FavoriteOutlined
|
|
6264
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.FavoriteOutlined, {}),
|
|
6265
|
+
money: false,
|
|
6266
|
+
warning: false,
|
|
6267
|
+
error: false
|
|
6259
6268
|
},
|
|
6260
6269
|
"Conversion Rate": {
|
|
6261
6270
|
value: "3.1%",
|
|
6262
6271
|
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.avgDonationTrend) || "8.4% vs last month",
|
|
6263
6272
|
data: [2.5, 2.7, 2.6, 3.1, 3.0, 2.9, 3.1],
|
|
6264
|
-
icon: iconsMaterial.Adjust
|
|
6273
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.Adjust, {}),
|
|
6274
|
+
money: false,
|
|
6275
|
+
warning: false,
|
|
6276
|
+
error: false
|
|
6265
6277
|
},
|
|
6266
6278
|
"Revenue raised": {
|
|
6267
|
-
value: (
|
|
6279
|
+
value: "$".concat(formatNumber(240398)),
|
|
6268
6280
|
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.roasTrend) || "0.4x vs last month",
|
|
6269
6281
|
data: [2.5, 3.1, 2.8, 4.2, 3.8, 4.5, 5.2],
|
|
6270
|
-
icon: iconsMaterial.PaidOutlined
|
|
6282
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
6283
|
+
money: true,
|
|
6284
|
+
warning: false,
|
|
6285
|
+
error: false
|
|
6271
6286
|
},
|
|
6272
6287
|
"Avg donation": {
|
|
6273
|
-
value: (
|
|
6288
|
+
value: "$".concat(formatNumber(130.58)),
|
|
6274
6289
|
subValue: (apiData === null || apiData === void 0 ? void 0 : apiData.totalRaisedTrend) || "18% vs last month",
|
|
6275
6290
|
data: [110, 125, 120, 135, 130, 128, 130.58],
|
|
6276
|
-
icon: iconsMaterial.PaidOutlined
|
|
6291
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(iconsMaterial.PaidOutlined, {}),
|
|
6292
|
+
money: true,
|
|
6293
|
+
warning: false,
|
|
6294
|
+
error: false
|
|
6277
6295
|
}
|
|
6278
6296
|
};
|
|
6279
6297
|
var selectedInfo = metricInfo[activeMetric];
|
|
@@ -6293,23 +6311,40 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
6293
6311
|
flexWrap: "wrap"
|
|
6294
6312
|
},
|
|
6295
6313
|
children: Object.keys(metricInfo).map(function (title) {
|
|
6296
|
-
return /*#__PURE__*/jsxRuntime.jsx(
|
|
6314
|
+
return /*#__PURE__*/jsxRuntime.jsx(MetricCard
|
|
6315
|
+
// key={title}
|
|
6316
|
+
, {
|
|
6297
6317
|
title: title,
|
|
6298
|
-
value: metricInfo[title].value,
|
|
6299
|
-
|
|
6318
|
+
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
6319
|
+
caption: metricInfo[title].subValue,
|
|
6300
6320
|
icon: metricInfo[title].icon,
|
|
6321
|
+
error: metricInfo[title].error,
|
|
6322
|
+
active: activeMetric === title,
|
|
6301
6323
|
onClick: function onClick() {
|
|
6302
6324
|
return setActiveMetric(title);
|
|
6303
6325
|
},
|
|
6304
|
-
|
|
6305
|
-
|
|
6306
|
-
|
|
6307
|
-
|
|
6308
|
-
|
|
6309
|
-
|
|
6310
|
-
|
|
6311
|
-
|
|
6312
|
-
}
|
|
6326
|
+
sx: metricInfo[title].error ? {
|
|
6327
|
+
border: "2px solid #ef4444",
|
|
6328
|
+
bgcolor: "#fffafa"
|
|
6329
|
+
} : {}
|
|
6330
|
+
})
|
|
6331
|
+
// <DisplayCard
|
|
6332
|
+
// key={title}
|
|
6333
|
+
// title={title}
|
|
6334
|
+
// value={metricInfo[title].value}
|
|
6335
|
+
// subValue={metricInfo[title].subValue}
|
|
6336
|
+
// icon={metricInfo[title].icon}
|
|
6337
|
+
// onClick={() => setActiveMetric(title)}
|
|
6338
|
+
// isActive={activeMetric === title}
|
|
6339
|
+
// sx={{
|
|
6340
|
+
// flex: 1,
|
|
6341
|
+
// // border:
|
|
6342
|
+
// // activeMetric === title
|
|
6343
|
+
// // ? "2px solid rgb(99, 99, 230)"
|
|
6344
|
+
// // : "2px solid #f0f0f0",
|
|
6345
|
+
// }}
|
|
6346
|
+
// />
|
|
6347
|
+
;
|
|
6313
6348
|
})
|
|
6314
6349
|
}), /*#__PURE__*/jsxRuntime.jsxs(material.Grid, {
|
|
6315
6350
|
container: true,
|