Skip to content

@zag-js/dialog@2.0.0-next.1

Pre-release
Pre-release

Choose a tag to compare

@github-actions github-actions released this 01 Aug 12:02
b7f2221

Minor Changes

  • #3167
    d2b9972 Thanks
    @github-actions! - Add get<Part>State() getters (e.g. getTriggerState,
    getContentState, getRootState), extending the existing getItemState convention to every part with derived state.

    const triggerState = dialog.getTriggerState({ value: "confirm" })
    // { value: "confirm", current: true, open: true }

Patch Changes

  • #3167
    037af89 Thanks
    @github-actions! - Move layer stack styles and attributes into machine
    connect props so framework renders cannot overwrite them.

    Breaking: trackDismissableElement now requires onLayerChange. Apply the emitted snapshot's layer index,
    nesting metadata, and pointer blocking state to the registered element through your framework's render output.

  • Updated dependencies [037af89]:

    • @zag-js/dismissable@2.0.0-next.1
    • @zag-js/anatomy@2.0.0-next.1
    • @zag-js/core@2.0.0-next.1
    • @zag-js/types@2.0.0-next.1
    • @zag-js/aria-hidden@2.0.0-next.1
    • @zag-js/utils@2.0.0-next.1
    • @zag-js/dom-query@2.0.0-next.1
    • @zag-js/focus-trap@2.0.0-next.1
    • @zag-js/remove-scroll@2.0.0-next.1