Skip to content

Commit cc35523

Browse files
committed
overhaul
Signed-off-by: Yi Nuo <218099172+yi-nuo426@users.noreply.github.com>
1 parent fc5856d commit cc35523

55 files changed

Lines changed: 2756 additions & 2540 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

package-lock.json

Lines changed: 2600 additions & 2418 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"@emotion/cache": "^11.14.0",
4747
"@eslint/compat": "^2.0.3",
4848
"@eslint/eslintrc": "^3.3.5",
49-
"@eslint/js": "^10.0.1",
49+
"@eslint/js": "^9.39.4",
5050
"@meshery/schemas": "^0.9.0",
5151
"@mui/icons-material": "^7.3.9",
5252
"@reduxjs/toolkit": "^2.11.2",
@@ -60,7 +60,7 @@
6060
"@typescript-eslint/parser": "^8.57.2",
6161
"commitizen": "^4.3.1",
6262
"cz-conventional-changelog": "^3.3.0",
63-
"eslint": "^10.1.0",
63+
"eslint": "^9.39.4",
6464
"eslint-plugin-import": "^2.32.0",
6565
"eslint-plugin-react": "^7.37.5",
6666
"eslint-plugin-react-hooks": "^7.0.1",
@@ -83,7 +83,7 @@
8383
"rollup": "^4.60.0",
8484
"ts-jest": "^29.4.6",
8585
"tsup": "^8.5.1",
86-
"typescript": "^6.0.2",
86+
"typescript": "^5.9.3",
8787
"xstate": "^5.28.0"
8888
},
8989
"peerDependencies": {

src/base/ClickAwayListener/ClickAwayListener.tsx

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,9 @@ import {
22
ClickAwayListener as MuiClickAwayListener,
33
type ClickAwayListenerProps
44
} from '@mui/material';
5-
import React from 'react';
65

7-
const ClickAwayListener = React.forwardRef<HTMLDivElement, ClickAwayListenerProps>((props, ref) => {
8-
return <MuiClickAwayListener {...props} ref={ref} />;
9-
});
6+
const ClickAwayListener = (props: ClickAwayListenerProps) => {
7+
return <MuiClickAwayListener {...props} />;
8+
};
109

1110
export default ClickAwayListener;

src/base/Grid2/Grid2.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import React from 'react';
2-
import MuiGrid from '@mui/material/Grid';
31
import type { GridProps as MuiGridProps } from '@mui/material/Grid';
2+
import MuiGrid from '@mui/material/Grid';
3+
import React from 'react';
44

55
const Grid2 = React.forwardRef<HTMLDivElement, MuiGridProps>((props, ref) => {
66
return <MuiGrid {...props} ref={ref} />;

src/base/Hidden/Hidden.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ export interface HiddenProps {
1616
mdDown?: boolean;
1717
lgDown?: boolean;
1818
xlDown?: boolean;
19-
2019
}
2120

2221
export const Hidden = ({
@@ -38,8 +37,7 @@ export const Hidden = ({
3837

3938
const conditions: string[] = [];
4039

41-
const extractCondition = (mediaQuery: string) =>
42-
mediaQuery.replace(/^@media\s*/i, '');
40+
const extractCondition = (mediaQuery: string) => mediaQuery.replace(/^@media\s*/i, '');
4341

4442
if (onlyValues.includes('xs')) {
4543
conditions.push(extractCondition(theme.breakpoints.only('xs')));
@@ -89,8 +87,7 @@ export const Hidden = ({
8987
conditions.push(extractCondition(theme.breakpoints.down('xl')));
9088
}
9189

92-
const mediaQuery =
93-
conditions.length > 0 ? `@media ${conditions.join(', ')}` : '@media not all';
90+
const mediaQuery = conditions.length > 0 ? `@media ${conditions.join(', ')}` : '@media not all';
9491

9592
const matches = useMediaQuery(mediaQuery);
9693

src/icons/AccessTime/AccessTimeIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEFAULT_HEIGHT, DEFAULT_WIDTH, DEFAULT_FILL_NONE } from '../../constants/constants';
1+
import { DEFAULT_FILL_NONE, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
22
import { IconProps } from '../types';
33

44
export const AccessTimeIcon = ({

src/icons/AccessTimeFilled/AccessTimeFilledIcon.tsx

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,16 +8,19 @@ export const AccessTimeFilledIcon = ({
88
...props
99
}: IconProps): JSX.Element => {
1010
return (
11-
<svg
12-
width={width}
13-
height={height}
14-
viewBox="0 0 24 24"
15-
xmlns="http://www.w3.org/2000/svg"
16-
{...props}
17-
>
18-
<path d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m3.3 14.71L11 12.41V7h2v4.59l3.71 3.71z" fill={fill} />
11+
<svg
12+
width={width}
13+
height={height}
14+
viewBox="0 0 24 24"
15+
xmlns="http://www.w3.org/2000/svg"
16+
{...props}
17+
>
18+
<path
19+
d="M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2m3.3 14.71L11 12.41V7h2v4.59l3.71 3.71z"
20+
fill={fill}
21+
/>
1922
</svg>
2023
);
2124
};
2225

23-
export default AccessTimeFilledIcon;
26+
export default AccessTimeFilledIcon;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
export { default as AccessTimeFilledIcon } from './AccessTimeFilledIcon';
1+
export { default as AccessTimeFilledIcon } from './AccessTimeFilledIcon';

src/icons/Article/ArticleIcon.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { DEFAULT_HEIGHT, DEFAULT_WIDTH ,DEFAULT_FILL} from '../../constants/constants';
1+
import { DEFAULT_FILL, DEFAULT_HEIGHT, DEFAULT_WIDTH } from '../../constants/constants';
22
import { IconProps } from '../types';
33

44
export const ArticleIcon = ({

src/icons/BuildRounded/BuildRoundedIcon.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ export const BuildRoundedIcon = ({
77
fill = DEFAULT_FILL_NONE,
88
...props
99
}: IconProps): JSX.Element => {
10-
1110
return (
1211
<svg
1312
xmlns="http://www.w3.org/2000/svg"
@@ -17,9 +16,12 @@ export const BuildRoundedIcon = ({
1716
data-testid="build-rounded-icon-svg"
1817
{...props}
1918
>
20-
<path d="m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z" fill={fill}/>
19+
<path
20+
d="m22.7 19-9.1-9.1c.9-2.3.4-5-1.5-6.9-2-2-5-2.4-7.4-1.3L9 6 6 9 1.6 4.7C.4 7.1.9 10.1 2.9 12.1c1.9 1.9 4.6 2.4 6.9 1.5l9.1 9.1c.4.4 1 .4 1.4 0l2.3-2.3c.5-.4.5-1.1.1-1.4z"
21+
fill={fill}
22+
/>
2123
</svg>
2224
);
2325
};
2426

25-
export default BuildRoundedIcon;
27+
export default BuildRoundedIcon;

0 commit comments

Comments
 (0)