@utrecht/web-component-library-stencil
Version:
Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture
36 lines (31 loc) • 1.48 kB
JavaScript
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
const codeCss = ".utrecht-code{background-color:var(--utrecht-code-background-color);color:var(--utrecht-code-color);font-family:var(--utrecht-code-font-family, monospace), monospace;font-size:var(--utrecht-code-font-size, inherit);font-variant-ligatures:none;line-height:var(--utrecht-code-line-height)}:host{display:inline}:host([hidden]){display:none !important}";
const UtrechtCodeStyle0 = codeCss;
const Code = /*@__PURE__*/ proxyCustomElement(class Code extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h("code", { key: '4553c6a4ef5cc0afbf7a6bc6fe56209e8d8f8afe', class: "utrecht-code" }, h("slot", { key: '7125ff0ab1d0377ed3c122c22f676cde609cd7a7' })));
}
static get style() { return UtrechtCodeStyle0; }
}, [1, "utrecht-code"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["utrecht-code"];
components.forEach(tagName => { switch (tagName) {
case "utrecht-code":
if (!customElements.get(tagName)) {
customElements.define(tagName, Code);
}
break;
} });
}
const UtrechtCode = Code;
const defineCustomElement = defineCustomElement$1;
export { UtrechtCode, defineCustomElement };
//# sourceMappingURL=utrecht-code.js.map