@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.
42 lines (41 loc) • 1.94 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _consts = require("../consts");
const getButtonLinkTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: theme.orbit.backgroundButtonLinkPrimary,
[]: theme.orbit.backgroundButtonLinkSecondary,
[]: theme.orbit.backgroundButtonLinkCritical
},
[]: {
[]: theme.orbit.backgroundButtonLinkPrimaryHover,
[]: theme.orbit.backgroundButtonLinkSecondaryHover,
[]: theme.orbit.backgroundButtonLinkCriticalHover
},
[]: {
[]: theme.orbit.backgroundButtonLinkPrimaryActive,
[]: theme.orbit.backgroundButtonLinkSecondaryActive,
[]: theme.orbit.backgroundButtonLinkCriticalActive
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimary,
[]: theme.orbit.colorTextButtonLinkSecondary,
[]: theme.orbit.colorTextButtonLinkCritical
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryHover,
[]: theme.orbit.colorTextButtonLinkSecondaryHover,
[]: theme.orbit.colorTextButtonLinkCriticalHover
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryActive,
[]: theme.orbit.colorTextButtonLinkSecondaryActive,
[]: theme.orbit.colorTextButtonLinkCriticalActive
}
};
return tokens[name][type];
};
var _default = getButtonLinkTypeToken;
exports.default = _default;