Skip to content

feat(time-field): add emptyStateLabel and getValueOnBlur props - #595

Merged
chrisrolfe198 merged 1 commit into
mainfrom
feat/add-empty-state-to-time-field
Aug 27, 2026
Merged

feat(time-field): add emptyStateLabel and getValueOnBlur props#595
chrisrolfe198 merged 1 commit into
mainfrom
feat/add-empty-state-to-time-field

Conversation

@chrisrolfe198

Copy link
Copy Markdown
Contributor

What

Lets TimeField show sighted-only placeholder text (e.g. "now") while empty and unfocused, seed the field with the current time on focus, and let consumers decide via getValueOnBlur whether an edited value should revert back to empty on blur. Value state now goes through useControlledState so this works for both controlled and uncontrolled usage (e.g. React Hook Form).

Fixed 2 dependencies from react-aria-components to specific versions.

Media

See the storybook, 2 new examples have been added

Why

How

@pkg-pr-new

pkg-pr-new Bot commented Aug 26, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@freenow/wave@595

commit: 0152f17

Lets TimeField show sighted-only placeholder text (e.g. "now") while empty
and unfocused, seed the field with the current time on focus, and let
consumers decide via getValueOnBlur whether an edited value should revert
back to empty on blur. Value state now goes through useControlledState so
this works for both controlled and uncontrolled usage (e.g. React Hook Form).

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@chrisrolfe198
chrisrolfe198 force-pushed the feat/add-empty-state-to-time-field branch from 832c239 to 0152f17 Compare August 26, 2026 14:26
@chrisrolfe198
chrisrolfe198 merged commit 58a9c42 into main Aug 27, 2026
8 checks passed
@chrisrolfe198
chrisrolfe198 deleted the feat/add-empty-state-to-time-field branch August 27, 2026 07:44
github-actions Bot pushed a commit that referenced this pull request Aug 27, 2026
## 2.65.0 (2026-08-27)

* feat(time-field): add emptyStateLabel and getValueOnBlur props (#595) ([58a9c42](58a9c42)), closes [#595](#595)
@github-actions

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 2.65.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Development

Successfully merging this pull request may close these issues.

2 participants