@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.
35 lines • 961 B
JavaScript
import { QUERIES } from "../../utils/mediaQuery/consts";
var WRAP = /*#__PURE__*/function (WRAP) {
WRAP["WRAP"] = "wrap";
WRAP["NO_WRAP"] = "nowrap";
return WRAP;
}(WRAP || {});
export const wrapClasses = {
[]: "flex-wrap",
[]: "flex-nowrap",
[]: {
[]: "ld:flex-wrap",
[]: "ld:flex-nowrap"
},
[]: {
[]: "de:flex-wrap",
[]: "de:flex-nowrap"
},
[]: {
[]: "tb:flex-wrap",
[]: "tb:flex-nowrap"
},
[]: {
[]: "lm:flex-wrap",
[]: "lm:flex-nowrap"
},
[]: {
[]: "mm:flex-wrap",
[]: "mm:flex-nowrap"
}
};
const getWrapClasses = (wrap, viewport) => {
const root = viewport ? wrapClasses[viewport] : wrapClasses;
return wrap ? root.wrap : root.nowrap;
};
export default getWrapClasses;