@ammarkhalidfarooq/dashboard-package 0.6.123 → 0.6.124

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,7 +1,7 @@
1
1
  import React, { Suspense, lazy, useState, useRef, useEffect, useMemo } from 'react';
2
- import { Box, Button, Menu, MenuItem, useTheme as useTheme$1, useMediaQuery, Grid, Card, CardContent, Typography, IconButton, ThemeProvider, CircularProgress, Avatar, LinearProgress, Stack, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Skeleton } from '@mui/material';
2
+ import { Box, Button, Menu, MenuItem, useTheme, useMediaQuery, Grid, Card, CardContent, Typography, IconButton, ThemeProvider, CircularProgress, Avatar, LinearProgress, Stack, TableContainer, Table, TableHead, TableRow, TableCell, TableBody, Skeleton } from '@mui/material';
3
3
  import { MoreHoriz, TrendingDown, TrendingUp, MoreVert, Check, InfoOutlined, Settings, PeopleAltOutlined, RequestQuoteOutlined, PaidOutlined, PersonOutlined, IndeterminateCheckBoxOutlined, FavoriteOutlined, SearchOutlined, HighlightOff, Email } from '@mui/icons-material';
4
- import { createTheme, useTheme } from '@mui/material/styles';
4
+ import { createTheme } from '@mui/material/styles';
5
5
  import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
6
6
  import Grid$1 from '@mui/material/Grid';
7
7
  import Box$1 from '@mui/material/Box';
@@ -465,7 +465,6 @@ var RevenueChart = function RevenueChart(_ref) {
465
465
  isAmount = _ref$isAmount === void 0 ? false : _ref$isAmount,
466
466
  _ref$xAxisTickAmount = _ref.xAxisTickAmount,
467
467
  xAxisTickAmount = _ref$xAxisTickAmount === void 0 ? 5 : _ref$xAxisTickAmount;
468
- var theme = useTheme();
469
468
  var isRadial = type === 'donut' || type === 'pie';
470
469
  var isCurrency = isAmount || (metric === null || metric === void 0 ? void 0 : metric.toLowerCase()) === 'revenue';
471
470
  var isPercent = (metric === null || metric === void 0 ? void 0 : metric.toLowerCase()) === 'percent';
@@ -490,7 +489,7 @@ var RevenueChart = function RevenueChart(_ref) {
490
489
  enabled: false
491
490
  }
492
491
  },
493
- colors: colors || [theme.palette.primary.main, '#4B4BC2', '#7E7EE6', '#A3A3F0', '#C8C8FA'],
492
+ colors: colors || ['#4F46E5', '#4B4BC2', '#7E7EE6', '#A3A3F0', '#C8C8FA'],
494
493
  tooltip: {
495
494
  theme: 'light',
496
495
  y: {
@@ -659,7 +658,7 @@ var RenderChartCard = function RenderChartCard(_ref) {
659
658
  cardSx = _ref$cardSx === void 0 ? {} : _ref$cardSx,
660
659
  _ref$contentSx = _ref.contentSx,
661
660
  contentSx = _ref$contentSx === void 0 ? {} : _ref$contentSx;
662
- var theme = useTheme$1();
661
+ var theme = useTheme();
663
662
  var isMobile = useMediaQuery(theme.breakpoints.down("sm"));
664
663
  var daysLabel = "".concat(numberOfDays, " day").concat(numberOfDays === 1 ? "" : "s");
665
664
  var trendText = item.trend || "18%";
@@ -816,7 +815,7 @@ var RenderChartCard = function RenderChartCard(_ref) {
816
815
  },
817
816
  children: [{
818
817
  label: "Paid Ads",
819
- color: "#6366F1"
818
+ color: "#4F46E5"
820
819
  }, {
821
820
  label: "Organic",
822
821
  color: "#10B981"
@@ -903,7 +902,7 @@ var RenderChartCard = function RenderChartCard(_ref) {
903
902
  },
904
903
  children: [{
905
904
  label: "Paid Ads",
906
- color: "#6366F1"
905
+ color: "#4F46E5"
907
906
  }, {
908
907
  label: "Organic",
909
908
  color: "#10B981"
@@ -17930,7 +17929,7 @@ var OverallSection = function OverallSection(_ref) {
17930
17929
  series: series,
17931
17930
  categories: categories,
17932
17931
  stacked: true,
17933
- colors: ["#6366F1", "#10B981", "#06B6D4"],
17932
+ colors: ["#4F46E5", "#10B981", "#06B6D4"],
17934
17933
  hideControls: true,
17935
17934
  stroke: {
17936
17935
  curve: "smooth",
@@ -17953,7 +17952,7 @@ var OverallSection = function OverallSection(_ref) {
17953
17952
  series: _series,
17954
17953
  categories: _categories,
17955
17954
  stacked: true,
17956
- colors: ["#6366F1", "#10B981", "#06B6D4"],
17955
+ colors: ["#4F46E5", "#10B981", "#06B6D4"],
17957
17956
  hideControls: true
17958
17957
  });
17959
17958
  } else if (Array.isArray(netData) && netData.length > 0) {
@@ -17985,7 +17984,7 @@ var OverallSection = function OverallSection(_ref) {
17985
17984
  series: _series2,
17986
17985
  categories: _categories2,
17987
17986
  stacked: true,
17988
- colors: ["#6366F1", "#10B981", "#06B6D4"],
17987
+ colors: ["#4F46E5", "#10B981", "#06B6D4"],
17989
17988
  hideControls: true
17990
17989
  });
17991
17990
  } else if (Array.isArray(donorsData) && donorsData.length > 0) {
@@ -18017,7 +18016,7 @@ var OverallSection = function OverallSection(_ref) {
18017
18016
  series: _series3,
18018
18017
  categories: _categories3,
18019
18018
  stacked: true,
18020
- colors: ["#6366F1", "#10B981", "#06B6D4"],
18019
+ colors: ["#4F46E5", "#10B981", "#06B6D4"],
18021
18020
  hideControls: true
18022
18021
  });
18023
18022
  } else if (Array.isArray(roasData) && roasData.length > 0) {
@@ -18049,7 +18048,7 @@ var OverallSection = function OverallSection(_ref) {
18049
18048
  series: _series4,
18050
18049
  categories: _categories4,
18051
18050
  stacked: true,
18052
- colors: ["#6366F1", "#10B981", "#06B6D4"],
18051
+ colors: ["#4F46E5", "#10B981", "#06B6D4"],
18053
18052
  hideControls: true
18054
18053
  });
18055
18054
  } else if (Array.isArray(conversionData) && conversionData.length > 0) {
@@ -18081,7 +18080,7 @@ var OverallSection = function OverallSection(_ref) {
18081
18080
  series: _series5,
18082
18081
  categories: _categories5,
18083
18082
  stacked: true,
18084
- colors: ["#6366F1", "#10B981", "#06B6D4"],
18083
+ colors: ["#4F46E5", "#10B981", "#06B6D4"],
18085
18084
  hideControls: true
18086
18085
  });
18087
18086
  } else if (Array.isArray(avgData) && avgData.length > 0) {
@@ -19886,7 +19885,7 @@ var EmailSection = function EmailSection(_ref) {
19886
19885
  data: hasEmailOverview && openRateTrend.data.length > 0 ? openRateTrend.data : [0]
19887
19886
  }],
19888
19887
  categories: hasEmailOverview && openRateTrend.categories.length > 0 ? openRateTrend.categories : ["—"],
19889
- colors: ["rgb(99, 99, 230)"],
19888
+ colors: ["#4F46E5"],
19890
19889
  yAxisMax: computeYAxisMax(openRateTrend.data, 5),
19891
19890
  yAxisTickAmount: 3
19892
19891
  })