UNPKG

@kiwicom/orbit-components

Version:

Orbit-components is a React component library which provides developers with the easiest possible way of building Kiwi.com’s products.

11 lines (8 loc) 803 B
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty"; import { SPACINGS } from "../../utils/layout/consts"; var getSpacing = function getSpacing(_ref) { var _ref2; var theme = _ref.theme; return _ref2 = {}, _defineProperty(_ref2, SPACINGS.XXXSMALL, theme.orbit.spaceXXXSmall), _defineProperty(_ref2, SPACINGS.XXSMALL, theme.orbit.spaceXXSmall), _defineProperty(_ref2, SPACINGS.XSMALL, theme.orbit.spaceXSmall), _defineProperty(_ref2, SPACINGS.SMALL, theme.orbit.spaceSmall), _defineProperty(_ref2, SPACINGS.MEDIUM, theme.orbit.spaceMedium), _defineProperty(_ref2, SPACINGS.LARGE, theme.orbit.spaceLarge), _defineProperty(_ref2, SPACINGS.XLARGE, theme.orbit.spaceXLarge), _defineProperty(_ref2, SPACINGS.XXLARGE, theme.orbit.spaceXXLarge), _ref2; }; export default getSpacing;