Minor Changes
1e82a49Thanks
@segunadebayo! - Add hover range preview support for date picker range selection- Added
inHoveredRange,firstInHoveredRange, andlastInHoveredRangeproperties toDayTableCellState - Added corresponding data attributes
data-in-hover-range,data-hover-range-start, anddata-hover-range-end - Hover range states are only active when not overlapping with actual selected range
- Enables distinct styling for hover preview vs actual selection in range mode
- Added
Patch Changes
-
78dd066Thanks
@segunadebayo! - Fix date comparison issues when time components are involvedThis change resolves critical issues with date comparison operations when different date types (
CalendarDate,
CalendarDateTime,ZonedDateTime) are mixed, particularly in scenarios involving time components.- Convert
now(timeZone)result toCalendarDateto ensure consistent date types without time components across all
date range preset operations - Update
constrainValuefunction to normalize all input dates toCalendarDatebefore comparison, preventing
time-component comparison issues - Remove redundant date type conversion in
getMonthFormatterfor cleaner, more efficient code
- Convert
-
Updated dependencies [
78dd066]:- @zag-js/date-utils@1.20.0
- @zag-js/anatomy@1.20.0
- @zag-js/core@1.20.0
- @zag-js/types@1.20.0
- @zag-js/utils@1.20.0
- @zag-js/dismissable@1.20.0
- @zag-js/dom-query@1.20.0
- @zag-js/live-region@1.20.0
- @zag-js/popper@1.20.0