@utrecht/web-component-library-stencil
Version:
Stencil component library bundle for the Municipality of Utrecht based on the NL Design System architecture
40 lines (35 loc) • 4.77 kB
JavaScript
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client';
import { c as clsx } from './clsx.js';
const spotlightSectionCss = ".utrecht-spotlight-section{background-color:var(--_utrecht-spotlight-section-background-color, var(--utrecht-spotlight-section-background-color));border-color:var(--_utrecht-spotlight-section-border-color, var(--utrecht-spotlight-section-border-color));border-radius:var(--utrecht-spotlight-section-border-radius, 0);border-style:solid;border-width:var(--_utrecht-spotlight-section-border-width, var(--utrecht-spotlight-section-border-width, 0));color:var(--_utrecht-spotlight-section-color, var(--utrecht-spotlight-section-color));margin-block-end:calc(var(--utrecht-space-around, 0) * var(--utrecht-spotlight-section-margin-block-end, 0));margin-block-start:calc(var(--utrecht-space-around, 0) * var(--utrecht-spotlight-section-margin-block-start, 0));padding-block-end:var(--utrecht-spotlight-section-padding-block-end);padding-block-start:var(--utrecht-spotlight-section-padding-block-start);padding-inline-end:var(--utrecht-spotlight-section-padding-inline-end);padding-inline-start:var(--utrecht-spotlight-section-padding-inline-start)}.utrecht-spotlight-section--info{--_utrecht-spotlight-section-icon-color:var(--utrecht-spotlight-section-icon-info-color);--_utrecht-spotlight-section-background-color:var(--utrecht-spotlight-section-info-background-color);--_utrecht-spotlight-section-border-color:var(--utrecht-spotlight-section-info-border-color);--_utrecht-spotlight-section-border-width:var(--utrecht-spotlight-section-info-border-width);--_utrecht-spotlight-section-color:var(--utrecht-spotlight-section-info-color)}.utrecht-spotlight-section--warning{--_utrecht-spotlight-section-icon-color:var(--utrecht-spotlight-section-icon-warning-color);--_utrecht-spotlight-section-background-color:var(--utrecht-spotlight-section-warning-background-color);--_utrecht-spotlight-section-border-color:var(--utrecht-spotlight-section-warning-border-color);--_utrecht-spotlight-section-border-width:var(--utrecht-spotlight-section-warning-border-width);--_utrecht-spotlight-section-color:var(--utrecht-spotlight-section-warning-color)}.utrecht-spotlight-section--error{--_utrecht-spotlight-section-icon-color:var(--utrecht-spotlight-section-icon-error-color);--_utrecht-spotlight-section-background-color:var(--utrecht-spotlight-section-error-background-color);--_utrecht-spotlight-section-border-color:var(--utrecht-spotlight-section-error-border-color);--_utrecht-spotlight-section-border-width:var(--utrecht-spotlight-section-error-border-width);--_utrecht-spotlight-section-color:var(--utrecht-spotlight-section-error-color)}.utrecht-spotlight-section--ok{--_utrecht-spotlight-section-icon-color:var(--utrecht-spotlight-section-icon-ok-color);--_utrecht-spotlight-section-background-color:var(--utrecht-spotlight-section-ok-background-color);--_utrecht-spotlight-section-border-color:var(--utrecht-spotlight-section-ok-border-color);--_utrecht-spotlight-section-border-width:var(--utrecht-spotlight-section-ok-border-width);--_utrecht-spotlight-section-color:var(--utrecht-spotlight-section-ok-color)}:host{display:block}:host([hidden]){display:none !important}";
const UtrechtSpotlightSectionStyle0 = spotlightSectionCss;
const SpotlightSection = /*@__PURE__*/ proxyCustomElement(class SpotlightSection extends HTMLElement {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
this.appearance = undefined;
}
render() {
return (h("div", { key: '46b69f7b1f1b0baafe953198944d0830edb7584c', class: clsx('utrecht-spotlight-section', this.appearance === 'error' && 'utrecht-spotlight-section--error', this.appearance === 'info' && 'utrecht-spotlight-section--info', this.appearance === 'ok' && 'utrecht-spotlight-section--ok', this.appearance === 'warning' && 'utrecht-spotlight-section--warning') }, h("slot", { key: '20bd45bfbe9a56fe7d4bd0c6ae954722bdbba533' })));
}
static get style() { return UtrechtSpotlightSectionStyle0; }
}, [1, "utrecht-spotlight-section", {
"appearance": [1]
}]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["utrecht-spotlight-section"];
components.forEach(tagName => { switch (tagName) {
case "utrecht-spotlight-section":
if (!customElements.get(tagName)) {
customElements.define(tagName, SpotlightSection);
}
break;
} });
}
const UtrechtSpotlightSection = SpotlightSection;
const defineCustomElement = defineCustomElement$1;
export { UtrechtSpotlightSection, defineCustomElement };
//# sourceMappingURL=utrecht-spotlight-section.js.map