@bulmil/core
Version:

4 lines • 1.01 kB
JavaScript
/*!
* Bulmil - MIT License
*/
import{r as e,h as i}from"./p-3e3f9086.js";const d=class{constructor(i){e(this,i),this.inputClass="",this.labelClass="",this.name=void 0,this.checked=!1,this.disabled=!1}render(){return i("label",{key:"51e78f52d2ed3ca894ae9a6a6b9ddd6f5f81a1df",class:{radio:!0,[this.labelClass]:Boolean(this.labelClass)}},i("input",{key:"f702c01797765ec97cc0d8c826f42cf27d1eac52",class:{[this.inputClass]:Boolean(this.inputClass)},type:"radio",name:this.name,disabled:this.disabled,checked:this.checked}),i("slot",{key:"d3244582ed6197fdeed7c5d75dd47a00d5035a31"}))}};d.style=".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}";export{d as bm_radio}