Skip to content

Commit aede5a5

Browse files
ct-tusharct-vrushtict-vrushtiTushar
authored
Free version update (#70) (#71)
* New free version update done * MainCard and Readme changes --------- Co-authored-by: ct-vrushti <[email protected]> Co-authored-by: ct-vrushti <[email protected]> Co-authored-by: Tushar <[email protected]>
1 parent a4693cd commit aede5a5

34 files changed

+964
-1046
lines changed

.env

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
VITE_APP_VERSION = v1.4.1
1+
VITE_APP_VERSION = v1.5.0
22
GENERATE_SOURCEMAP = false
33

44
## Public URL

LICENSE

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2022 CodedThemes
3+
Copyright (c) 2025 CodedThemes
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 59 additions & 44 deletions
Large diffs are not rendered by default.

jsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,6 @@
1818
"baseUrl": "src"
1919
},
2020
"exclude": ["node_modules"],
21-
"include": ["src", "**/*.ts", "**/*.tsx", "src/**/*"],
21+
"include": ["src", "**/*.js", "**/*.jsx", "src/**/*"],
2222
"references": [{ "path": "./jsconfig.node.json" }]
2323
}

package.json

Lines changed: 30 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
{
22
"name": "mantis-material-free-react",
3-
"version": "1.4.1",
4-
"private": false,
3+
"version": "1.5.0",
54
"homepage": "https://mantisdashboard.io/free",
65
"author": {
76
"name": "CodedThemes",
@@ -19,33 +18,33 @@
1918
"knip": "knip"
2019
},
2120
"dependencies": {
22-
"@ant-design/colors": "7.2.0",
23-
"@ant-design/icons": "5.6.0",
21+
"@ant-design/colors": "8.0.0",
22+
"@ant-design/icons": "6.0.0",
2423
"@emotion/cache": "11.14.0",
2524
"@emotion/react": "11.14.0",
2625
"@emotion/styled": "11.14.0",
27-
"@fontsource/inter": "5.1.1",
28-
"@fontsource/poppins": "5.1.1",
29-
"@fontsource/public-sans": "5.1.2",
30-
"@fontsource/roboto": "5.1.1",
31-
"@mui/base": "5.0.0-beta.69",
32-
"@mui/lab": "6.0.0-beta.24",
33-
"@mui/material": "6.4.1",
34-
"@mui/system": "6.4.1",
35-
"@mui/x-charts": "7.24.1",
36-
"@vitejs/plugin-react": "4.3.4",
26+
"@fontsource/inter": "5.2.5",
27+
"@fontsource/poppins": "5.2.5",
28+
"@fontsource/public-sans": "5.2.5",
29+
"@fontsource/roboto": "5.2.5",
30+
"@mui/base": "5.0.0-beta.70",
31+
"@mui/lab": "7.0.0-beta.10",
32+
"@mui/material": "7.0.2",
33+
"@mui/system": "7.0.2",
34+
"@mui/x-charts": "8.1.0",
35+
"@vitejs/plugin-react": "4.4.1",
3736
"formik": "2.4.6",
38-
"framer-motion": "12.0.5",
37+
"framer-motion": "12.8.2",
3938
"lodash-es": "4.17.21",
40-
"react": "18.3.1",
39+
"react": "19.1.0",
4140
"react-device-detect": "2.2.3",
42-
"react-dom": "18.3.1",
43-
"react-number-format": "5.4.3",
44-
"react-router": "7.1.3",
45-
"react-router-dom": "7.1.3",
41+
"react-dom": "19.1.0",
42+
"react-number-format": "5.4.4",
43+
"react-router": "7.5.1",
44+
"react-router-dom": "7.5.1",
4645
"simplebar-react": "3.3.0",
47-
"swr": "2.3.0",
48-
"vite": "6.0.11",
46+
"swr": "2.3.3",
47+
"vite": "6.3.1",
4948
"vite-jsconfig-paths": "2.0.1",
5049
"web-vitals": "4.2.4",
5150
"yup": "1.6.1"
@@ -69,20 +68,19 @@
6968
]
7069
},
7170
"devDependencies": {
72-
"@eslint/compat": "1.2.5",
73-
"@eslint/eslintrc": "3.2.0",
74-
"@eslint/js": "9.19.0",
75-
"@types/node": "22.13.5",
76-
"eslint": "9.19.0",
77-
"eslint-config-prettier": "10.0.1",
71+
"@eslint/compat": "1.2.8",
72+
"@eslint/eslintrc": "3.3.1",
73+
"@eslint/js": "9.25.1",
74+
"eslint": "9.25.1",
75+
"eslint-config-prettier": "10.1.2",
7876
"eslint-plugin-jsx-a11y": "6.10.2",
79-
"eslint-plugin-prettier": "5.2.3",
77+
"eslint-plugin-prettier": "5.2.6",
8078
"eslint-plugin-react": "7.37.4",
81-
"eslint-plugin-react-hooks": "5.1.0",
79+
"eslint-plugin-react-hooks": "5.2.0",
8280
"immutable": "4.3.7",
8381
"knip": "5.45.0",
84-
"prettier": "3.4.2",
82+
"prettier": "3.5.3",
8583
"prettier-eslint-cli": "8.0.1"
8684
},
87-
"packageManager": "yarn@4.6.0"
85+
"packageManager": "yarn@4.9.1"
8886
}

src/components/@extended/Avatar.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ export default function Avatar({ children, color = 'primary', type, size = 'md',
110110
getColorStyle.propTypes = { theme: PropTypes.any, color: PropTypes.any, type: PropTypes.any };
111111

112112
Avatar.propTypes = {
113-
children: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
113+
children: PropTypes.oneOfType([PropTypes.string, PropTypes.node]),
114114
color: PropTypes.string,
115115
type: PropTypes.any,
116116
size: PropTypes.string,

src/components/@extended/Breadcrumbs.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Link, useLocation } from 'react-router-dom';
55
// material-ui
66
import { useTheme } from '@mui/material/styles';
77
import Divider from '@mui/material/Divider';
8-
import Grid from '@mui/material/Grid2';
8+
import Grid from '@mui/material/Grid';
99
import Typography from '@mui/material/Typography';
1010
import MuiBreadcrumbs from '@mui/material/Breadcrumbs';
1111

src/components/@extended/IconButton.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import PropTypes from 'prop-types';
2-
import { forwardRef } from 'react';
32

43
// material-ui
54
import MuiIconButton from '@mui/material/IconButton';
@@ -156,7 +155,7 @@ const IconButtonStyle = styled(MuiIconButton, { shouldForwardProp: (prop) => pro
156155
})
157156
);
158157

159-
function IconButton({ variant = 'text', shape = 'square', children, color = 'primary', ...others }, ref) {
158+
function IconButton({ variant = 'text', shape = 'square', children, color = 'primary', ref, ...others }) {
160159
return (
161160
<IconButtonStyle ref={ref} disableRipple variant={variant} shape={shape} color={color} {...others}>
162161
{children}
@@ -166,7 +165,7 @@ function IconButton({ variant = 'text', shape = 'square', children, color = 'pri
166165

167166
IconButton.displayName = 'IconButton';
168167

169-
export default forwardRef(IconButton);
168+
export default IconButton;
170169

171170
getColorStyle.propTypes = { variant: PropTypes.any, theme: PropTypes.any, color: PropTypes.any };
172171

@@ -175,5 +174,6 @@ IconButton.propTypes = {
175174
shape: PropTypes.string,
176175
children: PropTypes.node,
177176
color: PropTypes.string,
177+
ref: PropTypes.any,
178178
others: PropTypes.any
179179
};

src/components/@extended/Transitions.jsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import PropTypes from 'prop-types';
2-
import { forwardRef } from 'react';
32

43
// material-ui
54
import Collapse from '@mui/material/Collapse';
@@ -9,7 +8,7 @@ import Slide from '@mui/material/Slide';
98
import Zoom from '@mui/material/Zoom';
109
import Box from '@mui/material/Box';
1110

12-
function transitions({ children, position = 'top-left', type = 'grow', direction = 'up', ...others }, ref) {
11+
export default function Transitions({ children, position = 'top-left', type = 'grow', direction = 'up', ref, ...others }) {
1312
let positionSX = {
1413
transformOrigin: '0 0 0'
1514
};
@@ -105,17 +104,17 @@ function transitions({ children, position = 'top-left', type = 'grow', direction
105104
);
106105
}
107106

108-
export default forwardRef(transitions);
109-
110-
function popupTransition(props, ref) {
107+
export function PopupTransition({ ref, ...props }) {
111108
return <Zoom ref={ref} timeout={200} {...props} />;
112109
}
113-
export const PopupTransition = forwardRef(popupTransition);
114110

115-
transitions.propTypes = {
111+
Transitions.propTypes = {
116112
children: PropTypes.node,
117113
position: PropTypes.string,
118114
type: PropTypes.string,
115+
ref: PropTypes.any,
119116
direction: PropTypes.oneOf(['up', 'right', 'left', 'down']),
120117
others: PropTypes.any
121118
};
119+
120+
PopupTransition.propTypes = { ref: PropTypes.any, props: PropTypes.any };

src/components/MainCard.jsx

Lines changed: 38 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { forwardRef } from 'react';
1+
import PropTypes from 'prop-types';
22

33
// material-ui
44
import Card from '@mui/material/Card';
@@ -12,28 +12,24 @@ const headerSX = {
1212
'& .MuiCardHeader-action': { m: '0px auto', alignSelf: 'center' }
1313
};
1414

15-
const MainCard = forwardRef(function MainCard(
16-
{
17-
border = true,
18-
boxShadow,
19-
children,
20-
subheader,
21-
content = true,
22-
contentSX = {},
23-
darkTitle,
24-
divider = true,
25-
elevation,
26-
secondary,
27-
shadow,
28-
sx = {},
29-
title,
30-
codeHighlight = false,
31-
codeString,
32-
modal = false,
33-
...others
34-
},
35-
ref
36-
) {
15+
export default function MainCard({
16+
border = true,
17+
boxShadow,
18+
children,
19+
subheader,
20+
content = true,
21+
contentSX = {},
22+
darkTitle,
23+
divider = true,
24+
elevation,
25+
secondary,
26+
shadow,
27+
sx = {},
28+
title,
29+
modal = false,
30+
ref,
31+
...others
32+
}) {
3733
return (
3834
<Card
3935
elevation={elevation || 0}
@@ -73,16 +69,25 @@ const MainCard = forwardRef(function MainCard(
7369
{/* card content */}
7470
{content && <CardContent sx={contentSX}>{children}</CardContent>}
7571
{!content && children}
76-
77-
{/* card footer - clipboard & highlighter */}
78-
{/* {codeString && (
79-
<>
80-
<Divider sx={{ borderStyle: 'dashed' }} />
81-
<Highlighter codeString={codeString} codeHighlight={codeHighlight} />
82-
</>
83-
)} */}
8472
</Card>
8573
);
86-
});
74+
}
8775

88-
export default MainCard;
76+
MainCard.propTypes = {
77+
border: PropTypes.bool,
78+
boxShadow: PropTypes.bool,
79+
children: PropTypes.node,
80+
subheader: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
81+
content: PropTypes.bool,
82+
contentSX: PropTypes.object,
83+
darkTitle: PropTypes.bool,
84+
divider: PropTypes.bool,
85+
elevation: PropTypes.number,
86+
secondary: PropTypes.any,
87+
shadow: PropTypes.string,
88+
sx: PropTypes.object,
89+
title: PropTypes.oneOfType([PropTypes.node, PropTypes.string]),
90+
modal: PropTypes.bool,
91+
ref: PropTypes.object,
92+
others: PropTypes.any
93+
};

src/components/ScrollTop.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,4 +15,4 @@ export default function ScrollTop({ children }) {
1515
return children || null;
1616
}
1717

18-
ScrollTop.propTypes = { children: PropTypes.oneOfType([PropTypes.node, PropTypes.any]) };
18+
ScrollTop.propTypes = { children: PropTypes.oneOfType([PropTypes.any, PropTypes.node]) };

src/components/cards/statistics/AnalyticEcommerce.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
// material-ui
33
import Chip from '@mui/material/Chip';
4-
import Grid from '@mui/material/Grid2';
4+
import Grid from '@mui/material/Grid';
55
import Stack from '@mui/material/Stack';
66
import Typography from '@mui/material/Typography';
77
import Box from '@mui/material/Box';

src/components/third-party/SimpleBar.jsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const SimpleBarStyle = styled(SimpleBar)(({ theme }) => ({
2828
}
2929
},
3030
'& .simplebar-track': {
31-
zIndex: 1201,
3231
'&.simplebar-vertical': {
3332
width: 10
3433
}

src/layout/Dashboard/Drawer/DrawerContent/Navigation/NavItem.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,5 +177,5 @@ NavItem.propTypes = {
177177
item: PropTypes.any,
178178
level: PropTypes.number,
179179
isParents: PropTypes.bool,
180-
setSelectedID: PropTypes.oneOfType([PropTypes.func, PropTypes.any])
180+
setSelectedID: PropTypes.oneOfType([PropTypes.any, PropTypes.func])
181181
};

src/layout/Dashboard/Header/HeaderContent/Profile/index.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import { useTheme } from '@mui/material/styles';
66
import ButtonBase from '@mui/material/ButtonBase';
77
import CardContent from '@mui/material/CardContent';
88
import ClickAwayListener from '@mui/material/ClickAwayListener';
9-
import Grid from '@mui/material/Grid2';
9+
import Grid from '@mui/material/Grid';
1010
import Paper from '@mui/material/Paper';
1111
import Popper from '@mui/material/Popper';
1212
import Stack from '@mui/material/Stack';

src/layout/Dashboard/Header/HeaderContent/Search.jsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,7 @@ export default function Search() {
2222
</InputAdornment>
2323
}
2424
aria-describedby="header-search-text"
25-
inputProps={{
26-
'aria-label': 'weight'
27-
}}
25+
slotProps={{ input: { 'aria-label': 'weight' } }}
2826
placeholder="Ctrl + K"
2927
/>
3028
</FormControl>

src/pages/auth/Login.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Link, useSearchParams } from 'react-router-dom';
22

33
// material-ui
4-
import Grid from '@mui/material/Grid2';
4+
import Grid from '@mui/material/Grid';
55
import Stack from '@mui/material/Stack';
66
import Typography from '@mui/material/Typography';
77

src/pages/auth/Register.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Link } from 'react-router-dom';
22

33
// material-ui
4-
import Grid from '@mui/material/Grid2';
4+
import Grid from '@mui/material/Grid';
55
import Stack from '@mui/material/Stack';
66
import Typography from '@mui/material/Typography';
77

src/pages/component-overview/color.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
// material-ui
33
import Card from '@mui/material/Card';
4-
import Grid from '@mui/material/Grid2';
4+
import Grid from '@mui/material/Grid';
55
import Stack from '@mui/material/Stack';
66
import Typography from '@mui/material/Typography';
77
import Box from '@mui/material/Box';

src/pages/component-overview/shadows.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import PropTypes from 'prop-types';
22
// material-ui
33
import { useTheme } from '@mui/material/styles';
4-
import Grid from '@mui/material/Grid2';
4+
import Grid from '@mui/material/Grid';
55
import Stack from '@mui/material/Stack';
66
import Typography from '@mui/material/Typography';
77

src/pages/component-overview/typography.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
// material-ui
22
import Breadcrumbs from '@mui/material/Breadcrumbs';
33
import Divider from '@mui/material/Divider';
4-
import Grid from '@mui/material/Grid2';
4+
import Grid from '@mui/material/Grid';
55
import Link from '@mui/material/Link';
66
import Stack from '@mui/material/Stack';
77
import Typography from '@mui/material/Typography';

src/pages/dashboard/default.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import Avatar from '@mui/material/Avatar';
33
import AvatarGroup from '@mui/material/AvatarGroup';
44
import Button from '@mui/material/Button';
5-
import Grid from '@mui/material/Grid2';
5+
import Grid from '@mui/material/Grid';
66
import List from '@mui/material/List';
77
import ListItem from '@mui/material/ListItem';
88
import ListItemAvatar from '@mui/material/ListItemAvatar';

0 commit comments

Comments
 (0)