@ozen-ui/kit 0.51.0 → 0.52.0

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.
@@ -30,10 +30,8 @@ exports.Modal = (0, react_1.forwardRef)(function (_a, ref) {
30
30
  refs: tslib_1.__spreadArray(tslib_1.__spreadArray([
31
31
  modalInnerRef
32
32
  ], tslib_1.__read(refsClickOutside), false), tslib_1.__read((ignoreClickOutsideRefs || [])), false),
33
- handler: function () {
34
- onClose === null || onClose === void 0 ? void 0 : onClose();
35
- },
36
- active: !disableClickOutside,
33
+ handler: onClose,
34
+ active: open && !disableClickOutside,
37
35
  });
38
36
  // Блокирует прокрутку основного окна приложения
39
37
  (0, useLockBodyScroll_1.useLockBodyScroll)(opened && !disableScrollLock);
@@ -27,10 +27,8 @@ export var Modal = forwardRef(function (_a, ref) {
27
27
  refs: __spreadArray(__spreadArray([
28
28
  modalInnerRef
29
29
  ], __read(refsClickOutside), false), __read((ignoreClickOutsideRefs || [])), false),
30
- handler: function () {
31
- onClose === null || onClose === void 0 ? void 0 : onClose();
32
- },
33
- active: !disableClickOutside,
30
+ handler: onClose,
31
+ active: open && !disableClickOutside,
34
32
  });
35
33
  // Блокирует прокрутку основного окна приложения
36
34
  useLockBodyScroll(opened && !disableScrollLock);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ozen-ui/kit",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "React component library",
5
5
  "files": [
6
6
  "*"
@@ -28,9 +28,9 @@
28
28
  "react-popper": "^2.3.0",
29
29
  "react-transition-group": "^4.4.5",
30
30
  "tslib": "^2.6.2",
31
- "@ozen-ui/fonts": "0.51.0",
32
- "@ozen-ui/icons": "0.51.0",
33
- "@ozen-ui/logger": "0.51.0"
31
+ "@ozen-ui/fonts": "0.52.0",
32
+ "@ozen-ui/logger": "0.52.0",
33
+ "@ozen-ui/icons": "0.52.0"
34
34
  },
35
35
  "peerDependencies": {
36
36
  "react": ">=17.0.2 <19.0.0",