UNPKG

@roo-ui/components

Version:

80 lines (75 loc) 1.26 kB
import { display, space, width, minWidth, maxWidth, height, minHeight, maxHeight, color, textAlign, boxShadow, borderRadius, borders, borderColor, flexBasis, flex, position, zIndex, top, right, bottom, left, } from 'styled-system'; import styled from '@emotion/styled'; import omitProps from '../omitProps'; const Box = styled('div', omitProps())` ${display} ${space} ${width} ${minWidth} ${maxWidth} ${height} ${minHeight} ${maxHeight} ${color} ${textAlign} ${boxShadow} ${borderRadius} ${borders} ${borderColor} ${flexBasis} ${flex} ${position} ${zIndex} ${top} ${right} ${bottom} ${left} `; Box.propTypes = { ...display.propTypes, ...space.propTypes, ...width.propTypes, ...minWidth.propTypes, ...maxWidth.propTypes, ...height.propTypes, ...minHeight.propTypes, ...maxHeight.propTypes, ...color.propTypes, ...textAlign.propTypes, ...boxShadow.propTypes, ...borderRadius.propTypes, ...borders.propTypes, ...borderColor.propTypes, ...flexBasis.propTypes, ...flex.propTypes, ...position.propTypes, ...zIndex.propTypes, ...top.propTypes, ...right.propTypes, ...bottom.propTypes, ...left.propTypes, }; export default Box;