'use strict';

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

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

var _styledComponents2 = _interopRequireDefault(_styledComponents);

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

var _themeGet2 = _interopRequireDefault(_themeGet);

var _ToggleInput = require('./ToggleInput');

var _ToggleInput2 = _interopRequireDefault(_ToggleInput);

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

var SIZE = exports.SIZE = '30px';
var TOGGLE_WIDTH = '58px';

exports.default = _styledComponents2.default.label.withConfig({
  displayName: 'ToggleLabel'
})(['display:block;cursor:pointer;position:relative;user-select:none;padding-right:0;padding-left:calc(', ' + ', ');padding-top:4px;padding-bottom:5px;transition:all 0.2s ease;line-height:1.5;font-family:', ';font-weight:300;&::before{content:\'\';box-sizing:border-box;border-width:', ';border-style:solid;border-radius:15px;width:', ';height:', ';display:block;position:absolute;left:0;top:50%;transform:translateY(-50%);transition:all 0.2s ease;}', ':enabled + &:hover::before{box-shadow:', ';}&::after{content:\'\';box-sizing:border-box;border-width:', ';border-style:solid;border-radius:15px;width:', ';height:', ';position:absolute;top:50%;transform:translateY(-50%);left:0;display:block;transition:all 0.2s ease;}', ':focus + &::before{box-shadow:', ';}', ' + &::before{background:', ';border-color:', ';}', ' + &::after{background:', ';border-color:', ';}', ' + &:hover::before,', ' + &:hover::after{border-color:', ';}', ':checked + &{&::before{background:', ';border-color:', ';}&::after{left:', ';background:', ';border-color:', ';}}', ':disabled + &{cursor:default;color:', ';&::before,&::after{border-color:', ';background:', ';}}', ':checked:disabled + &::before{background:', ';}'], TOGGLE_WIDTH, (0, _themeGet2.default)('spacing.small'), (0, _themeGet2.default)('fonts.brand'), (0, _themeGet2.default)('thicknesses.wide'), TOGGLE_WIDTH, SIZE, _ToggleInput2.default, (0, _themeGet2.default)('shadows.focusOutline'), (0, _themeGet2.default)('thicknesses.wide'), SIZE, SIZE, _ToggleInput2.default, (0, _themeGet2.default)('shadows.focusOutline'), _ToggleInput2.default, (0, _themeGet2.default)('colors.background.default'), (0, _themeGet2.default)('colors.primary.dark'), _ToggleInput2.default, (0, _themeGet2.default)('colors.text.inverted'), (0, _themeGet2.default)('colors.primary.dark'), _ToggleInput2.default, _ToggleInput2.default, (0, _themeGet2.default)('colors.primary.dark'), _ToggleInput2.default, (0, _themeGet2.default)('colors.primary.dark'), (0, _themeGet2.default)('colors.primary.dark'), SIZE, (0, _themeGet2.default)('colors.text.inverted'), (0, _themeGet2.default)('colors.primary.dark'), _ToggleInput2.default, (0, _themeGet2.default)('colors.gray.border'), (0, _themeGet2.default)('colors.border.disabled'), (0, _themeGet2.default)('colors.background.disabled'), _ToggleInput2.default, (0, _themeGet2.default)('colors.background.disabledSelected'));