-
Notifications
You must be signed in to change notification settings - Fork 635
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 #436 from balance-io/develop
Deploy v0.3.0 (25) [Master]
- Loading branch information
Showing
87 changed files
with
1,053 additions
and
2,547 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
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,24 +1,41 @@ | ||
import PropTypes from 'prop-types'; | ||
import styled from 'styled-components/primitives'; | ||
import React from 'react'; | ||
import { View } from 'react-primitives'; | ||
import { pure } from 'recompact'; | ||
import { colors, position } from '../styles'; | ||
|
||
const InnerBorder = styled.View` | ||
${position.cover} | ||
border-color: ${({ color }) => color}; | ||
border-radius: ${({ radius }) => radius}; | ||
border-width: ${({ width }) => width}; | ||
`; | ||
const InnerBorder = ({ | ||
color, | ||
opacity, | ||
radius, | ||
width, | ||
...props | ||
}) => ( | ||
<View | ||
{...props} | ||
css={` | ||
${position.cover} | ||
border-color: ${color}; | ||
border-radius: ${radius}; | ||
border-width: ${width}; | ||
opacity: ${opacity}; | ||
`} | ||
pointerEvents="none" | ||
/> | ||
); | ||
|
||
InnerBorder.propTypes = { | ||
color: PropTypes.string, | ||
opacity: PropTypes.number, | ||
radius: PropTypes.number, | ||
width: PropTypes.number, | ||
}; | ||
|
||
InnerBorder.defaultProps = { | ||
color: colors.alpha(colors.black, 0.06), | ||
color: colors.black, | ||
opacity: 0.06, | ||
radius: 0, | ||
width: 0.5, | ||
}; | ||
|
||
export default InnerBorder; | ||
export default pure(InnerBorder); |
Oops, something went wrong.