@bulmil/core
Version:

41 lines (37 loc) • 1.01 kB
JavaScript
/*!
* Bulmil - MIT License
*/
import { HTMLElement, h, Host, proxyCustomElement } from '@stencil/core/internal/client';
let Column = class extends HTMLElement {
constructor() {
super();
this.__registerHost();
}
render() {
return (h(Host, { class: {
column: true,
'is-narrow': this.isNarrow && typeof this.isNarrow === 'boolean',
[this.sizes]: Boolean(this.sizes),
} }));
}
};
Column = /*@__PURE__*/ proxyCustomElement(Column, [0, "bm-column", {
"sizes": [1],
"isNarrow": [4, "is-narrow"]
}]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["bm-column"];
components.forEach(tagName => { switch (tagName) {
case "bm-column":
if (!customElements.get(tagName)) {
customElements.define(tagName, Column);
}
break;
} });
}
const BmColumn = Column;
const defineCustomElement = defineCustomElement$1;
export { BmColumn, defineCustomElement };