@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.
74 lines (68 loc) • 3.48 kB
JavaScript
"use strict";
Object.defineProperty(exports, "__esModule", {
value: 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.paletteInkNormal,
[]: theme.orbit.paletteCloudDark,
[]: theme.orbit.paletteCloudDark,
[]: theme.orbit.paletteCloudDark
},
[]: {
[]: theme.orbit.paletteInkNormalHover,
[]: theme.orbit.paletteCloudNormalHover,
[]: theme.orbit.paletteCloudNormalHover,
[]: theme.orbit.paletteCloudNormalHover
},
[]: {
[]: theme.orbit.paletteInkNormalActive,
[]: theme.orbit.paletteCloudNormalActive,
[]: theme.orbit.paletteCloudNormalActive,
[]: theme.orbit.paletteCloudNormalActive
},
[]: {
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteCloudDark,
[]: theme.orbit.paletteCloudDark,
[]: theme.orbit.paletteCloudDark
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteInkNormal
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteInkNormal
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteInkNormal,
[]: theme.orbit.paletteInkNormal
},
[]: {
[]: theme.orbit.paletteWhite,
[]: theme.orbit.paletteSocialFacebook,
[]: "currentColor",
[]: "#00ACEE" // TODO: add token
},
[]: {
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkLight, 50),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkLight, 30),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkLight, 50),
[]: (0, _orbitDesignTokens.convertHexToRgba)(theme.orbit.paletteInkLight, 50)
}
};
return tokens[name][type];
};
var _default = getSocialButtonTypeToken;
exports.default = _default;