@gustavo-valsechi/client 1.4.61 → 1.4.62

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.
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import styled from "styled-components";
2
3
  const Container = styled.div`
3
4
 
@@ -72,7 +72,7 @@ function InputSelect(props) {
72
72
  /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
73
73
  "input",
74
74
  {
75
- ...import_lodash.default.omit(props, ["className", "register", "mask", "setvalue"]),
75
+ ...import_lodash.default.omit(props, ["className", "register", "mask", "setValue"]),
76
76
  type: "text",
77
77
  maxLength: props.maxLength || 255,
78
78
  ...register,
@@ -39,7 +39,7 @@ function InputSelect(props) {
39
39
  /* @__PURE__ */ jsx(
40
40
  "input",
41
41
  {
42
- ..._.omit(props, ["className", "register", "mask", "setvalue"]),
42
+ ..._.omit(props, ["className", "register", "mask", "setValue"]),
43
43
  type: "text",
44
44
  maxLength: props.maxLength || 255,
45
45
  ...register,
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import styled from "styled-components";
2
3
  const setPosition = ({ position = "top", theme }, isBorder) => {
3
4
  const coord = isBorder ? "9" : "8";
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import styled from "styled-components";
2
3
  const Container = styled.div`
3
4
 
@@ -49,9 +49,7 @@ const TargetProviderContainer = ({ children }) => {
49
49
  const element = (_a = target.ref) == null ? void 0 : _a.current;
50
50
  if (!element) return;
51
51
  element.addEventListener("click", () => {
52
- console.log("showMemory", showMemory);
53
52
  const isShow = import_lodash.default.find(showMemory, (data) => data.index === index);
54
- console.log("isShow", isShow);
55
53
  if (isShow) {
56
54
  const showIndex = import_lodash.default.findIndex(showMemory, (data) => data.index === index);
57
55
  showMemory.splice(showIndex, 1);
@@ -63,6 +61,7 @@ const TargetProviderContainer = ({ children }) => {
63
61
  });
64
62
  });
65
63
  }, [targets]);
64
+ console.log(show);
66
65
  const getCoords = (target) => {
67
66
  const rect = target.getBoundingClientRect();
68
67
  const targetTop = rect.top + window.scrollY;
@@ -15,9 +15,7 @@ const TargetProviderContainer = ({ children }) => {
15
15
  const element = (_a = target.ref) == null ? void 0 : _a.current;
16
16
  if (!element) return;
17
17
  element.addEventListener("click", () => {
18
- console.log("showMemory", showMemory);
19
18
  const isShow = _.find(showMemory, (data) => data.index === index);
20
- console.log("isShow", isShow);
21
19
  if (isShow) {
22
20
  const showIndex = _.findIndex(showMemory, (data) => data.index === index);
23
21
  showMemory.splice(showIndex, 1);
@@ -29,6 +27,7 @@ const TargetProviderContainer = ({ children }) => {
29
27
  });
30
28
  });
31
29
  }, [targets]);
30
+ console.log(show);
32
31
  const getCoords = (target) => {
33
32
  const rect = target.getBoundingClientRect();
34
33
  const targetTop = rect.top + window.scrollY;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import styled from "styled-components";
2
3
  const Container = styled.div`
3
4
  position: absolute;
@@ -1,4 +1,5 @@
1
1
  "use strict";
2
+ "use client";
2
3
  var __create = Object.create;
3
4
  var __defProp = Object.defineProperty;
4
5
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
@@ -1,3 +1,4 @@
1
+ "use client";
1
2
  import styled from "styled-components";
2
3
  const Switcher = styled.div`
3
4
  width: 3rem;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.61",
3
+ "version": "1.4.62",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",