sag_components 1.0.588 → 1.0.589
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.
|
@@ -34,7 +34,8 @@ const OneColumnContainer = props => {
|
|
|
34
34
|
infoText,
|
|
35
35
|
disableInfo,
|
|
36
36
|
showViewByBannerButton,
|
|
37
|
-
onBannerClick
|
|
37
|
+
onBannerClick,
|
|
38
|
+
columnTitle
|
|
38
39
|
} = props;
|
|
39
40
|
const [hover, setHover] = (0, _react.useState)(false);
|
|
40
41
|
const [offsetWidth, setOffsetWidth] = (0, _react.useState)(200);
|
|
@@ -56,7 +57,9 @@ const OneColumnContainer = props => {
|
|
|
56
57
|
display: display,
|
|
57
58
|
gridTemplateColumns: gridTemplateColumns,
|
|
58
59
|
ref: nodeRef
|
|
59
|
-
}, !isLoading &&
|
|
60
|
+
}, !isLoading && columnTitle && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.ColumnTitle, {
|
|
61
|
+
className: "ColumnTitle"
|
|
62
|
+
}, columnTitle), !isLoading && showViewByBannerButton && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.BannerContainer, {
|
|
60
63
|
className: "BannerContainer",
|
|
61
64
|
right: disableInfo ? '15px' : '50px'
|
|
62
65
|
}, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.OutBanner, {
|
|
@@ -64,7 +67,10 @@ const OneColumnContainer = props => {
|
|
|
64
67
|
onClick: () => onBannerClick({
|
|
65
68
|
eventName: 'onBannerClick'
|
|
66
69
|
})
|
|
67
|
-
}, /*#__PURE__*/_react.default.createElement(_ExportIcon.ExportIcon, null), "View By Banner")), !isLoading && !hover &&
|
|
70
|
+
}, /*#__PURE__*/_react.default.createElement(_ExportIcon.ExportIcon, null), "View By Banner")), !isLoading && !hover && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.ChildrenContainer, {
|
|
71
|
+
className: "ChildrenContainer",
|
|
72
|
+
padding: columnTitle || showViewByBannerButton ? '30px 0 0 0' : '0'
|
|
73
|
+
}, children), !disableInfo && !isLoading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.IconContainer, {
|
|
68
74
|
className: "IconContainer",
|
|
69
75
|
onMouseEnter: () => setHover(true),
|
|
70
76
|
onMouseLeave: () => setHover(false)
|
|
@@ -117,6 +123,7 @@ OneColumnContainer.defaultProps = {
|
|
|
117
123
|
infoText: '',
|
|
118
124
|
disableInfo: false,
|
|
119
125
|
showViewByBannerButton: false,
|
|
120
|
-
onBannerClick: () => {}
|
|
126
|
+
onBannerClick: () => {},
|
|
127
|
+
columnTitle: ''
|
|
121
128
|
};
|
|
122
129
|
var _default = exports.default = OneColumnContainer;
|
|
@@ -4,16 +4,18 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.StyledContainer = exports.OutBanner = exports.OneColumnContainerMainDiv = exports.LoadingDiv = exports.InfoTitleLabel = exports.InfoTextLabel = exports.InfoTextContainer = exports.IconContainer = exports.BannerContainer = void 0;
|
|
7
|
+
exports.StyledContainer = exports.OutBanner = exports.OneColumnContainerMainDiv = exports.LoadingDiv = exports.InfoTitleLabel = exports.InfoTextLabel = exports.InfoTextContainer = exports.IconContainer = exports.ColumnTitle = exports.ChildrenContainer = exports.BannerContainer = void 0;
|
|
8
8
|
var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/helpers/esm/taggedTemplateLiteral"));
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
10
|
+
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9, _templateObject10, _templateObject11;
|
|
11
11
|
const StyledContainer = exports.StyledContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n width: ", ";\n height: ", ";\n box-shadow: 0px 0px 20px 0px rgba(0, 0, 0, 0.1);\n display: flex;\n position: relative;\n border-radius: 10px;\n align-items: center;\n justify-content: center;\n overflow: ", ";\n background-color: white;\n"])), props => props.width, props => props.height, props => props.overflow);
|
|
12
12
|
const InfoTextContainer = exports.InfoTextContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n font-family: \"Poppins\", sans-serif;\n width: ", ";\n height: ", ";\n display: flex;\n flex-direction: column;\n justify-content: center;\n background: white;\n margin: 15px 20px 0px 20px;\n"])), props => props.width, props => props.height);
|
|
13
13
|
const InfoTitleLabel = exports.InfoTitleLabel = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 600;\n color: black;\n margin: 0px 0px 10px 0px;\n font-size: 18px;\n line-height: 32px;\n overflow: hidden;\n"])));
|
|
14
14
|
const InfoTextLabel = exports.InfoTextLabel = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n color: black;\n font-size: 14px;\n line-height: 20px;\n font-weight: 400;\n overflow: hidden;\n"])));
|
|
15
|
-
const
|
|
16
|
-
const
|
|
17
|
-
const
|
|
18
|
-
const
|
|
19
|
-
const
|
|
15
|
+
const ColumnTitle = exports.ColumnTitle = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n top: 18px;\n left: 20px;\n width: 85%;\n height: 18px;\n color: black;\n font-family: \"Poppins\", sans-serif;\n font-size: 20px;\n font-weight: 400;\n overflow: hidden;\n display: flex;\n flex-wrap: nowrap; \n align-items: center; \n justify-content: flex-start;\n"])));
|
|
16
|
+
const IconContainer = exports.IconContainer = _styledComponents.default.div(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n width: 20px;\n height: 20px;\n top: 10px;\n right: 10px;\n position: absolute;\n"])));
|
|
17
|
+
const LoadingDiv = exports.LoadingDiv = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n margin-top: 20px;\n display: flex;\n flex-direction: column;\n justify-content: space-evenly;\n align-items: center;\n width: 76%;\n height: 65%;\n"])));
|
|
18
|
+
const OneColumnContainerMainDiv = exports.OneColumnContainerMainDiv = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n align-items: flex-start;\n justify-content: center; \n background-color: white;\n width: ", ";\n height: ", ";\n display: ", ";\n //padding: ", ";\n grid-template-columns: ", ";\n"])), props => props.width, props => props.height, props => props.display, props => props.padding || 0, props => props.gridTemplateColumns);
|
|
19
|
+
const BannerContainer = exports.BannerContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n position: absolute;\n width: 140px;\n height: 20px;\n top: 20px;\n right: ", "; \n font-family: \"Poppins\", sans-serif;\n user-select: none;\n"])), props => props.right);
|
|
20
|
+
const OutBanner = exports.OutBanner = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)([" \n display: flex;\n justify-content: flex-end;\n align-items: center; \n gap: 8px; \n font-size: 14px;\n font-weight: 400;\n color: ", ";\n cursor: pointer;\n @media (max-width: 1536px) {\n font-size: 13px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n > svg {\n width: 14px;\n height: 14px;\n @media (max-width: 1536px) {\n width: 13px;\n height: 13px;\n }\n @media (max-width: 1366px) {\n width: 12px;\n height: 12px;\n }\n }\n"])), props => props.textColor);
|
|
21
|
+
const ChildrenContainer = exports.ChildrenContainer = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: block;\n margin: 0;\n padding: ", ";\n"])), props => props.padding || 0);
|