-
Notifications
You must be signed in to change notification settings - Fork 48
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
8b65296
commit 3d64b9d
Showing
11 changed files
with
258 additions
and
350 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
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
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,30 @@ | ||
import React from 'react' | ||
import * as Ariakit from '@ariakit/react' | ||
import { CloseButtonProps } from '@welcome-ui/close-button' | ||
import { useTheme } from '@xstyled/styled-components' | ||
import { Box } from '@welcome-ui/box' | ||
|
||
import * as S from './styles' | ||
|
||
export type CloseProps = Ariakit.DialogDismissProps & CloseButtonProps | ||
|
||
export const Close: React.FC<CloseProps> = ({ zIndex = '2', ...props }) => { | ||
const theme = useTheme() | ||
|
||
return ( | ||
<Box h="0"> | ||
<Ariakit.DialogDismiss | ||
render={ | ||
<S.CloseButton | ||
left={`calc(100% - ${theme.space.lg} - ${theme.buttons.sizes.sm.height})`} | ||
mt="lg" | ||
position="sticky" | ||
top="0" | ||
zIndex={zIndex} | ||
{...props} | ||
/> | ||
} | ||
/> | ||
</Box> | ||
) | ||
} |
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 React from 'react' | ||
import { BoxProps } from '@welcome-ui/box' | ||
|
||
import * as S from './styles' | ||
|
||
export const Content: React.FC<BoxProps> = props => { | ||
return <S.Content flex="1" overflowY={{ md: 'auto' }} {...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,15 @@ | ||
import React from 'react' | ||
import { BoxProps } from '@welcome-ui/box' | ||
|
||
import * as S from './styles' | ||
|
||
export const Footer: React.FC<BoxProps> = props => { | ||
return ( | ||
<S.Footer | ||
bottom={{ xs: 0, md: 'auto' }} | ||
position={{ xs: 'sticky', md: 'static' }} | ||
w="100%" | ||
{...props} | ||
/> | ||
) | ||
} |
Oops, something went wrong.