@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.
47 lines (43 loc) • 1.79 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _consts = require("../consts");
const getButtonLinkTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: "transparent",
[]: "transparent",
[]: "transparent"
},
[]: {
[]: theme.orbit.paletteProductLightHover,
[]: theme.orbit.paletteCloudLightHover,
[]: theme.orbit.paletteRedLightHover
},
[]: {
[]: theme.orbit.paletteProductLightActive,
[]: theme.orbit.paletteCloudLightActive,
[]: theme.orbit.paletteRedLightActive
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimary,
[]: theme.orbit.colorTextButtonLinkSecondary,
[]: theme.orbit.paletteRedNormal
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryHover,
[]: theme.orbit.colorTextButtonLinkSecondaryHover,
[]: theme.orbit.paletteRedDarkHover
},
[]: {
[]: theme.orbit.colorTextButtonLinkPrimaryActive,
[]: theme.orbit.colorTextButtonLinkSecondaryActive,
[]: theme.orbit.paletteRedDarkActive
}
};
return tokens[name][type];
};
var _default = getButtonLinkTypeToken;
exports.default = _default;