Skip to content

[minor] New component TimeInput#2465

Open
Jialecl wants to merge 30 commits intomasterfrom
jialecl/timeComponent
Open

[minor] New component TimeInput#2465
Jialecl wants to merge 30 commits intomasterfrom
jialecl/timeComponent

Conversation

@Jialecl
Copy link
Copy Markdown
Collaborator

@Jialecl Jialecl commented Apr 23, 2026

Checklist
(Check off all the items before submitting)

  • Build process is done without errors. All tests pass in the /lib directory.
  • Self-reviewed the code before submitting.
  • Meets accessibility standards.
  • Added/updated documentation to /website as needed.
  • Added/updated tests as needed.

@Jialecl Jialecl marked this pull request as ready for review April 28, 2026 08:46
Jialecl and others added 6 commits April 28, 2026 11:20
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx
Comment thread packages/lib/src/time-input/TimeInput.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx
Comment thread packages/lib/src/time-input/TimePickerColumn.tsx
Comment thread apps/website/screens/components/time-input/code/examples/format.tsx
Comment thread apps/website/screens/components/time-input/code/TimeInputCodePage.tsx Outdated
Co-authored-by: Copilot <copilot@github.com>
title: "General",
content: (
<DxcBulletedList>
<DxcBulletedList.Item>
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The last phrase doesn't appear on the design

@@ -1,6 +1,6 @@
/// <reference types="next" />
/// <reference types="next/image-types/global" />
import "./.next/types/routes.d.ts";
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think we should merge this change

Comment thread packages/lib/src/time-input/TimeInput.tsx
@raquelarrojo raquelarrojo self-requested a review April 30, 2026 08:13
Comment thread packages/lib/src/time-input/TimePicker.tsx Outdated
Comment thread packages/lib/src/time-input/TimePicker.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx
Comment thread packages/lib/src/time-input/TimeInput.tsx
Comment thread packages/lib/src/time-input/TimeInput.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx Outdated
Comment thread packages/lib/src/time-input/TimeInput.tsx
Comment thread packages/lib/src/time-input/TimeInput.tsx Outdated
Jialecl added 6 commits April 30, 2026 10:39
- Refactor TimeInput to remove isControlled ref and instead directly
check if value is undefined.
- Add timeFormat to useEffect dependencies to ensure day period updates
correctly when time format changes.
- Changed undefined values in events to empty strings.
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx Outdated
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx Outdated
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx Outdated
Comment thread packages/lib/src/time-input/TimeSpinButton.tsx
Co-authored-by: Copilot <copilot@github.com>
Co-authored-by: Copilot <copilot@github.com>
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.

3 participants