Minor Changes
-
26ffbbaThanks
@segunadebayo! - DatePicker- Fix
api.selectToday()sending incorrect value format to state machine - Add
focusoption toapi.clearValue({ focus?: boolean }) - Add
api.setTime(time, index?)for date-time picker support - Preserve time/timezone when selecting new dates (
CalendarDateTimeandZonedDateTime) - Add
maxSelectedDatesprop to limit the number of selected dates inmultipleselection mode - Add
api.isMaxSelectedto check if the maximum number of dates has been selected - Add
openOnClickprop to open the calendar when clicking the input field (defaults tofalse)
Date utils
- Fix
constrainValuestripping time fromCalendarDateTime/ZonedDateTimevalues
- Fix
-
75788b9Thanks
@segunadebayo! - AddshowWeekNumberssupport to the date picker. When enabled,
the day view displays an ISO 8601 week number column. AddedgetWeekOfYearto date-utils for week number calculation.
Patch Changes
-
10b4211Thanks
@segunadebayo! - Improve focus management in trigger-only mode. When no input
elements exist, focus now correctly returns to the trigger element after selecting a date or clearing the value. -
8a02d5cThanks
@segunadebayo! - Date Picker: ExportDateValuetype locally instead of
re-exporting from@internationalized/date, since that package doesn't export this type in v3.10.0+ -
Updated dependencies [
26ffbba,
8a02d5c,
75788b9,
a20094f]:- @zag-js/date-utils@1.34.0
- @zag-js/popper@1.34.0
- @zag-js/anatomy@1.34.0
- @zag-js/core@1.34.0
- @zag-js/types@1.34.0
- @zag-js/utils@1.34.0
- @zag-js/dismissable@1.34.0
- @zag-js/dom-query@1.34.0
- @zag-js/live-region@1.34.0