1 | 'use strict';
|
2 |
|
3 | Object.defineProperty(exports, '__esModule', { value: true });
|
4 |
|
5 | const core = require('./core-dd01c714.js');
|
6 |
|
7 | const Icon = class {
|
8 | constructor(hostRef) {
|
9 | core.registerInstance(this, hostRef);
|
10 | |
11 |
|
12 |
|
13 | this.class = '';
|
14 | }
|
15 | render() {
|
16 | return (core.h("span", { class: {
|
17 | icon: true,
|
18 | [this.color]: Boolean(this.color),
|
19 | [this.size]: Boolean(this.size),
|
20 | [this.class]: Boolean(this.class),
|
21 | } }, core.h("slot", null)));
|
22 | }
|
23 | static get style() { return ".icon{-ms-flex-align:center;align-items:center;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-pack:center;justify-content:center;height:1.5rem;width:1.5rem}.icon.is-small{height:1rem;width:1rem}.icon.is-medium{height:2rem;width:2rem}.icon.is-large{height:3rem;width:3rem}"; }
|
24 | };
|
25 |
|
26 | exports.bm_icon = Icon;
|