@gustavo-valsechi/client 1.4.359 → 1.4.360
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.
|
@@ -118,7 +118,7 @@ function Form(props) {
|
|
|
118
118
|
reset(defaultValues, { keepErrors: false });
|
|
119
119
|
}, [props.defaultValues, props.inputs, props.clearWhen]);
|
|
120
120
|
const component = (data) => {
|
|
121
|
-
var _a, _b, _c, _d;
|
|
121
|
+
var _a, _b, _c, _d, _e;
|
|
122
122
|
let inputType = "";
|
|
123
123
|
inputType = import_lodash.default.upperFirst(import_lodash.default.camelCase(data.type));
|
|
124
124
|
inputType = import_lodash.default.includes(inputType, "Input") ? inputType : `Input${inputType}`;
|
|
@@ -136,7 +136,7 @@ function Form(props) {
|
|
|
136
136
|
getValues,
|
|
137
137
|
setError,
|
|
138
138
|
watch,
|
|
139
|
-
optional:
|
|
139
|
+
optional: (_e = (_d = (_c = (_b = data.validation) == null ? void 0 : _b.safeParse) == null ? void 0 : _c.call(_b, void 0)) == null ? void 0 : _d.success) != null ? _e : true
|
|
140
140
|
}
|
|
141
141
|
);
|
|
142
142
|
};
|
|
@@ -84,7 +84,7 @@ function Form(props) {
|
|
|
84
84
|
reset(defaultValues, { keepErrors: false });
|
|
85
85
|
}, [props.defaultValues, props.inputs, props.clearWhen]);
|
|
86
86
|
const component = (data) => {
|
|
87
|
-
var _a, _b, _c, _d;
|
|
87
|
+
var _a, _b, _c, _d, _e;
|
|
88
88
|
let inputType = "";
|
|
89
89
|
inputType = _.upperFirst(_.camelCase(data.type));
|
|
90
90
|
inputType = _.includes(inputType, "Input") ? inputType : `Input${inputType}`;
|
|
@@ -102,7 +102,7 @@ function Form(props) {
|
|
|
102
102
|
getValues,
|
|
103
103
|
setError,
|
|
104
104
|
watch,
|
|
105
|
-
optional:
|
|
105
|
+
optional: (_e = (_d = (_c = (_b = data.validation) == null ? void 0 : _b.safeParse) == null ? void 0 : _c.call(_b, void 0)) == null ? void 0 : _d.success) != null ? _e : true
|
|
106
106
|
}
|
|
107
107
|
);
|
|
108
108
|
};
|