sag_components 1.0.585 → 1.0.587
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.
|
@@ -50,40 +50,40 @@ const OneColumnContainer = props => {
|
|
|
50
50
|
height: height,
|
|
51
51
|
overflow: overflow
|
|
52
52
|
}, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.MainDiv, {
|
|
53
|
-
|
|
53
|
+
className: "mainDiv",
|
|
54
54
|
width: width,
|
|
55
55
|
height: height,
|
|
56
56
|
display: display,
|
|
57
57
|
gridTemplateColumns: gridTemplateColumns,
|
|
58
58
|
ref: nodeRef
|
|
59
59
|
}, !isLoading && showViewByBannerButton && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.BannerContainer, {
|
|
60
|
-
|
|
60
|
+
className: "BannerContainer",
|
|
61
61
|
right: disableInfo ? '15px' : '50px'
|
|
62
62
|
}, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.OutBanner, {
|
|
63
|
-
|
|
63
|
+
className: "OutBanner",
|
|
64
64
|
onClick: () => onBannerClick({
|
|
65
65
|
eventName: 'onBannerClick'
|
|
66
66
|
})
|
|
67
67
|
}, /*#__PURE__*/_react.default.createElement(_ExportIcon.ExportIcon, null), "View By Banner")), !isLoading && !hover && children, !disableInfo && !isLoading && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(_OneColumnContainer.IconContainer, {
|
|
68
|
-
|
|
68
|
+
className: "IconContainer",
|
|
69
69
|
onMouseEnter: () => setHover(true),
|
|
70
70
|
onMouseLeave: () => setHover(false)
|
|
71
71
|
}, /*#__PURE__*/_react.default.createElement(_InfoIcon.InfoIcon, null)), hover && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextContainer, {
|
|
72
|
-
|
|
72
|
+
className: "InfoTextContainer",
|
|
73
73
|
width: width,
|
|
74
74
|
height: height
|
|
75
75
|
}, infoTitle && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTitleLabel, {
|
|
76
|
-
|
|
76
|
+
className: "InfoTitleLabel",
|
|
77
77
|
dangerouslySetInnerHTML: {
|
|
78
78
|
__html: infoTitle
|
|
79
79
|
}
|
|
80
80
|
}), /*#__PURE__*/_react.default.createElement(_OneColumnContainer.InfoTextLabel, {
|
|
81
|
-
|
|
81
|
+
className: "InfoTextLabel",
|
|
82
82
|
dangerouslySetInnerHTML: {
|
|
83
83
|
__html: infoText
|
|
84
84
|
}
|
|
85
85
|
}))), isLoading && /*#__PURE__*/_react.default.createElement(_OneColumnContainer.LoadingDiv, {
|
|
86
|
-
|
|
86
|
+
className: "loadingDiv"
|
|
87
87
|
}, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.SkeletonTheme, {
|
|
88
88
|
baseColor: "#EAEAEA"
|
|
89
89
|
}, /*#__PURE__*/_react.default.createElement(_reactLoadingSkeleton.default, {
|
|
@@ -9,10 +9,10 @@ var _taggedTemplateLiteral2 = _interopRequireDefault(require("@babel/runtime/hel
|
|
|
9
9
|
var _styledComponents = _interopRequireDefault(require("styled-components"));
|
|
10
10
|
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6, _templateObject7, _templateObject8, _templateObject9;
|
|
11
11
|
const ControlsContainer = exports.ControlsContainer = _styledComponents.default.div(_templateObject || (_templateObject = (0, _taggedTemplateLiteral2.default)(["\n position: relative;\n font-family: \"Poppins\", sans-serif;\n color: ", ";\n width: ", ";\n height: ", ";\n background-color: white;\n box-shadow: ", ";\n border-radius: 12px;\n"])), props => props.textColor, props => props.width, props => props.height, props => props.showBorderShadow ? '0px 0px 20px 0px rgba(0, 0, 0, 0.2)' : null);
|
|
12
|
-
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between; \n padding:
|
|
12
|
+
const TitleAndValueContainer = exports.TitleAndValueContainer = _styledComponents.default.div(_templateObject2 || (_templateObject2 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between; \n padding: 0 20px; \n"])));
|
|
13
13
|
const ItemsContainer = exports.ItemsContainer = _styledComponents.default.div(_templateObject3 || (_templateObject3 = (0, _taggedTemplateLiteral2.default)(["\n display: grid;\n grid-template-columns: repeat(2, 1fr); /* Two columns */\n padding: 20px;\n gap: 10px;\n"])));
|
|
14
14
|
const ItemContainer = exports.ItemContainer = _styledComponents.default.div(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n flex-direction: column;\n flex-wrap: wrap;\n"])));
|
|
15
|
-
const Title = exports.Title = _styledComponents.default.h4(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size:
|
|
15
|
+
const Title = exports.Title = _styledComponents.default.h4(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 500;\n margin: 0;\n @media (max-width: 1536px) {\n font-size: 16px;\n }\n @media (max-width: 1366px) {\n font-size: 14px;\n }\n"])));
|
|
16
16
|
const ItemTitle = exports.ItemTitle = _styledComponents.default.h4(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 18px;\n font-weight: 500;\n margin: 0;\n @media (max-width: 1536px) {\n font-size: 14px;\n }\n @media (max-width: 1366px) {\n font-size: 12px;\n }\n"])));
|
|
17
17
|
const FormattedValue = exports.FormattedValue = _styledComponents.default.div(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n font-weight: 500;\n font-size: 40px;\n display: flex;\n align-items: baseline;\n gap: 2px;\n @media (max-width: 1536px) {\n font-size: 24px;\n }\n @media (max-width: 1366px) {\n font-size: 20px;\n }\n"])));
|
|
18
18
|
const OutBanner = exports.OutBanner = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n gap: 8px;\n align-items: center;\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);
|