@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.62 kB
JavaScript
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
const navBarCss = ":host{background-color:var(--utrecht-nav-bar-background-color);color:var(--utrecht-nav-bar-color);display:grid;inline-size:100%}div{align-items:stretch;background-color:var(--utrecht-nav-bar-content-background-color);color:var(--utrecht-nav-bar-content-color);display:flex;flex-direction:row;flex-wrap:wrap;inline-size:100%;justify-content:space-between;justify-self:center;max-inline-size:var(--utrecht-nav-bar-content-max-inline-size)}:host([hidden]){display:none !important}";
const UtrechtNavBarStyle0 = navBarCss;
const NavBar = /*@__PURE__*/ proxyCustomElement(class NavBar extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h("div", { key: '1ff3dfeefd34721e32d9d67174d7ab62b64f1885' }, h("slot", { key: '7d0c33cfe6dc0efd182b4c442a592460e378cbe8' })));
}
static get style() { return UtrechtNavBarStyle0; }
}, [1, "utrecht-nav-bar"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["utrecht-nav-bar"];
components.forEach(tagName => { switch (tagName) {
case "utrecht-nav-bar":
if (!customElements.get(tagName)) {
customElements.define(tagName, NavBar);
}
break;
} });
}
const UtrechtNavBar = NavBar;
const defineCustomElement = defineCustomElement$1;
export { UtrechtNavBar, defineCustomElement };
//# sourceMappingURL=utrecht-nav-bar.js.map