@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.
77 lines (76 loc) • 4.08 kB
JavaScript
"use strict";
exports.__esModule = true;
exports.default = void 0;
var _orbitDesignTokens = require("@kiwicom/orbit-design-tokens");
var _consts = require("../consts");
const getSocialButtonTypeToken = (name, type, theme) => {
const tokens = {
[]: {
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteCloudNormal,
[]: theme.orbit.paletteCloudNormal,
[]: theme.orbit.paletteCloudNormal,
[]: theme.orbit.paletteCloudNormal
},
[]: {
[]: theme.orbit.paletteInkDarkHover,
[]: theme.orbit.paletteCloudNormalHover,
[]: theme.orbit.paletteCloudNormalHover,
[]: theme.orbit.paletteCloudNormalHover,
[]: theme.orbit.paletteCloudNormalHover
},
[]: {
[]: theme.orbit.paletteInkDarkActive,
[]: theme.orbit.paletteCloudNormalActive,
[]: theme.orbit.paletteCloudNormalActive,
[]: theme.orbit.paletteCloudNormalActive,
[]: theme.orbit.paletteCloudNormalActive
},
[]: {
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteCloudNormal,
[]: theme.orbit.paletteCloudNormal,
[]: theme.orbit.paletteCloudNormal,
[]: theme.orbit.paletteCloudNormal
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark,
[]: theme.orbit.paletteInkDark
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteSocialFacebook,
[]: "currentColor",
[]: "#00ACEE",
// TODO: add token
[]: theme.orbit.paletteInkDark
},
[]: {
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkNormal, 50),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkNormal, 30),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkNormal, 50),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkNormal, 50),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkNormal, 50)
}
};
return tokens[name][type];
};
var _default = getSocialButtonTypeToken;
exports.default = _default;