sag_components 1.0.665 → 1.0.666
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.
|
@@ -23,7 +23,7 @@ const BannerEventBox = props => {
|
|
|
23
23
|
description,
|
|
24
24
|
dates,
|
|
25
25
|
data,
|
|
26
|
-
|
|
26
|
+
onInfoClick
|
|
27
27
|
} = props;
|
|
28
28
|
const [tooltipPos, setTooltipPos] = (0, _react.useState)({
|
|
29
29
|
x: 0,
|
|
@@ -61,6 +61,9 @@ const BannerEventBox = props => {
|
|
|
61
61
|
return null;
|
|
62
62
|
}
|
|
63
63
|
};
|
|
64
|
+
const onInfoClickHandler = () => {
|
|
65
|
+
onInfoClick();
|
|
66
|
+
};
|
|
64
67
|
const handleItemMouseEnter = (index, e) => {
|
|
65
68
|
const iconBounds = e.target.getBoundingClientRect();
|
|
66
69
|
setShowItemTooltip(prevState => {
|
|
@@ -80,7 +83,7 @@ const BannerEventBox = props => {
|
|
|
80
83
|
height: height,
|
|
81
84
|
width: width
|
|
82
85
|
}, /*#__PURE__*/_react.default.createElement(_BannerEventBox.TitleWrapper, null, formatedBanners(banner).icon, "|", /*#__PURE__*/_react.default.createElement(_BannerEventBox.CardTitle, null, formatedBanners(banner).name)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Description"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, description)), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Block, null, /*#__PURE__*/_react.default.createElement(_BannerEventBox.Headline, null, "Event Dates:"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.Text, null, dates.join(' - '))), /*#__PURE__*/_react.default.createElement(_BannerEventBox.MoreInfo, {
|
|
83
|
-
|
|
86
|
+
onClick: onInfoClickHandler()
|
|
84
87
|
}, "Creatives"), /*#__PURE__*/_react.default.createElement(_BannerEventBox.DetailsWrapper, null, data === null || data === void 0 ? void 0 : data.map((item, index) => {
|
|
85
88
|
var _item$items, _item$items2;
|
|
86
89
|
return item && /*#__PURE__*/_react.default.createElement(_react.default.Fragment, {
|
|
@@ -122,5 +125,5 @@ BannerEventBox.defaultProps = {
|
|
|
122
125
|
name: 'Product Lines',
|
|
123
126
|
items: ['coca', 'cola', 'spring']
|
|
124
127
|
}],
|
|
125
|
-
|
|
128
|
+
onInfoClick: () => {}
|
|
126
129
|
};
|
|
@@ -14,7 +14,7 @@ const CardTitle = exports.CardTitle = _styledComponents.default.h5(_templateObje
|
|
|
14
14
|
const Headline = exports.Headline = _styledComponents.default.h6(_templateObject4 || (_templateObject4 = (0, _taggedTemplateLiteral2.default)(["\n font-size: 12px;\n font-weight: 500;\n margin: 0;\n"])));
|
|
15
15
|
const Block = exports.Block = _styledComponents.default.div(_templateObject5 || (_templateObject5 = (0, _taggedTemplateLiteral2.default)(["\n margin-bottom: 12px;\n"])));
|
|
16
16
|
const Text = exports.Text = _styledComponents.default.p(_templateObject6 || (_templateObject6 = (0, _taggedTemplateLiteral2.default)(["\n color: #8B8989;\n font-size: 12px;\n font-weight: 400;\n margin: 0;\n"])));
|
|
17
|
-
const MoreInfo = exports.MoreInfo = _styledComponents.default.
|
|
17
|
+
const MoreInfo = exports.MoreInfo = _styledComponents.default.span(_templateObject7 || (_templateObject7 = (0, _taggedTemplateLiteral2.default)(["\n color: #229E38;\n font-size: 12px;\n font-weight: 400;\n text-decoration: underline;\n"])));
|
|
18
18
|
const DetailsWrapper = exports.DetailsWrapper = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: space-between;\n align-items: stretch;\n margin-top: 12px;\n"])));
|
|
19
19
|
const KeyBlock = exports.KeyBlock = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n /* position: relative; */\n"])));
|
|
20
20
|
const Key = exports.Key = _styledComponents.default.span(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: inline-flex;\n align-items: center;\n gap: 4px;\n font-size: 12px;\n font-weight: 500;\n"])));
|