trithuc-mvc-react 1.5.2 → 1.5.3

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.
@@ -96,6 +96,7 @@ function EditorForm({ fields, elementSize = "medium", submitRef }) {
96
96
  ({
97
97
  field,
98
98
  type = "text",
99
+ size,
99
100
  label,
100
101
  childrenFields,
101
102
  datas,
@@ -106,20 +107,8 @@ function EditorForm({ fields, elementSize = "medium", submitRef }) {
106
107
  keyValueLabel,
107
108
  required
108
109
  }) => {
109
- let sizes = {
110
- xs: 12,
111
- sm: 6,
112
- md: 4
113
- };
114
- if (type == "textarea") {
115
- sizes = {
116
- xs: 12,
117
- sm: 12,
118
- md: 12
119
- };
120
- }
121
110
  return (
122
- <Grid {...sizes} key={field}>
111
+ <Grid item md={size?.md} xs={size?.xs} sm={size?.sm} key={field}>
123
112
  <FormField
124
113
  type={type}
125
114
  label={label}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "trithuc-mvc-react",
3
- "version": "1.5.2",
3
+ "version": "1.5.3",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "test": "echo \"Error: no test specified\" && exit 1"