generated from layer5io/layer5-repo-template
-
Notifications
You must be signed in to change notification settings - Fork 127
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(components): refactor Dialog and update imports and exports
fix #307
- Loading branch information
1 parent
27c170d
commit 767853e
Showing
26 changed files
with
73 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Backdrop as MuiBackdrop, type BackdropProps as MuiBackdropProps } from '@mui/material'; | ||
|
||
export function Backdrop(props: MuiBackdropProps): JSX.Element { | ||
return <MuiBackdrop {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { Backdrop } from './Backdrop'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { Dialog as MuiDialog, type DialogProps as MuiDialogProps } from '@mui/material'; | ||
|
||
export function Dialog(props: MuiDialogProps): JSX.Element { | ||
return <MuiDialog {...props} />; | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1 @@ | ||
export { Backdrop } from './backdrop'; | ||
export { Dialog } from './dialog'; | ||
export { DialogActions } from './dialogactions'; | ||
export { DialogContent } from './dialogcontent'; | ||
export { DialogContentText } from './dialogcontenttext'; | ||
export { DialogTitle } from './dialogtitle'; | ||
export { Dialog } from './Dialog'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { | ||
DialogActions as MuiDialogActions, | ||
type DialogActionsProps as MuiDialogActionsProps | ||
} from '@mui/material'; | ||
|
||
export function DialogActions(props: MuiDialogActionsProps): JSX.Element { | ||
return <MuiDialogActions {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DialogActions } from './DialogActions'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { | ||
DialogContent as MuiDialogContent, | ||
type DialogContentProps as MuiDialogContentProps | ||
} from '@mui/material'; | ||
|
||
export function DialogContent(props: MuiDialogContentProps): JSX.Element { | ||
return <MuiDialogContent {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DialogContent } from './DialogContent'; |
8 changes: 8 additions & 0 deletions
8
packages/components/src/base/DialogContentText/DialogContentText.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { | ||
DialogContentText as MuiDialogContentText, | ||
type DialogContentTextProps as MuiDialogContentTextProps | ||
} from '@mui/material'; | ||
|
||
export function DialogContentText(props: MuiDialogContentTextProps): JSX.Element { | ||
return <MuiDialogContentText {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DialogContentText } from './DialogContentText'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
import { | ||
DialogTitle as MuiDialogTitle, | ||
type DialogTitleProps as MuiDialogTitleProps | ||
} from '@mui/material'; | ||
|
||
export function DialogTitle(props: MuiDialogTitleProps): JSX.Element { | ||
return <MuiDialogTitle {...props} />; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
export { DialogTitle } from './DialogTitle'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/components/src/custom/Dialog/StyledDialogActions.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 3 additions & 3 deletions
6
packages/components/src/custom/Dialog/StyledDialogContent.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,4 @@ | ||
import StyledDialog from './StyledDialog'; | ||
import StyledDialogActions from './StyledDialogActions'; | ||
import StyledDialogContent from './StyledDialogContent'; | ||
import StyledDialogTitle from './StyledDialogTitle'; | ||
|
||
export { StyledDialog, StyledDialogActions, StyledDialogContent, StyledDialogTitle }; | ||
export { default as StyledDialog } from './StyledDialog'; | ||
export { default as StyledDialogActions } from './StyledDialogActions'; | ||
export { default as StyledDialogContent } from './StyledDialogContent'; | ||
export { default as StyledDialogTitle } from './StyledDialogTitle'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,8 @@ | ||
// import { ErrorBoundary, withErrorBoundary, withSuppressedErrorBoundary } from './ErrorBoundary'; | ||
import { StyledDialog, StyledDialogActions, StyledDialogContent } from './Dialog'; | ||
import { useWindowDimensions } from './Helpers/Dimension'; | ||
import { useNotificationHandler } from './Helpers/Notification'; | ||
import { StyledTooltip } from './Tooltip'; | ||
|
||
export { StyledChartDialog } from './ChartDialog'; | ||
export { StyledSearchBar } from './StyledSearchBar'; | ||
export { | ||
StyledDialog, | ||
StyledDialogActions, | ||
StyledDialogContent, | ||
StyledTooltip, | ||
useNotificationHandler, | ||
useWindowDimensions | ||
}; | ||
export { StyledTooltip, useNotificationHandler, useWindowDimensions }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters