3 Commits
Author SHA1 Message Date
CatoandClaude Sonnet 5.5 f5e0a24208 fix: the date box matches a native input exactly; structure survives an app's display:block (0.3.2) (#7)
- line-height: normal (the font's own, like a native input) instead of 1.3,
  and an icon that fits a normal line: the box is now exactly a native
  input's height (38 vs 38; it was 40 vs 38, a visible step in form rows).
- structure rules on span.wk-input so an app's own unlayered class with
  display:block on the same element cannot collapse the stacked layout.
- codemod: an object spread inside onChange is no longer flagged as a JSX
  prop spread.

Both browser checks were first run failing against the old CSS.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 06:47:10 -07:00
CatoandClaude Sonnet 5.5 0072fe68aa fix: icon scales with the field's text; codemod skips comments (0.3.1) (#6)
A fixed 20px calendar icon made a dense 12px input taller than its
neighbours (34px vs 30px). The icon is now 1.25em. The browser check has a
compact input and fails on the old icon (it first passed on it — the limit
was exactly the old height; tightened and re-proven).

The codemod no longer edits comments or files already on whenkit (it
rewrote its own shim, whose comment mentioned the tag).

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 05:58:32 -07:00
CatoandClaude Sonnet 5.5 9fd8b3b11d chore: codemod to migrate date inputs to DateInput (#5)
A JSX tag scanner (braces, strings, template literals — not a regex over
attributes) that changes <input type=date|datetime-local> to DateInput and
adds one import. Lists what it will not guess. Tested on tricky fixtures,
including the blank-line-after-imports bug its own test caught; a second run
changes nothing.

Signed-off-by: Cato <41178744+catomean@users.noreply.github.com>
Co-authored-by: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-08 05:42:11 -07:00