sag_components 1.0.13 → 1.0.15
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.
|
@@ -35,6 +35,7 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
|
|
|
35
35
|
var _useDroppable = (0, _core.useDroppable)({
|
|
36
36
|
refId: refId
|
|
37
37
|
}),
|
|
38
|
+
over = _useDroppable.over,
|
|
38
39
|
isOver = _useDroppable.isOver,
|
|
39
40
|
setNodeRef = _useDroppable.setNodeRef;
|
|
40
41
|
var onInfoClick = function onInfoClick() {
|
|
@@ -45,7 +46,7 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
|
|
|
45
46
|
ref: setNodeRef,
|
|
46
47
|
width: width,
|
|
47
48
|
height: height
|
|
48
|
-
}, children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
49
|
+
}, console.log("oneColOver ", over), children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
49
50
|
clicked: clicked,
|
|
50
51
|
width: width,
|
|
51
52
|
height: height
|
package/package.json
CHANGED
|
@@ -7,9 +7,9 @@ import classNames from "classnames";
|
|
|
7
7
|
/**
|
|
8
8
|
* Primary UI component for user interaction
|
|
9
9
|
*/
|
|
10
|
-
export const OneColumnContainer = ({ children,itemClass,overStyle,draggingStyle,droppedStyle,refId,width,height,infoText,...props }) => {
|
|
10
|
+
export const OneColumnContainer = ({ children,nodeRef,itemClass,overStyle,draggingStyle,droppedStyle,refId,width,height,infoText,...props }) => {
|
|
11
11
|
const [clicked, setClicked] = useState(false);
|
|
12
|
-
const { isOver, setNodeRef } = useDroppable({
|
|
12
|
+
const { over,isOver, setNodeRef } = useDroppable({
|
|
13
13
|
refId,
|
|
14
14
|
});
|
|
15
15
|
const onInfoClick = ()=>{
|
|
@@ -22,8 +22,10 @@ export const OneColumnContainer = ({ children,itemClass,overStyle,draggingStyle,
|
|
|
22
22
|
overStyle,
|
|
23
23
|
draggingStyle,
|
|
24
24
|
droppedStyle
|
|
25
|
-
)}
|
|
25
|
+
)} width={width} height={height}>
|
|
26
|
+
<div ref={nodeRef}>
|
|
26
27
|
{children}
|
|
28
|
+
</div>
|
|
27
29
|
<InfoTextContainer clicked={clicked} width={width} height={height}>
|
|
28
30
|
<InfoTextLabel>{infoText}</InfoTextLabel>
|
|
29
31
|
</InfoTextContainer>
|