1 |
|
2 |
|
3 |
|
4 | 'use strict';
|
5 |
|
6 | Object.defineProperty(exports, '__esModule', { value: true });
|
7 |
|
8 | const index = require('./index-481858d9.js');
|
9 |
|
10 | const iconCss = ".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}.icon-text{-ms-flex-align:start;align-items:flex-start;color:inherit;display:-ms-inline-flexbox;display:inline-flex;-ms-flex-wrap:wrap;flex-wrap:wrap;line-height:1.5rem;vertical-align:top}.icon-text .icon{-ms-flex-positive:0;flex-grow:0;-ms-flex-negative:0;flex-shrink:0}.icon-text .icon:not(:last-child){margin-right:0.25em}.icon-text .icon:not(:first-child){margin-left:0.25em}div.icon-text{display:-ms-flexbox;display:flex}";
|
11 |
|
12 | let Icon = class {
|
13 | constructor(hostRef) {
|
14 | index.registerInstance(this, hostRef);
|
15 | |
16 |
|
17 |
|
18 | this.withText = false;
|
19 | }
|
20 | render() {
|
21 | return (index.h("span", { class: {
|
22 | icon: !this.withText,
|
23 | [this.color]: Boolean(this.color),
|
24 | [this.size]: Boolean(this.size),
|
25 | 'icon-text': this.withText,
|
26 | } }, index.h("slot", null)));
|
27 | }
|
28 | };
|
29 | Icon.style = iconCss;
|
30 |
|
31 | exports.bm_icon = Icon;
|