sag_components 1.0.24 → 1.0.25

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,7 +13,7 @@ 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", "nodeRef", "itemClass", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
16
+ var _excluded = ["children", "nodeRef", "itemClass", "divStyle", "overStyle", "draggingStyle", "droppedStyle", "refId", "width", "height", "infoText"];
17
17
  /**
18
18
  * Primary UI component for user interaction
19
19
  */
@@ -21,6 +21,7 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
21
21
  var children = _ref.children,
22
22
  nodeRef = _ref.nodeRef,
23
23
  itemClass = _ref.itemClass,
24
+ divStyle = _ref.divStyle,
24
25
  overStyle = _ref.overStyle,
25
26
  draggingStyle = _ref.draggingStyle,
26
27
  droppedStyle = _ref.droppedStyle,
@@ -41,13 +42,8 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
41
42
  width: width,
42
43
  height: height
43
44
  }, /*#__PURE__*/_react.default.createElement("div", {
44
- ref: nodeRef,
45
- style: {
46
- width: "100%",
47
- height: "100%",
48
- display: "grid",
49
- gridTemplateColumns: "repeat(2, 1fr)"
50
- }
45
+ className: (0, _classnames.default)(divStyle),
46
+ ref: nodeRef
51
47
  }, children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
52
48
  clicked: clicked,
53
49
  width: width,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.24",
3
+ "version": "1.0.25",
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,nodeRef,itemClass,overStyle,draggingStyle,droppedStyle,refId,width,height,infoText,...props }) => {
10
+ export const OneColumnContainer = ({ children,nodeRef,itemClass,divStyle,overStyle,draggingStyle,droppedStyle,refId,width,height,infoText,...props }) => {
11
11
  const [clicked, setClicked] = useState(false);
12
12
  const onInfoClick = ()=>{
13
13
  setClicked(!clicked)
@@ -21,13 +21,7 @@ export const OneColumnContainer = ({ children,nodeRef,itemClass,overStyle,draggi
21
21
  draggingStyle,
22
22
  children && droppedStyle
23
23
  )} width={width} height={height}>
24
- <div ref={nodeRef} style={{
25
-
26
- width: "100%",
27
- height: "100%",
28
- display: "grid",
29
- gridTemplateColumns: "repeat(2, 1fr)"
30
- }}>
24
+ <div className={classNames(divStyle)} ref={nodeRef} >
31
25
  {children}
32
26
  <InfoTextContainer clicked={clicked} width={width} height={height}>
33
27
  <InfoTextLabel>{infoText}</InfoTextLabel>