UNPKG

gov-gui

Version:

Gov UI Component Library Typscript Build

44 lines (39 loc) 1.36 kB
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client'; import { f as format } from './utils.js'; const myComponentCss = ":host{display:block}"; const MyComponentStyle0 = myComponentCss; const MyComponent$1 = /*@__PURE__*/ proxyCustomElement(class MyComponent extends HTMLElement { constructor() { super(); this.__registerHost(); this.__attachShadow(); } getText() { return format(this.first, this.middle, this.last); } render() { return h("div", { key: 'c8ba773e0d0fd715a3987e95b0c864baa3aa8af3', class: 'h1' }, "Hello, World! I'm ", this.getText()); } static get style() { return MyComponentStyle0; } }, [1, "my-component", { "first": [1], "middle": [1], "last": [1] }]); function defineCustomElement$1() { if (typeof customElements === "undefined") { return; } const components = ["my-component"]; components.forEach(tagName => { switch (tagName) { case "my-component": if (!customElements.get(tagName)) { customElements.define(tagName, MyComponent$1); } break; } }); } const MyComponent = MyComponent$1; const defineCustomElement = defineCustomElement$1; export { MyComponent, defineCustomElement }; //# sourceMappingURL=my-component.js.map