contentoh-components-library 21.3.64 → 21.3.65
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -9,6 +9,8 @@ var _react = require("react");
|
|
|
9
9
|
|
|
10
10
|
var _styles = require("./styles");
|
|
11
11
|
|
|
12
|
+
var _iconsMaterial = require("@mui/icons-material");
|
|
13
|
+
|
|
12
14
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
13
15
|
|
|
14
16
|
var SideModal = function SideModal(_ref) {
|
|
@@ -47,6 +49,7 @@ var SideModal = function SideModal(_ref) {
|
|
|
47
49
|
|
|
48
50
|
document.removeEventListener("click", closeModal, false);
|
|
49
51
|
modal === null || modal === void 0 ? void 0 : (_modal$current3 = modal.current) === null || _modal$current3 === void 0 ? void 0 : (_modal$current3$class = _modal$current3.classList) === null || _modal$current3$class === void 0 ? void 0 : _modal$current3$class.remove("shown");
|
|
52
|
+
setShow && setShow(false);
|
|
50
53
|
};
|
|
51
54
|
}, []);
|
|
52
55
|
return show && /*#__PURE__*/(0, _jsxRuntime.jsx)(_styles.Container, {
|
package/package.json
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { useRef } from "react";
|
|
2
2
|
import { Container } from "./styles";
|
|
3
3
|
import { useEffect } from "react";
|
|
4
|
+
import { PropaneSharp } from "@mui/icons-material";
|
|
4
5
|
|
|
5
6
|
export const SideModal = ({
|
|
6
7
|
header,
|
|
@@ -32,6 +33,7 @@ export const SideModal = ({
|
|
|
32
33
|
return () => {
|
|
33
34
|
document.removeEventListener("click", closeModal, false);
|
|
34
35
|
modal?.current?.classList?.remove("shown");
|
|
36
|
+
setShow && setShow(false);
|
|
35
37
|
};
|
|
36
38
|
}, []);
|
|
37
39
|
|