Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Commit 27c545b

Browse files
Anton BilovusTigge
authored andcommitted
feat(dialog): export components from the BaseDialog
Export components from the `BaseDialog` in order to be able to build the custom Dialogs
1 parent 83d5499 commit 27c545b

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

packages/core/src/Dialog/BaseDialog.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ const Container = styled.div<{ readonly width: DialogWidth }>`
4141
background-color: ${({ theme }) => theme.color.background00()};
4242
`
4343

44-
const Header = styled.div`
44+
export const DialogHeader = styled.div`
4545
display: flex;
4646
flex: none;
4747
z-index: 1;
4848
min-height: 64px;
4949
max-height: 96px;
5050
`
5151

52-
const Content = styled.div`
52+
export const DialogContent = styled.div`
5353
box-sizing: border-box;
5454
flex-grow: 1;
5555
flex-shrink: 1;
@@ -61,7 +61,7 @@ const Content = styled.div`
6161
overflow: auto;
6262
`
6363

64-
const Footer = styled.div`
64+
export const DialogFooter = styled.div`
6565
height: ${BOTTOM_HEIGHT};
6666
display: flex;
6767
flex: none;
@@ -98,9 +98,9 @@ export const BaseDialog: React.FC<BaseDialogProps> = ({
9898
<Modal {...modalProps}>
9999
<Paper>
100100
<Container width={width}>
101-
{header !== null ? <Header>{header}</Header> : null}
102-
<Content>{children}</Content>
103-
<Footer>{footer}</Footer>
101+
{header !== null ? <DialogHeader>{header}</DialogHeader> : null}
102+
<DialogContent>{children}</DialogContent>
103+
<DialogFooter>{footer}</DialogFooter>
104104
</Container>
105105
</Paper>
106106
</Modal>

0 commit comments

Comments
 (0)