@ammarkhalidfarooq/dashboard-package 0.6.53 → 0.6.55
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 +78 -6
- package/dist/index.cjs.js.map +1 -1
- package/dist/index.es.js +79 -7
- package/dist/index.es.js.map +1 -1
- package/package.json +1 -1
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React, { Suspense, lazy, useState, useRef, useEffect, useMemo } from 'react';
|
|
2
2
|
import { Box, Button, Menu, MenuItem, Grid, Card, CardContent, Typography, IconButton, ThemeProvider, CircularProgress, Avatar, LinearProgress, Stack, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Skeleton } from '@mui/material';
|
|
3
|
-
import { MoreHoriz, TrendingDown, TrendingUp, MoreVert, Check, InfoOutlined, Settings, Adjust,
|
|
3
|
+
import { MoreHoriz, TrendingDown, TrendingUp, MoreVert, Check, InfoOutlined, Settings, Adjust, PeopleAltOutlined, FavoriteOutlined, PaidOutlined, PersonOutlined, IndeterminateCheckBoxOutlined, SearchOutlined, HighlightOff, NearMe, Email, NotInterested } from '@mui/icons-material';
|
|
4
4
|
import { createTheme, useTheme } from '@mui/material/styles';
|
|
5
5
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
6
6
|
import Grid$1 from '@mui/material/Grid';
|
|
@@ -152,6 +152,26 @@ function _objectSpread2(e) {
|
|
|
152
152
|
}
|
|
153
153
|
return e;
|
|
154
154
|
}
|
|
155
|
+
function _objectWithoutProperties(e, t) {
|
|
156
|
+
if (null == e) return {};
|
|
157
|
+
var o,
|
|
158
|
+
r,
|
|
159
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
160
|
+
if (Object.getOwnPropertySymbols) {
|
|
161
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
162
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
163
|
+
}
|
|
164
|
+
return i;
|
|
165
|
+
}
|
|
166
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
167
|
+
if (null == r) return {};
|
|
168
|
+
var t = {};
|
|
169
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
170
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
171
|
+
t[n] = r[n];
|
|
172
|
+
}
|
|
173
|
+
return t;
|
|
174
|
+
}
|
|
155
175
|
function _regenerator() {
|
|
156
176
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
157
177
|
var e,
|
|
@@ -2941,7 +2961,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2941
2961
|
style: {
|
|
2942
2962
|
fontSize: 8,
|
|
2943
2963
|
color: "#9CA3AF",
|
|
2944
|
-
marginBottom:
|
|
2964
|
+
marginBottom: 4
|
|
2945
2965
|
},
|
|
2946
2966
|
children: l
|
|
2947
2967
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -3065,7 +3085,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
3065
3085
|
style: {
|
|
3066
3086
|
fontSize: 8,
|
|
3067
3087
|
color: "#9CA3AF",
|
|
3068
|
-
marginBottom:
|
|
3088
|
+
marginBottom: 4
|
|
3069
3089
|
},
|
|
3070
3090
|
children: l
|
|
3071
3091
|
}), /*#__PURE__*/jsx("div", {
|
|
@@ -16099,6 +16119,51 @@ var html2canvas_esm = /*#__PURE__*/Object.freeze({
|
|
|
16099
16119
|
default: html2canvas
|
|
16100
16120
|
});
|
|
16101
16121
|
|
|
16122
|
+
var _excluded = ["size"];
|
|
16123
|
+
var AverageDonationIcon = function AverageDonationIcon(_ref) {
|
|
16124
|
+
var _ref$size = _ref.size,
|
|
16125
|
+
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
16126
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16127
|
+
return /*#__PURE__*/jsxs("svg", _objectSpread2(_objectSpread2({
|
|
16128
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16129
|
+
viewBox: "0 0 24 24",
|
|
16130
|
+
width: size,
|
|
16131
|
+
height: size,
|
|
16132
|
+
"aria-hidden": "true"
|
|
16133
|
+
}, props), {}, {
|
|
16134
|
+
children: [/*#__PURE__*/jsx("circle", {
|
|
16135
|
+
cx: "12",
|
|
16136
|
+
cy: "12",
|
|
16137
|
+
r: "12",
|
|
16138
|
+
fill: "#f1f3ff"
|
|
16139
|
+
}), /*#__PURE__*/jsxs("g", {
|
|
16140
|
+
fill: "#4e47e5",
|
|
16141
|
+
children: [/*#__PURE__*/jsx("path", {
|
|
16142
|
+
d: "M9.02,17.2c-.2.05-.27.39.02.47.3.09.57-.12.83-.11,1.39.05,2.62.58,3.91.72,1.65.17,3.28-1.43,4.8-1.99.47-.18,1.22-.48,1.7-.24.28.14.34.49.06.67-1.39.71-2.69,1.95-4.04,2.65-3.6,1.87-8.35-1.58-12.09-.22l-.73-2.8c2.25-.42,4.07-1.82,6.46-1.41.93.16,1.89.98,2.8,1.34.54.22,2.25.55,2.45.85.16.24-.13.54-.33.66-.75.43-2.86-.48-3.76-.6-.57.1-1.57-.13-2.07,0Z"
|
|
16143
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16144
|
+
d: "M15.66,17.32s0-.27-.12-.43c-.38-.53-1.75-.64-2.41-.89-1.31-.49-2.39-1.59-3.92-1.62,0-1.55,1.08-3.16,2.24-4.13,1.32-1.12.97-.51,2.32-.48.52.01,1.31-.34,1.64-.19.81.36,2.4,2.38,2.74,3.23.29.71.68,2.28.28,2.96-.08.14-2.67,1.66-2.78,1.55ZM12.82,11.75c-1.27.28-.05,2.18.77,2.47.91.32,2.49-1.7,1.52-2.38-.56-.4-.94.12-1.23.13s-.49-.34-1.07-.21Z"
|
|
16145
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16146
|
+
d: "M15.9,7.09c-.43,1.53-1.01,2.66-2.83,2.16-.66-.18-1.02-1.72-1.43-2.28,1.47-.46,2.77.55,4.26.12Z"
|
|
16147
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16148
|
+
d: "M18.46,6.97c.39.37-1.47,1.17-1.58.67-.09-.4,1.41-.83,1.58-.67Z"
|
|
16149
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16150
|
+
d: "M16.75,4.78c.18.18-.73,1.62-1.1,1.34-.32-.25.73-1.7,1.1-1.34Z"
|
|
16151
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16152
|
+
d: "M14.03,4.06c.25.05.3,1.75-.16,1.72-.4-.02-.35-1.82.16-1.72Z"
|
|
16153
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16154
|
+
d: "M9.4,6.99c.3-.1,1.46.3,1.38.65-.1.46-1.39-.15-1.58-.37-.03-.13.09-.25.2-.29Z"
|
|
16155
|
+
}), /*#__PURE__*/jsx("path", {
|
|
16156
|
+
d: "M12,6.12c-.34.26-1.44-1.2-.91-1.34.36-.09,1.19,1.13.91,1.34Z"
|
|
16157
|
+
})]
|
|
16158
|
+
})]
|
|
16159
|
+
}));
|
|
16160
|
+
};
|
|
16161
|
+
var avgDonationAvatarSx = {
|
|
16162
|
+
width: 24,
|
|
16163
|
+
height: 24,
|
|
16164
|
+
bgcolor: "transparent"
|
|
16165
|
+
};
|
|
16166
|
+
|
|
16102
16167
|
var CARD_BORDER = "1.5px solid #F1F1F5";
|
|
16103
16168
|
var PANEL_BORDER = "1px solid #f0f0f0";
|
|
16104
16169
|
var PANEL_SHADOW = "0 4px 24px rgba(0,0,0,0.06)";
|
|
@@ -16842,7 +16907,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
16842
16907
|
value: "$".concat(formatNumber(((_apiData$overviewStat10 = apiData === null || apiData === void 0 || (_apiData$overviewStat11 = apiData.overviewStats) === null || _apiData$overviewStat11 === void 0 || (_apiData$overviewStat11 = _apiData$overviewStat11.overview) === null || _apiData$overviewStat11 === void 0 ? void 0 : _apiData$overviewStat11.overallAVGDonations) !== null && _apiData$overviewStat10 !== void 0 ? _apiData$overviewStat10 : 0).toFixed(2))),
|
|
16843
16908
|
subValue: "".concat(Number((_apiData$overviewStat12 = apiData === null || apiData === void 0 || (_apiData$overviewStat13 = apiData.overviewStats) === null || _apiData$overviewStat13 === void 0 || (_apiData$overviewStat13 = _apiData$overviewStat13.overview.growthPercentage) === null || _apiData$overviewStat13 === void 0 ? void 0 : _apiData$overviewStat13.overallAVGDonations) !== null && _apiData$overviewStat12 !== void 0 ? _apiData$overviewStat12 : 0).toFixed(2), "% vs pp\n "),
|
|
16844
16909
|
label: "Average Donation Amount",
|
|
16845
|
-
icon: /*#__PURE__*/jsx(
|
|
16910
|
+
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
16911
|
+
avatarSx: avgDonationAvatarSx,
|
|
16846
16912
|
money: true,
|
|
16847
16913
|
error: false,
|
|
16848
16914
|
warning: false
|
|
@@ -16902,6 +16968,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
16902
16968
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
16903
16969
|
caption: metricInfo[title].subValue,
|
|
16904
16970
|
icon: metricInfo[title].icon,
|
|
16971
|
+
avatarSx: metricInfo[title].avatarSx,
|
|
16905
16972
|
error: metricInfo[title].error,
|
|
16906
16973
|
active: activeMetric === title,
|
|
16907
16974
|
onClick: function onClick() {
|
|
@@ -17305,7 +17372,8 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
17305
17372
|
subValue: "12% vs last month",
|
|
17306
17373
|
chartLabel: "Average Donation",
|
|
17307
17374
|
data: [120, 135, 125, 140, 130, 128, 130.58],
|
|
17308
|
-
icon: /*#__PURE__*/jsx(
|
|
17375
|
+
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
17376
|
+
avatarSx: avgDonationAvatarSx,
|
|
17309
17377
|
money: true,
|
|
17310
17378
|
error: false,
|
|
17311
17379
|
warning: false
|
|
@@ -17319,6 +17387,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
17319
17387
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
17320
17388
|
caption: metricInfo[title].subValue,
|
|
17321
17389
|
icon: metricInfo[title].icon,
|
|
17390
|
+
avatarSx: metricInfo[title].avatarSx,
|
|
17322
17391
|
error: metricInfo[title].error,
|
|
17323
17392
|
active: activeMetric === title,
|
|
17324
17393
|
onClick: function onClick() {
|
|
@@ -17658,7 +17727,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17658
17727
|
subValue: "18% vs pp",
|
|
17659
17728
|
data: [110, 125, 120, 135, 130, 128, 130.58],
|
|
17660
17729
|
categories: fallbackCategories,
|
|
17661
|
-
icon: /*#__PURE__*/jsx(
|
|
17730
|
+
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
17731
|
+
avatarSx: avgDonationAvatarSx,
|
|
17662
17732
|
money: true,
|
|
17663
17733
|
warning: false,
|
|
17664
17734
|
error: false
|
|
@@ -17731,7 +17801,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17731
17801
|
subValue: growthCaption("overallAVGDonations"),
|
|
17732
17802
|
data: avgDonationSeries.data,
|
|
17733
17803
|
categories: avgDonationSeries.categories,
|
|
17734
|
-
icon: /*#__PURE__*/jsx(
|
|
17804
|
+
icon: /*#__PURE__*/jsx(AverageDonationIcon, {}),
|
|
17805
|
+
avatarSx: avgDonationAvatarSx,
|
|
17735
17806
|
money: true,
|
|
17736
17807
|
warning: false,
|
|
17737
17808
|
error: false
|
|
@@ -17820,6 +17891,7 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17820
17891
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
17821
17892
|
caption: metricInfo[title].subValue,
|
|
17822
17893
|
icon: metricInfo[title].icon,
|
|
17894
|
+
avatarSx: metricInfo[title].avatarSx,
|
|
17823
17895
|
error: metricInfo[title].error,
|
|
17824
17896
|
active: activeMetric === title,
|
|
17825
17897
|
onClick: function onClick() {
|