@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.91 kB
JavaScript
import { p as proxyCustomElement, H, h } from './p-2f0ff193.js';
const preHeadingCss = ":host{display:contents}p{color:var(--utrecht-pre-heading-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));font-family:var(--utrecht-pre-heading-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));font-size:var(--utrecht-pre-heading-font-size);font-weight:var(--utrecht-pre-heading-font-weight, var(--utrecht-heading-font-weight, bold));line-height:var(--utrecht-pre-heading-line-height);margin-block-end:calc(var(--utrecht-space-around, 0) * var(--utrecht-pre-heading-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0) * var(--utrecht-pre-heading-margin-block-start, 0));order:var(--utrecht-pre-heading-order, 0)}:host([hidden]){display:none !important}";
const UtrechtPreHeadingStyle0 = preHeadingCss;
const PreHeading = /*@__PURE__*/ proxyCustomElement(class PreHeading extends H {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h("p", { key: '632a6c26d74e52ac758c88d3426378e0e8e25637' }, h("slot", { key: '9bb53f33c0e4f6b2116be9fe735d23af12379f92' })));
}
static get style() { return UtrechtPreHeadingStyle0; }
}, [1, "utrecht-pre-heading"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["utrecht-pre-heading"];
components.forEach(tagName => { switch (tagName) {
case "utrecht-pre-heading":
if (!customElements.get(tagName)) {
customElements.define(tagName, PreHeading);
}
break;
} });
}
const UtrechtPreHeading = PreHeading;
const defineCustomElement = defineCustomElement$1;
export { UtrechtPreHeading, defineCustomElement };
//# sourceMappingURL=utrecht-pre-heading.js.map