UNPKG

825 BJavaScriptView Raw
1import{r as s,h as t}from"./p-451c76eb.js";const e=class{constructor(t){s(this,t),this.class="",this.labelClass="",this.checked=!1,this.disabled=!1}render(){return t("label",{class:{checkbox:!0,[this.labelClass]:Boolean(this.labelClass)}},t("input",{type:"checkbox",class:{[this.class]:Boolean(this.class)},disabled:this.disabled,checked:this.checked}),t("slot",null))}static get style(){return".checkbox,.radio{cursor:pointer;display:inline-block;line-height:1.25;position:relative}.checkbox input,.radio input{cursor:pointer}.checkbox:hover,.radio:hover{color:#363636}[disabled].checkbox,[disabled].radio,fieldset[disabled] .checkbox,fieldset[disabled] .radio{color:#7a7a7a;cursor:not-allowed}.radio+.radio{margin-left:.5em}bm-checkbox[disabled=true] .checkbox{color:#7a7a7a;cursor:not-allowed}"}};export{e as bm_checkbox};
\No newline at end of file