UNPKG

@scania/tegel

Version:
30 lines (24 loc) 1.32 kB
'use strict'; Object.defineProperty(exports, '__esModule', { value: true }); const index = require('./index-ca8040ad.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) { index.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 (index.h("nav", { key: 'fe6eaf7da192518c8f5078ac07082ac437b4aa9d', "aria-label": this.tdsAriaLabel }, index.h("div", { key: 'a33b2f1de081eff02a6101177cc72a899a81bbff', role: "list", class: "tds-breadcrumb" }, index.h("slot", { key: '0e7a03715689f66c35f1109d301b42694254c864' })))); } get host() { return index.getElement(this); } }; TdsBreadcrumbs.style = TdsBreadcrumbsStyle0; exports.tds_breadcrumbs = TdsBreadcrumbs;