@mantine/modals
Advanced tools
Comparing version 3.4.3 to 3.5.0-alpha.0
@@ -83,3 +83,9 @@ 'use strict'; | ||
}); | ||
const closeAll = () => handlers.setState([]); | ||
const closeAll = () => { | ||
state.forEach((modal) => { | ||
var _a2, _b; | ||
return (_b = (_a2 = modal.props) == null ? void 0 : _a2.onClose) == null ? void 0 : _b.call(_a2); | ||
}); | ||
handlers.setState([]); | ||
}; | ||
const openModal = (props) => { | ||
@@ -86,0 +92,0 @@ const id = props.id || hooks.randomId(); |
@@ -75,3 +75,9 @@ import React, { useState } from 'react'; | ||
}); | ||
const closeAll = () => handlers.setState([]); | ||
const closeAll = () => { | ||
state.forEach((modal) => { | ||
var _a2, _b; | ||
return (_b = (_a2 = modal.props) == null ? void 0 : _a2.onClose) == null ? void 0 : _b.call(_a2); | ||
}); | ||
handlers.setState([]); | ||
}; | ||
const openModal = (props) => { | ||
@@ -78,0 +84,0 @@ const id = props.id || randomId(); |
{ | ||
"name": "@mantine/modals", | ||
"description": "Modals manager based on Mantine components", | ||
"version": "3.4.3", | ||
"version": "3.5.0-alpha.0", | ||
"main": "cjs/index.js", | ||
@@ -18,4 +18,4 @@ "module": "esm/index.js", | ||
"peerDependencies": { | ||
"@mantine/core": "3.4.3", | ||
"@mantine/hooks": "3.4.3", | ||
"@mantine/core": "3.5.0-alpha.0", | ||
"@mantine/hooks": "3.5.0-alpha.0", | ||
"react": ">=16.8.0", | ||
@@ -22,0 +22,0 @@ "react-dom": ">=16.8.0" |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
59445
536
1