@gustavo-valsechi/client 1.4.71 → 1.4.73
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.
|
@@ -69,12 +69,14 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
69
69
|
import_lodash.default.forEach(containerRef.current, (element, index) => {
|
|
70
70
|
const config = import_lodash.default.find(show, (data) => data.index === index);
|
|
71
71
|
if (!config) {
|
|
72
|
-
element.style.
|
|
72
|
+
element.style.opacity = "0";
|
|
73
|
+
element.style.zIndex = "-1";
|
|
73
74
|
return;
|
|
74
75
|
}
|
|
75
76
|
element.style.top = `${config.coords.top}px`;
|
|
76
77
|
element.style.left = `${config.coords.left}px`;
|
|
77
|
-
element.style.
|
|
78
|
+
element.style.opacity = "1";
|
|
79
|
+
element.style.zIndex = "10";
|
|
78
80
|
});
|
|
79
81
|
}, [show, containerRef]);
|
|
80
82
|
const getCoords = (target) => {
|
|
@@ -35,12 +35,14 @@ const TargetProviderContainer = ({ children }) => {
|
|
|
35
35
|
_.forEach(containerRef.current, (element, index) => {
|
|
36
36
|
const config = _.find(show, (data) => data.index === index);
|
|
37
37
|
if (!config) {
|
|
38
|
-
element.style.
|
|
38
|
+
element.style.opacity = "0";
|
|
39
|
+
element.style.zIndex = "-1";
|
|
39
40
|
return;
|
|
40
41
|
}
|
|
41
42
|
element.style.top = `${config.coords.top}px`;
|
|
42
43
|
element.style.left = `${config.coords.left}px`;
|
|
43
|
-
element.style.
|
|
44
|
+
element.style.opacity = "1";
|
|
45
|
+
element.style.zIndex = "10";
|
|
44
46
|
});
|
|
45
47
|
}, [show, containerRef]);
|
|
46
48
|
const getCoords = (target) => {
|
|
@@ -35,7 +35,8 @@ module.exports = __toCommonJS(styles_exports);
|
|
|
35
35
|
var import_styled_components = __toESM(require("styled-components"));
|
|
36
36
|
const Container = import_styled_components.default.div`
|
|
37
37
|
position: absolute;
|
|
38
|
-
|
|
38
|
+
opacity: 0;
|
|
39
|
+
z-index: -1;
|
|
39
40
|
|
|
40
41
|
@media(max-width: ${({ theme }) => theme.mobileMaxWidth}) {
|
|
41
42
|
width: 100%;
|