Patch Changes
-
c806d33Thanks
@segunadebayo! - Adddata-invalidtogetLabelProps()andgetControlProps()so
the label and control can be styled wheninvalidis set. -
ac82db1Thanks
@segunadebayo! - Fix year cells being disabled when they fall outside the decade
currently in view, even with nominormaxset. Onlyminandmaxdecide whether a year can be selected now.
Cells outside the visible decade still getdata-outside-rangefor styling, and remain excluded from the hovered
range in a year range picker.Also fix
Endin the year view focusing two years past the last cell in the grid.Breaking:
getDecadeRangefrom@zag-js/date-utilsno longer accepts the{ strict }option and always returns
the ten years of the decade. It previously returned twelve by default, which is what putEndout of bounds. Drop the
option if you were passing{ strict: true }; there is no replacement for the twelve-year form. -
06be915Thanks
@segunadebayo! - Fixapi.setOpenignoring a second call made in the same tick.
setOpen(true)immediately followed bysetOpen(false)left the component open instead of closed, and only worked if
you awaited a microtask between the two calls.The last call in a tick now wins, and calling
setOpenrepeatedly with the same value still invokesonOpenChange
once. Drawer'sapi.setSnapPointhad the same problem and behaves the same way now. -
Updated dependencies [
2668edc,
ac82db1,
de9aeaa,
06be915]:- @zag-js/dom-query@1.44.0
- @zag-js/date-utils@1.44.0
- @zag-js/dismissable@1.44.0
- @zag-js/core@1.44.0
- @zag-js/popper@1.44.0
- @zag-js/anatomy@1.44.0
- @zag-js/types@1.44.0
- @zag-js/utils@1.44.0
- @zag-js/live-region@1.44.0