@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.42 kB
JavaScript
import { p as proxyCustomElement, H, h, d as Host } from './p-2f0ff193.js';
const iconCss = ":host{block-size:var(--utrecht-icon-size);color:var(--utrecht-icon-color);display:inline-block;font-size:var(--utrecht-icon-size);inline-size:var(--utrecht-icon-size);inset-block-start:var(--utrecht-icon-inset-block-start, 0);position:relative}::slotted(svg){height:100%;pointer-events:none;width:100%}";
const UtrechtIconStyle0 = iconCss;
const Icon = /*@__PURE__*/ proxyCustomElement(class Icon extends H {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h(Host, { key: '78fca29215eded6918cf14d50eebdf69f4491778', "aria-hidden": "true" }, h("slot", { key: '8d2acf6eda03e55a0cd86654afcf844d3d01f064' })));
}
static get style() { return UtrechtIconStyle0; }
}, [1, "utrecht-icon"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["utrecht-icon"];
components.forEach(tagName => { switch (tagName) {
case "utrecht-icon":
if (!customElements.get(tagName)) {
customElements.define(tagName, Icon);
}
break;
} });
}
const UtrechtIcon = Icon;
const defineCustomElement = defineCustomElement$1;
export { UtrechtIcon, defineCustomElement };
//# sourceMappingURL=utrecht-icon.js.map