sag_components 2.0.0-beta64 → 2.0.0-beta65

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.
package/dist/index.js CHANGED
@@ -31547,7 +31547,7 @@ const SeparatedLineBarChart = ({
31547
31547
  }
31548
31548
  }, /*#__PURE__*/React__default["default"].createElement("div", {
31549
31549
  style: {
31550
- height: "40%"
31550
+ height: "25%"
31551
31551
  }
31552
31552
  }, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
31553
31553
  width: "100%",
@@ -31604,7 +31604,7 @@ const SeparatedLineBarChart = ({
31604
31604
  hide: true
31605
31605
  })))), /*#__PURE__*/React__default["default"].createElement("div", {
31606
31606
  style: {
31607
- height: "60%"
31607
+ height: "70%"
31608
31608
  }
31609
31609
  }, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
31610
31610
  width: "100%",
@@ -31640,7 +31640,7 @@ const SeparatedLineBarChart = ({
31640
31640
  }, /*#__PURE__*/React__default["default"].createElement(recharts.LabelList, {
31641
31641
  dataKey: "inc_sales",
31642
31642
  position: "top",
31643
- formatter: value => `${value / 1000}k`,
31643
+ formatter: value => `$${getFormattedValue(value)}${getFormattedUnits(value)}`,
31644
31644
  fill: "#212121",
31645
31645
  fontSize: 12,
31646
31646
  fontWeight: "400",
@@ -31651,10 +31651,11 @@ const SeparatedLineBarChart = ({
31651
31651
  stroke: "#212121",
31652
31652
  startIndex: 0,
31653
31653
  endIndex: Math.min(6, processedData.length - 1),
31654
- y: 330,
31655
31654
  travellerWidth: 10,
31656
31655
  tickFormatter: (value, index) => index + 1
31657
- })), /*#__PURE__*/React__default["default"].createElement("div", null, /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
31656
+ })), /*#__PURE__*/React__default["default"].createElement("div", null)), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
31657
+ width: "100%",
31658
+ height: "40px",
31658
31659
  legendData: [{
31659
31660
  iconColor: "#CCDCDD",
31660
31661
  iconType: "Square",
@@ -31664,7 +31665,7 @@ const SeparatedLineBarChart = ({
31664
31665
  iconType: "LegendUnionIcon",
31665
31666
  title: "INC Sales ROI"
31666
31667
  }]
31667
- })))));
31668
+ })));
31668
31669
  };
31669
31670
 
31670
31671
  function SingleChart({
@@ -31722,9 +31723,14 @@ function SingleChart({
31722
31723
  if (!data) return null;
31723
31724
  return /*#__PURE__*/React__default["default"].createElement(TooltipContainer, null, /*#__PURE__*/React__default["default"].createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React__default["default"].createElement(TooltipText, null, `${data.typeTitle}: ${getFormattedValue(data.value)}${getFormattedUnits(data.value)}`));
31724
31725
  };
31725
- return /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
31726
- width: width,
31727
- height: height
31726
+ return /*#__PURE__*/React__default["default"].createElement("div", {
31727
+ style: {
31728
+ width: "100%",
31729
+ height: "100%"
31730
+ }
31731
+ }, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
31732
+ width: "100%",
31733
+ height: "95%"
31728
31734
  }, /*#__PURE__*/React__default["default"].createElement(recharts.ComposedChart, {
31729
31735
  data: dataWithIndex,
31730
31736
  margin: {
@@ -31770,9 +31776,10 @@ function SingleChart({
31770
31776
  height: 30,
31771
31777
  travellerWidth: 10,
31772
31778
  startIndex: 0,
31773
- endIndex: Math.min(6, barData.length - 1),
31774
- y: 380
31775
- })), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
31779
+ endIndex: Math.min(6, barData.length - 1)
31780
+ }))), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
31781
+ width: "100%",
31782
+ height: "40px",
31776
31783
  legendData: [{
31777
31784
  iconColor: "#CCDCDD",
31778
31785
  iconType: "Square",
@@ -32076,15 +32083,15 @@ function InnerBarChart({
32076
32083
  const label = payload.value;
32077
32084
 
32078
32085
  // Split the label into chunks of words
32079
- const words = label.split(' ');
32086
+ const words = label.split(" ");
32080
32087
  const chunks = [];
32081
- let currentChunk = '';
32088
+ let currentChunk = "";
32082
32089
  words.forEach(word => {
32083
32090
  if (currentChunk.length + word.length > 15) {
32084
32091
  chunks.push(currentChunk.trim());
32085
32092
  currentChunk = word;
32086
32093
  } else {
32087
- currentChunk += ' ' + word;
32094
+ currentChunk += " " + word;
32088
32095
  }
32089
32096
  });
32090
32097
  if (currentChunk) {
@@ -32106,9 +32113,14 @@ function InnerBarChart({
32106
32113
  dy: i === 0 ? "0.71em" : "1.2em"
32107
32114
  }, chunk))));
32108
32115
  };
32109
- return /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
32116
+ return /*#__PURE__*/React__default["default"].createElement("div", {
32117
+ style: {
32118
+ width: "100%",
32119
+ height: "100%"
32120
+ }
32121
+ }, /*#__PURE__*/React__default["default"].createElement(recharts.ResponsiveContainer, {
32110
32122
  width: "100%",
32111
- height: "100%"
32123
+ height: "95%"
32112
32124
  }, /*#__PURE__*/React__default["default"].createElement(recharts.BarChart, {
32113
32125
  data: brushInnerBarData,
32114
32126
  margin: {
@@ -32140,7 +32152,9 @@ function InnerBarChart({
32140
32152
  travellerWidth: 10,
32141
32153
  startIndex: 0,
32142
32154
  endIndex: Math.min(6, brushInnerBarData.length - 1)
32143
- })), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
32155
+ }))), /*#__PURE__*/React__default["default"].createElement(PerformanceAnalyticsLegend, {
32156
+ width: "100%",
32157
+ height: "40px",
32144
32158
  legendData: [{
32145
32159
  iconColor: "#CCDCDD",
32146
32160
  iconType: "Square",