import type { Directive } from '../types'; /** * Directive to manage focus trapping by setting the `inert` attribute on sibling elements. * This is useful for modal dialogs or overlays where interaction should be limited to a specific subtree. * * - Recursively traverses up the DOM tree. * - Sets `inert` on all siblings except the target element and `