UNPKG

bulmil

Version:

![bulmil](https://user-images.githubusercontent.com/2362138/65766959-c721a080-e16f-11e9-9fb9-45a5a2ad0391.jpg)

47 lines (46 loc) 2.11 kB
System.register(['./index-0812a769.system.js'], function (exports) { 'use strict'; var registerInstance, h; return { setters: [function (module) { registerInstance = module.r; h = module.h; }], execute: function () { var checkboxCss = ".radio,.checkbox{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.radio input,.checkbox input{cursor:pointer}.radio:hover,.checkbox:hover{color:#363636}[disabled].radio,[disabled].checkbox,fieldset[disabled] .radio,fieldset[disabled] .checkbox{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:0.5em}bm-checkbox[disabled=true] .checkbox{color:#7a7a7a;cursor:not-allowed}"; var Checkbox = exports('bm_checkbox', /** @class */ (function () { function class_1(hostRef) { registerInstance(this, hostRef); /** * Input classes */ this.inputClass = ''; /** * Label classes */ this.labelClass = ''; /** * Checked */ this.checked = false; /** * Disabled */ this.disabled = false; } class_1.prototype.render = function () { var _a, _b; return (h("label", { class: (_a = { checkbox: true }, _a[this.labelClass] = Boolean(this.labelClass), _a) }, h("input", { type: "checkbox", class: (_b = {}, _b[this.inputClass] = Boolean(this.inputClass), _b), disabled: this.disabled, checked: this.checked }), h("slot", null))); }; return class_1; }())); Checkbox.style = checkboxCss; } }; });