import * as React from "react" import { AlertDialog as AlertDialogPrimitive } from "radix-ui" import { cn } from "../../lib/utils" import { getAkashicPortalContainer } from "../../lib/getAkashicPortalContainer" // ABOVE A FLOATING WINDOW - the exact path that shipped broken. Host practitioner, call live, note in // the meeting window `EncounterDocumentation` `PatientNotes` Delete THIS alert mounted behind the // window (same portal container siblings z-index decides) while Radix's modal behaviour blocked // pointer events everywhere outside its own invisible content. Frozen window, dead Leave button, live // billed call. See `lib/stackingLayers.ts`. import { Z_MODAL_CLASS } from "../../lib/stackingLayers" import { Button } from "../../components/ui/button" function AlertDialog({ ...props }: React.ComponentProps) { return } function AlertDialogTrigger({ ...props }: React.ComponentProps) { return ( ) } function AlertDialogPortal({ container, ...props }: React.ComponentProps) { // Portal INSIDE the Akashic root, matching dialog.tsx / select.tsx / sheet.tsx. Without this it // defaults to document.body, which puts the alert outside our CSS containment: our scoped rules and // the root-declared design tokens don't reach it, and - the direction that matters - the host // theme's and other plugins' CSS do. This was the last ui/* primitive still escaping the root. const portalContainer = container ?? getAkashicPortalContainer() ?? undefined return ( ) } function AlertDialogOverlay({ className, ...props }: React.ComponentProps) { return ( ) } function AlertDialogContent({ className, size = "default", ...props }: React.ComponentProps & { size?: "default" | "sm" }) { return ( ) } function AlertDialogHeader({ className, ...props }: React.ComponentProps<"div">) { return (
) } function AlertDialogFooter({ className, ...props }: React.ComponentProps<"div">) { return (
) } function AlertDialogTitle({ className, ...props }: React.ComponentProps) { return ( ) } function AlertDialogDescription({ className, ...props }: React.ComponentProps) { return ( ) } function AlertDialogMedia({ className, ...props }: React.ComponentProps<"div">) { return (
) } function AlertDialogAction({ className, variant = "default", size = "default", ...props }: React.ComponentProps & Pick, "variant" | "size">) { return ( ) } function AlertDialogCancel({ className, variant = "outline", size = "default", ...props }: React.ComponentProps & Pick, "variant" | "size">) { return ( ) } export { AlertDialog, AlertDialogAction, AlertDialogCancel, AlertDialogContent, AlertDialogDescription, AlertDialogFooter, AlertDialogHeader, AlertDialogMedia, AlertDialogOverlay, AlertDialogPortal, AlertDialogTitle, AlertDialogTrigger, }