@rjsf/mui 5.17.1 → 5.18.0

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": "@rjsf/mui",
3
- "version": "5.17.1",
3
+ "version": "5.18.0",
4
4
  "main": "./dist/index.js",
5
5
  "module": "./lib/index.js",
6
6
  "types": "./lib/index.d.ts",
@@ -53,10 +53,10 @@
53
53
  "@mui/base": "5.0.0-beta.28",
54
54
  "@mui/icons-material": "5.15.2",
55
55
  "@mui/material": "5.15.2",
56
- "@rjsf/core": "^5.17.1",
57
- "@rjsf/snapshot-tests": "^5.17.1",
58
- "@rjsf/utils": "^5.17.1",
59
- "@rjsf/validator-ajv8": "^5.17.1",
56
+ "@rjsf/core": "^5.18.0",
57
+ "@rjsf/snapshot-tests": "^5.18.0",
58
+ "@rjsf/utils": "^5.18.0",
59
+ "@rjsf/validator-ajv8": "^5.18.0",
60
60
  "@types/jest": "^29.5.12",
61
61
  "@types/react": "^17.0.75",
62
62
  "@types/react-dom": "^17.0.25",
@@ -100,5 +100,5 @@
100
100
  "url": "git+https://github.com/rjsf-team/react-jsonschema-form.git"
101
101
  },
102
102
  "license": "Apache-2.0",
103
- "gitHead": "4d13c51c861fa0d21ec6e40881a21ba16c72d8bd"
103
+ "gitHead": "7059e5ec14e0e454fe016aa367d9b65208f3bd8d"
104
104
  }
@@ -45,6 +45,7 @@ export default function BaseInputTemplate<
45
45
  schema,
46
46
  uiSchema,
47
47
  rawErrors = [],
48
+ errorSchema,
48
49
  formContext,
49
50
  registry,
50
51
  InputLabelProps,
@@ -38,6 +38,7 @@ export default function SelectWidget<
38
38
  onChange,
39
39
  onBlur,
40
40
  onFocus,
41
+ errorSchema,
41
42
  rawErrors = [],
42
43
  registry,
43
44
  uiSchema,
@@ -59,6 +60,7 @@ export default function SelectWidget<
59
60
  const _onFocus = ({ target: { value } }: FocusEvent<HTMLInputElement>) =>
60
61
  onFocus(id, enumOptionsValueForIndex<S>(value, enumOptions, optEmptyVal));
61
62
  const selectedIndexes = enumOptionsIndexForValue<S>(value, enumOptions, multiple);
63
+ const { InputLabelProps, SelectProps, autocomplete, ...textFieldRemainingProps } = textFieldProps;
62
64
 
63
65
  return (
64
66
  <TextField
@@ -69,19 +71,20 @@ export default function SelectWidget<
69
71
  required={required}
70
72
  disabled={disabled || readonly}
71
73
  autoFocus={autofocus}
74
+ autoComplete={autocomplete}
72
75
  placeholder={placeholder}
73
76
  error={rawErrors.length > 0}
74
77
  onChange={_onChange}
75
78
  onBlur={_onBlur}
76
79
  onFocus={_onFocus}
77
- {...(textFieldProps as TextFieldProps)}
80
+ {...(textFieldRemainingProps as TextFieldProps)}
78
81
  select // Apply this and the following props after the potential overrides defined in textFieldProps
79
82
  InputLabelProps={{
80
- ...textFieldProps.InputLabelProps,
83
+ ...InputLabelProps,
81
84
  shrink: !isEmpty,
82
85
  }}
83
86
  SelectProps={{
84
- ...textFieldProps.SelectProps,
87
+ ...SelectProps,
85
88
  multiple,
86
89
  }}
87
90
  aria-describedby={ariaDescribedByIds<T>(id)}