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

11 lines 382 B
const getValue = (value, theme) => { if (typeof value === 'string') { return value; } if (theme && typeof theme.spacing === 'function') { return theme.spacing(value); } return value; }; export const getStyleFor = (property, value, theme) => (value !== undefined ? `${property}: ${getValue(value, theme)};` : ''); //# sourceMappingURL=utils.js.map