@scania/tegel
Version:
Tegel Design System
1 lines • 323 B
JavaScript
import{d as r}from"./p-CLF3diNe.js";const n=r=>{const n=r.tagName.toLowerCase(),t=r.getAttribute("role");return["h1","h2","h3","h4","h5","h6"].includes(n)||"heading"===t},t=r=>r.previousElementSibling,o=(n,o)=>function(n,t,o){let e=o(n);for(;e;){const n=r(e,t);if(n)return n;e=o(e)}return null}(n,o,t);export{o as g,n as i}