@campxdev/react-blueprint 1.7.2 → 1.7.4

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.
Files changed (61) hide show
  1. package/export.ts +1 -0
  2. package/package.json +1 -1
  3. package/src/assets/export.ts +2 -0
  4. package/src/assets/fonts/export.ts +2 -0
  5. package/src/assets/images/export.ts +2 -0
  6. package/src/assets/images/gif/index.ts +1 -1
  7. package/src/assets/images/svg/index.ts +12 -12
  8. package/src/components/Assets/ErrorPages/InternalServerError.tsx +5 -5
  9. package/src/components/Assets/ErrorPages/NoInternetConnection.tsx +5 -5
  10. package/src/components/Assets/ErrorPages/NoItemFound.tsx +6 -5
  11. package/src/components/Assets/ErrorPages/PageNotFound.tsx +5 -5
  12. package/src/components/Assets/ErrorPages/UnAuthorized.tsx +5 -5
  13. package/src/components/Assets/ErrorPages/styles.tsx +1 -1
  14. package/src/components/Assets/Icons/IconComponents/CautionIcon.tsx +37 -0
  15. package/src/components/Assets/Icons/IconComponents/ClearIcon.tsx +37 -0
  16. package/src/components/Assets/Icons/IconComponents/DoneSquare.tsx +2 -2
  17. package/src/components/Assets/Icons/IconComponents/DownArrow.tsx +32 -0
  18. package/src/components/Assets/Icons/IconComponents/LIneDivider.tsx +23 -0
  19. package/src/components/Assets/Icons/IconComponents/PrintDesignerIcon.tsx +47 -0
  20. package/src/components/Assets/Icons/IconComponents/RedirectIcon.tsx +15 -7
  21. package/src/components/Assets/Icons/IconComponents/SettlementsIcon.tsx +53 -0
  22. package/src/components/Assets/Icons/Icons.tsx +12 -0
  23. package/src/components/DataDisplay/ActivityLogView/ActivityLogView.tsx +2 -2
  24. package/src/components/DataDisplay/ActivityLogView/service.tsx +1 -19
  25. package/src/components/DataDisplay/DataTable/DataTable.tsx +62 -39
  26. package/src/components/DataDisplay/DataTable/TablePagination.tsx +20 -12
  27. package/src/components/DataDisplay/EmptyIllustration/EmptyIllustration.tsx +40 -0
  28. package/src/components/DataDisplay/export.ts +1 -0
  29. package/src/components/Feedback/Alert/Alert.tsx +2 -3
  30. package/src/components/Feedback/Spinner/Spinner.css +13 -25
  31. package/src/components/Input/RadioGroup/RadioGroup.tsx +6 -2
  32. package/src/components/Input/SearchBar/SearchBar.tsx +17 -14
  33. package/src/components/Input/SingleSelect/SingleSelect.tsx +2 -1
  34. package/src/components/Input/SingleSelect/components/MenuFooter.tsx +24 -0
  35. package/src/components/Input/SingleSelect/components/OptionsLoader.tsx +14 -0
  36. package/src/components/Input/SingleSelect/components/SingleFilter.tsx +69 -62
  37. package/src/components/Input/SingleSelect/components/SingleInput.tsx +45 -18
  38. package/src/components/Input/TextField/TextField.tsx +4 -1
  39. package/src/components/Input/styles.tsx +5 -5
  40. package/src/components/Layout/PageContent/PageContent.tsx +4 -3
  41. package/src/components/Layout/PageHeader/PageHeader.tsx +22 -69
  42. package/src/components/Layout/PageHeader/components/SearchBar.tsx +69 -26
  43. package/src/components/Layout/PageHeader/components/TableColumnsSelector/TableColumnsSelector.tsx +125 -23
  44. package/src/components/Navigation/Breadcrumbs/Breadcrumbs.tsx +1 -0
  45. package/src/components/Navigation/ConfirmDialog/ConfirmDialog.tsx +3 -3
  46. package/src/components/Navigation/DropDownMenu/DropDownMenu.tsx +2 -2
  47. package/src/components/Navigation/PreviewFiles/PreviewFiles.tsx +56 -81
  48. package/src/components/Navigation/Sidebar/styles.tsx +2 -1
  49. package/src/components/Navigation/TabsContainer/TabsContainer.tsx +1 -1
  50. package/src/components/Navigation/UploadDialog/LoadingUploadDialogContainer.tsx +3 -3
  51. package/src/components/Navigation/UploadDialog/UploadDialog.tsx +46 -33
  52. package/src/components/Navigation/UploadDialog/UploadDialogContainer.tsx +2 -2
  53. package/src/redux/slices/pageHeaderSlice.ts +4 -1
  54. package/src/stories/Navigation/PreviewFiles.stories.tsx +43 -9
  55. package/src/themes/commonTheme.ts +30 -5
  56. package/src/themes/customCssBaseline.ts +3 -2
  57. package/src/components/DataDisplay/styles.tsx +0 -6
  58. package/src/components/Input/components/OptionsLoader.tsx +0 -22
  59. /package/src/assets/images/svg/{Emptylistmage.svg → empty.svg} +0 -0
  60. /package/src/assets/images/svg/{error-cactus.svg → error-image.svg} +0 -0
  61. /package/src/assets/images/svg/{Internalserverimage.svg → server-error.svg} +0 -0
package/export.ts CHANGED
@@ -1,3 +1,4 @@
1
+ export * from './src/assets/export';
1
2
  export * from './src/components/export';
2
3
  export * from './src/hooks/export';
3
4
  export * from './src/redux/export';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@campxdev/react-blueprint",
3
- "version": "1.7.2",
3
+ "version": "1.7.4",
4
4
  "main": "./export.ts",
5
5
  "dependencies": {
6
6
  "@emotion/react": "^11.13.3",
@@ -0,0 +1,2 @@
1
+ export * from './fonts/export';
2
+ export * from './images/export';
@@ -0,0 +1,2 @@
1
+ export * from './heebo/index';
2
+ export * from './poppins/index';
@@ -0,0 +1,2 @@
1
+ export * from './gif/index';
2
+ export * from './svg/index';
@@ -4,7 +4,7 @@ import Success from '../gif/success.gif';
4
4
  import UploadFile from '../gif/upload-file.gif';
5
5
  import UploadingFile from '../gif/uploading-file.gif';
6
6
 
7
- export const AnimatedGifs = {
7
+ export const AnimatedGIFs = {
8
8
  ConfirmationAlert,
9
9
  DeleteConfirmationAlert,
10
10
  UploadFile,
@@ -1,15 +1,15 @@
1
- import assignment from './assignment.svg';
2
- import emptyListImage from './Emptylistmage.svg';
3
- import errorCactus from './error-cactus.svg';
4
- import internalServerError from './Internalserverimage.svg';
5
- import noConnection from './no-connection.svg';
6
- import unAuthorized from './unauthorized.svg';
1
+ import assignmentImage from './assignment.svg';
2
+ import emptyImage from './empty.svg';
3
+ import errorImage from './error-image.svg';
4
+ import noConnectionImage from './no-connection.svg';
5
+ import serverErrorImage from './server-error.svg';
6
+ import unauthorizedImage from './unauthorized.svg';
7
7
 
8
8
  export {
9
- assignment,
10
- emptyListImage,
11
- errorCactus,
12
- internalServerError,
13
- noConnection,
14
- unAuthorized,
9
+ assignmentImage,
10
+ emptyImage,
11
+ errorImage,
12
+ noConnectionImage,
13
+ serverErrorImage,
14
+ unauthorizedImage,
15
15
  };
@@ -1,14 +1,14 @@
1
- import { internalServerError } from '../../../assets/images/svg';
1
+ import { serverErrorImage } from '../../../assets/images/svg';
2
2
  import { Typography } from '../../DataDisplay/Typography/Typography';
3
3
  import { Button } from '../../export';
4
- import { StyledBox } from './styles';
4
+ import { CenterBox } from './styles';
5
5
 
6
6
  export const InternalServerError = ({ resetBoundary }: any) => {
7
7
  return (
8
8
  <>
9
- <StyledBox>
9
+ <CenterBox>
10
10
  <img
11
- src={internalServerError}
11
+ src={serverErrorImage}
12
12
  alt="page not found"
13
13
  width={'350px'}
14
14
  style={{ margin: '20px' }}
@@ -25,7 +25,7 @@ export const InternalServerError = ({ resetBoundary }: any) => {
25
25
  >
26
26
  Try Again
27
27
  </Button>
28
- </StyledBox>
28
+ </CenterBox>
29
29
  </>
30
30
  );
31
31
  };
@@ -1,14 +1,14 @@
1
- import { noConnection } from '../../../assets/images/svg';
1
+ import { noConnectionImage } from '../../../assets/images/svg';
2
2
  import { Typography } from '../../DataDisplay/Typography/Typography';
3
3
  import { Button } from '../../export';
4
- import { StyledBox } from './styles';
4
+ import { CenterBox } from './styles';
5
5
 
6
6
  export const NoInterneConnection = ({ resetBoundary }: any) => {
7
7
  return (
8
8
  <>
9
- <StyledBox>
9
+ <CenterBox>
10
10
  <img
11
- src={noConnection}
11
+ src={noConnectionImage}
12
12
  alt="page not found"
13
13
  width={'350px'}
14
14
  style={{ margin: '20px' }}
@@ -27,7 +27,7 @@ export const NoInterneConnection = ({ resetBoundary }: any) => {
27
27
  >
28
28
  Try Again
29
29
  </Button>
30
- </StyledBox>
30
+ </CenterBox>
31
31
  </>
32
32
  );
33
33
  };
@@ -1,7 +1,8 @@
1
1
  import { ReactNode } from 'react';
2
- import { emptyListImage } from '../../../assets/images/svg';
2
+
3
+ import { emptyImage } from '../../../assets/images/svg';
3
4
  import { Typography } from '../../DataDisplay/Typography/Typography';
4
- import { StyledBox } from './styles';
5
+ import { CenterBox } from './styles';
5
6
 
6
7
  interface NoItemFoundProps {
7
8
  title?: string;
@@ -13,15 +14,15 @@ export const NoItemFound = ({
13
14
  description,
14
15
  }: NoItemFoundProps) => {
15
16
  return (
16
- <StyledBox>
17
+ <CenterBox>
17
18
  <img
18
- src={emptyListImage}
19
+ src={emptyImage}
19
20
  alt="page not found"
20
21
  width="350px"
21
22
  style={{ margin: '20px' }}
22
23
  />
23
24
  <Typography variant="subtitle1">{title}</Typography>
24
25
  <Typography variant="body2">{description}</Typography>
25
- </StyledBox>
26
+ </CenterBox>
26
27
  );
27
28
  };
@@ -1,13 +1,13 @@
1
- import { errorCactus } from '../../../assets/images/svg';
1
+ import { emptyImage } from '../../../assets/images/svg';
2
2
  import { Typography } from '../../DataDisplay/Typography/Typography';
3
- import { StyledBox } from './styles';
3
+ import { CenterBox } from './styles';
4
4
 
5
5
  export const PageNotFound = () => {
6
6
  return (
7
7
  <>
8
- <StyledBox>
8
+ <CenterBox>
9
9
  <img
10
- src={errorCactus}
10
+ src={emptyImage}
11
11
  alt="page not found"
12
12
  width={'350px'}
13
13
  style={{ margin: '20px' }}
@@ -19,7 +19,7 @@ export const PageNotFound = () => {
19
19
  <Typography variant="body2">
20
20
  Please check the URL or return to the homepage.
21
21
  </Typography>
22
- </StyledBox>
22
+ </CenterBox>
23
23
  </>
24
24
  );
25
25
  };
@@ -1,14 +1,14 @@
1
1
  import { ReactNode } from 'react';
2
- import { unAuthorized } from '../../../assets/images/svg';
2
+ import { unauthorizedImage } from '../../../assets/images/svg';
3
3
  import { Typography } from '../../DataDisplay/Typography/Typography';
4
- import { StyledBox } from './styles';
4
+ import { CenterBox } from './styles';
5
5
 
6
6
  export const UnAuthorized = ({ component }: { component?: ReactNode }) => {
7
7
  return (
8
8
  <>
9
- <StyledBox>
9
+ <CenterBox>
10
10
  <img
11
- src={unAuthorized}
11
+ src={unauthorizedImage}
12
12
  alt="page not found"
13
13
  width={'350px'}
14
14
  style={{ margin: '20px' }}
@@ -19,7 +19,7 @@ export const UnAuthorized = ({ component }: { component?: ReactNode }) => {
19
19
  </Typography>
20
20
  <Typography variant="body2">Please log in to continue.</Typography>
21
21
  {component}
22
- </StyledBox>
22
+ </CenterBox>
23
23
  </>
24
24
  );
25
25
  };
@@ -20,7 +20,7 @@ export const StyledAlert = styled(Alert)(({ theme }) => ({
20
20
  },
21
21
  }));
22
22
 
23
- export const StyledBox = styled(Box)(({ theme }) => ({
23
+ export const CenterBox = styled(Box)(({ theme }) => ({
24
24
  width: '100%',
25
25
  display: 'flex',
26
26
  flexDirection: 'column',
@@ -0,0 +1,37 @@
1
+ export const CautionIcon = ({ size = 16 }) => {
2
+ return (
3
+ <svg
4
+ width={size}
5
+ height={size}
6
+ viewBox="0 0 16 16"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <g clipPath="url(#clip0_89_1327)">
11
+ <path
12
+ d="M8 9.83333C7.86766 9.83246 7.74099 9.7795 7.64741 9.68592C7.55383 9.59234 7.50087 9.46567 7.5 9.33333V6C7.50087 5.86766 7.55383 5.74099 7.64741 5.64741C7.74099 5.55383 7.86766 5.50087 8 5.5C8.13234 5.50087 8.25901 5.55383 8.35259 5.64741C8.44617 5.74099 8.49913 5.86766 8.5 6V9.33333C8.49913 9.46567 8.44617 9.59234 8.35259 9.68592C8.25901 9.7795 8.13234 9.83246 8 9.83333Z"
13
+ fill="#F2353C"
14
+ stroke="#F2353C"
15
+ strokeWidth="0.4"
16
+ />
17
+ <path
18
+ d="M8.00016 11.998C7.95547 11.9965 7.91093 11.9921 7.86683 11.9846C7.82505 11.9774 7.7846 11.9639 7.74683 11.9446C7.70434 11.9301 7.66398 11.9099 7.62683 11.8846L7.52683 11.8046C7.40512 11.6768 7.33608 11.5078 7.3335 11.3313C7.33658 11.1555 7.40558 10.9873 7.52683 10.86L7.62683 10.7793C7.66398 10.7541 7.70434 10.7339 7.74683 10.7193C7.7846 10.7001 7.82505 10.6866 7.86683 10.6793C7.95234 10.6593 8.04132 10.6593 8.12683 10.6793C8.17099 10.6855 8.2138 10.699 8.2535 10.7193C8.29599 10.7339 8.33634 10.7541 8.3735 10.7793L8.4735 10.8593C8.5949 10.9868 8.66391 11.1553 8.66683 11.3313C8.66424 11.5078 8.59521 11.6768 8.4735 11.8046L8.3735 11.8846C8.33634 11.9099 8.29599 11.9301 8.2535 11.9446C8.2138 11.9649 8.17099 11.9785 8.12683 11.9846C8.08502 11.9924 8.04267 11.9968 8.00016 11.998Z"
19
+ fill="#F2353C"
20
+ stroke="#F2353C"
21
+ strokeWidth="0.4"
22
+ />
23
+ <path
24
+ d="M12.0403 14.7734H3.96292C3.42049 14.8203 2.87534 14.7222 2.38332 14.4891C1.8913 14.2559 1.47011 13.8962 1.16292 13.4467C0.918473 12.9598 0.808153 12.4166 0.843305 11.8729C0.878456 11.3292 1.05781 10.8047 1.36292 10.3534L5.40292 3.08668C6.06958 1.88668 6.98958 1.22668 8.00292 1.22668C9.01625 1.22668 9.93625 1.88668 10.6029 3.08668L14.6429 10.36C14.9494 10.8108 15.1296 11.3354 15.1648 11.8794C15.1999 12.4234 15.0888 12.9669 14.8429 13.4534C14.5339 13.9012 14.1118 14.2593 13.6195 14.4912C13.1273 14.723 12.5824 14.8204 12.0403 14.7734ZM8.00025 2.22668C7.37358 2.22668 6.76025 2.70668 6.27358 3.57335L2.24025 10.8467C2.0256 11.1482 1.89306 11.5003 1.85566 11.8685C1.81825 12.2366 1.87727 12.6082 2.02692 12.9467C2.24905 13.2432 2.54515 13.4763 2.88559 13.6225C3.22603 13.7688 3.5989 13.8231 3.96692 13.78H12.0469C12.4149 13.8223 12.7875 13.7677 13.1278 13.6215C13.4681 13.4753 13.7643 13.2427 13.9869 12.9467C14.1383 12.6086 14.1983 12.2367 14.1609 11.8682C14.1235 11.4996 13.9899 11.1474 13.7736 10.8467L9.72692 3.57335C9.24025 2.70668 8.62958 2.22668 8.00025 2.22668Z"
25
+ fill="#F2353C"
26
+ stroke="#F2353C"
27
+ strokeWidth="0.4"
28
+ />
29
+ </g>
30
+ <defs>
31
+ <clipPath id="clip0_89_1327">
32
+ <rect width="16" height="16" fill="white" />
33
+ </clipPath>
34
+ </defs>
35
+ </svg>
36
+ );
37
+ };
@@ -0,0 +1,37 @@
1
+ import { styled } from '@mui/material';
2
+
3
+ const StyledSvg = styled('svg')(({ theme }) => ({
4
+ stroke: theme.palette.text.tertiary,
5
+ fill: theme.palette.text.tertiary,
6
+ '&:hover': {
7
+ stroke: theme.palette.primary.main,
8
+ fill: theme.palette.primary.main,
9
+ },
10
+ }));
11
+
12
+ export const ClearIcon = ({
13
+ size = 16,
14
+ onClick,
15
+ }: {
16
+ size?: number;
17
+ onClick?: (e: React.MouseEvent) => void;
18
+ }) => {
19
+ return (
20
+ <StyledSvg
21
+ width={size}
22
+ onClick={onClick}
23
+ height={size}
24
+ viewBox="0 0 12 12"
25
+ fill="none"
26
+ xmlns="http://www.w3.org/2000/svg"
27
+ style={{
28
+ cursor: onClick ? 'pointer' : 'default',
29
+ }}
30
+ >
31
+ <path
32
+ d="M9.52859 2.07129C9.43351 1.97624 9.26447 1.97624 9.16938 2.07129L5.9999 5.2396L2.83042 2.07129C2.73534 1.97624 2.5663 1.97624 2.47122 2.07129C2.37613 2.16634 2.37613 2.33531 2.47122 2.43036L5.64069 5.59868L2.47122 8.767C2.37613 8.86205 2.37613 9.03102 2.47122 9.12607C2.52404 9.17888 2.58743 9.2 2.65082 9.2C2.71421 9.2 2.7776 9.17888 2.83042 9.12607L5.9999 5.95776L9.16938 9.12607C9.22221 9.17888 9.2856 9.2 9.34899 9.2C9.41238 9.2 9.47576 9.17888 9.52859 9.12607C9.62367 9.03102 9.62367 8.86205 9.52859 8.767L6.35911 5.59868L9.52859 2.43036C9.62367 2.33531 9.62367 2.1769 9.52859 2.07129Z"
33
+ stroke-width="1"
34
+ />
35
+ </StyledSvg>
36
+ );
37
+ };
@@ -11,8 +11,8 @@ export const DoneSquare = ({
11
11
  const fill = color ?? theme.palette.highlight.highlightGreen;
12
12
  return (
13
13
  <svg
14
- width="16"
15
- height="16"
14
+ width={size}
15
+ height={size}
16
16
  viewBox="0 0 16 16"
17
17
  fill="none"
18
18
  xmlns="http://www.w3.org/2000/svg"
@@ -0,0 +1,32 @@
1
+ import { useTheme } from '@mui/material';
2
+
3
+ export const DownArrow = ({
4
+ size = 16,
5
+ disabled,
6
+ onClick,
7
+ }: {
8
+ size?: number;
9
+ disabled?: boolean;
10
+ onClick?: (e: React.MouseEvent<SVGSVGElement>) => void;
11
+ }) => {
12
+ const theme = useTheme();
13
+ return (
14
+ <svg
15
+ onClick={onClick}
16
+ width={size}
17
+ height={size}
18
+ viewBox="0 0 16 16"
19
+ fill="none"
20
+ xmlns="http://www.w3.org/2000/svg"
21
+ >
22
+ <path
23
+ d="M7.99896 11.734C8.1371 11.7329 8.2694 11.6782 8.36803 11.5815L8.37443 11.5783L14.2411 5.7116C14.3411 5.61159 14.3972 5.47595 14.3972 5.33453C14.3972 5.19311 14.3411 5.05748 14.2411 4.95747C14.1411 4.85748 14.0054 4.80131 13.864 4.80131C13.7226 4.80131 13.587 4.85748 13.487 4.95747L7.99896 10.446L2.5099 4.95693C2.40988 4.85695 2.27425 4.80078 2.13283 4.80078C1.99141 4.80078 1.85578 4.85695 1.75576 4.95693C1.65578 5.05695 1.59961 5.19258 1.59961 5.334C1.59961 5.47542 1.65578 5.61105 1.75576 5.71107L7.62243 11.5777L7.62776 11.5809C7.72699 11.6781 7.86007 11.733 7.99896 11.734Z"
24
+ fill={theme.palette.text.primary}
25
+ stroke={theme.palette.text.primary}
26
+ fillOpacity={disabled ? 0.5 : 1}
27
+ strokeOpacity={disabled ? 0.5 : 1}
28
+ stroke-width="1"
29
+ />
30
+ </svg>
31
+ );
32
+ };
@@ -0,0 +1,23 @@
1
+ import { useTheme } from '@mui/material';
2
+
3
+ export const LineDividerIcon = ({
4
+ size = 16,
5
+ height = 20, // Default height
6
+ }: {
7
+ size?: number;
8
+ height?: number;
9
+ }) => {
10
+ const theme = useTheme();
11
+ const color = theme.palette.border.primary;
12
+ return (
13
+ <svg
14
+ width={size}
15
+ height={height}
16
+ viewBox="0 0 1 20"
17
+ fill="none"
18
+ xmlns="http://www.w3.org/2000/svg"
19
+ >
20
+ <line x1="0.0" y1="-2.18557e-08" x2="0.500001" y2="20" stroke={color} />
21
+ </svg>
22
+ );
23
+ };
@@ -0,0 +1,47 @@
1
+ export const PrintDesignerIcon = ({ size = 16 }) => {
2
+ return (
3
+ <svg
4
+ width={size}
5
+ height={size}
6
+ viewBox="0 0 117 117"
7
+ fill="none"
8
+ xmlns="http://www.w3.org/2000/svg"
9
+ >
10
+ <mask
11
+ id="mask0_1458_2"
12
+ maskUnits="userSpaceOnUse"
13
+ x="0"
14
+ y="0"
15
+ width="117"
16
+ height="117"
17
+ >
18
+ <path d="M117 0H0V117H117V0Z" fill="white" />
19
+ </mask>
20
+ <g mask="url(#mask0_1458_2)">
21
+ <path
22
+ d="M94 0H23C10.2975 0 0 10.2975 0 23V94C0 106.703 10.2975 117 23 117H94C106.703 117 117 106.703 117 94V23C117 10.2975 106.703 0 94 0Z"
23
+ fill="#7B4B57"
24
+ />
25
+ <path d="M81 31H36.43V21H71L81 31Z" fill="#FDFAED" />
26
+ <path d="M81 41V31H71V41H81Z" fill="#FDFAED" />
27
+ <path d="M88 76H98V51H88V76Z" fill="#FDFAED" />
28
+ <path d="M20 76H30V51H20V76Z" fill="#FDFAED" />
29
+ <path d="M47 74H36V98H47V74Z" fill="#FDFAED" />
30
+ <path d="M81 74H71V98H81V74Z" fill="#FDFAED" />
31
+ <path d="M71.01 98V88H46.44V98H71.01Z" fill="#FDFAED" />
32
+ <path
33
+ d="M98 51H20C20 48.3478 20.9668 45.8043 22.6877 43.9289C24.4087 42.0536 26.7427 41 29.1765 41H88.8235C90.0286 41 91.2219 41.2587 92.3352 41.7612C93.4486 42.2638 94.4602 43.0003 95.3123 43.9289C96.1644 44.8575 96.8403 45.9599 97.3017 47.1732C97.7623 48.3864 98 49.6868 98 51Z"
34
+ fill="#FDFAED"
35
+ />
36
+ <path
37
+ d="M36 76V86H27.3226C25.335 85.8347 23.4714 84.7086 22.111 82.8508C20.7507 80.9931 19.9958 78.5433 20 76H36Z"
38
+ fill="#FDFAED"
39
+ />
40
+ <path
41
+ d="M98 76V76.53C97.8938 78.9823 97.0237 81.3029 95.5565 83.0493C94.0892 84.7958 92.1271 85.846 90.044 86H81V76H98Z"
42
+ fill="#FDFAED"
43
+ />
44
+ </g>
45
+ </svg>
46
+ );
47
+ };
@@ -1,12 +1,20 @@
1
1
  import { useTheme } from '@mui/material';
2
- export const RedirectIcon = ({ size = 16 }) => {
2
+ export const RedirectIcon = ({
3
+ size = 20,
4
+ color,
5
+ opacity = '0.5',
6
+ }: {
7
+ color?: string;
8
+ size?: number;
9
+ opacity?: string;
10
+ }) => {
3
11
  const theme = useTheme();
4
- const color = theme.palette.text.secondary;
12
+ color = color ?? theme.palette.text.primary;
5
13
  return (
6
14
  <svg
7
15
  xmlns="http://www.w3.org/2000/svg"
8
- width="20"
9
- height="20"
16
+ width={size}
17
+ height={size}
10
18
  viewBox="0 0 20 20"
11
19
  fill="none"
12
20
  >
@@ -15,13 +23,13 @@ export const RedirectIcon = ({ size = 16 }) => {
15
23
  maskUnits="userSpaceOnUse"
16
24
  x="0"
17
25
  y="0"
18
- width="20"
19
- height="20"
26
+ width={size}
27
+ height={size}
20
28
  >
21
29
  <path d="M20 0H0V20H20V0Z" fill="white" />
22
30
  </mask>
23
31
  <g mask="url(#mask0_3703_17689)">
24
- <g opacity="0.5">
32
+ <g opacity={opacity}>
25
33
  <path
26
34
  d="M13.4416 14.6884C13.4414 15.6014 13.0786 16.4769 12.4331 17.1224C11.7875 17.768 10.9121 18.1307 9.99911 18.1309H5.18078C4.26784 18.1307 3.39236 17.768 2.74681 17.1224C2.10126 16.4769 1.7385 15.6014 1.73828 14.6884L1.73828 9.86595C1.7385 8.95301 2.10126 8.07752 2.74681 7.43198C3.39236 6.78643 4.26784 6.42367 5.18078 6.42345H5.86911C6.05167 6.42345 6.22675 6.49597 6.35584 6.62506C6.48493 6.75414 6.55745 6.92922 6.55745 7.11178C6.55745 7.29434 6.48493 7.46942 6.35584 7.59851C6.22675 7.7276 6.05167 7.80012 5.86911 7.80012H5.18078C4.63336 7.80166 4.1088 8.0198 3.72172 8.40689C3.33463 8.79397 3.11649 9.31853 3.11495 9.86595V14.6884C3.11671 15.2356 3.33483 15.7598 3.72171 16.1467C4.1086 16.5336 4.63282 16.7517 5.17995 16.7534H9.99995C10.5471 16.7517 11.0713 16.5336 11.4582 16.1467C11.8451 15.7598 12.0632 15.2356 12.0649 14.6884C12.0649 14.5059 12.1375 14.3308 12.2666 14.2017C12.3956 14.0726 12.5707 14.0001 12.7533 14.0001C12.9358 14.0001 13.1109 14.0726 13.24 14.2017C13.3691 14.3308 13.4416 14.5059 13.4416 14.6884ZM17.6624 5.65928L13.9374 1.81095C13.8752 1.74539 13.8004 1.69293 13.7175 1.65665C13.6347 1.62037 13.5454 1.601 13.455 1.59968C13.3646 1.59836 13.2748 1.61512 13.1909 1.64896C13.1071 1.68281 13.0308 1.73307 12.9666 1.79678C12.9013 1.85967 12.8491 1.9349 12.813 2.0181C12.7769 2.1013 12.7577 2.19083 12.7565 2.2815C12.7552 2.37217 12.772 2.46219 12.8058 2.54635C12.8396 2.63051 12.8897 2.70713 12.9533 2.77178L16.4883 6.41678H10.6883C9.77606 6.417 8.90121 6.77919 8.25578 7.42384C7.61035 8.06848 7.24711 8.9429 7.24578 9.85512V13.2976C7.24578 13.4802 7.3183 13.6553 7.44739 13.7843C7.57648 13.9134 7.75156 13.986 7.93411 13.986C8.11667 13.986 8.29175 13.9134 8.42084 13.7843C8.54993 13.6553 8.62245 13.4802 8.62245 13.2976V9.85512C8.62508 9.30842 8.84371 8.78493 9.23068 8.39874C9.61765 8.01255 10.1416 7.79498 10.6883 7.79345H16.4883L12.9458 11.4384C12.8502 11.5351 12.7855 11.658 12.76 11.7915C12.7344 11.9249 12.7492 12.063 12.8024 12.1881C12.8555 12.3132 12.9447 12.4196 13.0585 12.4939C13.1724 12.5682 13.3057 12.6069 13.4416 12.6051C13.6276 12.6037 13.8056 12.5295 13.9374 12.3984L17.6549 8.56512C18.0411 8.17927 18.2586 7.65613 18.2599 7.11024C18.2611 6.56436 18.046 6.04022 17.6616 5.65262L17.6624 5.65928Z"
27
35
  fillOpacity="0.7"
@@ -0,0 +1,53 @@
1
+ import { useTheme } from '@mui/material';
2
+
3
+ export const SettlementsIcon = ({
4
+ color,
5
+ size = 16,
6
+ }: {
7
+ color?: string;
8
+ size?: number;
9
+ }) => {
10
+ const theme = useTheme();
11
+ color = color ?? theme.palette.text.primary;
12
+
13
+ return (
14
+ <svg
15
+ width={size}
16
+ height={size}
17
+ viewBox="0 0 30 30"
18
+ fill="none"
19
+ xmlns="http://www.w3.org/2000/svg"
20
+ >
21
+ <path
22
+ d="M15.0006 21.7783H3.33398C3.10239 21.7768 2.88072 21.6841 2.71696 21.5203C2.55319 21.3566 2.46051 21.1349 2.45898 20.9033C2.46051 20.6717 2.55319 20.4501 2.71696 20.2863C2.88072 20.1225 3.10239 20.0298 3.33398 20.0283H15.0006C15.2327 20.0283 15.4553 20.1205 15.6194 20.2846C15.7835 20.4487 15.8756 20.6713 15.8756 20.9033C15.8756 21.1354 15.7835 21.3579 15.6194 21.522C15.4553 21.6861 15.2327 21.7783 15.0006 21.7783Z"
23
+ fill={color}
24
+ stroke={color}
25
+ strokeWidth="0.4"
26
+ />
27
+ <path
28
+ d="M12.4088 27.5417H5.93375C3.37875 27.5417 2.46875 26.6433 2.46875 24.1V19.3167C2.46875 16.7733 3.37875 15.875 5.93375 15.875H12.4088C14.9637 15.875 15.8737 16.7733 15.8737 19.3167V24.1117C15.8737 26.6433 14.9637 27.5417 12.4088 27.5417ZM5.92208 17.625C4.33542 17.625 4.20708 17.7533 4.20708 19.3167V24.1117C4.20708 25.675 4.33542 25.8033 5.92208 25.8033H12.3971C13.9838 25.8033 14.1121 25.675 14.1121 24.1117V19.3167C14.1121 17.7533 13.9838 17.625 12.3971 17.625H5.92208Z"
29
+ fill={color}
30
+ stroke={color}
31
+ strokeWidth="0.4"
32
+ />
33
+ <path
34
+ d="M18.5008 27.5416C18.3473 27.5401 18.197 27.4983 18.0648 27.4205C17.9325 27.3427 17.823 27.2316 17.7471 27.0983C17.6715 26.9623 17.6328 26.8089 17.6348 26.6534C17.6369 26.4978 17.6796 26.3455 17.7588 26.2116L18.9838 24.1699C19.1043 23.972 19.2978 23.8293 19.5226 23.7726C19.7473 23.7158 19.9853 23.7496 20.1854 23.8666C20.2845 23.9254 20.371 24.0031 20.4399 24.0954C20.5088 24.1877 20.5588 24.2927 20.587 24.4044C20.6152 24.516 20.621 24.6322 20.6042 24.7461C20.5873 24.8601 20.5481 24.9696 20.4888 25.0683L20.1738 25.5933C21.7742 25.2141 23.2002 24.3068 24.2217 23.0177C25.2432 21.7286 25.8007 20.133 25.8041 18.4883C25.8041 18.2562 25.8963 18.0337 26.0604 17.8696C26.2245 17.7055 26.447 17.6133 26.6791 17.6133C26.9112 17.6133 27.1337 17.7055 27.2978 17.8696C27.4619 18.0337 27.5541 18.2562 27.5541 18.4883C27.5479 20.8875 26.5921 23.1867 24.8956 24.8831C23.1991 26.5796 20.9 27.5355 18.5008 27.5416Z"
35
+ fill={color}
36
+ stroke={color}
37
+ strokeWidth="0.4"
38
+ />
39
+ <path
40
+ d="M3.33398 12.3747C3.10239 12.3731 2.88072 12.2805 2.71696 12.1167C2.55319 11.9529 2.46051 11.7313 2.45898 11.4997C2.46299 9.10291 3.41688 6.80545 5.11166 5.11068C6.80643 3.41591 9.10388 2.46202 11.5007 2.45801C11.6549 2.45874 11.8062 2.5001 11.9393 2.57793C12.0724 2.65576 12.1827 2.76731 12.259 2.90134C12.3346 3.0373 12.3733 3.19068 12.3712 3.34623C12.3692 3.50178 12.3265 3.65408 12.2473 3.78801L11.0223 5.82967C10.9017 6.02763 10.7083 6.17033 10.4835 6.22706C10.2588 6.28379 10.0207 6.25002 9.82065 6.13301C9.72158 6.07426 9.6351 5.99651 9.56619 5.90422C9.49727 5.81193 9.44728 5.70693 9.41909 5.59525C9.3909 5.48358 9.38507 5.36743 9.40192 5.25349C9.41878 5.13955 9.458 5.03007 9.51732 4.93134L9.83232 4.40634C8.23102 4.78463 6.80395 5.69156 5.78152 6.98071C4.75909 8.26985 4.20099 9.86597 4.19732 11.5113C4.19763 11.6248 4.17551 11.7372 4.13223 11.8421C4.08895 11.947 4.02537 12.0423 3.94514 12.1225C3.86491 12.2027 3.76962 12.2663 3.66473 12.3096C3.55985 12.3529 3.44745 12.375 3.33398 12.3747Z"
41
+ fill={color}
42
+ stroke={color}
43
+ strokeWidth="0.4"
44
+ />
45
+ <path
46
+ d="M22.584 14.708C21.3726 14.708 20.1884 14.3488 19.1811 13.6758C18.1739 13.0027 17.3888 12.0461 16.9252 10.9269C16.4616 9.80775 16.3403 8.57622 16.5767 7.38808C16.813 6.19995 17.3964 5.10858 18.253 4.25198C19.1096 3.39539 20.2009 2.81204 21.3891 2.5757C22.5772 2.33937 23.8087 2.46066 24.9279 2.92425C26.0471 3.38784 27.0037 4.17289 27.6767 5.18014C28.3498 6.18739 28.709 7.3716 28.709 8.58301C28.7071 10.2069 28.0612 11.7637 26.913 12.912C25.7647 14.0603 24.2079 14.7062 22.584 14.708ZM22.584 4.20801C21.7187 4.20801 20.8728 4.4646 20.1534 4.94533C19.4339 5.42606 18.8731 6.10934 18.542 6.90877C18.2109 7.7082 18.1242 8.58786 18.2931 9.43653C18.4619 10.2852 18.8785 11.0647 19.4904 11.6766C20.1022 12.2885 20.8818 12.7051 21.7305 12.8739C22.5791 13.0428 23.4588 12.9561 24.2582 12.625C25.0577 12.2938 25.7409 11.7331 26.2217 11.0136C26.7024 10.2942 26.959 9.4483 26.959 8.58301C26.9587 7.42278 26.4976 6.31016 25.6772 5.48976C24.8568 4.66936 23.7442 4.20832 22.584 4.20801Z"
47
+ fill={color}
48
+ stroke={color}
49
+ strokeWidth="0.4"
50
+ />
51
+ </svg>
52
+ );
53
+ };
@@ -20,10 +20,12 @@ import { CalendarIcon } from './IconComponents/CalendarIcon';
20
20
  import { CampxFullLogoIcon } from './IconComponents/CampxFullLogoIcon';
21
21
  import { CampxIcon } from './IconComponents/CampxIcon';
22
22
  import { CareerIcon } from './IconComponents/CareerIcon';
23
+ import { CautionIcon } from './IconComponents/CautionIcon';
23
24
  import { CertificateIcon } from './IconComponents/CertificatesIcon';
24
25
  import { CetIcon } from './IconComponents/CetIcon';
25
26
  import { CheckedCheckboxIcon } from './IconComponents/CheckedCheckBoxIcon';
26
27
  import { CheckedRadioIcon } from './IconComponents/CheckedRadioIcon';
28
+ import { ClearIcon } from './IconComponents/ClearIcon';
27
29
  import { ClogWheelIcon } from './IconComponents/ClogWheelIcon';
28
30
  import { CollapseIcon } from './IconComponents/CollapseIcon';
29
31
  import { ColumnsIcon } from './IconComponents/ColumnsIcon';
@@ -42,6 +44,7 @@ import { DeleteIcon } from './IconComponents/DeleteIcon';
42
44
  import { DeviceIcon } from './IconComponents/DeviceIcon';
43
45
  import { DocumentIcon } from './IconComponents/DocumentIcon';
44
46
  import { DoneSquare } from './IconComponents/DoneSquare';
47
+ import { DownArrow } from './IconComponents/DownArrow';
45
48
  import { DownloadIcon } from './IconComponents/DownloadIcon';
46
49
  import { EditIcon } from './IconComponents/EditIcon';
47
50
  import { EmailIcon } from './IconComponents/EmailIcon';
@@ -64,6 +67,7 @@ import { ImportIcon } from './IconComponents/ImportIcon';
64
67
  import { InfoFilledIcon } from './IconComponents/InfoFilledIcon';
65
68
  import { InfoIcon } from './IconComponents/InfoIcon';
66
69
  import { InstitutionsIcon } from './IconComponents/InstitutionsIcon';
70
+ import { LineDividerIcon } from './IconComponents/LIneDivider';
67
71
  import { LeadsIcon } from './IconComponents/LeadsIcon';
68
72
  import { LeftIcon } from './IconComponents/LeftIcon';
69
73
  import { LocationIcon } from './IconComponents/LocationIcon';
@@ -80,6 +84,7 @@ import { OpenPaymentsIcon } from './IconComponents/OpenPaymentsIcon';
80
84
  import { PayxIcon } from './IconComponents/PayxIcon';
81
85
  import { PdfIcon } from './IconComponents/PdfIcon';
82
86
  import { PeoplexIcon } from './IconComponents/PeoplexIcon';
87
+ import { PrintDesignerIcon } from './IconComponents/PrintDesignerIcon';
83
88
  import { PrinterIcon } from './IconComponents/PrinterIcon';
84
89
  import { ProductFeaturesIcon } from './IconComponents/ProductFeaturesIcon';
85
90
  import { ProfileIcon } from './IconComponents/ProfileIcon';
@@ -94,6 +99,7 @@ import { RightIcon } from './IconComponents/RightIcon';
94
99
  import { RouteIcon } from './IconComponents/RoutesIcon';
95
100
  import { SaveIcon } from './IconComponents/SaveIcon';
96
101
  import { SearchIcon } from './IconComponents/SearchIcon';
102
+ import { SettlementsIcon } from './IconComponents/SettlementsIcon';
97
103
  import { ShareIcon } from './IconComponents/ShareIcon';
98
104
  import { SmsIcon } from './IconComponents/SmsIcon';
99
105
  import { StandardIcon } from './IconComponents/StandardIcon';
@@ -119,6 +125,8 @@ import { WhatsappIcon } from './IconComponents/WhatsappIcon';
119
125
 
120
126
  export const Icons = {
121
127
  NoteIcon,
128
+ PrintDesignerIcon,
129
+ CautionIcon,
122
130
  PrinterIcon,
123
131
  RedoIcon,
124
132
  WhatsappIcon,
@@ -236,4 +244,8 @@ export const Icons = {
236
244
  OpenPaymentsIcon,
237
245
  TransactionCardIcon,
238
246
  ObeIcon,
247
+ SettlementsIcon,
248
+ DownArrow,
249
+ ClearIcon,
250
+ LineDividerIcon,
239
251
  };
@@ -4,10 +4,10 @@ import { format, isToday } from 'date-fns';
4
4
  import _ from 'lodash';
5
5
  import { useState } from 'react';
6
6
  import { Button, DatePicker, Spinner } from '../../export';
7
+ import { EmptyIllustration } from '../EmptyIllustration/EmptyIllustration';
7
8
  import {
8
9
  ActivityIcon,
9
10
  convertUTCtoIST,
10
- NoDataFound,
11
11
  ScrollToTopButton,
12
12
  useIntersectionObserver,
13
13
  } from './service';
@@ -175,7 +175,7 @@ export const ActivityLogView = ({
175
175
  <Spinner />
176
176
  </StyledSpinnerBox>
177
177
  ) : activitiesData.length === 0 ? (
178
- <NoDataFound message={'No data found'} />
178
+ <EmptyIllustration message={'No data found'} />
179
179
  ) : (
180
180
  Object.entries(groupedActivities).map(([section, activities]) => (
181
181
  <Box key={section}>
@@ -1,9 +1,7 @@
1
1
  import { ArrowUpward, Info } from '@mui/icons-material';
2
- import { Box, Fab, Typography } from '@mui/material';
2
+ import { Box, Fab } from '@mui/material';
3
3
  import { addHours, addMinutes, parseISO } from 'date-fns';
4
4
  import { useCallback, useRef } from 'react';
5
- import { emptyListImage } from '../../../assets/images/svg';
6
- import { StyledBox } from '../../Assets/ErrorPages/styles';
7
5
  import { ActivityAction } from '../../export';
8
6
  import { CreateIcon, DeleteIcon, UpdateIcon } from './Icons';
9
7
 
@@ -63,22 +61,6 @@ export const ScrollToTopButton = () => {
63
61
  );
64
62
  };
65
63
 
66
- export const NoDataFound = ({ message }: { message: string }) => {
67
- return (
68
- <>
69
- <StyledBox>
70
- <img
71
- src={emptyListImage}
72
- alt="page not found"
73
- width={'350px'}
74
- style={{ margin: '20px' }}
75
- />
76
- <Typography variant="subtitle1">{message}</Typography>
77
- </StyledBox>
78
- </>
79
- );
80
- };
81
-
82
64
  export function useIntersectionObserver(callback: () => void) {
83
65
  const observer = useRef<IntersectionObserver | null>(null);
84
66