UNPKG

@aqua-ds/web-components

Version:
35 lines (30 loc) 1.47 kB
import { proxyCustomElement, HTMLElement, h } from '@stencil/core/internal/client'; const aqCodeCss = ".aq-code{white-space:pre-line}.aq-code code{font-family:var(--font-family-code);font-size:var(--font-size-xs);line-height:var(--font-line-height-5);color:var(--color-ink-light);background-color:var(--color-paper-light);padding:var(--spacing-size-small) var(--spacing-size-short);border-radius:var(--spacing-size-minor)}"; const AqLabel = /*@__PURE__*/ proxyCustomElement(class AqLabel extends HTMLElement { constructor(registerHost) { super(); if (registerHost !== false) { this.__registerHost(); } } render() { return (h("pre", { key: '349299e423942ad4d99534b8076d0d0190600e05', class: "aq-code" }, h("code", { key: 'a9bc07f428e2421126ad6443d38ddb0179a8ef54' }, h("slot", { key: '2d24a52cef929a904ff9110100cb69205819bc77', name: "text" })))); } static get style() { return aqCodeCss; } }, [260, "aq-code"]); function defineCustomElement$1() { if (typeof customElements === "undefined") { return; } const components = ["aq-code"]; components.forEach(tagName => { switch (tagName) { case "aq-code": if (!customElements.get(tagName)) { customElements.define(tagName, AqLabel); } break; } }); } const AqCode = AqLabel; const defineCustomElement = defineCustomElement$1; export { AqCode, defineCustomElement };