@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.95 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _consts = require("../consts");
const getButtonLinkTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: theme.orbit.buttonLinkPrimaryBackground,
[]: theme.orbit.buttonLinkSecondaryBackground,
[]: theme.orbit.buttonLinkCriticalBackground
},
[]: {
[]: theme.orbit.buttonLinkPrimaryBackgroundHover,
[]: theme.orbit.buttonLinkSecondaryBackgroundHover,
[]: theme.orbit.buttonLinkCriticalBackgroundHover
},
[]: {
[]: theme.orbit.buttonLinkPrimaryBackgroundActive,
[]: theme.orbit.buttonLinkSecondaryBackgroundActive,
[]: theme.orbit.buttonLinkCriticalBackgroundActive
},
[]: {
[]: theme.orbit.buttonLinkPrimaryForeground,
[]: theme.orbit.buttonLinkSecondaryForeground,
[]: theme.orbit.buttonLinkCriticalForeground
},
[]: {
[]: theme.orbit.buttonLinkPrimaryForegroundHover,
[]: theme.orbit.buttonLinkSecondaryForegroundHover,
[]: theme.orbit.buttonLinkCriticalForegroundHover
},
[]: {
[]: theme.orbit.buttonLinkPrimaryForegroundActive,
[]: theme.orbit.buttonLinkSecondaryForegroundActive,
[]: theme.orbit.buttonLinkCriticalForegroundActive
}
};
return tokens[name][type];
};
var _default = getButtonLinkTypeToken;
exports.default = _default;