@ammarkhalidfarooq/dashboard-package 0.6.115 → 0.6.117

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.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, PeopleAltOutlined, PaidOutlined, PersonOutlined, IndeterminateCheckBoxOutlined, FavoriteOutlined, SearchOutlined, HighlightOff, Email } from '@mui/icons-material';
3
+ import { MoreHoriz, TrendingDown, TrendingUp, MoreVert, Check, InfoOutlined, Settings, PeopleAltOutlined, RequestQuoteOutlined, PaidOutlined, PersonOutlined, IndeterminateCheckBoxOutlined, FavoriteOutlined, SearchOutlined, HighlightOff, Email } 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';
@@ -7161,7 +7161,8 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7161
7161
  title: "Active Campaigns",
7162
7162
  subtitle: "Live fundraisers ranked by velocity",
7163
7163
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7164
- rows: activeCampaignsRows
7164
+ rows: activeCampaignsRows,
7165
+ height: "100%"
7165
7166
  }), /*#__PURE__*/jsx(DonorMixCard, {
7166
7167
  title: "Donor Mix",
7167
7168
  subtitle: "Acquisition vs retention",
@@ -7182,27 +7183,34 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7182
7183
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
7183
7184
  bottomSummaryTrend: "".concat(donorMixPrev, "% vs pp"),
7184
7185
  sx: {
7185
- width: "100%"
7186
+ width: "100%",
7187
+ height: "100%"
7186
7188
  }
7187
7189
  })]
7188
7190
  }) : /*#__PURE__*/jsxs(Grid, {
7189
7191
  container: true,
7190
7192
  spacing: GRID_GAP,
7191
7193
  sx: {
7192
- mt: GRID_GAP
7194
+ mt: GRID_GAP,
7195
+ alignItems: "stretch"
7193
7196
  },
7194
7197
  children: [/*#__PURE__*/jsx(Grid, {
7195
7198
  item: true,
7196
7199
  xs: 12,
7197
7200
  md: 9,
7198
7201
  sx: {
7202
+ display: "flex",
7199
7203
  paddingTop: "0px !important"
7200
7204
  },
7201
7205
  children: /*#__PURE__*/jsx(ActiveCampaignsCard, {
7202
7206
  title: "Active Campaigns",
7203
7207
  subtitle: "Live fundraisers ranked by velocity",
7204
7208
  columns: ["Campaign", "Raised", "Progress", "Donors", "Avg gift"],
7205
- rows: activeCampaignsRows
7209
+ rows: activeCampaignsRows,
7210
+ height: "100%",
7211
+ sx: {
7212
+ width: "100%"
7213
+ }
7206
7214
  })
7207
7215
  }), /*#__PURE__*/jsx(Grid, {
7208
7216
  item: true,
@@ -7236,7 +7244,8 @@ var OverallDetailsGrid = function OverallDetailsGrid(_ref) {
7236
7244
  bottomSummaryValue: "$".concat(formatNumber(avgGift)),
7237
7245
  bottomSummaryTrend: "".concat(donorMixPrev, "% vs pp"),
7238
7246
  sx: {
7239
- width: "100%"
7247
+ width: "100%",
7248
+ height: "100%"
7240
7249
  }
7241
7250
  })
7242
7251
  })]
@@ -16929,11 +16938,11 @@ var html2canvas_esm = /*#__PURE__*/Object.freeze({
16929
16938
  default: html2canvas
16930
16939
  });
16931
16940
 
16932
- var _excluded$7 = ["size"];
16941
+ var _excluded$6 = ["size"];
16933
16942
  var AverageDonationIcon = function AverageDonationIcon(_ref) {
16934
16943
  var _ref$size = _ref.size,
16935
16944
  size = _ref$size === void 0 ? 30 : _ref$size,
16936
- props = _objectWithoutProperties(_ref, _excluded$7);
16945
+ props = _objectWithoutProperties(_ref, _excluded$6);
16937
16946
  return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
16938
16947
  xmlns: "http://www.w3.org/2000/svg",
16939
16948
  viewBox: "0 0 24 24",
@@ -16964,11 +16973,11 @@ var AverageDonationIcon = function AverageDonationIcon(_ref) {
16964
16973
  }));
16965
16974
  };
16966
16975
 
16967
- var _excluded$6 = ["size"];
16976
+ var _excluded$5 = ["size"];
16968
16977
  var ConversionRateIcon = function ConversionRateIcon(_ref) {
16969
16978
  var _ref$size = _ref.size,
16970
16979
  size = _ref$size === void 0 ? 30 : _ref$size,
16971
- props = _objectWithoutProperties(_ref, _excluded$6);
16980
+ props = _objectWithoutProperties(_ref, _excluded$5);
16972
16981
  return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
16973
16982
  xmlns: "http://www.w3.org/2000/svg",
16974
16983
  viewBox: "0 0 24 24",
@@ -16995,39 +17004,6 @@ var ConversionRateIcon = function ConversionRateIcon(_ref) {
16995
17004
  }));
16996
17005
  };
16997
17006
 
16998
- var _excluded$5 = ["size"];
16999
- var NetRaisedIcon = function NetRaisedIcon(_ref) {
17000
- var _ref$size = _ref.size,
17001
- size = _ref$size === void 0 ? 30 : _ref$size,
17002
- props = _objectWithoutProperties(_ref, _excluded$5);
17003
- return /*#__PURE__*/jsx("svg", _objectSpread2(_objectSpread2({
17004
- xmlns: "http://www.w3.org/2000/svg",
17005
- viewBox: "0 0 24 24",
17006
- width: size,
17007
- height: size,
17008
- "aria-hidden": "true"
17009
- }, props), {}, {
17010
- children: /*#__PURE__*/jsxs("g", {
17011
- fill: "#4e47e5",
17012
- children: [/*#__PURE__*/jsx("path", {
17013
- d: "M19.06,8.58s-.05.06-.05.09c-.08.3-.12.64-.19.94-.51,2.31-1.24,4.58-2.76,6.43-2.99,3.66-7.63,3.71-11.68,1.85-.4-.19-1.44-.67-1.73-.95-.51-.5-.15-1.34.53-1.34.3,0,1.3.63,1.65.8,1.88.89,4.06,1.43,6.14,1.02,4.28-.84,5.87-5.18,6.51-9.01l-1.92,2.29c-.63.55-1.57-.08-1.23-.88,1.23-1.46,2.4-3.02,3.67-4.45.26-.29.41-.51.85-.47.34.03.53.27.66.57l2.05,5.4c.28.93-.99,1.44-1.43.56l-1.06-2.85Z"
17014
- }), /*#__PURE__*/jsx("path", {
17015
- d: "M13.64,11.93c.01.07-.03.14-.03.21,0,.22.03.46.03.68.01,1.06,0,2.13,0,3.19-.38.34-.83.57-1.28.8v-4.87h1.29Z"
17016
- }), /*#__PURE__*/jsx("path", {
17017
- d: "M11.74,12.74v4.29c-.33.09-.66.2-.99.25-.08.01-.27.07-.29-.01v-4.52s1.28,0,1.28,0Z"
17018
- }), /*#__PURE__*/jsx("path", {
17019
- d: "M9.87,13.55v3.8c-.42.07-.86,0-1.29-.03v-3.77h1.29Z"
17020
- }), /*#__PURE__*/jsx("path", {
17021
- d: "M15.51,11.13v2.69c-.39.58-.76,1.19-1.29,1.66v-4.35h1.29Z"
17022
- }), /*#__PURE__*/jsx("polygon", {
17023
- points: "7.97 14.35 7.97 17.25 6.71 16.91 6.71 14.35"
17024
- }), /*#__PURE__*/jsx("polygon", {
17025
- points: "6.1 15.16 6.1 16.74 4.81 16.19 4.81 15.16"
17026
- })]
17027
- })
17028
- }));
17029
- };
17030
-
17031
17007
  var CARD_BORDER = "1.5px solid #F1F1F5";
17032
17008
  var PANEL_BORDER = "1px solid #f0f0f0";
17033
17009
  var PANEL_SHADOW = "0 4px 24px rgba(0,0,0,0.06)";
@@ -17757,7 +17733,7 @@ var OverallSection = function OverallSection(_ref) {
17757
17733
  value: "$".concat(formatNumber(((_apiData$overviewStat5 = apiData === null || apiData === void 0 || (_apiData$overviewStat6 = apiData.overviewStats) === null || _apiData$overviewStat6 === void 0 || (_apiData$overviewStat6 = _apiData$overviewStat6.overview) === null || _apiData$overviewStat6 === void 0 ? void 0 : _apiData$overviewStat6.netRevenue) !== null && _apiData$overviewStat5 !== void 0 ? _apiData$overviewStat5 : 0).toFixed(2))),
17758
17734
  subValue: "".concat(Number((_apiData$overviewStat7 = apiData === null || apiData === void 0 || (_apiData$overviewStat8 = apiData.overviewStats) === null || _apiData$overviewStat8 === void 0 || (_apiData$overviewStat8 = _apiData$overviewStat8.overview.growthPercentage) === null || _apiData$overviewStat8 === void 0 ? void 0 : _apiData$overviewStat8.netRevenue) !== null && _apiData$overviewStat7 !== void 0 ? _apiData$overviewStat7 : 0).toFixed(2), "% vs pp\n "),
17759
17735
  label: "Net Raised",
17760
- icon: /*#__PURE__*/jsx(NetRaisedIcon, {}),
17736
+ icon: /*#__PURE__*/jsx(RequestQuoteOutlined, {}),
17761
17737
  money: true,
17762
17738
  error: false,
17763
17739
  warning: false