@zextras/carbonio-design-system 0.2.0 → 0.2.2

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.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,20 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines.
4
4
 
5
+ ### [0.2.2](https://github.com/Zextras/carbonio-design-system/compare/v0.2.1...v0.2.2) (2022-04-12)
6
+
7
+
8
+ ### Bug Fixes
9
+
10
+ * custom modal crash on opening ([658516a](https://github.com/Zextras/carbonio-design-system/commit/658516aab7ba09c3265d863db0f638eccb015772))
11
+
12
+ ### [0.2.1](https://github.com/Zextras/carbonio-design-system/compare/v0.2.0...v0.2.1) (2022-04-12)
13
+
14
+
15
+ ### Bug Fixes
16
+
17
+ * select value loop ([6527738](https://github.com/Zextras/carbonio-design-system/commit/6527738ddd35ba515c4320c82fef5caf95c99c5a))
18
+
5
19
  ## [0.2.0](https://github.com/Zextras/carbonio-design-system/compare/v0.1.5...v0.2.0) (2022-04-12)
6
20
 
7
21
 
@@ -27162,12 +27162,12 @@ var Select = /*#__PURE__*/React__default["default"].forwardRef(function SelectFn
27162
27162
  });
27163
27163
  }
27164
27164
  }
27165
- }, [multiple, onChange, selection]);
27165
+ }, [multiple, selection]);
27166
27166
  React.useEffect(function () {
27167
27167
  var _selected$0$value, _selected$;
27168
27168
 
27169
- onChange === null || onChange === void 0 ? void 0 : onChange(multiple ? selected : (_selected$0$value = (_selected$ = selected[0]) === null || _selected$ === void 0 ? void 0 : _selected$.value) !== null && _selected$0$value !== void 0 ? _selected$0$value : null);
27170
- }, [selected, onChange, multiple]);
27169
+ onChange === null || onChange === void 0 ? void 0 : onChange(multiple ? selected : (_selected$0$value = (_selected$ = selected[0]) === null || _selected$ === void 0 ? void 0 : _selected$.value) !== null && _selected$0$value !== void 0 ? _selected$0$value : null); // eslint-disable-next-line react-hooks/exhaustive-deps
27170
+ }, [selected, multiple]);
27171
27171
  var clickItemHandler = React.useCallback(function (item, isSelected) {
27172
27172
  return function () {
27173
27173
  if (multiple && isSelected) {
@@ -37518,7 +37518,7 @@ var CustomModal = /*#__PURE__*/React__default["default"].forwardRef(function Mod
37518
37518
  var defaultOverflowY = windowObj.document.body.style.overflowY;
37519
37519
  var defaultPaddingRight = windowObj.document.body.style.paddingRight;
37520
37520
  windowObj.document.body.style.overflowY = 'hidden';
37521
- isBodyOverflowing(modalRef) && (windowObj.document.body.style.paddingRight = "".concat(getScrollbarSize(), "px"));
37521
+ isBodyOverflowing(modalRef, windowObj) && (windowObj.document.body.style.paddingRight = "".concat(getScrollbarSize(), "px"));
37522
37522
  return function () {
37523
37523
  windowObj.document.body.style.overflowY = defaultOverflowY;
37524
37524
  windowObj.document.body.style.paddingRight = defaultPaddingRight;
@@ -37528,7 +37528,7 @@ var CustomModal = /*#__PURE__*/React__default["default"].forwardRef(function Mod
37528
37528
  return function () {
37529
37529
  return undefined;
37530
37530
  };
37531
- }, [modalRef, open, windowObj.document.body.style]);
37531
+ }, [modalRef, open, windowObj]);
37532
37532
  React.useEffect(function () {
37533
37533
  var focusedElement = windowObj.document.activeElement;
37534
37534
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zextras/carbonio-design-system",
3
- "version": "0.2.0",
3
+ "version": "0.2.2",
4
4
  "description": "An awesome UI for Zextras Projects.",
5
5
  "main": "dist/zapp-ui.bundle.js",
6
6
  "scripts": {