@scania/tegel
Version:
Tegel Design System
36 lines (31 loc) • 2.21 kB
JavaScript
import { p as proxyCustomElement, H, h, c as Host } from './p-28ef5186.js';
const headerLauncherGridItemCss = ":host{display:block;width:96px;height:96px}:host ::slotted(a),:host ::slotted(button){all:unset;box-sizing:border-box;border-right:1px solid var(--tds-nav-item-border-color);width:100%;height:100%;border:none;padding:0 12px;display:flex;text-align:center;justify-content:center;align-items:center;flex-direction:column;gap:8px;font:var(--tds-detail-05);letter-spacing:var(--tds-detail-05-ls);background-color:var(--tds-header-app-launcher-menu-bg);color:var(--tds-header-app-launcher-grid-color);border-radius:4px;transition:background-color 150ms ease}:host ::slotted(a:hover),:host ::slotted(button:hover){background-color:var(--tds-header-app-launcher-grid-hover-background);cursor:pointer}:host ::slotted(a:focus-visible),:host ::slotted(button:focus-visible){outline:2px solid var(--tds-focus-outline-color);box-shadow:0 0 0 1px var(--tds-white);outline-offset:1px;z-index:1}";
const TdsHeaderLauncherGridItemStyle0 = headerLauncherGridItemCss;
const TdsHeaderLauncherGridItem$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderLauncherGridItem extends H {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h(Host, { key: 'fc7949be187e1a83b56e8cf3a7fd1ac51a4c76cc', role: "listitem" }, h("slot", { key: '998d551d53a7e0b6536a5a45f5e67a7425508f70' })));
}
static get style() { return TdsHeaderLauncherGridItemStyle0; }
}, [1, "tds-header-launcher-grid-item"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["tds-header-launcher-grid-item"];
components.forEach(tagName => { switch (tagName) {
case "tds-header-launcher-grid-item":
if (!customElements.get(tagName)) {
customElements.define(tagName, TdsHeaderLauncherGridItem$1);
}
break;
} });
}
defineCustomElement$1();
const TdsHeaderLauncherGridItem = TdsHeaderLauncherGridItem$1;
const defineCustomElement = defineCustomElement$1;
export { TdsHeaderLauncherGridItem, defineCustomElement };