github chakra-ui/zag @zag-js/date-utils@1.34.0

latest releases: @zag-js/rating-group@1.34.0, @zag-js/toggle-group@1.34.0, @zag-js/pin-input@1.34.0...
9 hours ago

Minor Changes

  • 75788b9 Thanks
    @segunadebayo! - Add showWeekNumbers support to the date picker. When enabled,
    the day view displays an ISO 8601 week number column. Added getWeekOfYear to date-utils for week number calculation.

Patch Changes

  • 26ffbba Thanks
    @segunadebayo! - DatePicker

    • Fix api.selectToday() sending incorrect value format to state machine
    • Add focus option to api.clearValue({ focus?: boolean })
    • Add api.setTime(time, index?) for date-time picker support
    • Preserve time/timezone when selecting new dates (CalendarDateTime and ZonedDateTime)
    • Add maxSelectedDates prop to limit the number of selected dates in multiple selection mode
    • Add api.isMaxSelected to check if the maximum number of dates has been selected
    • Add openOnClick prop to open the calendar when clicking the input field (defaults to false)

    Date utils

    • Fix constrainValue stripping time from CalendarDateTime/ZonedDateTime values
  • 8a02d5c Thanks
    @segunadebayo! - Date Picker: Export DateValue type locally instead of
    re-exporting from @internationalized/date, since that package doesn't export this type in v3.10.0+

Don't miss a new zag release

NewReleases is sending notifications on new releases.