mirror of
https://github.com/MBombeck/HealthLog.git
synced 2026-11-13 22:32:04 +00:00
chore(deps): drop four dependencies nothing imports
react-hook-form, @hookform/resolvers, next-themes and @vitejs/plugin-react have no import anywhere in src/, scripts/, tests/, e2e/ or the build and test configs; knip only stayed quiet because each sat on its ignore list. Forms keep a controlled draft and validate with the shared Zod schemas, and the theme bootstrap is hand-written. The ignore entries, the comments that still named the form library, and the guideline text go with them.
This commit is contained in:
1 parent
9b93247ae0
commit
b50b5fcd21
8 files changed
+9
-168
No files matched your search
@@ -38,7 +38,7 @@ const DateFieldCalendar = dynamic(
|
||||
*
|
||||
* The committed VALUE is always ISO `yyyy-MM-dd` — identical to the native
|
||||
* `<input type="date">` contract `<DateInput>` ships — so this is a drop-in
|
||||
* for `<DateInput>` and existing react-hook-form wiring is unchanged.
|
||||
* for `<DateInput>` and existing form wiring is unchanged.
|
||||
*
|
||||
* How it works:
|
||||
* - A text overlay paints the formatted display string (or the placeholder)
|
||||
@@ -52,7 +52,7 @@ const DateFieldCalendar = dynamic(
|
||||
* quirks) is gone.
|
||||
* - A hidden mirror input carries `name` + the ISO value so any caller that
|
||||
* relies on native form submission still sees a normal field; the forwarded
|
||||
* ref points at it for react-hook-form `register()` parity.
|
||||
* ref points at it, so a caller reads it like any native input.
|
||||
*
|
||||
* Height / a11y / target-size parity with `<DateInput>`: the same
|
||||
* `min-h-11 h-11 sm:min-h-10 sm:h-10` floor (WCAG 2.5.5 — 44 px on mobile,
|
||||
|
||||
Reference in new issue
Block a user