1 | import { r as registerInstance, h } from './core-98b1cff0.js';
|
2 | var Icon = (function () {
|
3 | function Icon(hostRef) {
|
4 | registerInstance(this, hostRef);
|
5 | |
6 |
|
7 |
|
8 | this.class = '';
|
9 | }
|
10 | Icon.prototype.render = function () {
|
11 | var _a;
|
12 | return (h("span", { class: (_a = {
|
13 | icon: true
|
14 | },
|
15 | _a[this.color] = Boolean(this.color),
|
16 | _a[this.size] = Boolean(this.size),
|
17 | _a[this.class] = Boolean(this.class),
|
18 | _a) }, h("slot", null)));
|
19 | };
|
20 | Object.defineProperty(Icon, "style", {
|
21 | get: function () { 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}"; },
|
22 | enumerable: true,
|
23 | configurable: true
|
24 | });
|
25 | return Icon;
|
26 | }());
|
27 | export { Icon as bm_icon };
|