ywana-core8 0.0.913 → 0.0.915
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 +9 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.modern.js +9 -0
- package/dist/index.modern.js.map +1 -1
- package/dist/index.umd.js +9 -0
- package/dist/index.umd.js.map +1 -1
- package/package.json +1 -1
- package/src/domain2/DynamicForm.js +3 -1
- package/src/domain2/FORMATS.js +1 -0
package/package.json
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import React from 'react'
|
2
|
-
import { CheckBox, ColorField, DateRange, DropDown, TextField, TokenField } from '../html'
|
2
|
+
import { CheckBox, ColorField, DateRange, DropDown, TextField, TokenField, TextArea } from '../html'
|
3
3
|
import { FORMATS } from './FORMATS'
|
4
4
|
import { TYPES } from './TYPES'
|
5
5
|
import './DynamicForm.css'
|
@@ -52,6 +52,8 @@ const DynamicFormField = (props) => {
|
|
52
52
|
const label = required ? `${field.label} *` : field.label
|
53
53
|
|
54
54
|
switch (format) {
|
55
|
+
case FORMATS.TEXT:
|
56
|
+
return <TextArea id={id} label={label} value={value} onChange={change} outlined />
|
55
57
|
case FORMATS.DATE:
|
56
58
|
return <TextField id={id} label={label} type="date" value={value} onChange={change} outlined />
|
57
59
|
case FORMATS.TIME:
|