UNPKG

fui-fancyui

Version:
16 lines (15 loc) 559 B
import { styled as r } from "styled-components"; import o from "../../../design/designFunctions/arrayToCssValues/arrayToCssValues.js"; import { globalElementSizesWithFit as t } from "../../../design/theme/globalSizes.js"; const l = r.div` display: block; padding: ${({ $padding: i }) => i && o(i, "spacing")}; margin: ${({ $margin: i }) => i && o(i, "spacing")}; width: ${({ $width: i = "fit" }) => t[i]}; height: ${({ $height: i }) => i && t[i]}; box-sizing: border-box; ${({ $externalStyle: i }) => i}; `; export { l as StyledSpacingsBox };