import * as react_jsx_runtime from 'react/jsx-runtime'; import * as React from 'react'; /** * SidebarDrillIn — stacked navigation pattern for deep, focused sections * (Settings, Admin, Workspace config). Lives INSIDE `` and * swaps the content area in place when `open` flips. * * Why this exists (vs. `SecondaryPanel`): * - `SecondaryPanel` keeps the primary nav visible beside a scope strip — * right for hub-scoped catalogs (Library) where the user is *scoping*. * - `SidebarDrillIn` replaces the primary nav with the section's own nav — * right for deep sections where the user is *going into* the section * (Settings → Profile / Organization / Billing / …). * * URL drives state: parents pass `open` based on a route match (e.g. * `pathname.startsWith("/settings")`). There is no transient drill stack — * navigating away from the section root exits the drill-in automatically. * * Layout: * - Wrapping `
` is `relative` + `overflow-x-hidden` so off-screen * panes are clipped instead of triggering horizontal scroll on the * enclosing ``. * - Base pane renders in normal flow (so the closed state matches the * pre-drill layout exactly). * - Drilled-in pane is `absolute inset-0` so it overlays without * affecting flex sizing while closed. * - Both panes are mounted at all times so the slide is animatable; the * inactive pane is `aria-hidden` + `inert` (React 19) so it disappears * from the accessibility tree and the tab order entirely while hidden. * * Animation: 120 ms `transition-transform`, wrapped in `motion-safe:` so * `prefers-reduced-motion` users get an instant swap. * * Accessibility: * - `[← Back]` row is a real `