"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.styles = void 0;

var root = function root(theme) {
  return {
    width: 20,
    height: 20,
    borderRadius: '50%',
    position: 'relative',
    display: 'inline-flex',
    justifyContent: 'center',
    alignItems: 'center',
    border: '2px solid',
    cursor: 'pointer',
    transition: theme.transitions.radio,
    backgroundColor: theme.colors.white["default"],
    // checked false
    borderColor: theme.colors.standard["default"],
    '&:hover': {
      borderColor: theme.colors.standard.dark1
    },
    // input element
    '& > input': {
      width: '100%',
      height: '100%',
      opacity: 0,
      position: 'absolute',
      left: 0,
      right: 0,
      top: 0,
      bottom: 0,
      cursor: 'pointer'
    }
  };
};

var checked = function checked(theme) {
  return {
    borderColor: theme.colors.primary["default"],
    '&:hover': {
      borderColor: theme.colors.primary["default"]
    }
  };
};

var disabled = function disabled(theme) {
  return {
    backgroundColor: theme.colors.standard.light1,
    borderColor: theme.colors.standard["default"],
    cursor: 'not-allowed',
    pointerEvents: 'none',
    '& > input': {
      cursor: 'not-allowed',
      pointerEvents: 'none'
    }
  };
};

var circle = function circle(theme) {
  return {
    borderRadius: '50%',
    transition: theme.transitions.radio,
    backgroundColor: theme.colors.black["default"],
    width: 0,
    height: 0,
    opacity: 0
  };
};

var circleChecked = {
  width: 12,
  height: 12,
  opacity: 1
};

var circleDisabled = function circleDisabled(theme) {
  return {
    backgroundColor: theme.colors.standard.dark3
  };
};

var styles = function styles(theme) {
  return {
    root: root(theme),
    checked: checked(theme),
    disabled: disabled(theme),
    circle: circle(theme),
    circleChecked: circleChecked,
    circleDisabled: circleDisabled(theme)
  };
};

exports.styles = styles;