Repository navigation
v3.1.0
Minor Changes
-
#95
eb5a808Thanks @GA-MO! - Add<DialogHost>so dialogs render inside your providers (#23 #28 #35 #94) and close whendismissKeychanges (#93),<Dialog>and<ConfirmDialog>that render in place (#63 #66),configureDialogs,classNamesfor every slot,unstyled, data attributes and CSS variables (#44 #86). -
#89 Thanks @IceFreez3r! -
onkeyPressnow receives(event, close), and every new dialog takesonKeyDown(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
eb5a808Thanks @GA-MO! - Addconfirm(),alert(),prompt()andopenDialog(), which return a Promise, pluscloseDialog()andcloseAll(). Buttons whoseonClickreturns a Promise show a busy state until it settles. Dialogs stack by default, or queue withstrategy: 'queue'.confirmAlertkeeps 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-widthCSS variable orclassNames.panel(#65), based on #64 and #65.
Patch Changes
- #95
eb5a808Thanks @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 withmodal: true(#31), and the missing prop-types dependency that broke Vite (#85). react-dom's peer range is now >=18 (#88).