Skip to content

Add date picker prop getter adapter for press events - #23

Merged
thinkclay merged 1 commit into
mainfrom
codex/create-type-safe-datepicker-utility
Sep 23, 2025
Merged

thinkclay merged 1 commit into
mainfrom
codex/create-type-safe-datepicker-utility

Conversation

@thinkclay

Copy link
Copy Markdown
Contributor

Summary

  • add a helper that adapts @rehookify/datepicker prop getters into press-safe button props without mutation
  • wire the adapter through the month, year and day pickers so callbacks receive typed events and native platforms use a mouse-event shim
  • update the date picker example to reuse the new helper and add an explicit prop type for the forwardRef wrapper

Testing

  • yarn lint
  • yarn typecheck

https://chatgpt.com/codex/tasks/task_b_68d1f25a5d9c8331806e0070d26844ec

@thinkclay
thinkclay merged commit 6f3d64b into main Sep 23, 2025
@thinkclay
thinkclay deleted the codex/create-type-safe-datepicker-utility branch September 23, 2025 01:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant