sag_components 1.0.9 → 1.0.10
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
|
|
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,7 +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
|
+
}, children, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
38
39
|
clicked: clicked,
|
|
39
40
|
width: width,
|
|
40
41
|
height: height
|
package/package.json
CHANGED
|
@@ -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,6 +15,7 @@ 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
|
+
{children}
|
|
18
19
|
<InfoTextContainer clicked={clicked} width={width} height={height}>
|
|
19
20
|
<InfoTextLabel>{infoText}</InfoTextLabel>
|
|
20
21
|
</InfoTextContainer>
|