Skip to content

v3.1.0

Choose a tag to compare

@GA-MO GA-MO released this 23 Oct 14:34
· 62 commits to master since this release

Minor Changes

  • #95 eb5a808 Thanks @GA-MO! - Add <DialogHost> so dialogs render inside your providers (#23 #28 #35 #94) and close when dismissKey changes (#93), <Dialog> and <ConfirmDialog> that render in place (#63 #66), configureDialogs, classNames for every slot, unstyled, data attributes and CSS variables (#44 #86).

  • #89 Thanks @IceFreez3r! - onkeyPress now receives (event, close), and every new dialog takes onKeyDown(event, close) (#84), based on #89.

  • #47 Thanks @vitalybe! - Open a dialog from inside another with strategy: 'stack', the default for the new API (#46), based on the idea in #47.

  • #95 eb5a808 Thanks @GA-MO! - Add confirm(), alert(), prompt() and openDialog(), which return a Promise, plus closeDialog() and closeAll(). Buttons whose onClick returns a Promise show a busy state until it settles. Dialogs stack by default, or queue with strategy: 'queue'. confirmAlert keeps its v3 behavior.

  • #72 Thanks @dery168! - Queue dialogs one at a time with strategy: 'queue', based on the idea in #72.

  • #64 Thanks @YaSargis! - Set the dialog width with the --rca-width CSS variable or classNames.panel (#65), based on #64 and #65.

Patch Changes

  • #95 eb5a808 Thanks @GA-MO! - Fix the blur that showed only on the first open (#77), the createRoot error when opening a dialog while one is open (#82), dialogs closing when a press starts inside and ends outside (#92), focus that stayed behind the dialog (#29), dialogs hidden under z-index 1050 with modal: true (#31), and the missing prop-types dependency that broke Vite (#85). react-dom's peer range is now >=18 (#88).