import "./popover.css"; import type * as React from "react"; import { Popover as Base } from "@base-ui/react/popover"; import { useRender } from "@base-ui/react/use-render"; import { type StyleProps } from "./style_props"; export type PopoverSide = "top" | "right" | "bottom" | "left"; export type PopoverAlign = "start" | "center" | "end"; /** A ref to the element a popover MEASURES. `unknown` because a `RefObject` is * invariant in its element type, so the ref carries no claim and * {@link anchorElement} makes the check instead. */ export type PopoverTriggerRef = React.RefObject; export interface PopoverProps { open?: boolean; onOpenChange?: (open: boolean) => void; defaultOpen?: boolean; children: React.ReactNode; side?: PopoverSide; align?: PopoverAlign; offset?: number; inheritTriggerWidth?: boolean; /** Anchor the panel to an element outside the popover — a grid cell being * edited, a row whose ⋯ has already unmounted. */ triggerRef?: PopoverTriggerRef; } export declare function Popover(props: PopoverProps): React.JSX.Element; export interface PopoverTriggerProps { /** The control that opens the panel, rendered AS the trigger, so the layout * gains no box and it must forward its `ref` and the props it is handed. An * element that is only the ANCHOR takes `Popover`'s `triggerRef` instead. */ children: React.ReactElement; /** Whether `children` bottoms out in a real `