sag_components 1.0.14 → 1.0.16

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.
@@ -13,12 +13,13 @@ var _OneColumnContainer = require("../OneColumnContainer.style");
13
13
  var _InfoIcon = require("./InfoIcon");
14
14
  var _core = require("@dnd-kit/core");
15
15
  var _classnames = _interopRequireDefault(require("classnames"));
16
- var _excluded = ["children", "itemClass", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
16
+ var _excluded = ["children", "nodeRef", "itemClass", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
17
17
  /**
18
18
  * Primary UI component for user interaction
19
19
  */
20
20
  var OneColumnContainer = function OneColumnContainer(_ref) {
21
21
  var children = _ref.children,
22
+ nodeRef = _ref.nodeRef,
22
23
  itemClass = _ref.itemClass,
23
24
  overStyle = _ref.overStyle,
24
25
  draggingStyle = _ref.draggingStyle,
@@ -43,10 +44,11 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
43
44
  };
44
45
  return /*#__PURE__*/_react.default.createElement(_OneColumnContainer.StyledContainer, {
45
46
  className: (0, _classnames.default)(itemClass, overStyle, draggingStyle, droppedStyle),
46
- ref: setNodeRef,
47
47
  width: width,
48
48
  height: height
49
- }, console.log("oneColOver ", over), children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
49
+ }, /*#__PURE__*/_react.default.createElement("div", {
50
+ ref: nodeRef
51
+ }, children), /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
50
52
  clicked: clicked,
51
53
  width: width,
52
54
  height: height
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -7,7 +7,7 @@ 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
12
  const { over,isOver, setNodeRef } = useDroppable({
13
13
  refId,
@@ -22,9 +22,10 @@ export const OneColumnContainer = ({ children,itemClass,overStyle,draggingStyle,
22
22
  overStyle,
23
23
  draggingStyle,
24
24
  droppedStyle
25
- )} ref={setNodeRef} width={width} height={height}>
26
- {console.log("oneColOver ",over)}
25
+ )} width={width} height={height}>
26
+ <div ref={nodeRef}>
27
27
  {children}
28
+ </div>
28
29
  <InfoTextContainer clicked={clicked} width={width} height={height}>
29
30
  <InfoTextLabel>{infoText}</InfoTextLabel>
30
31
  </InfoTextContainer>