@gustavo-valsechi/client 1.4.27 → 1.4.28

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.
@@ -99,7 +99,7 @@ function Form(props) {
99
99
  type: component2 ? void 0 : data.type,
100
100
  error: (_a = errors[data.name]) == null ? void 0 : _a.message,
101
101
  register,
102
- setValue: inputType === "InputCustom" ? setValue : void 0
102
+ setvalue: inputType === "InputCustom" ? setValue : void 0
103
103
  }
104
104
  );
105
105
  };
@@ -65,7 +65,7 @@ function Form(props) {
65
65
  type: component2 ? void 0 : data.type,
66
66
  error: (_a = errors[data.name]) == null ? void 0 : _a.message,
67
67
  register,
68
- setValue: inputType === "InputCustom" ? setValue : void 0
68
+ setvalue: inputType === "InputCustom" ? setValue : void 0
69
69
  }
70
70
  );
71
71
  };
@@ -31,7 +31,7 @@ function InputCustom(props) {
31
31
  const register = (props.register || ((name) => ({})))(props.name || "");
32
32
  (0, import_react.useEffect)(() => {
33
33
  var _a;
34
- (_a = props.setValue) == null ? void 0 : _a.call(props, props.name, props.value);
34
+ (_a = props.setvalue) == null ? void 0 : _a.call(props, props.name, props.value);
35
35
  }, [props.name, props.value]);
36
36
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { className: props.className, children: [
37
37
  !!props.label && /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_label.InputLabel, { children: [
@@ -8,7 +8,7 @@ function InputCustom(props) {
8
8
  const register = (props.register || ((name) => ({})))(props.name || "");
9
9
  useEffect(() => {
10
10
  var _a;
11
- (_a = props.setValue) == null ? void 0 : _a.call(props, props.name, props.value);
11
+ (_a = props.setvalue) == null ? void 0 : _a.call(props, props.name, props.value);
12
12
  }, [props.name, props.value]);
13
13
  return /* @__PURE__ */ jsxs(Container, { className: props.className, children: [
14
14
  !!props.label && /* @__PURE__ */ jsxs(InputLabel, { children: [
@@ -13,7 +13,7 @@ export interface IInputCustom {
13
13
  disabled?: boolean;
14
14
  required?: boolean;
15
15
  register?: UseFormRegister<any>;
16
- setValue?: (...args: any[]) => void;
16
+ setvalue?: (...args: any[]) => void;
17
17
  children: React.ReactNode;
18
18
  validation?: typeof z;
19
19
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.27",
3
+ "version": "1.4.28",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",