UNPKG

@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.

28 lines (20 loc) 21.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.default = void 0; var _convertHexToRgba = _interopRequireDefault(require("@kiwicom/orbit-design-tokens/lib/convertHexToRgba")); var _consts = require("../consts"); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; } function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; } var getTypeToken = function getTypeToken(name) { return function (_ref) { var _TOKENS$backgroundBut, _TOKENS$backgroundBut2, _TOKENS$backgroundBut3, _TOKENS$backgroundBut4, _TOKENS$backgroundBut5, _TOKENS$backgroundBut6, _TOKENS$backgroundBut7, _TOKENS$colorTextButt, _TOKENS$colorTextButt2, _TOKENS$colorTextButt3, _TOKENS$colorTextButt4, _TOKENS$colorTextButt5, _TOKENS$colorTextButt6, _TOKENS$borderColorBu, _TOKENS$borderColorBu2, _TOKENS$borderColorBu3, _TOKENS$borderColorBu4, _tokens; var theme = _ref.theme, type = _ref.type; var tokens = (_tokens = {}, _defineProperty(_tokens, _consts.TOKENS.backgroundButton, (_TOKENS$backgroundBut = {}, _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.backgroundButtonPrimary), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.backgroundButtonSecondary), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.INFO, theme.orbit.backgroundButtonInfo), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.backgroundButtonSuccess), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.WARNING, theme.orbit.backgroundButtonWarning), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.backgroundButtonCritical), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.backgroundButtonFacebook), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.backgroundButtonGoogle), _defineProperty(_TOKENS$backgroundBut, _consts.TYPE_OPTIONS.WHITE, theme.orbit.backgroundButtonWhite), _TOKENS$backgroundBut)), _defineProperty(_tokens, _consts.TOKENS.backgroundButtonHover, (_TOKENS$backgroundBut2 = {}, _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.backgroundButtonPrimaryHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.backgroundButtonSecondaryHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.INFO, theme.orbit.backgroundButtonInfoHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.backgroundButtonSuccessHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.WARNING, theme.orbit.backgroundButtonWarningHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.backgroundButtonCriticalHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.backgroundButtonFacebookHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.backgroundButtonGoogleHover), _defineProperty(_TOKENS$backgroundBut2, _consts.TYPE_OPTIONS.WHITE, theme.orbit.backgroundButtonWhiteHover), _TOKENS$backgroundBut2)), _defineProperty(_tokens, _consts.TOKENS.backgroundButtonActive, (_TOKENS$backgroundBut3 = {}, _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.backgroundButtonPrimaryActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.backgroundButtonSecondaryActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.INFO, theme.orbit.backgroundButtonInfoActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.backgroundButtonSuccessActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.WARNING, theme.orbit.backgroundButtonWarningActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.backgroundButtonCriticalActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.backgroundButtonFacebookActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.backgroundButtonGoogleActive), _defineProperty(_TOKENS$backgroundBut3, _consts.TYPE_OPTIONS.WHITE, theme.orbit.backgroundButtonWhiteActive), _TOKENS$backgroundBut3)), _defineProperty(_tokens, _consts.TOKENS.backgroundButtonFocus, (_TOKENS$backgroundBut4 = {}, _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.PRIMARY, (0, _convertHexToRgba.default)(theme.orbit.paletteProductNormal, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.SECONDARY, (0, _convertHexToRgba.default)(theme.orbit.paletteInkLight, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.INFO, (0, _convertHexToRgba.default)(theme.orbit.paletteBlueNormal, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.SUCCESS, (0, _convertHexToRgba.default)(theme.orbit.paletteGreenNormal, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.WARNING, (0, _convertHexToRgba.default)(theme.orbit.paletteOrangeNormal, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.CRITICAL, (0, _convertHexToRgba.default)(theme.orbit.paletteRedNormal, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.FACEBOOK, (0, _convertHexToRgba.default)(theme.orbit.paletteSocialFacebook, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.GOOGLE, (0, _convertHexToRgba.default)(theme.orbit.paletteInkLight, 10)), _defineProperty(_TOKENS$backgroundBut4, _consts.TYPE_OPTIONS.WHITE, (0, _convertHexToRgba.default)(theme.orbit.paletteWhite, 20)), _TOKENS$backgroundBut4)), _defineProperty(_tokens, _consts.TOKENS.backgroundButtonBordered, (_TOKENS$backgroundBut5 = {}, _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.INFO, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.WARNING, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.backgroundButtonBordered), _defineProperty(_TOKENS$backgroundBut5, _consts.TYPE_OPTIONS.WHITE, theme.orbit.backgroundButtonWhiteBordered), _TOKENS$backgroundBut5)), _defineProperty(_tokens, _consts.TOKENS.backgroundButtonBorderedHover, (_TOKENS$backgroundBut6 = {}, _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.INFO, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.WARNING, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.backgroundButtonBorderedHover), _defineProperty(_TOKENS$backgroundBut6, _consts.TYPE_OPTIONS.WHITE, theme.orbit.backgroundButtonWhiteBorderedHover), _TOKENS$backgroundBut6)), _defineProperty(_tokens, _consts.TOKENS.backgroundButtonBorderedActive, (_TOKENS$backgroundBut7 = {}, _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.INFO, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.WARNING, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.backgroundButtonBorderedActive), _defineProperty(_TOKENS$backgroundBut7, _consts.TYPE_OPTIONS.WHITE, theme.orbit.backgroundButtonWhiteBorderedActive), _TOKENS$backgroundBut7)), _defineProperty(_tokens, _consts.TOKENS.colorTextButton, (_TOKENS$colorTextButt = {}, _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.colorTextButtonPrimary), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.colorTextButtonSecondary), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.INFO, theme.orbit.colorTextButtonInfo), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.colorTextButtonSuccess), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.WARNING, theme.orbit.colorTextButtonWarning), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.colorTextButtonCritical), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.colorTextButtonFacebook), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.colorTextButtonGoogle), _defineProperty(_TOKENS$colorTextButt, _consts.TYPE_OPTIONS.WHITE, theme.orbit.colorTextButtonWhite), _TOKENS$colorTextButt)), _defineProperty(_tokens, _consts.TOKENS.colorTextButtonBordered, (_TOKENS$colorTextButt2 = {}, _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.colorTextButtonPrimaryBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.colorTextButtonSecondaryBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.INFO, theme.orbit.colorTextButtonInfoBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.colorTextButtonSuccessBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.WARNING, theme.orbit.colorTextButtonWarningBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.colorTextButtonCriticalBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.colorTextButtonFacebookBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.colorTextButtonGoogleBordered), _defineProperty(_TOKENS$colorTextButt2, _consts.TYPE_OPTIONS.WHITE, theme.orbit.colorTextButtonWhiteBordered), _TOKENS$colorTextButt2)), _defineProperty(_tokens, _consts.TOKENS.colorTextButtonHover, (_TOKENS$colorTextButt3 = {}, _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.colorTextButtonPrimaryHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.colorTextButtonSecondaryHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.INFO, theme.orbit.colorTextButtonInfoHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.colorTextButtonSuccessHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.WARNING, theme.orbit.colorTextButtonWarningHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.colorTextButtonCriticalHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.colorTextButtonFacebookHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.colorTextButtonGoogleHover), _defineProperty(_TOKENS$colorTextButt3, _consts.TYPE_OPTIONS.WHITE, theme.orbit.colorTextButtonWhiteHover), _TOKENS$colorTextButt3)), _defineProperty(_tokens, _consts.TOKENS.colorTextButtonBorderedHover, (_TOKENS$colorTextButt4 = {}, _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.colorTextButtonPrimaryBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.colorTextButtonSecondaryBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.INFO, theme.orbit.colorTextButtonInfoBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.colorTextButtonSuccessBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.WARNING, theme.orbit.colorTextButtonWarningBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.colorTextButtonCriticalBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.colorTextButtonFacebookBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.colorTextButtonGoogleBorderedHover), _defineProperty(_TOKENS$colorTextButt4, _consts.TYPE_OPTIONS.WHITE, theme.orbit.colorTextButtonWhiteBorderedHover), _TOKENS$colorTextButt4)), _defineProperty(_tokens, _consts.TOKENS.colorTextButtonActive, (_TOKENS$colorTextButt5 = {}, _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.colorTextButtonPrimaryActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.colorTextButtonSecondaryActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.INFO, theme.orbit.colorTextButtonInfoActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.colorTextButtonSuccessActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.WARNING, theme.orbit.colorTextButtonWarningActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.colorTextButtonCriticalActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.colorTextButtonFacebookActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.colorTextButtonGoogleActive), _defineProperty(_TOKENS$colorTextButt5, _consts.TYPE_OPTIONS.WHITE, theme.orbit.colorTextButtonWhiteActive), _TOKENS$colorTextButt5)), _defineProperty(_tokens, _consts.TOKENS.colorTextButtonBorderedActive, (_TOKENS$colorTextButt6 = {}, _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.colorTextButtonPrimaryBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.colorTextButtonSecondaryBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.INFO, theme.orbit.colorTextButtonInfoBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.colorTextButtonSuccessBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.WARNING, theme.orbit.colorTextButtonWarningBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.colorTextButtonCriticalBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.colorTextButtonFacebookBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.colorTextButtonGoogleBorderedActive), _defineProperty(_TOKENS$colorTextButt6, _consts.TYPE_OPTIONS.WHITE, theme.orbit.colorTextButtonWhiteBorderedActive), _TOKENS$colorTextButt6)), _defineProperty(_tokens, _consts.TOKENS.borderColorButton, (_TOKENS$borderColorBu = {}, _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.borderColorButtonPrimaryBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.borderColorButtonSecondaryBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.INFO, theme.orbit.borderColorButtonInfoBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.borderColorButtonSuccessBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.WARNING, theme.orbit.borderColorButtonWarningBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.borderColorButtonCriticalBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.borderColorButtonFacebookBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.borderColorButtonGoogleBordered), _defineProperty(_TOKENS$borderColorBu, _consts.TYPE_OPTIONS.WHITE, theme.orbit.borderColorButtonWhiteBordered), _TOKENS$borderColorBu)), _defineProperty(_tokens, _consts.TOKENS.borderColorButtonHover, (_TOKENS$borderColorBu2 = {}, _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.borderColorButtonPrimaryBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.borderColorButtonSecondaryBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.INFO, theme.orbit.borderColorButtonInfoBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.borderColorButtonSuccessBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.WARNING, theme.orbit.borderColorButtonWarningBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.borderColorButtonCriticalBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.borderColorButtonFacebookBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.borderColorButtonGoogleBorderedHover), _defineProperty(_TOKENS$borderColorBu2, _consts.TYPE_OPTIONS.WHITE, theme.orbit.borderColorButtonWhiteBorderedHover), _TOKENS$borderColorBu2)), _defineProperty(_tokens, _consts.TOKENS.borderColorButtonActive, (_TOKENS$borderColorBu3 = {}, _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.PRIMARY, theme.orbit.borderColorButtonPrimaryBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.SECONDARY, theme.orbit.borderColorButtonSecondaryBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.INFO, theme.orbit.borderColorButtonInfoBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.SUCCESS, theme.orbit.borderColorButtonSuccessBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.WARNING, theme.orbit.borderColorButtonWarningBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.CRITICAL, theme.orbit.borderColorButtonCriticalBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.FACEBOOK, theme.orbit.borderColorButtonFacebookBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.GOOGLE, theme.orbit.borderColorButtonGoogleBorderedActive), _defineProperty(_TOKENS$borderColorBu3, _consts.TYPE_OPTIONS.WHITE, theme.orbit.borderColorButtonWhiteBorderedActive), _TOKENS$borderColorBu3)), _defineProperty(_tokens, _consts.TOKENS.borderColorButtonFocus, (_TOKENS$borderColorBu4 = {}, _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.PRIMARY, (0, _convertHexToRgba.default)(theme.orbit.paletteProductNormal, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.SECONDARY, (0, _convertHexToRgba.default)(theme.orbit.paletteInkLight, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.INFO, (0, _convertHexToRgba.default)(theme.orbit.paletteBlueNormal, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.SUCCESS, (0, _convertHexToRgba.default)(theme.orbit.paletteGreenNormal, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.WARNING, (0, _convertHexToRgba.default)(theme.orbit.paletteOrangeNormal, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.CRITICAL, (0, _convertHexToRgba.default)(theme.orbit.paletteRedNormal, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.FACEBOOK, (0, _convertHexToRgba.default)(theme.orbit.paletteSocialFacebook, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.GOOGLE, (0, _convertHexToRgba.default)(theme.orbit.paletteInkLight, 50)), _defineProperty(_TOKENS$borderColorBu4, _consts.TYPE_OPTIONS.WHITE, (0, _convertHexToRgba.default)(theme.orbit.paletteWhite, 50)), _TOKENS$borderColorBu4)), _tokens); return tokens[name][type]; }; }; var _default = getTypeToken; exports.default = _default;