function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
import styled from "styled-components";
import Flex from "../templates/flex";
export var HiddenCheckboxInput = styled.input.attrs({
  type: "checkbox"
}).withConfig({
  displayName: "styled__HiddenCheckboxInput",
  componentId: "sc-1qof7za-0"
})(["border:0;clip:rect(0 0 0 0);clip-path:inset(50%);height:1px;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap;width:1px;"]);
export var Checkbox = styled(Flex).attrs(function (props) {
  return _extends({
    width: "16px",
    height: "16px",
    round: 0.5,
    background: "inputBg",
    backgroundOpacity: props.disabled ? 0.4 : 1,
    alignItems: "center",
    border: props.error ? "error" : "inputBorder",
    _hover: {
      border: props.disabled ? "inputBorder" : props.error ? "errorText" : "inputBorderHover"
    },
    _focus: {
      border: props.disabled ? "inputBorder" : props.error ? "errorText" : "inputBorderFocus"
    }
  }, props);
}).withConfig({
  displayName: "styled__Checkbox",
  componentId: "sc-1qof7za-1"
})([""]);