'use strict';

Object.defineProperty(exports, "__esModule", {
  value: true
});

var _styledComponents = require('styled-components');

var _styledComponents2 = _interopRequireDefault(_styledComponents);

var _themeGet = require('../../../extensions/themeGet');

var _themeGet2 = _interopRequireDefault(_themeGet);

var _icons = require('../../Icon/icons');

var _icons2 = _interopRequireDefault(_icons);

function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

var SIZE = '1.3em';
var PADDING = '0.2em';

exports.default = _styledComponents2.default.label.withConfig({
  displayName: 'RadioLabel'
})(['display:block;cursor:pointer;position:relative;padding:', ' 0 ', ' 2.1em;line-height:1.5em;&::before{content:', ';color:', ';font-family:', ';text-align:center;width:', ';height:', ';display:block;position:absolute;top:calc(', ' + ', ' / 2);left:calc(', ' / 2);transform:translate(-50%,-50%);z-index:1;}&::after{content:\'\';border:', ' solid ', ';border-radius:100%;width:', ';height:', ';display:block;position:absolute;top:calc(', ' + ', ' / 2);left:calc(', ' / 2);transform:translate(-50%,-50%);transition:all 0.2s ease;}'], PADDING, PADDING, function (_ref) {
  var checked = _ref.checked;
  return checked ? '"' + (0, _icons2.default)('checkmark') + '"' : '""';
}, (0, _themeGet2.default)('colors.text.inverted'), (0, _themeGet2.default)('fonts.icon'), SIZE, SIZE, PADDING, SIZE, SIZE, (0, _themeGet2.default)('thicknesses.wide'), (0, _themeGet2.default)('colors.primary.dark'), SIZE, SIZE, PADDING, SIZE, SIZE);