@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.
34 lines (33 loc) • 1.32 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _consts = require("./consts");
const getSizeToken = (size, theme) => {
const tokens = {
[]: {
[]: theme.orbit.formBoxLargeHeight,
[]: theme.orbit.formBoxNormalHeight,
[]: theme.orbit.formBoxSmallHeight
},
[]: {
[]: theme.orbit.buttonLargeFontSize,
[]: theme.orbit.buttonNormalFontSize,
[]: theme.orbit.buttonSmallFontSize
},
[]: {
[]: theme.orbit.iconMediumSize,
[]: theme.orbit.iconMediumSize,
[]: theme.orbit.iconSmallSize
},
[]: {
[]: theme.orbit.iconMediumSize,
[]: theme.orbit.iconMediumSize,
[]: theme.orbit.iconSmallSize
}
};
return {
height: tokens[_consts.TOKENS.heightButton][size],
fontSize: tokens[_consts.TOKENS.fontSizeButton][size]
};
};
var _default = exports.default = getSizeToken;