- Require React 17 (BREAKING CHANGE)
- Tree shakeable ES modules (BREAKING CHANGE)
- Convert all source to TypeScript
- Convert all components to function components
- Use the new JSX runtime for rendering
- Make Modal available as a named export in addition to a default export
- Allow React 17 as a peer dependency
- Fixed TypeScript definitions to be more accepting about children prop, and to correctly reflect the type of ConfirmModal
- Avoid more setState on umounted component warnings
- Avoid setState on umounted component warnings
- Use componentDidMount rather than componentWillMount, which is deprecated (thanks @bbonamin!)
- Fixed TypeScript definitions to use React's MouseEvent rather than the browser native one (thanks again @nikeee!)
- SPOOOOOKY Halloween release!
- Adds an optional
fade
prop to allow disabling the fade in/out animation (thanks @paulodeon!) - oooOOOOOOooooo
- Fixes to make the 1.6.1 changes take effect in the built package (thanks again @nikeee!)
- Add TypeScript definitions (thanks @nikeee!)
- Ignore the src directory in the built package (thanks again @nikeee!)
- Add
okText
andcancelText
props toConfirmModal
to allow customization and i18n (thanks @nikeee!)
- Use a
setTimeout
to make sure the animations on fade-in actually work on Chrome/Firefox (thanks @nikeee!)
- Allow for stacked modals by setting
zIndex
based on number of modals currently showing (thanks @paulodeon!) - Don't break if there is no
document
(such as in test environments)
- Add
disableButtons
prop toConfirmModal
- Fix another build issue that was causing yarn to install multiple copies of React in node_modules
- Fix a build issue that was preventing the 1.2.0 features from actually working in the npm package
- Add the ability to pass additional class names and props into the modal, its dialog, and its wrapper (thanks @Fi1osof!)
- Add and remove the modal-open class from body when modals appear and disappear
- Add a click handler on the modal div to make onClickBackdrop work correctly
- Add ConfirmModal
- Initial release