@frontify/fondue
Version:
Design system of Frontify
23 lines (22 loc) • 641 B
JavaScript
const n = [
"input:not([disabled]):not([type=hidden])",
"select:not([disabled])",
"textarea:not([disabled])",
"button:not([disabled])",
"a[href]",
"area[href]",
"summary",
"iframe",
"object",
"embed",
"audio[controls]",
"video[controls]",
"[contenteditable]",
'[tabindex]:not([tabindex="-1"]):not([disabled])'
].join(':not([hidden]):not([tabindex="-1"]),'), o = (e, t) => e ? "a" : t ? "button" : "span", a = (e) => e ? (e.querySelectorAll(n) ?? []).length > 0 : !1;
export {
n as TABBABLE_ELEMENTS,
a as checkIfContainInteractiveElements,
o as getItemElementType
};
//# sourceMappingURL=elements.es.js.map