@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.cjs.js
CHANGED
|
@@ -154,6 +154,26 @@ function _objectSpread2(e) {
|
|
|
154
154
|
}
|
|
155
155
|
return e;
|
|
156
156
|
}
|
|
157
|
+
function _objectWithoutProperties(e, t) {
|
|
158
|
+
if (null == e) return {};
|
|
159
|
+
var o,
|
|
160
|
+
r,
|
|
161
|
+
i = _objectWithoutPropertiesLoose(e, t);
|
|
162
|
+
if (Object.getOwnPropertySymbols) {
|
|
163
|
+
var n = Object.getOwnPropertySymbols(e);
|
|
164
|
+
for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]);
|
|
165
|
+
}
|
|
166
|
+
return i;
|
|
167
|
+
}
|
|
168
|
+
function _objectWithoutPropertiesLoose(r, e) {
|
|
169
|
+
if (null == r) return {};
|
|
170
|
+
var t = {};
|
|
171
|
+
for (var n in r) if ({}.hasOwnProperty.call(r, n)) {
|
|
172
|
+
if (-1 !== e.indexOf(n)) continue;
|
|
173
|
+
t[n] = r[n];
|
|
174
|
+
}
|
|
175
|
+
return t;
|
|
176
|
+
}
|
|
157
177
|
function _regenerator() {
|
|
158
178
|
/*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/babel/babel/blob/main/packages/babel-helpers/LICENSE */
|
|
159
179
|
var e,
|
|
@@ -2943,7 +2963,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
2943
2963
|
style: {
|
|
2944
2964
|
fontSize: 8,
|
|
2945
2965
|
color: "#9CA3AF",
|
|
2946
|
-
marginBottom:
|
|
2966
|
+
marginBottom: 4
|
|
2947
2967
|
},
|
|
2948
2968
|
children: l
|
|
2949
2969
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -3067,7 +3087,7 @@ var ExportPdfLayout = /*#__PURE__*/React.forwardRef(function (_ref1, ref) {
|
|
|
3067
3087
|
style: {
|
|
3068
3088
|
fontSize: 8,
|
|
3069
3089
|
color: "#9CA3AF",
|
|
3070
|
-
marginBottom:
|
|
3090
|
+
marginBottom: 4
|
|
3071
3091
|
},
|
|
3072
3092
|
children: l
|
|
3073
3093
|
}), /*#__PURE__*/jsxRuntime.jsx("div", {
|
|
@@ -16101,6 +16121,51 @@ var html2canvas_esm = /*#__PURE__*/Object.freeze({
|
|
|
16101
16121
|
default: html2canvas
|
|
16102
16122
|
});
|
|
16103
16123
|
|
|
16124
|
+
var _excluded = ["size"];
|
|
16125
|
+
var AverageDonationIcon = function AverageDonationIcon(_ref) {
|
|
16126
|
+
var _ref$size = _ref.size,
|
|
16127
|
+
size = _ref$size === void 0 ? 24 : _ref$size,
|
|
16128
|
+
props = _objectWithoutProperties(_ref, _excluded);
|
|
16129
|
+
return /*#__PURE__*/jsxRuntime.jsxs("svg", _objectSpread2(_objectSpread2({
|
|
16130
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
16131
|
+
viewBox: "0 0 24 24",
|
|
16132
|
+
width: size,
|
|
16133
|
+
height: size,
|
|
16134
|
+
"aria-hidden": "true"
|
|
16135
|
+
}, props), {}, {
|
|
16136
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("circle", {
|
|
16137
|
+
cx: "12",
|
|
16138
|
+
cy: "12",
|
|
16139
|
+
r: "12",
|
|
16140
|
+
fill: "#f1f3ff"
|
|
16141
|
+
}), /*#__PURE__*/jsxRuntime.jsxs("g", {
|
|
16142
|
+
fill: "#4e47e5",
|
|
16143
|
+
children: [/*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16144
|
+
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"
|
|
16145
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16146
|
+
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"
|
|
16147
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16148
|
+
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"
|
|
16149
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16150
|
+
d: "M18.46,6.97c.39.37-1.47,1.17-1.58.67-.09-.4,1.41-.83,1.58-.67Z"
|
|
16151
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16152
|
+
d: "M16.75,4.78c.18.18-.73,1.62-1.1,1.34-.32-.25.73-1.7,1.1-1.34Z"
|
|
16153
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16154
|
+
d: "M14.03,4.06c.25.05.3,1.75-.16,1.72-.4-.02-.35-1.82.16-1.72Z"
|
|
16155
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16156
|
+
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"
|
|
16157
|
+
}), /*#__PURE__*/jsxRuntime.jsx("path", {
|
|
16158
|
+
d: "M12,6.12c-.34.26-1.44-1.2-.91-1.34.36-.09,1.19,1.13.91,1.34Z"
|
|
16159
|
+
})]
|
|
16160
|
+
})]
|
|
16161
|
+
}));
|
|
16162
|
+
};
|
|
16163
|
+
var avgDonationAvatarSx = {
|
|
16164
|
+
width: 24,
|
|
16165
|
+
height: 24,
|
|
16166
|
+
bgcolor: "transparent"
|
|
16167
|
+
};
|
|
16168
|
+
|
|
16104
16169
|
var CARD_BORDER = "1.5px solid #F1F1F5";
|
|
16105
16170
|
var PANEL_BORDER = "1px solid #f0f0f0";
|
|
16106
16171
|
var PANEL_SHADOW = "0 4px 24px rgba(0,0,0,0.06)";
|
|
@@ -16844,7 +16909,8 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
16844
16909
|
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))),
|
|
16845
16910
|
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 "),
|
|
16846
16911
|
label: "Average Donation Amount",
|
|
16847
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(
|
|
16912
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
16913
|
+
avatarSx: avgDonationAvatarSx,
|
|
16848
16914
|
money: true,
|
|
16849
16915
|
error: false,
|
|
16850
16916
|
warning: false
|
|
@@ -16904,6 +16970,7 @@ var OverallSection = function OverallSection(_ref) {
|
|
|
16904
16970
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
16905
16971
|
caption: metricInfo[title].subValue,
|
|
16906
16972
|
icon: metricInfo[title].icon,
|
|
16973
|
+
avatarSx: metricInfo[title].avatarSx,
|
|
16907
16974
|
error: metricInfo[title].error,
|
|
16908
16975
|
active: activeMetric === title,
|
|
16909
16976
|
onClick: function onClick() {
|
|
@@ -17307,7 +17374,8 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
17307
17374
|
subValue: "12% vs last month",
|
|
17308
17375
|
chartLabel: "Average Donation",
|
|
17309
17376
|
data: [120, 135, 125, 140, 130, 128, 130.58],
|
|
17310
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(
|
|
17377
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
17378
|
+
avatarSx: avgDonationAvatarSx,
|
|
17311
17379
|
money: true,
|
|
17312
17380
|
error: false,
|
|
17313
17381
|
warning: false
|
|
@@ -17321,6 +17389,7 @@ var PaidSection = function PaidSection(_ref) {
|
|
|
17321
17389
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
17322
17390
|
caption: metricInfo[title].subValue,
|
|
17323
17391
|
icon: metricInfo[title].icon,
|
|
17392
|
+
avatarSx: metricInfo[title].avatarSx,
|
|
17324
17393
|
error: metricInfo[title].error,
|
|
17325
17394
|
active: activeMetric === title,
|
|
17326
17395
|
onClick: function onClick() {
|
|
@@ -17660,7 +17729,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17660
17729
|
subValue: "18% vs pp",
|
|
17661
17730
|
data: [110, 125, 120, 135, 130, 128, 130.58],
|
|
17662
17731
|
categories: fallbackCategories,
|
|
17663
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(
|
|
17732
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
17733
|
+
avatarSx: avgDonationAvatarSx,
|
|
17664
17734
|
money: true,
|
|
17665
17735
|
warning: false,
|
|
17666
17736
|
error: false
|
|
@@ -17733,7 +17803,8 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17733
17803
|
subValue: growthCaption("overallAVGDonations"),
|
|
17734
17804
|
data: avgDonationSeries.data,
|
|
17735
17805
|
categories: avgDonationSeries.categories,
|
|
17736
|
-
icon: /*#__PURE__*/jsxRuntime.jsx(
|
|
17806
|
+
icon: /*#__PURE__*/jsxRuntime.jsx(AverageDonationIcon, {}),
|
|
17807
|
+
avatarSx: avgDonationAvatarSx,
|
|
17737
17808
|
money: true,
|
|
17738
17809
|
warning: false,
|
|
17739
17810
|
error: false
|
|
@@ -17822,6 +17893,7 @@ var OrganicSection = function OrganicSection(_ref) {
|
|
|
17822
17893
|
value: metricInfo[title].money ? metricInfo[title].value : metricInfo[title].value,
|
|
17823
17894
|
caption: metricInfo[title].subValue,
|
|
17824
17895
|
icon: metricInfo[title].icon,
|
|
17896
|
+
avatarSx: metricInfo[title].avatarSx,
|
|
17825
17897
|
error: metricInfo[title].error,
|
|
17826
17898
|
active: activeMetric === title,
|
|
17827
17899
|
onClick: function onClick() {
|