@gustavo-valsechi/client 1.4.215 → 1.4.216

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.
@@ -52,10 +52,8 @@ function InputSelect(props) {
52
52
  const inputValue = ((_a = props.watch) == null ? void 0 : _a.call(props, props.name)) || "";
53
53
  const value = ((_b = props.options) == null ? void 0 : _b[inputValue]) || /* @__PURE__ */ (0, import_jsx_runtime.jsx)("div", { className: "input-label-value-placeholder", children: "selecione" });
54
54
  (0, import_react.useEffect)(() => {
55
- var _a2, _b2;
55
+ var _a2;
56
56
  if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current) || !Object.keys(props.options || {}).length) return;
57
- console.log("OPTIONS");
58
- console.log(((_a2 = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0);
59
57
  target.add({
60
58
  ref: inputRef,
61
59
  component: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
@@ -64,7 +62,7 @@ function InputSelect(props) {
64
62
  ...props,
65
63
  inputRef,
66
64
  register,
67
- width: ((_b2 = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _b2.offsetWidth) || 0
65
+ width: ((_a2 = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0
68
66
  }
69
67
  )
70
68
  });
@@ -19,10 +19,8 @@ function InputSelect(props) {
19
19
  const inputValue = ((_a = props.watch) == null ? void 0 : _a.call(props, props.name)) || "";
20
20
  const value = ((_b = props.options) == null ? void 0 : _b[inputValue]) || /* @__PURE__ */ jsx("div", { className: "input-label-value-placeholder", children: "selecione" });
21
21
  useEffect(() => {
22
- var _a2, _b2;
22
+ var _a2;
23
23
  if (!(inputRef == null ? void 0 : inputRef.current) || !(containerRef == null ? void 0 : containerRef.current) || !Object.keys(props.options || {}).length) return;
24
- console.log("OPTIONS");
25
- console.log(((_a2 = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0);
26
24
  target.add({
27
25
  ref: inputRef,
28
26
  component: /* @__PURE__ */ jsx(
@@ -31,7 +29,7 @@ function InputSelect(props) {
31
29
  ...props,
32
30
  inputRef,
33
31
  register,
34
- width: ((_b2 = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _b2.offsetWidth) || 0
32
+ width: ((_a2 = containerRef == null ? void 0 : containerRef.current) == null ? void 0 : _a2.offsetWidth) || 0
35
33
  }
36
34
  )
37
35
  });
@@ -154,7 +154,9 @@ const TargetProviderContainer = ({ children }) => {
154
154
  };
155
155
  const add = (target) => {
156
156
  const exists = import_lodash.default.find(memory, (data) => data.ref.current === target.ref.current);
157
+ console.log("exists", exists);
157
158
  if (exists) return;
159
+ console.log("target", target);
158
160
  memory.push(target);
159
161
  setTargets(memory);
160
162
  };
@@ -120,7 +120,9 @@ const TargetProviderContainer = ({ children }) => {
120
120
  };
121
121
  const add = (target) => {
122
122
  const exists = _.find(memory, (data) => data.ref.current === target.ref.current);
123
+ console.log("exists", exists);
123
124
  if (exists) return;
125
+ console.log("target", target);
124
126
  memory.push(target);
125
127
  setTargets(memory);
126
128
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.215",
3
+ "version": "1.4.216",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",