@gustavo-valsechi/client 1.4.56 → 1.4.58

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.
@@ -40,11 +40,13 @@ var import_lodash = __toESM(require("lodash"));
40
40
  var Types = __toESM(require("./types"));
41
41
  __reExport(components_exports, require("./types"), module.exports);
42
42
  function Component(props) {
43
+ console.log("COMPONENTE RENDERIZADO");
43
44
  const renderComponent = (config) => {
44
45
  const ComponentElement = Types[config.type];
45
46
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(ComponentElement, { ...config.props });
46
47
  };
47
48
  const renderRow = (components) => {
49
+ console.log(components);
48
50
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_styles.RowContainer, { children: import_lodash.default.map(
49
51
  components,
50
52
  (data, index) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react.Fragment, { children: renderComponent(data) }, index)
@@ -6,11 +6,13 @@ import _ from "lodash";
6
6
  import * as Types from "./types";
7
7
  export * from "./types";
8
8
  function Component(props) {
9
+ console.log("COMPONENTE RENDERIZADO");
9
10
  const renderComponent = (config) => {
10
11
  const ComponentElement = Types[config.type];
11
12
  return /* @__PURE__ */ jsx(ComponentElement, { ...config.props });
12
13
  };
13
14
  const renderRow = (components) => {
15
+ console.log(components);
14
16
  return /* @__PURE__ */ jsx(RowContainer, { children: _.map(
15
17
  components,
16
18
  (data, index) => /* @__PURE__ */ jsx(Fragment, { children: renderComponent(data) }, index)
@@ -91,6 +91,7 @@ function Form(props) {
91
91
  inputType = import_lodash.default.includes(inputType, "Input") ? inputType : `Input${inputType}`;
92
92
  const component2 = Types[inputType];
93
93
  const ComponentType = component2 || Types.InputText;
94
+ console.log(data);
94
95
  return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
95
96
  ComponentType,
96
97
  {
@@ -109,6 +110,7 @@ function Form(props) {
109
110
  await props.onSubmit(data);
110
111
  setSubmitting(false);
111
112
  };
113
+ console.log("FORM RENDERIZADO");
112
114
  return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_styles.Container, { ref: formRef, onSubmit: handleSubmit(onSubmit), children: [
113
115
  import_lodash.default.map(
114
116
  props.inputs,
@@ -57,6 +57,7 @@ function Form(props) {
57
57
  inputType = _.includes(inputType, "Input") ? inputType : `Input${inputType}`;
58
58
  const component2 = Types[inputType];
59
59
  const ComponentType = component2 || Types.InputText;
60
+ console.log(data);
60
61
  return /* @__PURE__ */ jsx(
61
62
  ComponentType,
62
63
  {
@@ -75,6 +76,7 @@ function Form(props) {
75
76
  await props.onSubmit(data);
76
77
  setSubmitting(false);
77
78
  };
79
+ console.log("FORM RENDERIZADO");
78
80
  return /* @__PURE__ */ jsxs(Container, { ref: formRef, onSubmit: handleSubmit(onSubmit), children: [
79
81
  _.map(
80
82
  props.inputs,
@@ -47,7 +47,6 @@ function InputSelect(props) {
47
47
  const [focus, setFocus] = (0, import_react.useState)(false);
48
48
  const register = (props.register || ((name) => ({})))(props.name || "");
49
49
  (0, import_react.useEffect)(() => {
50
- console.log("AQQQQQQ", props.name);
51
50
  target.add({ ref: inputRef, component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_options.default, { option, ...props }) });
52
51
  return () => target.remove(inputRef);
53
52
  }, []);
@@ -14,7 +14,6 @@ function InputSelect(props) {
14
14
  const [focus, setFocus] = useState(false);
15
15
  const register = (props.register || ((name) => ({})))(props.name || "");
16
16
  useEffect(() => {
17
- console.log("AQQQQQQ", props.name);
18
17
  target.add({ ref: inputRef, component: /* @__PURE__ */ jsx(InputSelectOption, { option, ...props }) });
19
18
  return () => target.remove(inputRef);
20
19
  }, []);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.56",
3
+ "version": "1.4.58",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",