pixelize-design-library 1.1.18 → 1.1.19

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.
@@ -61,8 +61,8 @@ var useMergedChildComponents = function (childComponents, onSortChange, onMenuIt
61
61
  var _a = react_1.default.useState(selected), selections = _a[0], setSelections = _a[1];
62
62
  var isAllSelected = (0, react_1.useMemo)(function () {
63
63
  return {
64
- checked: selections.length === dataLength,
65
- intederminate: selections.length > 0 && selections.length < dataLength,
64
+ checked: (selections === null || selections === void 0 ? void 0 : selections.length) === dataLength,
65
+ intederminate: (selections === null || selections === void 0 ? void 0 : selections.length) > 0 && (selections === null || selections === void 0 ? void 0 : selections.length) < dataLength,
66
66
  };
67
67
  }, [selections, dataLength]);
68
68
  var cellSelectionHandle = (0, react_1.useCallback)(function (values, type) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pixelize-design-library",
3
- "version": "1.1.18",
3
+ "version": "1.1.19",
4
4
  "private": false,
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",