UNPKG

bulmil

Version:

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

41 lines (35 loc) 1.32 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-8e7d875f.js'); const radioCss = ".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}"; const Radio = class { constructor(hostRef) { index.registerInstance(this, hostRef); /** * Input class */ this.inputClass = ''; /** * Label Classes */ this.labelClass = ''; /** * Checked */ this.checked = false; /** * Disabled */ this.disabled = false; } render() { return (index.h("label", { class: { radio: true, [this.labelClass]: Boolean(this.labelClass), } }, index.h("input", { class: { [this.inputClass]: Boolean(this.inputClass), }, type: "radio", name: this.name, disabled: this.disabled, checked: this.checked }), index.h("slot", null))); } }; Radio.style = radioCss; exports.bm_radio = Radio;