@utrecht/web-component-library-stencil
Version:
Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture
33 lines (29 loc) • 1.87 kB
JavaScript
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
const heading2Css = ":host{display:contents}:host([hidden]){display:none !important}h2{break-inside:avoid-column;page-break-after:avoid;page-break-inside:avoid;color:var(--utrecht-heading-2-color, var(--utrecht-heading-color, var(--utrecht-document-color, inherit)));font-family:var(--utrecht-heading-2-font-family, var(--utrecht-heading-font-family, var(--utrecht-document-font-family)));font-size:var(--utrecht-heading-2-font-size, revert);font-weight:var(--utrecht-heading-2-font-weight, var(--utrecht-heading-font-weight, bold));line-height:var(--utrecht-heading-2-line-height);margin-block-end:calc(var(--utrecht-space-around, 0) * var(--utrecht-heading-2-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0) * var(--utrecht-heading-2-margin-block-start, 0));page-break-after:avoid}";
const UtrechtHeading2Style0 = heading2Css;
const Heading2 = /*@__PURE__*/ proxyCustomElement(class Heading2 extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h("h2", { key: '495f19b93781a49a15a907a45eabe44af7954e2d' }, h("slot", { key: 'e5a2baf3d2380da0c65bda613bcaa0b59b5eff32' })));
}
static get style() { return UtrechtHeading2Style0; }
}, [1, "utrecht-heading-2"]);
function defineCustomElement() {
if (typeof customElements === "undefined") {
return;
}
const components = ["utrecht-heading-2"];
components.forEach(tagName => { switch (tagName) {
case "utrecht-heading-2":
if (!customElements.get(tagName)) {
customElements.define(tagName, Heading2);
}
break;
} });
}
export { Heading2 as H, defineCustomElement as d };
//# sourceMappingURL=heading-2.js.map