sag_components 1.0.9 → 1.0.11

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.
@@ -11,12 +11,13 @@ var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/h
11
11
  var _react = _interopRequireWildcard(require("react"));
12
12
  var _OneColumnContainer = require("../OneColumnContainer.style");
13
13
  var _InfoIcon = require("./InfoIcon");
14
- var _excluded = ["className", "ref", "width", "height", "infoText"];
14
+ var _excluded = ["children", "className", "ref", "width", "height", "infoText"];
15
15
  /**
16
16
  * Primary UI component for user interaction
17
17
  */
18
18
  var OneColumnContainer = function OneColumnContainer(_ref) {
19
- var className = _ref.className,
19
+ var children = _ref.children,
20
+ className = _ref.className,
20
21
  ref = _ref.ref,
21
22
  width = _ref.width,
22
23
  height = _ref.height,
@@ -34,15 +35,7 @@ var OneColumnContainer = function OneColumnContainer(_ref) {
34
35
  ref: ref,
35
36
  width: width,
36
37
  height: height
37
- }, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
38
- clicked: clicked,
39
- width: width,
40
- height: height
41
- }, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextLabel, null, infoText)), /*#__PURE__*/_react.default.createElement(_OneColumnContainer.IconContainer, {
42
- onClick: onInfoClick
43
- }, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, {
44
- clicked: clicked
45
- })));
38
+ }, children);
46
39
  };
47
40
  exports.OneColumnContainer = OneColumnContainer;
48
41
  OneColumnContainer.defaultProps = {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.9",
3
+ "version": "1.0.11",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {
@@ -6,7 +6,7 @@ import { InfoIcon } from "./InfoIcon";
6
6
  /**
7
7
  * Primary UI component for user interaction
8
8
  */
9
- export const OneColumnContainer = ({ className,ref,width,height,infoText,...props }) => {
9
+ export const OneColumnContainer = ({ children,className,ref,width,height,infoText,...props }) => {
10
10
  const [clicked, setClicked] = useState(false);
11
11
 
12
12
  const onInfoClick = ()=>{
@@ -15,12 +15,13 @@ export const OneColumnContainer = ({ className,ref,width,height,infoText,...prop
15
15
 
16
16
  return (
17
17
  <StyledContainer className={className} ref={ref} width={width} height={height}>
18
- <InfoTextContainer clicked={clicked} width={width} height={height}>
18
+ {children}
19
+ {/* <InfoTextContainer clicked={clicked} width={width} height={height}>
19
20
  <InfoTextLabel>{infoText}</InfoTextLabel>
20
21
  </InfoTextContainer>
21
22
  <IconContainer onClick={onInfoClick}>
22
23
  <InfoIcon clicked={clicked} />
23
- </IconContainer>
24
+ </IconContainer> */}
24
25
  </StyledContainer>
25
26
  );
26
27
  };