mirror of
https://github.com/bitbaum/petvity.git
synced 2026-12-04 06:38:45 +01:00
Twelve raw <input type="date"> fields (pet birth date, health log, vaccinations, medications, records, availability, provider search) showed the browser's bare "tt.mm.jjjj" box. They now render whenkit's DateInput, a drop-in with the same props and onChange(event): the tag changes and nothing else. The visible box carries the SAME .form-input class, and in petvity's real CSS build it takes that look exactly (border, 10px radius, padding, font); the real input stays on top, so the picker, keyboard and validation are unchanged. components/ui/date-input.tsx is the one place petvity imports it from (and where the stylesheet is imported). Migrated with whenkit's scripts/migrate-date-inputs.mjs (tag + one import per file). Lockfile written with petvity's pinned pnpm 11.6.0 so only whenkit's 14 lines change. Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>