"use strict";
var __makeTemplateObject = (this && this.__makeTemplateObject) || function (cooked, raw) {
    if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
    return cooked;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
var styled_components_1 = __importDefault(require("styled-components"));
var theme_interface_1 = require("../../types/theme.interface");
var css = styled_components_1.default.div;
exports.default = css(templateObject_1 || (templateObject_1 = __makeTemplateObject(["\n   .checkbox-container {\n      cursor: pointer;\n      display: flex;\n      flex-direction: row;\n   }\n\n   .title {\n      padding-left: 10px;\n      line-height: 0;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      transition: 0.15s color;\n\n      &.disabled {\n         cursor: not-allowed;\n      }\n   }\n\n   input {\n      display: none;\n\n      & + .checkbox {\n         display: inline-flex;\n         vertical-align: top;\n         align-items: center;\n         justify-content: space-between;\n         cursor: pointer;\n         width: ", "px;\n         height: ", "px;\n         background: grey;\n         background: #ddd;\n         border-radius: 1000px;\n         position: relative;\n         transition: background-color 0.2s;\n         margin-right: 0px;\n\n         &:before {\n            content: '';\n            position: absolute;\n            top: 2px;\n            left: 2px;\n            width: ", "px;\n            height: ", "px;\n            border-radius: 100px;\n            transition: 0.2s;\n            background: #fff;\n            box-shadow: 0 0 2px 0 rgba(10, 10, 10, 0.29);\n         }\n\n         &:hover {\n            cursor: pointer;\n         }\n\n         &.disabled {\n            background: #ddd;\n            opacity: 0.6;\n            cursor: not-allowed !important;\n\n            &:hover {\n               cursor: not-allowed !important;\n            }\n         }\n      }\n\n      &:checked + .checkbox {\n         background: ", ";\n\n         &:before {\n            transform: translateX(", "px);\n         }\n\n         & + .title {\n            font-weight: 600;\n            color: ", ";\n         }\n      }\n   }\n"], ["\n   .checkbox-container {\n      cursor: pointer;\n      display: flex;\n      flex-direction: row;\n   }\n\n   .title {\n      padding-left: 10px;\n      line-height: 0;\n      display: flex;\n      justify-content: center;\n      align-items: center;\n      transition: 0.15s color;\n\n      &.disabled {\n         cursor: not-allowed;\n      }\n   }\n\n   input {\n      display: none;\n\n      & + .checkbox {\n         display: inline-flex;\n         vertical-align: top;\n         align-items: center;\n         justify-content: space-between;\n         cursor: pointer;\n         width: ", "px;\n         height: ", "px;\n         background: grey;\n         background: #ddd;\n         border-radius: 1000px;\n         position: relative;\n         transition: background-color 0.2s;\n         margin-right: 0px;\n\n         &:before {\n            content: '';\n            position: absolute;\n            top: 2px;\n            left: 2px;\n            width: ", "px;\n            height: ", "px;\n            border-radius: 100px;\n            transition: 0.2s;\n            background: #fff;\n            box-shadow: 0 0 2px 0 rgba(10, 10, 10, 0.29);\n         }\n\n         &:hover {\n            cursor: pointer;\n         }\n\n         &.disabled {\n            background: #ddd;\n            opacity: 0.6;\n            cursor: not-allowed !important;\n\n            &:hover {\n               cursor: not-allowed !important;\n            }\n         }\n      }\n\n      &:checked + .checkbox {\n         background: ", ";\n\n         &:before {\n            transform: translateX(", "px);\n         }\n\n         & + .title {\n            font-weight: 600;\n            color: ", ";\n         }\n      }\n   }\n"])), function (props) { var _a; return ((_a = props.size) !== null && _a !== void 0 ? _a : 35) * 2; }, function (props) { var _a; return (_a = props.size) !== null && _a !== void 0 ? _a : 35; }, function (props) { var _a; return ((_a = props.size) !== null && _a !== void 0 ? _a : 35) - 4; }, function (props) { var _a; return ((_a = props.size) !== null && _a !== void 0 ? _a : 35) - 4; }, function (props) { var _a, _b; return (_b = (_a = props.color) !== null && _a !== void 0 ? _a : props.theme.primary) !== null && _b !== void 0 ? _b : theme_interface_1.ThemeDefault.primary; }, function (props) { var _a; return (_a = props.size) !== null && _a !== void 0 ? _a : 35; }, function (props) { var _a; return (_a = props.color) !== null && _a !== void 0 ? _a : props.theme.primary; });
var templateObject_1;
//# sourceMappingURL=Switch.style.js.map