UNPKG

@scania/tegel

Version:
53 lines (48 loc) 2.39 kB
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js'; import { d as defineCustomElement$3 } from './p-9ad61cb5.js'; import { d as defineCustomElement$2 } from './p-6adb1ce3.js'; const headerBrandSymbolCss = ":host tds-header-item{display:none}:host tds-header-item ::slotted(*){background-image:var(--tds-background-image-scania-symbol-svg-local), var(--tds-background-image-scania-symbol-svg);background-size:30px auto;background-position:center;background-repeat:no-repeat}@media (min-width: 992px){:host tds-header-item{display:block}}"; const TdsHeaderBrandSymbolStyle0 = headerBrandSymbolCss; const TdsHeaderBrandSymbol$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderBrandSymbol extends H { constructor() { super(); this.__registerHost(); this.__attachShadow(); } render() { const aTag = this.host.querySelector('a'); if (!aTag.hasAttribute('aria-label')) { console.warn('Tegel Header Brand Symbol component: missing aria-label attribute for <a> tag inside slot'); } return (h(Host, { key: 'c7b01660c7757298ff64d90b19df0cc45ebb62fc' }, h("tds-header-item", { key: '2e5f25c5b22a4779146ad6b8c76a8ac625d616dc' }, h("slot", { key: '110c74312136176f396af1010731a886d2d986aa' })))); } get host() { return this; } static get style() { return TdsHeaderBrandSymbolStyle0; } }, [1, "tds-header-brand-symbol"]); function defineCustomElement$1() { if (typeof customElements === "undefined") { return; } const components = ["tds-header-brand-symbol", "tds-core-header-item", "tds-header-item"]; components.forEach(tagName => { switch (tagName) { case "tds-header-brand-symbol": if (!customElements.get(tagName)) { customElements.define(tagName, TdsHeaderBrandSymbol$1); } break; case "tds-core-header-item": if (!customElements.get(tagName)) { defineCustomElement$3(); } break; case "tds-header-item": if (!customElements.get(tagName)) { defineCustomElement$2(); } break; } }); } defineCustomElement$1(); const TdsHeaderBrandSymbol = TdsHeaderBrandSymbol$1; const defineCustomElement = defineCustomElement$1; export { TdsHeaderBrandSymbol, defineCustomElement };