1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 | const index = require('./index-8e7d875f.js');
|
6 |
|
7 | 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}";
|
8 |
|
9 | const Radio = class {
|
10 | constructor(hostRef) {
|
11 | index.registerInstance(this, hostRef);
|
12 | |
13 |
|
14 |
|
15 | this.inputClass = '';
|
16 | |
17 |
|
18 |
|
19 | this.labelClass = '';
|
20 | |
21 |
|
22 |
|
23 | this.checked = false;
|
24 | |
25 |
|
26 |
|
27 | this.disabled = false;
|
28 | }
|
29 | render() {
|
30 | return (index.h("label", { class: {
|
31 | radio: true,
|
32 | [this.labelClass]: Boolean(this.labelClass),
|
33 | } }, index.h("input", { class: {
|
34 | [this.inputClass]: Boolean(this.inputClass),
|
35 | }, type: "radio", name: this.name, disabled: this.disabled, checked: this.checked }), index.h("slot", null)));
|
36 | }
|
37 | };
|
38 | Radio.style = radioCss;
|
39 |
|
40 | exports.bm_radio = Radio;
|