@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 • 889 B
JavaScript
import { QUERIES } from "../../utils/mediaQuery/consts";
export let GROW = /*#__PURE__*/function (GROW) {
GROW["true"] = "grow";
GROW["false"] = "grow-0";
return GROW;
}({});
export const growClasses = {
[]: "grow-0",
[]: "grow",
[]: {
[]: "mm:grow-0",
[]: "mm:grow"
},
[]: {
[]: "lm:grow-0",
[]: "lm:grow"
},
[]: {
[]: "tb:grow-0",
[]: "tb:grow"
},
[]: {
[]: "de:grow-0",
[]: "de:grow"
},
[]: {
[]: "ld:grow-0",
[]: "ld:grow"
}
};
const getGrowClasses = (grow, viewport) => {
const root = viewport ? growClasses[viewport] : growClasses;
return grow ? root.grow : root["grow-0"];
};
export default getGrowClasses;