UNPKG

812 BJavaScriptView Raw
1'use strict';
2
3Object.defineProperty(exports, '__esModule', { value: true });
4
5const index = require('./index-8e7d875f.js');
6
7const 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}";
8
9const Icon = class {
10 constructor(hostRef) {
11 index.registerInstance(this, hostRef);
12 }
13 render() {
14 return (index.h("span", { class: {
15 icon: true,
16 [this.color]: Boolean(this.color),
17 [this.size]: Boolean(this.size),
18 } }, index.h("slot", null)));
19 }
20};
21Icon.style = iconCss;
22
23exports.bm_icon = Icon;