@rjsf/mantine 6.2.5 → 6.3.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/dist/index.cjs +80 -81
- package/dist/index.cjs.map +2 -2
- package/dist/mantine.esm.js +2 -3
- package/dist/mantine.esm.js.map +2 -2
- package/dist/mantine.umd.js +1 -3
- package/lib/templates/BaseInputTemplate.js +2 -5
- package/lib/templates/BaseInputTemplate.js.map +1 -1
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/package.json +8 -8
- package/src/templates/BaseInputTemplate.tsx +2 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/mantine",
|
|
3
|
-
"version": "6.
|
|
3
|
+
"version": "6.3.0",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "lib/index.js",
|
|
6
6
|
"typings": "lib/index.d.ts",
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"react": ">=18"
|
|
70
70
|
},
|
|
71
71
|
"devDependencies": {
|
|
72
|
-
"@mantine/core": "^8.3.
|
|
73
|
-
"@mantine/dates": "^8.3.
|
|
74
|
-
"@mantine/hooks": "^8.3.
|
|
72
|
+
"@mantine/core": "^8.3.14",
|
|
73
|
+
"@mantine/dates": "^8.3.14",
|
|
74
|
+
"@mantine/hooks": "^8.3.14",
|
|
75
75
|
"@restart/hooks": "^0.6.2",
|
|
76
76
|
"@restart/ui": "^1.9.4",
|
|
77
|
-
"@rjsf/core": "^6.2.
|
|
78
|
-
"@rjsf/snapshot-tests": "^6.2.
|
|
79
|
-
"@rjsf/utils": "^6.2.
|
|
80
|
-
"@rjsf/validator-ajv8": "^6.2.
|
|
77
|
+
"@rjsf/core": "^6.2.5",
|
|
78
|
+
"@rjsf/snapshot-tests": "^6.2.5",
|
|
79
|
+
"@rjsf/utils": "^6.2.5",
|
|
80
|
+
"@rjsf/validator-ajv8": "^6.2.5",
|
|
81
81
|
"eslint": "^8.57.1",
|
|
82
82
|
"uncontrollable": "^9.0.0"
|
|
83
83
|
},
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
StrictRJSFSchema,
|
|
11
11
|
} from '@rjsf/utils';
|
|
12
12
|
import { TextInput, NumberInput } from '@mantine/core';
|
|
13
|
+
import { SchemaExamples } from '@rjsf/core';
|
|
13
14
|
|
|
14
15
|
import { cleanupOptions } from '../utils';
|
|
15
16
|
|
|
@@ -132,15 +133,7 @@ export default function BaseInputTemplate<
|
|
|
132
133
|
<ClearButton registry={registry} onClick={handleClear} />
|
|
133
134
|
)}
|
|
134
135
|
{children}
|
|
135
|
-
{
|
|
136
|
-
<datalist id={examplesId(id)}>
|
|
137
|
-
{(schema.examples as string[])
|
|
138
|
-
.concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])
|
|
139
|
-
.map((example) => {
|
|
140
|
-
return <option key={example} value={example} />;
|
|
141
|
-
})}
|
|
142
|
-
</datalist>
|
|
143
|
-
)}
|
|
136
|
+
<SchemaExamples id={id} schema={schema} />
|
|
144
137
|
</>
|
|
145
138
|
);
|
|
146
139
|
}
|