@maif/react-forms 1.0.30 → 1.0.31
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/README.md +1 -0
- package/dist/react-form.js +1 -1
- package/lib/form.js +3 -1
- package/lib/format.d.ts +1 -0
- package/lib/format.js +2 -1
- package/lib/inputs/SingleLineCode.d.ts +9 -0
- package/lib/inputs/SingleLineCode.js +88 -0
- package/lib/inputs/index.d.ts +1 -0
- package/lib/inputs/index.js +13 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -68,6 +68,7 @@ export const Example = () => {
|
|
|
68
68
|
- `select`: display a [react-select](https://react-select.com/home) field with provided options
|
|
69
69
|
- `buttonsSelect`: display a buttons group, drawn with the same options than the format `select`
|
|
70
70
|
- `code`: if the type is `string`, display a code input (draw with [react-ace](https://github.com/securingsincity/react-ace)) (add a props.setRef to get ace editor ref)
|
|
71
|
+
- `singleLineCode`: renders text input with syntax highlighting (draw with [react-ace](https://github.com/securingsincity/react-ace)) (add a props.setRef to get ace editor ref)
|
|
71
72
|
- `markdown`: if the type is `string`, display a markdown input
|
|
72
73
|
- `text`: if the type is `string`, display a textarea
|
|
73
74
|
- `email`: if the type is `string`, display an email input
|