UNPKG

1.5 kBJavaScriptView Raw
1System.register(['./index-1a441b18.system.js'], function (exports) {
2 'use strict';
3 var registerInstance, h;
4 return {
5 setters: [function (module) {
6 registerInstance = module.r;
7 h = module.h;
8 }],
9 execute: function () {
10 var 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}";
11 var Icon = /** @class */ (function () {
12 function Icon(hostRef) {
13 registerInstance(this, hostRef);
14 /**
15 * CSS Classes
16 */
17 this.class = '';
18 }
19 Icon.prototype.render = function () {
20 var _a;
21 return (h("span", { class: (_a = {
22 icon: true
23 },
24 _a[this.color] = Boolean(this.color),
25 _a[this.size] = Boolean(this.size),
26 _a[this.class] = Boolean(this.class),
27 _a) }, h("slot", null)));
28 };
29 return Icon;
30 }());
31 exports('bm_icon', Icon);
32 Icon.style = iconCss;
33 }
34 };
35});