Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .changeset/cascade-select-select-highlighted-on-enter.md

This file was deleted.

8 changes: 0 additions & 8 deletions .changeset/date-input-locale-aware-numerals.md

This file was deleted.

12 changes: 0 additions & 12 deletions .changeset/date-input-naive-timezone-shift.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/date-picker-normalize-range-on-blur.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/date-picker-preserve-view-on-close.md

This file was deleted.

9 changes: 0 additions & 9 deletions .changeset/date-picker-visible-range-memo-key.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/fix-menu-context-position.md

This file was deleted.

5 changes: 0 additions & 5 deletions .changeset/fix-number-input-set-value.md

This file was deleted.

15 changes: 0 additions & 15 deletions .changeset/slider-number-input-step-modifiers.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/tags-input-hidden-input-stale-value.md

This file was deleted.

7 changes: 0 additions & 7 deletions .changeset/toast-measure-untransformed-height.md

This file was deleted.

51 changes: 49 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,62 @@ All notable changes to this project will be documented in this file.

> For v0.x changelog, see the [v0 branch](https://github.com/chakra-ui/zag/blob/v0/CHANGELOG.md)

## [1.42.0](./#1.42.0) - 2026-06-29

### Added

- **Number Input**: Add `largeStep` (defaults to `10 * step`, applied on `Shift`) and `smallStep` (defaults to
`step / 10`, applied on `Alt`) props for configurable keyboard stepping. The defaults preserve the previous stepping
magnitudes.

- **Slider**: Add `largeStep` prop (defaults to `10 * step`), applied on `Shift` or `PageUp`/`PageDown`. The default
preserves the previous stepping magnitude.

### Fixed

- **Cascade Select**: Fix issue where pressing `Enter` on a highlighted leaf node did not select it in non-React
frameworks.

- **Date Input**
- Allow typing dates using the locale's native numerals (e.g. Arabic-Indic `٠-٩`, Devanagari `०-९`) in addition to
ASCII digits. Latin-locale behavior is unchanged.
- Fix timezone-naive values (`CalendarDate`/`CalendarDateTime`) being shifted by the viewer's local UTC offset when a
custom `formatter` without an explicit `timeZone` is provided. The instant fed to the formatter is now built using
the formatter's own resolved time zone, so a wall-clock value round-trips unshifted.

- **Date Picker**
- Allow typing dates using the locale's native numerals (e.g. Arabic-Indic `٠-٩`, Devanagari `०-९`) in addition to
ASCII digits.
- Add date reordering on blur for range selection to match other selection paths.
- Fix day view briefly flashing when closing the date picker from the month or year view.
- Fix `visibleRangeText` returning a stale value when multiple date pickers with different `selectionMode` (or
`timeZone`) share the same visible range. This previously surfaced as SSR hydration mismatches.

- **Menu**: Fix issue where the context menu briefly flashes at the top-left corner before positioning, and where a
long-press (touch) context menu opens stuck at `(0,0)` without ever repositioning to the touch point.

- **Number Input**
- Fix issue where calling `api.setValue` with a number throws when `formatOptions` is defined.
- Fix `Cmd`/`Ctrl` + arrow keys producing values off the `step` grid (e.g. non-integer values when `step: 1`).

- **Slider**: Fix `Cmd`/`Ctrl` + arrow keys producing values off the `step` grid (e.g. non-integer values when
`step: 1`).

- **Tags Input**: Fix native form submit so `FormData` reflects the current tags. The hidden input previously kept its
initial value after tags were added, removed, or cleared.

- **Toast**: Fix toast height measurement including the `scale` transform in overlap mode, causing a height flicker when
expanding the stack. Height is now measured from the untransformed element.

## [1.41.2](./#1.41.2) - 2026-06-05

### Fixed

- **Date Input**: Fix date segment placeholders for locales with explicit script subtags.

- **Drawer**
- Fix controlled drawer flickering when swiped or backdrop-closed while the `open` setter is asynchronous (e.g. history
API or a delayed state update).
- Fix controlled drawer flickering when swiped or backdrop-closed while the `open` setter is asynchronous (e.g.
history API or a delayed state update).
- Keep nested-drawer layout metrics in machine state so swipe and backdrop-close transitions stay visually stable.

- **Image Cropper**: Fix `getCroppedImage` and `getCropData` returning the wrong region when the image is displayed at a
Expand Down
2 changes: 2 additions & 0 deletions packages/anatomy-icons/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @zag-js/anatomy-icons

## 1.42.0

## 1.41.2

## 1.41.1
Expand Down
2 changes: 1 addition & 1 deletion packages/anatomy-icons/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/anatomy-icons",
"version": "1.41.2",
"version": "1.42.0",
"keywords": [
"ui-machines",
"state-machines",
Expand Down
2 changes: 2 additions & 0 deletions packages/anatomy/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @zag-js/anatomy

## 1.42.0

## 1.41.2

## 1.41.1
Expand Down
2 changes: 1 addition & 1 deletion packages/anatomy/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/anatomy",
"version": "1.41.2",
"version": "1.42.0",
"keywords": [
"ui-machines",
"state-machines",
Expand Down
8 changes: 8 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @zag-js/core

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/utils@1.42.0
- @zag-js/dom-query@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/core",
"version": "1.41.2",
"version": "1.42.0",
"description": "A minimal implementation of xstate fsm for UI machines",
"keywords": [
"ui-machines",
Expand Down
2 changes: 2 additions & 0 deletions packages/docs/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @zag-js/docs

## 1.42.0

## 1.41.2

## 1.41.1
Expand Down
2 changes: 1 addition & 1 deletion packages/docs/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/docs",
"version": "1.41.2",
"version": "1.42.0",
"description": "Docs for zag.js machines",
"keywords": [
"zag",
Expand Down
10 changes: 10 additions & 0 deletions packages/frameworks/preact/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @zag-js/preact

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/core@1.42.0
- @zag-js/store@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/preact/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/preact",
"version": "1.41.2",
"version": "1.42.0",
"description": "The preact wrapper for zag",
"keywords": [
"ui-machines",
Expand Down
10 changes: 10 additions & 0 deletions packages/frameworks/react/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @zag-js/react

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/core@1.42.0
- @zag-js/store@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/react/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/react",
"version": "1.41.2",
"version": "1.42.0",
"description": "The react wrapper for zag",
"keywords": [
"ui-machines",
Expand Down
10 changes: 10 additions & 0 deletions packages/frameworks/solid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @zag-js/solid

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/core@1.42.0
- @zag-js/store@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/solid/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/solid",
"version": "1.41.2",
"version": "1.42.0",
"description": "The solid.js wrapper for zag",
"keywords": [
"ui-machines",
Expand Down
9 changes: 9 additions & 0 deletions packages/frameworks/svelte/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
# @zag-js/svelte

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/core@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/svelte/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/svelte",
"version": "1.41.2",
"version": "1.42.0",
"description": "The svelte wrapper for zag",
"keywords": [
"ui-machines",
Expand Down
10 changes: 10 additions & 0 deletions packages/frameworks/vanilla/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @zag-js/vanilla

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/core@1.42.0
- @zag-js/store@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/vanilla/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/vanilla",
"version": "1.41.2",
"version": "1.42.0",
"description": "The vanilla wrapper for zag",
"keywords": [
"ui-machines",
Expand Down
10 changes: 10 additions & 0 deletions packages/frameworks/vue/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @zag-js/vue

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/core@1.42.0
- @zag-js/store@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/frameworks/vue/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/vue",
"version": "1.41.2",
"version": "1.42.0",
"description": "The vue wrapper for zag",
"keywords": [
"ui-machines",
Expand Down
11 changes: 11 additions & 0 deletions packages/machines/accordion/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# @zag-js/accordion

## 1.42.0

### Patch Changes

- Updated dependencies []:
- @zag-js/anatomy@1.42.0
- @zag-js/core@1.42.0
- @zag-js/types@1.42.0
- @zag-js/utils@1.42.0
- @zag-js/dom-query@1.42.0

## 1.41.2

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/machines/accordion/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@zag-js/accordion",
"version": "1.41.2",
"version": "1.42.0",
"description": "Core logic for the accordion widget implemented as a state machine",
"keywords": [
"js",
Expand Down
Loading
Loading