carbon-react 101.3.2 → 101.3.3

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.
@@ -54,6 +54,7 @@ const Search = ({
54
54
  variant = "default",
55
55
  "aria-label": ariaLabel = "search",
56
56
  inputRef,
57
+ tabIndex,
57
58
  ...rest
58
59
  }) => {
59
60
  const isControlled = value !== undefined;
@@ -173,7 +174,8 @@ const Search = ({
173
174
  onBlur: onBlur,
174
175
  onChange: onChange,
175
176
  onKeyDown: onKeyDown,
176
- inputRef: assignInput
177
+ inputRef: assignInput,
178
+ tabIndex: tabIndex
177
179
  }), searchButton && /*#__PURE__*/_react.default.createElement(_search.StyledSearchButton, null, Boolean(isFocused || (!isControlled ? searchValue.length : value.length)) && /*#__PURE__*/_react.default.createElement(_button.default, _extends({
178
180
  tabIndex: iconTabIndex,
179
181
  size: "medium",
@@ -249,7 +251,10 @@ Search.propTypes = {
249
251
  */
250
252
  inputRef: _propTypes.default.shape({
251
253
  current: _propTypes.default.instanceOf(Element)
252
- })
254
+ }),
255
+
256
+ /** Input tabindex */
257
+ tabIndex: _propTypes.default.number
253
258
  };
254
259
  var _default = Search;
255
260
  exports.default = _default;
@@ -40,6 +40,8 @@ export interface SearchProps extends MarginProps {
40
40
  variant?: string;
41
41
  /** A callback to retrieve the input reference */
42
42
  inputRef?: React.RefObject<HTMLInputElement>;
43
+ /** Input tabindex */
44
+ tabIndex?: number;
43
45
  }
44
46
 
45
47
  declare function Search(props: SearchProps): JSX.Element;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "carbon-react",
3
- "version": "101.3.2",
3
+ "version": "101.3.3",
4
4
  "description": "A library of reusable React components for easily building user interfaces.",
5
5
  "engineStrict": true,
6
6
  "engines": {