@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.
56 lines • 1.89 kB
JavaScript
import { QUERIES } from "../../utils/mediaQuery/consts";
export let JUSTIFY = /*#__PURE__*/function (JUSTIFY) {
JUSTIFY["START"] = "start";
JUSTIFY["CENTER"] = "center";
JUSTIFY["END"] = "end";
JUSTIFY["BETWEEN"] = "between";
JUSTIFY["AROUND"] = "around";
return JUSTIFY;
}({});
export const 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"
}
};
export const getJustifyClasses = (justify, viewport) => {
const root = viewport ? justifyClasses[viewport] : justifyClasses;
return root[justify];
};
export default getJustifyClasses;