import _defineProperty from "@babel/runtime/helpers/defineProperty";

function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }

function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }

import makeStyles from "../styles/makeStyles";

var styles = function styles(_ref) {
  var _ref$cleverUI = _ref.cleverUI,
      colors = _ref$cleverUI.colors,
      typography = _ref$cleverUI.typography;
  return {
    root: function root(_ref2) {
      var color = _ref2.color,
          shade = _ref2.shade,
          fontVariant = _ref2.fontVariant;
      return _objectSpread({
        display: "inline-flex",
        alignItems: "center",
        fontFamily: typography.font2,
        lineHeight: typography.lineHeight,
        fontWeight: "bold",
        fontSize: "inherit",
        color: colors[color][shade],
        textDecoration: "none",
        cursor: "pointer",
        // override button styles
        border: "none",
        backgroundColor: "transparent",
        textAlign: "left",
        // display: "block",
        padding: 0,
        "&:hover": {
          color: colors[color][700]
        },
        "&:focus": {
          outline: "none",
          color: colors[color][700]
        }
      }, fontVariant != null ? _objectSpread({}, typography.variants[fontVariant]) : {});
    },
    disabled: function disabled(_ref3) {
      var color = _ref3.color;
      return {
        color: colors[color][500],
        cursor: "default",
        opacity: "0.5",
        textDecoration: "none",
        pointerEvents: "none",
        "&:hover": {
          color: colors[color][500]
        }
      };
    }
  };
};

export default makeStyles(styles);