UNPKG

@gannochenko/ui.styled-components

Version:

<!-- PROJECT SHIELDS --> <!-- *** Reference links are enclosed in brackets [ ] instead of parentheses ( ). *** See the bottom of this document for the declaration of the reference variables *** for contributors-url, forks-url, etc. This is an optional, co

15 lines 670 B
import { css } from 'styled-components'; import { getStyleFor } from './utils'; export const widthProps = ({ width, maxWidth, minWidth, wide, theme, }) => css ` ${getStyleFor('width', width, theme)}; ${getStyleFor('max-width', maxWidth, theme)}; ${getStyleFor('min-width', minWidth, theme)}; ${wide === true ? 'width: 100%;' : ''}; `; export const heightProps = ({ height, maxHeight, minHeight, tall, theme, }) => css ` ${getStyleFor('height', height, theme)}; ${getStyleFor('max-height', maxHeight, theme)}; ${getStyleFor('min-height', minHeight, theme)}; ${tall === true ? 'height: 100%;' : ''}; `; //# sourceMappingURL=sizeProps.js.map