UNPKG

@bulmil/core

Version:

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

42 lines (38 loc) 1.22 kB
/*! * Bulmil - MIT License */ import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client'; const Column = /*@__PURE__*/ proxyCustomElement(class Column extends HTMLElement { constructor() { super(); this.__registerHost(); this.sizes = undefined; this.isNarrow = undefined; } render() { return (h(Host, { key: '1b5645e647b024fb55925537c174b48327777c1b', class: { column: true, 'is-narrow': this.isNarrow && typeof this.isNarrow === 'boolean', [this.sizes]: Boolean(this.sizes), } })); } }, [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 };