Skip to content

feat(react-timepicker-preview): add time utilities - #36812

Draft
Victor Genaev (mainframev) wants to merge 1 commit into
timepicker-preview/scaffoldfrom
timepicker-preview/time-utils
Draft

Victor Genaev (mainframev) wants to merge 1 commit into
timepicker-preview/scaffoldfrom
timepicker-preview/time-utils

Conversation

@mainframev

@mainframev Victor Genaev (mainframev) commented Sep 30, 2026 •

Copy link
Copy Markdown
Contributor

Stack: #36811 scaffold → #36812 time utilities → #36813 TimePicker → #36814 headless TimePicker

New Behavior

Ports the time math from react-timepicker-compat into src/utils together with its tests: option generation, start/end anchors, formatting, and parsing/validation of time strings.

Types that were internal in compat (Hour, TimeFormatOptions, TimePickerOption, TimeStringValidationResult, TimePickerErrorType) move to utils/types.ts. They become public together with the component in #36813

Ports the time math from react-timepicker-compat (option generation, anchors, formatting and parsing of time strings)
together with its tests. The types that were internal in compat (`Hour`, `TimeFormatOptions`, `TimePickerOption`,
`TimeStringValidationResult`) move to `utils/types.ts` so they can be exported with the component.
@github-actions

Copy link
Copy Markdown

Pull request demo site: URL

This branch has not been deployed

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

1 participant