@@ -62,41 +62,43 @@ export interface StrictModalProps extends StrictPortalProps {
6262 * Action onClick handler when using shorthand `actions`.
6363 *
6464 * @param {SyntheticEvent } event - React's original SyntheticEvent.
65- * @param {object } data - All props.
65+ * @param {object } props - All props.
6666 */
67- onActionClick ?: ( event : React . MouseEvent < HTMLElement > , data : ModalProps ) => void
67+ onActionClick ?: ( event : React . MouseEvent < HTMLElement > , props : ModalProps ) => void
6868
6969 /**
7070 * Called when a close event happens.
7171 *
7272 * @param {SyntheticEvent } event - React's original SyntheticEvent.
73- * @param {object } data - All props.
73+ * @param {object } props - All props.
74+ * @param {boolean } open - Whether the modal is displayed.
7475 */
75- onClose ?: ( event : React . MouseEvent < HTMLElement > , data : ModalProps ) => void
76+ onClose ?: ( event : React . MouseEvent < HTMLElement > , props : ModalProps , open : boolean ) => void
7677
7778 /**
7879 * Called when the portal is mounted on the DOM.
7980 *
8081 * @param {null }
81- * @param {object } data - All props.
82+ * @param {object } props - All props.
8283 */
83- onMount ?: ( nothing : null , data : ModalProps ) => void
84+ onMount ?: ( nothing : null , props : ModalProps ) => void
8485
8586 /**
8687 * Called when an open event happens.
8788 *
8889 * @param {SyntheticEvent } event - React's original SyntheticEvent.
89- * @param {object } data - All props.
90+ * @param {object } props - All props.
91+ * @param {boolean } open - Whether the modal is displayed.
9092 */
91- onOpen ?: ( event : React . MouseEvent < HTMLElement > , data : ModalProps ) => void
93+ onOpen ?: ( event : React . MouseEvent < HTMLElement > , props : ModalProps , open : boolean ) => void
9294
9395 /**
9496 * Called when the portal is unmounted from the DOM.
9597 *
9698 * @param {null }
97- * @param {object } data - All props.
99+ * @param {object } props - All props.
98100 */
99- onUnmount ?: ( nothing : null , data : ModalProps ) => void
101+ onUnmount ?: ( nothing : null , props : ModalProps ) => void
100102
101103 /** Controls whether or not the Modal is displayed. */
102104 open ?: boolean
0 commit comments