Skip to content

Commit b927a52

Browse files
committed
feat: add SvgIcon and Zoom components with MUI integration
Signed-off-by: amitamrutiya <amitamrutiya2210@gmail.com>
1 parent ca57909 commit b927a52

5 files changed

Lines changed: 33 additions & 3 deletions

File tree

src/base/SvgIcon/SvgIcon.tsx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { SvgIcon as MuiSvgIcon, type SvgIconProps as MuiSvgIconProps } from '@mui/material';
2+
import React from 'react';
3+
4+
export const SvgIcon = React.forwardRef<SVGSVGElement, MuiSvgIconProps>((props, ref) => {
5+
return <MuiSvgIcon {...props} ref={ref} />;
6+
});
7+
8+
export default SvgIcon;
9+
export type { MuiSvgIconProps as SvgIconProps };

src/base/SvgIcon/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
export { SvgIcon } from './SvgIcon';
2+
export type { SvgIconProps } from './SvgIcon';

src/base/Zoom/Zoom.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { Zoom as MuiZoom, ZoomProps as MuiZoomProps } from '@mui/material';
2+
import React from 'react';
3+
4+
export const Zoom = React.forwardRef<HTMLDivElement, MuiZoomProps>((props, ref) => {
5+
return <MuiZoom ref={ref} {...props} />;
6+
});
7+
8+
export default Zoom;

src/base/Zoom/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export { Zoom } from './Zoom';

src/theme/index.tsx

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
1-
import { styled, useTheme } from '@mui/material';
2-
1+
import {
2+
Theme,
3+
ThemeProvider,
4+
alpha,
5+
createTheme,
6+
keyframes,
7+
lighten,
8+
styled,
9+
useMediaQuery,
10+
useTheme
11+
} from '@mui/material';
312
export { darkModePalette, lightModePalette } from './palette';
413
export { typography } from './typography';
514

@@ -9,4 +18,5 @@ export {
918
} from './ThemeProvider';
1019
export * from './colors';
1120

12-
export { styled, useTheme };
21+
export { ThemeProvider, alpha, createTheme, keyframes, lighten, styled, useMediaQuery, useTheme };
22+
export type { Theme };

0 commit comments

Comments
 (0)