sag_components 1.0.215 → 1.0.217
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.
|
@@ -19,7 +19,7 @@ var _TitleDescriptionStyle = require("./TitleDescription.style.js");
|
|
|
19
19
|
var _excluded = ["showRetailerIcon", "data", "viewCreativeOnClick", "width", "height", "textColor", "disabled"];
|
|
20
20
|
/*TitleDescription*/
|
|
21
21
|
var TitleDescription = function TitleDescription(_ref) {
|
|
22
|
-
var _data$objectivesDescr;
|
|
22
|
+
var _data$objectivesDescr, _data$eventDatesValue, _data$eventDatesValue2;
|
|
23
23
|
var _ref$showRetailerIcon = _ref.showRetailerIcon,
|
|
24
24
|
showRetailerIcon = _ref$showRetailerIcon === void 0 ? true : _ref$showRetailerIcon,
|
|
25
25
|
data = _ref.data,
|
|
@@ -134,11 +134,11 @@ var TitleDescription = function TitleDescription(_ref) {
|
|
|
134
134
|
id: "SubLineContainer"
|
|
135
135
|
}), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.SubLineContainer, {
|
|
136
136
|
id: "SubLineContainer"
|
|
137
|
-
}, /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodLabel, {
|
|
137
|
+
}, (data === null || data === void 0 ? void 0 : (_data$eventDatesValue = data.eventDatesValue) === null || _data$eventDatesValue === void 0 ? void 0 : _data$eventDatesValue.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodLabel, {
|
|
138
138
|
id: "PeriodLabel"
|
|
139
|
-
}, "Event Dates: "), /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodValue, {
|
|
139
|
+
}, "Event Dates: ") : "", (data === null || data === void 0 ? void 0 : (_data$eventDatesValue2 = data.eventDatesValue) === null || _data$eventDatesValue2 === void 0 ? void 0 : _data$eventDatesValue2.length) > 0 ? /*#__PURE__*/_react.default.createElement(_TitleDescriptionStyle.PeriodValue, {
|
|
140
140
|
id: "PeriodValue"
|
|
141
|
-
}, data.eventDatesValue))))));
|
|
141
|
+
}, data.eventDatesValue) : "")))));
|
|
142
142
|
};
|
|
143
143
|
exports.TitleDescription = TitleDescription;
|
|
144
144
|
var _default = TitleDescription;
|
|
@@ -186,7 +186,9 @@ var TotalBenchmarkBarchart = function TotalBenchmarkBarchart(_ref) {
|
|
|
186
186
|
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
187
187
|
dataKey: "formattedValue1",
|
|
188
188
|
position: "top",
|
|
189
|
-
fill: textColor
|
|
189
|
+
fill: textColor,
|
|
190
|
+
fontWeight: 400,
|
|
191
|
+
fontSize: "14px"
|
|
190
192
|
})), /*#__PURE__*/_react.default.createElement(_recharts.Bar, {
|
|
191
193
|
dataKey: "value2",
|
|
192
194
|
fill: getFormattedBarChartData()[0].color2,
|
|
@@ -197,7 +199,9 @@ var TotalBenchmarkBarchart = function TotalBenchmarkBarchart(_ref) {
|
|
|
197
199
|
}, /*#__PURE__*/_react.default.createElement(_recharts.LabelList, {
|
|
198
200
|
dataKey: "formattedValue2",
|
|
199
201
|
position: "top",
|
|
200
|
-
fill: textColor
|
|
202
|
+
fill: textColor,
|
|
203
|
+
fontWeight: 400,
|
|
204
|
+
fontSize: "14px"
|
|
201
205
|
}))), getFormattedBarChartData().length > 0 ? /*#__PURE__*/_react.default.createElement(_TotalBenchmarkBarchartStyle.BottomDetailsRowContainer, {
|
|
202
206
|
id: "BottomDetailsRowContainer"
|
|
203
207
|
}, /*#__PURE__*/_react.default.createElement(_TotalBenchmarkBarchartStyle.BottomDetailsRowTitle, {
|
|
@@ -32,9 +32,9 @@ var FormattedValue = _styledComponents.default.div(_templateObject7 || (_templat
|
|
|
32
32
|
exports.FormattedValue = FormattedValue;
|
|
33
33
|
var BenchmarkContainer = _styledComponents.default.div(_templateObject8 || (_templateObject8 = (0, _taggedTemplateLiteral2.default)(["\n margin-left: 0.7em;\n width: 5.35em;\n"])));
|
|
34
34
|
exports.BenchmarkContainer = BenchmarkContainer;
|
|
35
|
-
var BarchartContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n width: 14em;\n"])));
|
|
35
|
+
var BarchartContainer = _styledComponents.default.div(_templateObject9 || (_templateObject9 = (0, _taggedTemplateLiteral2.default)(["\n width: 14em;\n\n"])));
|
|
36
36
|
exports.BarchartContainer = BarchartContainer;
|
|
37
37
|
var BottomDetailsRowContainer = _styledComponents.default.div(_templateObject10 || (_templateObject10 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n align-items: flex-start;\n justify-content: center;\n text-align: center; \n\n"])));
|
|
38
38
|
exports.BottomDetailsRowContainer = BottomDetailsRowContainer;
|
|
39
|
-
var BottomDetailsRowTitle = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center; \n margin-top: 0.2em;\n width: 14em;\n font-weight: 400;\n font-size:
|
|
39
|
+
var BottomDetailsRowTitle = _styledComponents.default.div(_templateObject11 || (_templateObject11 = (0, _taggedTemplateLiteral2.default)(["\n display: flex;\n justify-content: center; \n margin-top: 0.2em;\n width: 14em;\n font-weight: 400;\n font-size: 14px;\n"])));
|
|
40
40
|
exports.BottomDetailsRowTitle = BottomDetailsRowTitle;
|