@hitachivantara/uikit-react-core 5.93.0 → 5.93.1

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.
@@ -106,7 +106,10 @@ const HvDropdownList = (props) => {
106
106
  }
107
107
  ) });
108
108
  const handleSelectAll = () => {
109
- const newList = list.map((elem) => ({ ...elem, selected: !anySelected }));
109
+ const newList = list.map((elem) => {
110
+ if (elem.disabled) return elem;
111
+ return { ...elem, selected: !anySelected };
112
+ });
110
113
  setList(newList);
111
114
  updateSelectAll(newList);
112
115
  };
@@ -105,7 +105,10 @@ const HvDropdownList = (props) => {
105
105
  }
106
106
  ) });
107
107
  const handleSelectAll = () => {
108
- const newList = list.map((elem) => ({ ...elem, selected: !anySelected }));
108
+ const newList = list.map((elem) => {
109
+ if (elem.disabled) return elem;
110
+ return { ...elem, selected: !anySelected };
111
+ });
109
112
  setList(newList);
110
113
  updateSelectAll(newList);
111
114
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hitachivantara/uikit-react-core",
3
- "version": "5.93.0",
3
+ "version": "5.93.1",
4
4
  "private": false,
5
5
  "author": "Hitachi Vantara UI Kit Team",
6
6
  "description": "Core React components for the NEXT Design System.",
@@ -32,9 +32,9 @@
32
32
  "dependencies": {
33
33
  "@emotion/cache": "^11.11.0",
34
34
  "@emotion/serialize": "^1.1.2",
35
- "@hitachivantara/uikit-react-shared": "^5.4.0",
36
- "@hitachivantara/uikit-react-utils": "^0.2.33",
37
- "@hitachivantara/uikit-styles": "^5.46.0",
35
+ "@hitachivantara/uikit-react-shared": "^5.4.1",
36
+ "@hitachivantara/uikit-react-utils": "^0.2.34",
37
+ "@hitachivantara/uikit-styles": "^5.46.1",
38
38
  "@internationalized/date": "^3.2.0",
39
39
  "@mui/base": "5.0.0-beta.68",
40
40
  "@popperjs/core": "^2.11.8",
@@ -61,7 +61,7 @@
61
61
  "access": "public",
62
62
  "directory": "package"
63
63
  },
64
- "gitHead": "d96b3d461f5676cf95f4321fd9a3104874814fc3",
64
+ "gitHead": "b05a15b41bfa20c2c4e8bc248429a4a01b23784f",
65
65
  "exports": {
66
66
  ".": {
67
67
  "types": "./dist/types/index.d.ts",