import { UiElement } from '../shared/element.js'; import type { ExpandedDetail } from '../shared/events.js'; /** * Carbon `SideNav`: the left navigation. Modes: default (slides over the page below `lg`, 256px * from `lg` when `expanded`), `rail` (48px icons, expands on hover / focus) and `fixed` + `expanded` * (always 256px, pushes ``; `fixed` alone slides the nav out of view while `` * keeps its 256px offset). `collapsible` (Carbon `isPersistent={false}`) keeps it closed on * large screens too until the hamburger opens it over the page. Escape collapses; below `lg` an * overlay covers the page while expanded. The `` in the same document (or * shadow root) opens and closes it, and follows it (Carbon web components). * Children: `` holding links, menus and dividers. * * @slot - `` * @fires ui-toggle - detail: { expanded } after a user action changed the state * @csspart base - The `