bulmil
Version:

30 lines (29 loc) • 1.31 kB
JavaScript
System.register(['./index-0812a769.system.js'], function (exports) {
'use strict';
var registerInstance, h;
return {
setters: [function (module) {
registerInstance = module.r;
h = module.h;
}],
execute: function () {
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}";
var Icon = exports('bm_icon', /** @class */ (function () {
function class_1(hostRef) {
registerInstance(this, hostRef);
}
class_1.prototype.render = function () {
var _a;
return (h("span", { class: (_a = {
icon: true
},
_a[this.color] = Boolean(this.color),
_a[this.size] = Boolean(this.size),
_a) }, h("slot", null)));
};
return class_1;
}()));
Icon.style = iconCss;
}
};
});