@okta/odyssey-react-mui 1.13.0 → 1.13.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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@okta/odyssey-react-mui",
3
- "version": "1.13.0",
3
+ "version": "1.13.1",
4
4
  "description": "React MUI components for Odyssey, Okta's design system",
5
5
  "author": "Okta, Inc.",
6
6
  "license": "Apache-2.0",
@@ -51,7 +51,7 @@
51
51
  "@mui/system": "^5.14.9",
52
52
  "@mui/utils": "^5.11.2",
53
53
  "@mui/x-date-pickers": "^5.0.15",
54
- "@okta/odyssey-design-tokens": "1.13.0",
54
+ "@okta/odyssey-design-tokens": "1.13.1",
55
55
  "date-fns": "^2.30.0",
56
56
  "i18next": "^23.5.1",
57
57
  "material-react-table": "^2.0.2",
@@ -63,5 +63,5 @@
63
63
  "react": ">=17 <19",
64
64
  "react-dom": ">=17 <19"
65
65
  },
66
- "gitHead": "962a112a4ca1d9eef1d3fa8789fe47344e46b059"
66
+ "gitHead": "be8728a2fcf8943a503d9d5e7e39a7348a970d79"
67
67
  }
package/src/Button.tsx CHANGED
@@ -13,6 +13,7 @@
13
13
  import { Button as MuiButton } from "@mui/material";
14
14
  import type { ButtonProps as MuiButtonProps } from "@mui/material";
15
15
  import {
16
+ HTMLAttributes,
16
17
  memo,
17
18
  ReactElement,
18
19
  useCallback,
@@ -84,6 +85,7 @@ export type ButtonProps = {
84
85
  * The icon element to display at the start of the Button
85
86
  */
86
87
  startIcon?: ReactElement;
88
+ tabIndex?: HTMLAttributes<HTMLElement>["tabIndex"];
87
89
  /**
88
90
  * The tooltip text for the Button if it's icon-only
89
91
  */
@@ -128,6 +130,7 @@ const Button = ({
128
130
  onClick,
129
131
  size = "medium",
130
132
  startIcon,
133
+ tabIndex,
131
134
  testId,
132
135
  tooltipText,
133
136
  translate,
@@ -168,6 +171,7 @@ const Button = ({
168
171
  ref={localButtonRef}
169
172
  size={size}
170
173
  startIcon={startIcon}
174
+ tabIndex={tabIndex}
171
175
  translate={translate}
172
176
  type={type}
173
177
  variant={variant}
@@ -188,6 +192,7 @@ const Button = ({
188
192
  onClick,
189
193
  size,
190
194
  startIcon,
195
+ tabIndex,
191
196
  testId,
192
197
  translate,
193
198
  type,
@@ -15,6 +15,7 @@ import {
15
15
  ChangeEventHandler,
16
16
  FocusEventHandler,
17
17
  forwardRef,
18
+ HTMLAttributes,
18
19
  InputHTMLAttributes,
19
20
  memo,
20
21
  useCallback,
@@ -74,6 +75,8 @@ export type SearchFieldProps = {
74
75
  * The short hint displayed in the `input` before the user enters a value.
75
76
  */
76
77
  placeholder?: string;
78
+
79
+ tabIndex?: HTMLAttributes<HTMLElement>["tabIndex"];
77
80
  /**
78
81
  * The value of the `input` element, to use when controlled.
79
82
  */
@@ -101,6 +104,7 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
101
104
  onBlur,
102
105
  onClear: onClearProp,
103
106
  placeholder,
107
+ tabIndex,
104
108
  testId,
105
109
  translate,
106
110
  value,
@@ -135,6 +139,9 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
135
139
  ({ ariaDescribedBy, id }) => (
136
140
  <InputBase
137
141
  {...inputValues}
142
+ inputProps={{
143
+ tabIndex,
144
+ }}
138
145
  aria-describedby={ariaDescribedBy}
139
146
  autoComplete={autoCompleteType}
140
147
  /* eslint-disable-next-line jsx-a11y/no-autofocus */
@@ -183,6 +190,7 @@ const SearchField = forwardRef<HTMLInputElement, SearchFieldProps>(
183
190
  onFocus,
184
191
  placeholder,
185
192
  ref,
193
+ tabIndex,
186
194
  testId,
187
195
  translate,
188
196
  ]