"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getButtonActiveColor = exports.getButtonHoverColor = exports.getBorderColor = exports.getColor = exports.getBackgroundColor = exports.getBorderRadius = exports.getLabelFontWeight = exports.getLabelFontFamily = exports.getLabelFontSize = void 0;

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

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

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

var getLabelFontSize = function getLabelFontSize(_ref) {
  var theme = _ref.theme;
  return (0, _typography.getFontSize)({
    theme: theme,
    fontSize: 'f1'
  });
};

exports.getLabelFontSize = getLabelFontSize;

var getLabelFontFamily = function getLabelFontFamily(_ref2) {
  var theme = _ref2.theme;
  return (0, _typography.getFontFamily)({
    theme: theme
  });
};

exports.getLabelFontFamily = getLabelFontFamily;

var getLabelFontWeight = function getLabelFontWeight() {
  return (0, _typography.getFontWeight)({
    bold: true
  });
};

exports.getLabelFontWeight = getLabelFontWeight;

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

exports.getBorderRadius = getBorderRadius;

var getBackgroundColor = function getBackgroundColor(_ref4) {
  var selected = _ref4.selected,
      theme = _ref4.theme;
  return selected ? (0, _branding.getPaletteColor)('brand-secondary-dark')({
    theme: theme
  }) : (0, _branding.getPaletteColor)('white')({
    theme: theme
  });
};

exports.getBackgroundColor = getBackgroundColor;

var getColor = function getColor(_ref5) {
  var selected = _ref5.selected,
      theme = _ref5.theme;
  return selected ? (0, _branding.getPaletteColor)('white')({
    theme: theme
  }) : (0, _branding.getPaletteColor)('greyscale-dark')({
    theme: theme
  });
};

exports.getColor = getColor;

var getBorderColor = function getBorderColor(_ref6) {
  var selected = _ref6.selected,
      theme = _ref6.theme;
  return selected ? (0, _branding.getPaletteColor)('brand-secondary-dark')({
    theme: theme
  }) : (0, _branding.getPaletteColor)('greyscale-light')({
    theme: theme
  });
};

exports.getBorderColor = getBorderColor;

var getButtonHoverColor = function getButtonHoverColor(_ref7) {
  var selected = _ref7.selected,
      theme = _ref7.theme;
  return selected ? undefined : (0, _focus.hoverBackgroundColor)({
    theme: theme
  });
};

exports.getButtonHoverColor = getButtonHoverColor;

var getButtonActiveColor = function getButtonActiveColor(_ref8) {
  var selected = _ref8.selected,
      theme = _ref8.theme;
  return selected ? undefined : (0, _branding.getPaletteColor)('greyscale-light')({
    theme: theme
  });
};

exports.getButtonActiveColor = getButtonActiveColor;