Skip to content

Commit

Permalink
refactor(components): refactor List
Browse files Browse the repository at this point in the history
fix #310
  • Loading branch information
nebula-aac committed Nov 11, 2023
1 parent 165e7f0 commit 953b9a7
Show file tree
Hide file tree
Showing 18 changed files with 72 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
CircularProgress as MuiCircularProgress,
CircularProgressProps as MuiCircularProgressProps
} from '@mui/material';

export function CircularProgress(props: MuiCircularProgressProps): JSX.Element {
return <MuiCircularProgress {...props} />;
}
1 change: 1 addition & 0 deletions packages/components/src/base/CircularProgress/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { CircularProgress } from './CircularProgress';
5 changes: 5 additions & 0 deletions packages/components/src/base/List/List.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { List as MuiList, ListProps as MuiListProps } from '@mui/material';

export function List(props: MuiListProps): JSX.Element {
return <MuiList {...props} />;
}
2 changes: 1 addition & 1 deletion packages/components/src/base/List/index.tsx
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export { List } from './list';
export { List } from './List';
5 changes: 0 additions & 5 deletions packages/components/src/base/List/list.tsx

This file was deleted.

5 changes: 5 additions & 0 deletions packages/components/src/base/ListItem/ListItem.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import { ListItem as MuiListItem, ListItemProps as MuiListItemProps } from '@mui/material';

export function ListItem(props: MuiListItemProps): JSX.Element {
return <MuiListItem {...props} />;
}
1 change: 1 addition & 0 deletions packages/components/src/base/ListItem/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ListItem } from './ListItem';
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
ListItemAvatar as MuiListItemAvatar,
ListItemAvatarProps as MuiListItemAvatarProps
} from '@mui/material';

export function ListItemAvatar(props: MuiListItemAvatarProps): JSX.Element {
return <MuiListItemAvatar {...props} />;
}
1 change: 1 addition & 0 deletions packages/components/src/base/ListItemAvatar/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ListItemAvatar } from './ListItemAvatar';
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
ListItemButton as MuiListItemButton,
ListItemButtonProps as MuiListItemButtonProps
} from '@mui/material';

export function ListItemButton(props: MuiListItemButtonProps): JSX.Element {
return <MuiListItemButton {...props} />;
}
1 change: 1 addition & 0 deletions packages/components/src/base/ListItemButton/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ListItemButton } from './ListItemButton';
8 changes: 8 additions & 0 deletions packages/components/src/base/ListItemIcon/ListItemIcon.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
ListItemIcon as MuiListItemIcon,
ListItemIconProps as MuiListItemIconProps
} from '@mui/material';

export function ListItemIcon(props: MuiListItemIconProps): JSX.Element {
return <MuiListItemIcon {...props} />;
}
1 change: 1 addition & 0 deletions packages/components/src/base/ListItemIcon/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ListItemIcon } from './ListItemIcon';
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
ListItemSecondaryAction as MuiListItemSecondaryAction,
ListItemSecondaryActionProps as MuiListItemSecondaryActionProps
} from '@mui/material';

export function ListItemSecondaryAction(props: MuiListItemSecondaryActionProps): JSX.Element {
return <MuiListItemSecondaryAction {...props} />;
}
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ListItemSecondaryAction } from './ListItemSecondaryAction';
8 changes: 8 additions & 0 deletions packages/components/src/base/ListSubheader/ListSubheader.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import {
ListSubheader as MuiListSubheader,
ListSubheaderProps as MuiListSubheaderProps
} from '@mui/material';

export function ListSubheader(props: MuiListSubheaderProps): JSX.Element {
return <MuiListSubheader {...props} />;
}
1 change: 1 addition & 0 deletions packages/components/src/base/ListSubheader/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export { ListSubheader } from './ListSubheader';
6 changes: 6 additions & 0 deletions packages/components/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ export * from './base/IconButton';
export * from './base/Input';
export * from './base/InputLabel';
export * from './base/List';
export * from './base/ListItem';
export * from './base/ListItemAvatar';
export * from './base/ListItemButton';
export * from './base/ListItemIcon';
export * from './base/ListItemSecondaryAction';
export * from './base/ListSubheader';
export * from './base/Menu';
export * from './base/MenuItem';
export * from './base/MenuList';
Expand Down

0 comments on commit 953b9a7

Please sign in to comment.