import { inject, on } from "@storyteller/framework"; import { LitElement, PropertyValues, css, html, unsafeCSS } from "lit"; import { customElement, property } from "lit/decorators.js"; import { ifDefined } from "lit/directives/if-defined.js"; import { createRef, ref, type Ref } from "lit/directives/ref.js"; import { styleMap } from "lit/directives/style-map.js"; import { v4 as uuid } from "uuid"; import { OVERLAY_PROVIDER, type OverlayHandle, type OverlayProvider, } from "./overlay-provider.element"; import panelStyles from "./menu.element.scss?inline"; /** * A simple, WIP [menu widget](https://www.w3.org/WAI/ARIA/apg/patterns/menubar/) * implementation. * * @note * This should _not_ be used for a `