bulmil
Version:

29 lines (23 loc) • 935 B
JavaScript
Object.defineProperty(exports, '__esModule', { value: true });
const index = require('./index-c5d25585.js');
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}";
const Icon = class {
constructor(hostRef) {
index.registerInstance(this, hostRef);
/**
* CSS Classes
*/
this.class = '';
}
render() {
return (index.h("span", { class: {
icon: true,
[this.color]: Boolean(this.color),
[this.size]: Boolean(this.size),
[this.class]: Boolean(this.class),
} }, index.h("slot", null)));
}
};
Icon.style = iconCss;
exports.bm_icon = Icon;
;