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.

20 lines (14 loc) 870 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _consts = require("../consts"); function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var getJustify = function getJustify(justify) { var _tokens; var tokens = (_tokens = {}, _defineProperty(_tokens, _consts.JUSTIFY.START, "flex-start"), _defineProperty(_tokens, _consts.JUSTIFY.END, "flex-end"), _defineProperty(_tokens, _consts.JUSTIFY.CENTER, "center"), _defineProperty(_tokens, _consts.JUSTIFY.BETWEEN, "space-between"), _defineProperty(_tokens, _consts.JUSTIFY.AROUND, "space-around"), _tokens); return justify && tokens[justify]; }; var _default = getJustify; exports.default = _default;