-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #116 from lidofinance/feature/modal-extra-content
Extra modal content
- Loading branch information
Showing
8 changed files
with
81 additions
and
10 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
import { ForwardedRef, forwardRef } from 'react' | ||
|
||
import { ModalExtraStyle } from './ModalExtraStyles' | ||
import { ModalExtraProps } from './types' | ||
|
||
function ModalExtra( | ||
props: ModalExtraProps, | ||
ref?: ForwardedRef<HTMLDivElement> | ||
) { | ||
return <ModalExtraStyle {...props} ref={ref} /> | ||
} | ||
|
||
export default forwardRef(ModalExtra) |
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,18 @@ | ||
import styled from 'styled-components' | ||
|
||
export const ModalExtraStyle = styled.div` | ||
margin-top: ${({ theme }) => -theme.borderRadiusesMap.xl}px; | ||
color: ${({ theme }) => theme.colors.accentContrast}; | ||
background: ${({ theme }) => theme.colors.accent}; | ||
padding: ${({ theme }) => theme.spaceMap.xxl}px; | ||
padding-top: ${({ theme }) => | ||
theme.borderRadiusesMap.xl + theme.spaceMap.xxl}px; | ||
border-bottom-left-radius: inherit; | ||
border-bottom-right-radius: inherit; | ||
${({ theme }) => theme.mediaQueries.md} { | ||
padding: ${({ theme }) => theme.spaceMap.lg}px; | ||
padding-top: ${({ theme }) => | ||
theme.borderRadiusesMap.xl + theme.spaceMap.lg}px; | ||
} | ||
` |
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,3 +1,4 @@ | ||
export { default as Modal } from './Modal' | ||
export { default as ModalExtra } from './ModalExtra' | ||
export { default as ModalOverlay } from './ModalOverlay' | ||
export * from './types' |
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