@rjsf/mui 6.2.5 → 6.3.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/dist/index.cjs +8 -9
- package/dist/index.cjs.map +3 -3
- package/dist/mui.esm.js +2 -3
- package/dist/mui.esm.js.map +2 -2
- package/dist/mui.umd.js +1 -3
- package/lib/BaseInputTemplate/BaseInputTemplate.js +2 -5
- package/lib/BaseInputTemplate/BaseInputTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +10 -10
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +2 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/mui",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.1",
|
|
4
4
|
"main": "./dist/index.cjs",
|
|
5
5
|
"module": "./lib/index.js",
|
|
6
6
|
"types": "./lib/index.d.ts",
|
|
@@ -64,20 +64,20 @@
|
|
|
64
64
|
"@emotion/styled": "^11.6.0",
|
|
65
65
|
"@mui/icons-material": "^7.0.0",
|
|
66
66
|
"@mui/material": "^7.0.0",
|
|
67
|
-
"@rjsf/core": "^6.
|
|
68
|
-
"@rjsf/utils": "^6.
|
|
67
|
+
"@rjsf/core": "^6.3.x",
|
|
68
|
+
"@rjsf/utils": "^6.3.x",
|
|
69
69
|
"react": ">=18"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@emotion/jest": "^11.
|
|
72
|
+
"@emotion/jest": "^11.14.2",
|
|
73
73
|
"@emotion/react": "^11.14.0",
|
|
74
74
|
"@emotion/styled": "^11.14.1",
|
|
75
|
-
"@mui/icons-material": "^7.3.
|
|
76
|
-
"@mui/material": "^7.3.
|
|
77
|
-
"@rjsf/core": "
|
|
78
|
-
"@rjsf/snapshot-tests": "
|
|
79
|
-
"@rjsf/utils": "
|
|
80
|
-
"@rjsf/validator-ajv8": "
|
|
75
|
+
"@mui/icons-material": "^7.3.7",
|
|
76
|
+
"@mui/material": "^7.3.7",
|
|
77
|
+
"@rjsf/core": "6.3.1",
|
|
78
|
+
"@rjsf/snapshot-tests": "6.3.1",
|
|
79
|
+
"@rjsf/utils": "6.3.1",
|
|
80
|
+
"@rjsf/validator-ajv8": "6.3.1",
|
|
81
81
|
"eslint": "^8.57.1"
|
|
82
82
|
},
|
|
83
83
|
"publishConfig": {
|
|
@@ -12,6 +12,7 @@ import {
|
|
|
12
12
|
RJSFSchema,
|
|
13
13
|
StrictRJSFSchema,
|
|
14
14
|
} from '@rjsf/utils';
|
|
15
|
+
import { SchemaExamples } from '@rjsf/core';
|
|
15
16
|
|
|
16
17
|
const TYPES_THAT_SHRINK_LABEL = ['date', 'datetime-local', 'file', 'time'];
|
|
17
18
|
|
|
@@ -123,15 +124,7 @@ export default function BaseInputTemplate<
|
|
|
123
124
|
{...(textFieldProps as TextFieldProps)}
|
|
124
125
|
aria-describedby={ariaDescribedByIds(id, !!schema.examples)}
|
|
125
126
|
/>
|
|
126
|
-
{
|
|
127
|
-
<datalist id={examplesId(id)}>
|
|
128
|
-
{(schema.examples as string[])
|
|
129
|
-
.concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])
|
|
130
|
-
.map((example: any) => {
|
|
131
|
-
return <option key={example} value={example} />;
|
|
132
|
-
})}
|
|
133
|
-
</datalist>
|
|
134
|
-
)}
|
|
127
|
+
<SchemaExamples id={id} schema={schema} />
|
|
135
128
|
</>
|
|
136
129
|
);
|
|
137
130
|
}
|