import { z } from "zod/v4";
import type { JSX } from "solid-js";
import type { ComponentMeta } from "../../meta";
export const DatePickerRootPropsSchema = z.object({
  value: z.string().optional(), defaultValue: z.string().optional(),
  open: z.boolean().optional(), defaultOpen: z.boolean().optional(),
  minDate: z.string().optional(), maxDate: z.string().optional(),
  disabled: z.boolean().optional(), required: z.boolean().optional(),
  name: z.string().optional(), placeholder: z.string().optional(), locale: z.string().optional(),
});
export interface DatePickerRootProps extends z.infer<typeof DatePickerRootPropsSchema> {
  onValueChange?: (date: string) => void;
  onOpenChange?: (open: boolean) => void;
  children: JSX.Element;
}
export const DatePickerMeta: ComponentMeta = {
  name: "DatePicker", description: "Date input with dropdown calendar for selecting dates, with locale formatting and constraints",
  parts: ["Root", "Input", "Trigger", "Content", "Calendar"] as const,
  requiredParts: ["Root", "Input", "Content"] as const,
} as const;
