@gustavo-valsechi/client 1.4.42 → 1.4.43

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.
@@ -48,8 +48,7 @@ const TargetProviderContainer = ({ children }) => {
48
48
  if (!element) return;
49
49
  element.addEventListener("click", () => {
50
50
  const newTargets = [...targets];
51
- const coords = getCoords(element);
52
- newTargets.splice(index, 1, { ...target, show: !target.show, coords });
51
+ newTargets.splice(index, 1, { ...target, show: !target.show });
53
52
  setTargets(newTargets);
54
53
  });
55
54
  });
@@ -14,8 +14,7 @@ const TargetProviderContainer = ({ children }) => {
14
14
  if (!element) return;
15
15
  element.addEventListener("click", () => {
16
16
  const newTargets = [...targets];
17
- const coords = getCoords(element);
18
- newTargets.splice(index, 1, { ...target, show: !target.show, coords });
17
+ newTargets.splice(index, 1, { ...target, show: !target.show });
19
18
  setTargets(newTargets);
20
19
  });
21
20
  });
@@ -35,6 +35,10 @@ var import_styled_components = __toESM(require("styled-components"));
35
35
  const Container = import_styled_components.default.div`
36
36
  position: absolute;
37
37
  z-index: 10;
38
+
39
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
40
+ width: 100%;
41
+ }
38
42
  `;
39
43
  // Annotate the CommonJS export names for ESM import in node:
40
44
  0 && (module.exports = {
@@ -2,6 +2,10 @@ import styled from "styled-components";
2
2
  const Container = styled.div`
3
3
  position: absolute;
4
4
  z-index: 10;
5
+
6
+ @media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
7
+ width: 100%;
8
+ }
5
9
  `;
6
10
  export {
7
11
  Container
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gustavo-valsechi/client",
3
- "version": "1.4.42",
3
+ "version": "1.4.43",
4
4
  "main": "dist/index.js",
5
5
  "module": "dist/index.js",
6
6
  "types": "dist/index.d.ts",