UNPKG

@scania/tegel

Version:
26 lines (22 loc) 1.25 kB
import { r as registerInstance, h, g as getElement } from './index-51d04e39.js'; const breadcrumbsCss = ":host{box-sizing:border-box}:host *{box-sizing:border-box}:host [role=list]{padding:0;margin:0;font:var(--tds-detail-02);letter-spacing:var(--tds-detail-02-ls);display:flex;flex-wrap:wrap;list-style-type:none}"; const TdsBreadcrumbsStyle0 = breadcrumbsCss; const TdsBreadcrumbs = class { constructor(hostRef) { registerInstance(this, hostRef); this.tdsAriaLabel = undefined; } connectedCallback() { if (!this.tdsAriaLabel) { console.warn('Tegel Breadcrumbs component: missing tdsAriaLabel prop'); } } render() { var _a; (_a = this.host.children[this.host.children.length - 1]) === null || _a === void 0 ? void 0 : _a.classList.add('last'); return (h("nav", { key: 'fe6eaf7da192518c8f5078ac07082ac437b4aa9d', "aria-label": this.tdsAriaLabel }, h("div", { key: 'a33b2f1de081eff02a6101177cc72a899a81bbff', role: "list", class: "tds-breadcrumb" }, h("slot", { key: '0e7a03715689f66c35f1109d301b42694254c864' })))); } get host() { return getElement(this); } }; TdsBreadcrumbs.style = TdsBreadcrumbsStyle0; export { TdsBreadcrumbs as tds_breadcrumbs };