sag_components 1.0.782 → 1.0.783

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.
@@ -51,14 +51,14 @@ const BannerEventBoxList = props => {
51
51
  width: width,
52
52
  height: height
53
53
  }, data.map(item => /*#__PURE__*/_react.default.createElement(_BannerEventBox.default, {
54
- key: item.banner,
54
+ key: item === null || item === void 0 ? void 0 : item.banner,
55
55
  height: "100%",
56
56
  width: bannerWidth,
57
- banner: item.banner,
58
- description: item.description,
59
- dates: item.dates,
60
- data: item.data,
61
- onInfoClick: () => retailerFile(item.banner)
57
+ banner: item === null || item === void 0 ? void 0 : item.banner,
58
+ description: item === null || item === void 0 ? void 0 : item.description,
59
+ dates: item === null || item === void 0 ? void 0 : item.dates,
60
+ data: item === null || item === void 0 ? void 0 : item.data,
61
+ onInfoClick: () => retailerFile(item === null || item === void 0 ? void 0 : item.banner)
62
62
  })))));
63
63
  };
64
64
  BannerEventBoxList.defaultProps = {
@@ -88,7 +88,7 @@ const TotalDoughnutChart = props => {
88
88
  height: height,
89
89
  width: width,
90
90
  textcolor: textcolor
91
- }, legendData.length === 0 ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
91
+ }, legendData.length === 0 || legendData.every(item => item.value === undefined || item.value === null) ? /*#__PURE__*/_react.default.createElement(_NoDataFoundMessage.NoDataFoundMessage, {
92
92
  noDataText: noDataText
93
93
  }) : /*#__PURE__*/_react.default.createElement(_TotalDoughnutChart.Controls, {
94
94
  id: "Controls",
@@ -111,7 +111,7 @@ const TotalDoughnutChart = props => {
111
111
  }, legendData.map(row => /*#__PURE__*/_react.default.createElement(_recharts.Cell, {
112
112
  key: "cell-".concat(row.name),
113
113
  fill: row.color
114
- }))), !hideTitleAndValue && /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
114
+ }))), /*#__PURE__*/_react.default.createElement(_recharts.Tooltip, {
115
115
  content: /*#__PURE__*/_react.default.createElement(CustomTooltip, {
116
116
  value: value,
117
117
  isPercent: isPercent
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sag_components",
3
- "version": "1.0.782",
3
+ "version": "1.0.783",
4
4
  "description": "",
5
5
  "main": "dist/index.js",
6
6
  "scripts": {