@scania/tegel
Version:
Tegel Design System
36 lines (31 loc) • 1.48 kB
JavaScript
import { p as proxyCustomElement, H, h } from './p-28ef5186.js';
const headerTitleCss = "h4{box-sizing:border-box;color:var(--tds-header-nav-item-color);font-weight:normal;font-family:var(--tds-font-family-headline);letter-spacing:normal;position:relative;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}h4 slot{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;padding:0 32px 0 16px}";
const TdsHeaderTitleStyle0 = headerTitleCss;
const TdsHeaderTitle$1 = /*@__PURE__*/ proxyCustomElement(class TdsHeaderTitle extends H {
constructor() {
super();
this.__registerHost();
this.__attachShadow();
}
render() {
return (h("h4", { key: 'b3ac74d4d978c32c1dfd417a5217bc5953075033' }, h("slot", { key: '67d55d1f3413b130767ae8db2e1d952f27beb00a' })));
}
static get style() { return TdsHeaderTitleStyle0; }
}, [1, "tds-header-title"]);
function defineCustomElement$1() {
if (typeof customElements === "undefined") {
return;
}
const components = ["tds-header-title"];
components.forEach(tagName => { switch (tagName) {
case "tds-header-title":
if (!customElements.get(tagName)) {
customElements.define(tagName, TdsHeaderTitle$1);
}
break;
} });
}
defineCustomElement$1();
const TdsHeaderTitle = TdsHeaderTitle$1;
const defineCustomElement = defineCustomElement$1;
export { TdsHeaderTitle, defineCustomElement };