Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor(components): refactor List #311

Merged
merged 1 commit into from
Nov 11, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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