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,
      spaces = _ref$cleverUI.spaces,
      formControls = _ref$cleverUI.formControls,
      borderRadius = _ref$cleverUI.borderRadius,
      transitions = _ref$cleverUI.transitions;
  return {
    root: _objectSpread(_objectSpread({}, typography.variants.inputText), {}, {
      position: "relative",
      boxSizing: "border-box",
      display: "inline-flex",
      placeItems: "center",
      minHeight: formControls.heights.normal,
      padding: "".concat(spaces.sm, " ").concat(spaces.md),
      borderRadius: borderRadius.normal,
      transitionDuration: transitions.duration["short"]
    }),
    content: {
      alignItems: "center",
      display: "inline-flex",
      gap: spaces.sm
    },
    hiddenWithoutLabel: {
      visibility: "hidden"
    },
    hiddenWithLabel: {
      display: "none"
    },
    contained: {
      transitionProperty: "background, color",
      backgroundColor: colors.primary[500],
      color: colors.neutral[0],
      "& svg": {
        "& path": {
          fill: colors.neutral[0]
        }
      },
      "&:hover": {
        color: colors.primary[50],
        backgroundColor: colors.primary[700],
        "& svg": {
          "& path": {
            fill: colors.primary[50]
          }
        }
      },
      "&:focus": {
        color: colors.primary[50],
        backgroundColor: colors.primary[700],
        "& svg": {
          "& path": {
            fill: colors.primary[50]
          }
        }
      },
      "&:disabled": {
        color: colors.primary[300],
        backgroundColor: colors.primary[50],
        "& svg": {
          "& path": {
            fill: colors.primary[300]
          }
        }
      }
    },
    outlined: {
      transitionProperty: "border, color",
      color: colors.primary[500],
      border: "2px solid",
      borderColor: colors.primary[500],
      backgroundColor: "transparent",
      "&:hover": {
        color: colors.primary[700]
      },
      "&:focus": {
        color: colors.primary[700]
      },
      "&:disabled": {
        color: colors.primary[300],
        borderColor: colors.primary[300]
      },
      "& svg": {
        "& path": {
          fill: colors.primary[500]
        }
      }
    }
  };
};

export default makeStyles(styles);