carbon-react 144.7.0 → 144.7.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.
@@ -63,7 +63,6 @@ const HiddenCheckableInput = /*#__PURE__*/React.forwardRef(({
63
63
  "aria-labelledby": ariaLabelledBy,
64
64
  autoFocus: autoFocus,
65
65
  "data-has-autofocus": autoFocus ? true : undefined,
66
- "aria-checked": checked,
67
66
  checked: checked,
68
67
  name: name,
69
68
  role: role || type,
@@ -194,8 +194,8 @@ const SelectList = /*#__PURE__*/React.forwardRef(({
194
194
  },
195
195
  "data-index": index
196
196
  };
197
- return /*#__PURE__*/React.cloneElement(child, newProps);
198
- });
197
+ return child !== undefined ? /*#__PURE__*/React.cloneElement(child, newProps) : null;
198
+ }).filter(el => el !== null);
199
199
  const lastOptionIndex = findLastIndex(childrenList, child => /*#__PURE__*/React.isValidElement(child) && (child.type === Option || child.type === OptionRow));
200
200
  const getNextHighlightableItemIndex = useCallback((key, indexOfHighlighted) => {
201
201
  const lastIndex = lastOptionIndex;
@@ -31,7 +31,6 @@ const SimpleColor = /*#__PURE__*/React.forwardRef((props, ref) => {
31
31
  type: "radio",
32
32
  role: "radio",
33
33
  value: value,
34
- "aria-checked": checked,
35
34
  ref: ref,
36
35
  id: inputId,
37
36
  defaultChecked: defaultChecked
@@ -89,7 +89,6 @@ const TileSelect = /*#__PURE__*/React.forwardRef(({
89
89
  type: type,
90
90
  value: value,
91
91
  disabled: disabled,
92
- "aria-checked": checked,
93
92
  id: id,
94
93
  ref: ref
95
94
  }, rest)), /*#__PURE__*/React.createElement(StyledTileSelect, {
@@ -72,7 +72,6 @@ const HiddenCheckableInput = /*#__PURE__*/_react.default.forwardRef(({
72
72
  "aria-labelledby": ariaLabelledBy,
73
73
  autoFocus: autoFocus,
74
74
  "data-has-autofocus": autoFocus ? true : undefined,
75
- "aria-checked": checked,
76
75
  checked: checked,
77
76
  name: name,
78
77
  role: role || type,
@@ -203,8 +203,8 @@ const SelectList = /*#__PURE__*/_react.default.forwardRef(({
203
203
  },
204
204
  "data-index": index
205
205
  };
206
- return /*#__PURE__*/_react.default.cloneElement(child, newProps);
207
- });
206
+ return child !== undefined ? /*#__PURE__*/_react.default.cloneElement(child, newProps) : null;
207
+ }).filter(el => el !== null);
208
208
  const lastOptionIndex = (0, _findLastIndex.default)(childrenList, child => /*#__PURE__*/_react.default.isValidElement(child) && (child.type === _option.default || child.type === _optionRow.default));
209
209
  const getNextHighlightableItemIndex = (0, _react.useCallback)((key, indexOfHighlighted) => {
210
210
  const lastIndex = lastOptionIndex;
@@ -40,7 +40,6 @@ const SimpleColor = exports.SimpleColor = /*#__PURE__*/_react.default.forwardRef
40
40
  type: "radio",
41
41
  role: "radio",
42
42
  value: value,
43
- "aria-checked": checked,
44
43
  ref: ref,
45
44
  id: inputId,
46
45
  defaultChecked: defaultChecked
@@ -98,7 +98,6 @@ const TileSelect = /*#__PURE__*/_react.default.forwardRef(({
98
98
  type: type,
99
99
  value: value,
100
100
  disabled: disabled,
101
- "aria-checked": checked,
102
101
  id: id,
103
102
  ref: ref
104
103
  }, rest)), /*#__PURE__*/_react.default.createElement(_tileSelect.StyledTileSelect, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "144.7.0",
3
+ "version": "144.7.2",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "files": [
6
6
  "lib",