import { z } from "zod/v4";
import type { JSX } from "solid-js";
import type { ComponentMeta } from "../../meta";
export const DrawerRootPropsSchema = z.object({
  open: z.boolean().optional(),
  defaultOpen: z.boolean().optional(),
  modal: z.boolean().optional(),
  side: z.enum(["left", "right", "top", "bottom"]).optional(),
});
export interface DrawerRootProps extends z.infer<typeof DrawerRootPropsSchema> { onOpenChange?: (open: boolean) => void; children: JSX.Element; }
export const DrawerMeta: ComponentMeta = {
  name: "Drawer",
  description: "Panel that slides in from the edge of the screen, used for navigation or secondary content",
  parts: ["Root", "Trigger", "Portal", "Overlay", "Content", "Title", "Description", "Close"] as const,
  requiredParts: ["Root", "Content", "Title"] as const,
} as const;
