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