"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.linkStyles = exports.buttonStyles = exports.commonStyles = void 0;

var _styledComponents = require("styled-components");

var _branding = require("../../../mixins/branding");

var _spacing = require("../../../mixins/spacing");

var _stackee = require("../../../mixins/stackee");

var _typography = require("../../../mixins/typography");

var _focus = require("../../../mixins/focus");

var getBorderRadius = function getBorderRadius(_ref) {
  var theme = _ref.theme;
  return theme.buttonBorderRadius;
};

var getMinWidth = function getMinWidth(_ref2) {
  var shrink = _ref2.shrink;
  return shrink == null ? '160px' : undefined;
};

var commonStyles = (0, _styledComponents.css)(["&&{display:inline-block;height:48px;border-width:0;padding:0 20px;background:transparent;color:", ";min-width:", ";text-decoration:none;font-size:", ";font-family:", ";font-weight:", ";border-radius:", ";", "}", "{transition:", ";box-shadow:", ",", " ", ";}&[disabled]{&:hover{cursor:default;background-color:transparent;}color:", ";}"], (0, _branding.getPaletteColor)('greyscale-dark'), getMinWidth, _typography.getFontSize, _typography.getFontFamily, _typography.getFontWeight, getBorderRadius, (0, _focus.getBaseFocusState)({
  activeTransition: false
}), _focus.FOCUS_VISIBLE_SELECTOR, _focus.transitionInstant, _focus.focusedBoxShadow, _focus.focusedBorderShadow, _focus.focusedBorderColor, (0, _branding.getPaletteColor)('greyscale-medium'));
exports.commonStyles = commonStyles;
var buttonStyles = (0, _styledComponents.css)(["line-height:100%;&&&{", "}", ";&:enabled:hover{background-color:", ";}&:enabled:active{background-color:", ";}"], _spacing.getSpacingRules, _stackee.getStackeeRules, _focus.hoverBackgroundColor, _focus.activeBackgroundColor);
exports.buttonStyles = buttonStyles;
var linkStyles = (0, _styledComponents.css)(["line-height:48px;text-align:center;text-decoration:none;&&&{", "}", ";&:hover{background-color:", ";}&:active{background-color:", ";}"], _spacing.getSpacingRules, _stackee.getStackeeRules, _focus.hoverBackgroundColor, _focus.activeBackgroundColor);
exports.linkStyles = linkStyles;