Anchored popovers, viewport clamping, z-index management. Lives in packages/sdk/src/chrome/overlays/.
Anchored popovers, viewport clamping, z-index management. Lives in packages/sdk/src/chrome/overlays/.
OVERLAY_Z_ANCHORED / dialog / toast z-index constantsWraps useAnchoredPopover (Floating UI) + portal + z-index + fade animation + delayed unmount for the exit fade.
Two anchor modes:
anchor={someRef} or anchor={someElement}anchorRect={rect}Use it for: selects, color pickers, variable pickers, searchable menus, spacing/sizing dropdowns.
NOT for: FloatingPanel-style draggable windows (use FloatingPanel instead).
placement, mainAxisOffset, crossAxisOffset, flipOptions, shiftPadding, boundary, rootBoundarymaxHeightCeiling — caps max-height to available viewport spacematchAnchorWidth: { min, max } — clamp width to anchor's widthimmediate — skip fade-out delayportalTarget — defaults to .pagehub-sdk-root then document.bodyignoreOutsideClicks — refs that don't count as "outside" for dismissalcontrolled mode — caller owns visibility (skip built-in click-outside + ESC)AnchoredPopover + Headless UI Combobox.anchorRect for atom-driven mounting.From overlayZIndex.ts:
OVERLAY_Z_ANCHORED — popovers and dropdownsAnchoredPopover with anchorRect