UNPKG

@bulmil/core

Version:

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

30 lines (26 loc) 1.37 kB
/*! * Bulmil - MIT License */ import { r as registerInstance, h } from './index-0e194e62.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:hsl(0, 0%, 21%)}[disabled].radio,[disabled].checkbox,fieldset[disabled] .radio,fieldset[disabled] .checkbox,.radio input[disabled],.checkbox input[disabled]{color:hsl(0, 0%, 48%);cursor:not-allowed}.radio+.radio{margin-left:0.5em}"; const BmRadioStyle0 = radioCss; const Radio = class { constructor(hostRef) { registerInstance(this, hostRef); this.inputClass = ''; this.labelClass = ''; this.name = undefined; this.checked = false; this.disabled = false; } render() { return (h("label", { key: '51e78f52d2ed3ca894ae9a6a6b9ddd6f5f81a1df', class: { radio: true, [this.labelClass]: Boolean(this.labelClass), } }, h("input", { key: 'f702c01797765ec97cc0d8c826f42cf27d1eac52', class: { [this.inputClass]: Boolean(this.inputClass), }, type: "radio", name: this.name, disabled: this.disabled, checked: this.checked }), h("slot", { key: 'd3244582ed6197fdeed7c5d75dd47a00d5035a31' }))); } }; Radio.style = BmRadioStyle0; export { Radio as bm_radio };