"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.getCardBorderRadius = exports.getCardFontSize = exports.getHoverBoxShadowColor = exports.getBoxShadowColor = exports.getCardSpacingRules = void 0;

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

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

var getCardSpacingRules = function getCardSpacingRules(_ref) {
  var theme = _ref.theme,
      spacing = _ref.spacing;
  return (0, _spacing.getSpacingRules)({
    theme: theme,
    spacing: spacing || 'mb2'
  });
};

exports.getCardSpacingRules = getCardSpacingRules;

var getBoxShadowColor = function getBoxShadowColor() {
  return 'rgba(59, 59, 59, 0.05)';
};

exports.getBoxShadowColor = getBoxShadowColor;

var getHoverBoxShadowColor = function getHoverBoxShadowColor(_ref2) {
  var onClick = _ref2.onClick,
      href = _ref2.href;

  // If this card isn't clickable, there's no need for the hover state
  // to be different.
  if (onClick == null && href == null) {
    return getBoxShadowColor();
  }

  return 'rgba(59, 59, 59, 0.08)';
};

exports.getHoverBoxShadowColor = getHoverBoxShadowColor;

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

exports.getCardFontSize = getCardFontSize;

var getCardBorderRadius = function getCardBorderRadius(_ref4) {
  var theme = _ref4.theme;
  return theme.cardBorderRadius;
};

exports.getCardBorderRadius = getCardBorderRadius;