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

14 lines 747 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.marginProps = void 0; const styled_components_1 = require("styled-components"); const utils_1 = require("./utils"); const marginProps = ({ margin: allMargin, marginTop, marginBottom, marginLeft, marginRight, theme, }) => (0, styled_components_1.css) ` ${(0, utils_1.getStyleFor)('margin', allMargin, theme)}; ${(0, utils_1.getStyleFor)('margin-top', marginTop, theme)}; ${(0, utils_1.getStyleFor)('margin-bottom', marginBottom, theme)}; ${(0, utils_1.getStyleFor)('margin-left', marginLeft, theme)}; ${(0, utils_1.getStyleFor)('margin-right', marginRight, theme)}; `; exports.marginProps = marginProps; //# sourceMappingURL=marginProps.js.map