@okta/odyssey-react-mui 1.9.23 → 1.10.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.
- package/CHANGELOG.md +18 -0
- package/dist/TextField.js +7 -5
- package/dist/TextField.js.map +1 -1
- package/dist/labs/VirtualizedAutocomplete.js +1 -1
- package/dist/labs/VirtualizedAutocomplete.js.map +1 -1
- package/dist/src/TextField.d.ts +12 -2
- package/dist/src/TextField.d.ts.map +1 -1
- package/dist/tsconfig.production.tsbuildinfo +1 -1
- package/package.json +3 -3
- package/src/TextField.tsx +13 -5
- package/src/labs/VirtualizedAutocomplete.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@okta/odyssey-react-mui",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.3",
|
|
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.
|
|
54
|
+
"@okta/odyssey-design-tokens": "1.10.3",
|
|
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": "
|
|
66
|
+
"gitHead": "a6212214c614cc9e2b6199d805e253d4fad586a4"
|
|
67
67
|
}
|
package/src/TextField.tsx
CHANGED
|
@@ -41,7 +41,7 @@ export type TextFieldProps = {
|
|
|
41
41
|
/**
|
|
42
42
|
* This prop helps users to fill forms faster, especially on mobile devices.
|
|
43
43
|
* The name can be confusing, as it's more like an autofill.
|
|
44
|
-
*
|
|
44
|
+
* @see https://html.spec.whatwg.org/multipage/form-control-infrastructure.html#autofill
|
|
45
45
|
*/
|
|
46
46
|
autoCompleteType?: InputHTMLAttributes<HTMLInputElement>["autoComplete"];
|
|
47
47
|
/**
|
|
@@ -60,6 +60,11 @@ export type TextFieldProps = {
|
|
|
60
60
|
* The ref forwarded to the TextField to expose focus()
|
|
61
61
|
*/
|
|
62
62
|
inputFocusRef?: React.RefObject<FocusHandle>;
|
|
63
|
+
/**
|
|
64
|
+
* Hints at the type of data that might be entered by the user while editing the element or its contents
|
|
65
|
+
* @see https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute
|
|
66
|
+
*/
|
|
67
|
+
inputMode?: InputHTMLAttributes<HTMLInputElement>["inputMode"];
|
|
63
68
|
/**
|
|
64
69
|
* If `true`, a [TextareaAutosize](/material-ui/react-textarea-autosize/) element is rendered.
|
|
65
70
|
*/
|
|
@@ -112,6 +117,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
112
117
|
HintLinkComponent,
|
|
113
118
|
id: idOverride,
|
|
114
119
|
inputFocusRef,
|
|
120
|
+
inputMode,
|
|
115
121
|
isDisabled = false,
|
|
116
122
|
isFullWidth = false,
|
|
117
123
|
isMultiline = false,
|
|
@@ -170,10 +176,6 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
170
176
|
({ ariaDescribedBy, errorMessageElementId, id, labelElementId }) => (
|
|
171
177
|
<InputBase
|
|
172
178
|
{...inputValues}
|
|
173
|
-
inputProps={{
|
|
174
|
-
"aria-errormessage": errorMessageElementId,
|
|
175
|
-
"aria-labelledby": labelElementId,
|
|
176
|
-
}}
|
|
177
179
|
aria-describedby={ariaDescribedBy}
|
|
178
180
|
autoComplete={autoCompleteType}
|
|
179
181
|
/* eslint-disable-next-line jsx-a11y/no-autofocus */
|
|
@@ -187,6 +189,11 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
187
189
|
)
|
|
188
190
|
}
|
|
189
191
|
id={id}
|
|
192
|
+
inputProps={{
|
|
193
|
+
"aria-errormessage": errorMessageElementId,
|
|
194
|
+
"aria-labelledby": labelElementId,
|
|
195
|
+
inputmode: inputMode,
|
|
196
|
+
}}
|
|
190
197
|
inputRef={inputRef}
|
|
191
198
|
multiline={isMultiline}
|
|
192
199
|
name={nameOverride ?? id}
|
|
@@ -213,6 +220,7 @@ const TextField = forwardRef<HTMLInputElement, TextFieldProps>(
|
|
|
213
220
|
inputValues,
|
|
214
221
|
hasInitialFocus,
|
|
215
222
|
endAdornment,
|
|
223
|
+
inputMode,
|
|
216
224
|
isMultiline,
|
|
217
225
|
nameOverride,
|
|
218
226
|
onBlur,
|