@rjsf/semantic-ui 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 +8 -9
- package/dist/index.cjs.map +3 -3
- package/dist/semantic-ui.esm.js +2 -3
- package/dist/semantic-ui.esm.js.map +2 -2
- package/dist/semantic-ui.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 +5 -5
- package/src/BaseInputTemplate/BaseInputTemplate.tsx +2 -9
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@rjsf/semantic-ui",
|
|
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",
|
|
@@ -67,10 +67,10 @@
|
|
|
67
67
|
"semantic-ui-react": "^2.1.3"
|
|
68
68
|
},
|
|
69
69
|
"devDependencies": {
|
|
70
|
-
"@rjsf/core": "^6.2.
|
|
71
|
-
"@rjsf/snapshot-tests": "^6.2.
|
|
72
|
-
"@rjsf/utils": "^6.2.
|
|
73
|
-
"@rjsf/validator-ajv8": "^6.2.
|
|
70
|
+
"@rjsf/core": "^6.2.5",
|
|
71
|
+
"@rjsf/snapshot-tests": "^6.2.5",
|
|
72
|
+
"@rjsf/utils": "^6.2.5",
|
|
73
|
+
"@rjsf/validator-ajv8": "^6.2.5",
|
|
74
74
|
"atob": "^2.1.2",
|
|
75
75
|
"eslint": "^8.57.1",
|
|
76
76
|
"semantic-ui-react": "^2.1.5"
|
|
@@ -11,6 +11,7 @@ import {
|
|
|
11
11
|
RJSFSchema,
|
|
12
12
|
StrictRJSFSchema,
|
|
13
13
|
} from '@rjsf/utils';
|
|
14
|
+
import { SchemaExamples } from '@rjsf/core';
|
|
14
15
|
|
|
15
16
|
/** The `BaseInputTemplate` is the template to use to render the basic `<input>` component for the `core` theme.
|
|
16
17
|
* It is used as the template for rendering many of the <input> based widgets that differ by `type` and callbacks only.
|
|
@@ -89,15 +90,7 @@ export default function BaseInputTemplate<
|
|
|
89
90
|
{options.allowClearTextInputs && !readonly && !disabled && value && (
|
|
90
91
|
<ClearButton registry={registry} onClick={_onClear} />
|
|
91
92
|
)}
|
|
92
|
-
{
|
|
93
|
-
<datalist id={examplesId(id)}>
|
|
94
|
-
{(schema.examples as string[])
|
|
95
|
-
.concat(schema.default && !schema.examples.includes(schema.default) ? ([schema.default] as string[]) : [])
|
|
96
|
-
.map((example) => {
|
|
97
|
-
return <option key={example} value={example} />;
|
|
98
|
-
})}
|
|
99
|
-
</datalist>
|
|
100
|
-
)}
|
|
93
|
+
<SchemaExamples id={id} schema={schema} />
|
|
101
94
|
</>
|
|
102
95
|
);
|
|
103
96
|
}
|