@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.
40 lines (36 loc) • 1.38 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _consts = require("./consts");
const getSizeToken = (size, theme) => {
const tokens = {
[]: {
[]: theme.orbit.heightButtonLarge,
[]: theme.orbit.heightButtonNormal,
[]: theme.orbit.heightButtonSmall
},
[]: {
[]: theme.orbit.fontSizeButtonLarge,
[]: theme.orbit.fontSizeButtonNormal,
[]: theme.orbit.fontSizeButtonSmall
},
[]: {
[]: theme.orbit.widthIconMedium,
[]: theme.orbit.widthIconMedium,
[]: theme.orbit.widthIconSmall
},
[]: {
[]: theme.orbit.heightIconMedium,
[]: theme.orbit.heightIconMedium,
[]: theme.orbit.heightIconSmall
}
};
return {
height: tokens[_consts.TOKENS.heightButton][size],
fontSize: tokens[_consts.TOKENS.fontSizeButton][size]
};
};
var _default = getSizeToken;
exports.default = _default;