@gustavo-valsechi/client 1.4.78 → 1.4.79

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.
@@ -53,6 +53,7 @@ const TargetProviderContainer = ({ children }) => {
53
53
  var _a2, _b;
54
54
  const targetElement = import_lodash.default.find(containerRef.current, (data, i) => i === index);
55
55
  if (!targetElement) return;
56
+ console.log(index, "onClick");
56
57
  if (targetElement.style.opacity === "1") {
57
58
  targetElement.style.opacity = "0";
58
59
  targetElement.style.zIndex = "-1";
@@ -127,7 +128,12 @@ const TargetProviderContainer = ({ children }) => {
127
128
  ref: (element) => inputRef.current[index] = element,
128
129
  onBlur: () => {
129
130
  var _a;
130
- return !inside && ((_a = containerRef.current[index]) == null ? void 0 : _a.click());
131
+ if (inside) return;
132
+ console.log(index, "onBlur");
133
+ (_a = containerRef.current[index]) == null ? void 0 : _a.click();
134
+ },
135
+ onFocus: () => {
136
+ console.log(index, "onFocus");
131
137
  }
132
138
  }
133
139
  )
@@ -19,6 +19,7 @@ const TargetProviderContainer = ({ children }) => {
19
19
  var _a2, _b;
20
20
  const targetElement = _.find(containerRef.current, (data, i) => i === index);
21
21
  if (!targetElement) return;
22
+ console.log(index, "onClick");
22
23
  if (targetElement.style.opacity === "1") {
23
24
  targetElement.style.opacity = "0";
24
25
  targetElement.style.zIndex = "-1";
@@ -93,7 +94,12 @@ const TargetProviderContainer = ({ children }) => {
93
94
  ref: (element) => inputRef.current[index] = element,
94
95
  onBlur: () => {
95
96
  var _a;
96
- return !inside && ((_a = containerRef.current[index]) == null ? void 0 : _a.click());
97
+ if (inside) return;
98
+ console.log(index, "onBlur");
99
+ (_a = containerRef.current[index]) == null ? void 0 : _a.click();
100
+ },
101
+ onFocus: () => {
102
+ console.log(index, "onFocus");
97
103
  }
98
104
  }
99
105
  )
@@ -1 +1 @@
1
- export {};
1
+ import "./setup.mts";
@@ -0,0 +1 @@
1
+ export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.78",
3
+ "version": "1.4.79",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -16,7 +16,7 @@
16
16
  "build:assets": "node scripts/assets.js",
17
17
  "build": "npm run clean && npm run build:js && npm run build:types && npm run build:assets && npm run build:remodel",
18
18
  "commit": "npm run build && npm version patch --no-git-tag-version && npm publish --access public",
19
- "dev": "vite --open test/index.html"
19
+ "dev": "vite"
20
20
  },
21
21
  "peerDependencies": {
22
22
  "react": "18.3.1",
@@ -59,7 +59,8 @@
59
59
  "styled-components": "6.1.12",
60
60
  "tsc-alias": "1.8.16",
61
61
  "typescript": "5.5.4",
62
- "vite": "^7.2.1"
62
+ "vite": "^7.2.1",
63
+ "vitest": "^4.0.8"
63
64
  },
64
65
  "publishConfig": {
65
66
  "access": "public"