import { z } from "zod/v4";
import type { JSX } from "solid-js";
import type { ComponentMeta } from "../../meta";
export const AlertDialogRootPropsSchema = z.object({
  open: z.boolean().optional().describe("Controlled open state"),
  defaultOpen: z.boolean().optional().describe("Initial open state when uncontrolled"),
});
export interface AlertDialogRootProps extends z.infer<typeof AlertDialogRootPropsSchema> { onOpenChange?: (open: boolean) => void; children: JSX.Element; }
export const AlertDialogMeta: ComponentMeta = {
  name: "AlertDialog",
  description: "Modal dialog for critical confirmations that requires explicit user action to dismiss",
  parts: ["Root", "Trigger", "Portal", "Overlay", "Content", "Title", "Description", "Cancel", "Action"] as const,
  requiredParts: ["Root", "Content", "Title", "Action"] as const,
} as const;
