@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.
61 lines (60 loc) • 2.17 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.justifyClasses = exports.getJustifyClasses = exports.default = exports.JUSTIFY = void 0;
var _mediaQuery = require("../../utils/mediaQuery");
let JUSTIFY = exports.JUSTIFY = /*#__PURE__*/function (JUSTIFY) {
JUSTIFY["START"] = "start";
JUSTIFY["CENTER"] = "center";
JUSTIFY["END"] = "end";
JUSTIFY["BETWEEN"] = "between";
JUSTIFY["AROUND"] = "around";
return JUSTIFY;
}({});
const justifyClasses = exports.justifyClasses = {
[]: "justify-start",
[]: "justify-center",
[]: "justify-end",
[]: "justify-between",
[]: "justify-around",
[]: {
[]: "ld:justify-start",
[]: "ld:justify-center",
[]: "ld:justify-end",
[]: "ld:justify-between",
[]: "ld:justify-around"
},
[]: {
[]: "de:justify-start",
[]: "de:justify-center",
[]: "de:justify-end",
[]: "de:justify-between",
[]: "de:justify-around"
},
[]: {
[]: "tb:justify-start",
[]: "tb:justify-center",
[]: "tb:justify-end",
[]: "tb:justify-between",
[]: "tb:justify-around"
},
[]: {
[]: "lm:justify-start",
[]: "lm:justify-center",
[]: "lm:justify-end",
[]: "lm:justify-between",
[]: "lm:justify-around"
},
[]: {
[]: "mm:justify-start",
[]: "mm:justify-center",
[]: "mm:justify-end",
[]: "mm:justify-between",
[]: "mm:justify-around"
}
};
const getJustifyClasses = (justify, viewport) => {
const root = viewport ? justifyClasses[viewport] : justifyClasses;
return root[justify];
};
exports.getJustifyClasses = getJustifyClasses;
var _default = exports.default = getJustifyClasses;