UNPKG

@buffetjs/styles

Version:

Buffetjs Styles - The styling solution of Buffetjs

35 lines (25 loc) 1.43 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports["default"] = void 0; var _styledComponents = _interopRequireDefault(require("styled-components")); var _sizes = _interopRequireDefault(require("../../assets/styles/sizes")); function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; } function _templateObject() { var data = _taggedTemplateLiteral(["\n input,\n label {\n display: inline-block;\n vertical-align: top;\n }\n input {\n margin-top: 4px;\n width: 14px;\n height: 12px;\n }\n input + label {\n display: inline-block;\n width: fit-content;\n max-width: calc(100% - ", ");\n margin-left: ", "px;\n margin-bottom: 0;\n line-height: 18px;\n cursor: ", ";\n }\n"]); _templateObject = function _templateObject() { return data; }; return data; } function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); } var CheckboxWrapper = _styledComponents["default"].div(_templateObject(), _sizes["default"].checkbox.width, _sizes["default"].margin, function (_ref) { var disabled = _ref.disabled; return disabled ? 'not-allowed' : 'pointer'; }); CheckboxWrapper.defaultProps = { disabled: false }; var _default = CheckboxWrapper; exports["default"] = _default;