github chakra-ui/zag @zag-js/date-input@1.41.0

latest releases: @zag-js/tree-view@1.41.0, @zag-js/tour@1.41.0, @zag-js/tooltip@1.41.0...
5 hours ago

Minor Changes

  • 43c5c9b Thanks
    @segunadebayo! - - Fix time-only formatters (no year segment) never firing
    onValueChangeera is now only required when year is present.
    • Fix setSegmentValue reading stale displayValues. updateSegmentValue returns the new IncompleteDate directly
      so the commit check uses the fresh value.
    • Fix dayPeriod (AM/PM) arrow up/down not updating the visible segment when hourCycle changes at runtime —
      displayValues now re-sync to the new hour cycle while preserving in-progress edits.
    • Fix typing "A" / "P" on the dayPeriod segment not updating the visible AM/PM. The typing path was writing 12 for
      PM while every other code path uses 1, so the display silently stayed on AM.
    • Add hideTimeZone prop. The timeZoneName segment now renders automatically when the value is a ZonedDateTime,
      and can be hidden via hideTimeZone: true.
    • Arrow navigation and auto-advance after typing now reach read-only focusable segments (e.g. timeZoneName). Typing
      the final editable segment (e.g. "P" on dayPeriod) advances focus to the trailing read-only segment instead of
      staying put.

Patch Changes

  • 6dbc33a Thanks
    @segunadebayo! - Fix date input min/max handling to preserve entered segments while
    editing. Values are now clamped segment-by-segment on blur, so 06/15/1999 with min 2000-01-01 becomes 06/15/2000
    instead of snapping to 01/01/2000.

    Add constrainSegments to @zag-js/date-utils for segment-wise min/max clamping.

  • #3109
    ab36b5f Thanks
    @copilot-swe-agent! - Fix range mode keyboard navigation so ArrowRight
    moves from the last segment of the start date to the first segment of the end date.

  • 8715c64 Thanks
    @segunadebayo! - Fix issue where the date input was not writable in locales whose
    date format separator contains more than one character (e.g. cs-CZ, sk-SK, hu-HU, ko-KR which use ". ")

  • Updated dependencies [13cd5d5,
    6dbc33a,
    8715c64,
    13cd5d5,
    84b9e2b]:

    • @zag-js/core@1.41.0
    • @zag-js/date-utils@1.41.0
    • @zag-js/dom-query@1.41.0
    • @zag-js/anatomy@1.41.0
    • @zag-js/types@1.41.0
    • @zag-js/utils@1.41.0
    • @zag-js/live-region@1.41.0

Don't miss a new zag release

NewReleases is sending notifications on new releases.