@scania/tegel
Version:
Tegel Design System
1 lines • 1.57 kB
JavaScript
import{t as e,p as t,H as s,h as a,a as i}from"./index.js";import{i as c}from"./p-Q3W78DlP.js";import{d as r}from"./p-CbSJY3jI.js";import{d as o}from"./p-CVrz-nvu.js";import{d}from"./p-CIt4YhvL.js";const n=t(class extends s{constructor(e){super(),!1!==e&&this.__registerHost(),this.__attachShadow(),this.active=!1}render(){this.ariaAttributes=Object.assign(Object.assign({},this.ariaAttributes),c(this.host));const e=Object.assign({},this.ariaAttributes);return a(i,{key:"b8f411243958b59899d67a8d991a1ffca34a82d0"},a("tds-header-item",{key:"025b3aa6d6eee7f9cdb6c19cc672ab9df149741e",active:this.active},a("button",Object.assign({key:"7571c417caba3e5a472f58a893f6033c4102ae09"},e,{"aria-label":this.tdsAriaLabel}),a("tds-icon",{key:"f6477e6f48ca3eb5550f92123f0edc90a3f4e108",class:"icon",name:"bento",size:"20px","svg-title":this.tdsAriaLabel}))))}get host(){return this}static get style(){return":host{display:block}:host tds-header-item{display:block}:host .icon{position:relative;margin-left:-6px;left:3px;transition:all 0.2s ease-in-out}"}},[1,"tds-header-launcher-button",{active:[4],tdsAriaLabel:[1,"tds-aria-label"]}]);function m(){"undefined"!=typeof customElements&&["tds-header-launcher-button","tds-core-header-item","tds-header-item","tds-icon"].forEach((t=>{switch(t){case"tds-header-launcher-button":customElements.get(e(t))||customElements.define(e(t),n);break;case"tds-core-header-item":customElements.get(e(t))||r();break;case"tds-header-item":customElements.get(e(t))||o();break;case"tds-icon":customElements.get(e(t))||d()}}))}m();export{n as T,m as d}