UNPKG

@bulmil/core

Version:

![bulmil](https://user-images.githubusercontent.com/2362138/65766959-c721a080-e16f-11e9-9fb9-45a5a2ad0391.jpg)

41 lines (37 loc) 1.01 kB
/*! * 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 };