import { z } from "zod/v4";
import type { JSX } from "solid-js";
import type { ComponentMeta } from "../../meta";
export const ToastRegionPropsSchema = z.object({
  placement: z.enum(["top-start", "top-center", "top-end", "bottom-start", "bottom-center", "bottom-end"]).optional(),
  duration: z.number().optional(),
  limit: z.number().optional(),
  swipeDirection: z.enum(["left", "right", "up", "down"]).optional(),
});
export interface ToastRegionProps extends z.infer<typeof ToastRegionPropsSchema>, JSX.HTMLAttributes<HTMLDivElement> { label?: string; children?: JSX.Element; }
export const ToastMeta: ComponentMeta = {
  name: "Toast",
  description: "Temporary notification that auto-dismisses, with imperative toast.add() API for programmatic creation",
  parts: ["Region", "List", "Root", "Title", "Description", "Close", "Action"] as const,
  requiredParts: ["Region", "List"] as const,
} as const;
