sag_components 2.0.0-beta63 → 2.0.0-beta64

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.esm.js CHANGED
@@ -31478,15 +31478,15 @@ const SeparatedLineBarChart = ({
31478
31478
  payload
31479
31479
  } = props;
31480
31480
  const label = payload.value;
31481
- const words = label.split(' ');
31481
+ const words = label.split(" ");
31482
31482
  const chunks = [];
31483
- let currentChunk = '';
31483
+ let currentChunk = "";
31484
31484
  words.forEach(word => {
31485
31485
  if (currentChunk.length + word.length > 15) {
31486
31486
  chunks.push(currentChunk.trim());
31487
31487
  currentChunk = word;
31488
31488
  } else {
31489
- currentChunk += (currentChunk ? ' ' : '') + word;
31489
+ currentChunk += (currentChunk ? " " : "") + word;
31490
31490
  }
31491
31491
  });
31492
31492
  if (currentChunk) {
@@ -31533,7 +31533,7 @@ const SeparatedLineBarChart = ({
31533
31533
  return /*#__PURE__*/React$1.createElement("div", {
31534
31534
  style: {
31535
31535
  width: "100%",
31536
- height: "700px"
31536
+ height: "100%"
31537
31537
  }
31538
31538
  }, /*#__PURE__*/React$1.createElement("div", {
31539
31539
  style: {
@@ -31577,7 +31577,7 @@ const SeparatedLineBarChart = ({
31577
31577
  }, /*#__PURE__*/React$1.createElement(LabelList, {
31578
31578
  dataKey: "inc_roi",
31579
31579
  position: "top",
31580
- formatter: value => value.toFixed(1),
31580
+ formatter: value => `$${getFormattedValue(value)}${getFormattedUnits(value)}`,
31581
31581
  fill: "#212121",
31582
31582
  fontSize: 12,
31583
31583
  fontWeight: "400",
@@ -31712,11 +31712,7 @@ function SingleChart({
31712
31712
  if (!data) return null;
31713
31713
  return /*#__PURE__*/React$1.createElement(TooltipContainer, null, /*#__PURE__*/React$1.createElement(TooltipTitle, null, `${data.label}`), /*#__PURE__*/React$1.createElement(TooltipText, null, `${data.description}`), /*#__PURE__*/React$1.createElement(TooltipText, null, `${data.typeTitle}: ${getFormattedValue(data.value)}${getFormattedUnits(data.value)}`));
31714
31714
  };
31715
- return /*#__PURE__*/React$1.createElement("div", {
31716
- style: {
31717
- width: "100%"
31718
- }
31719
- }, /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
31715
+ return /*#__PURE__*/React$1.createElement(ResponsiveContainer, {
31720
31716
  width: width,
31721
31717
  height: height
31722
31718
  }, /*#__PURE__*/React$1.createElement(ComposedChart, {
@@ -31755,7 +31751,7 @@ function SingleChart({
31755
31751
  }, /*#__PURE__*/React$1.createElement(LabelList, {
31756
31752
  dataKey: "value",
31757
31753
  position: "top",
31758
- formatter: value => `$${value / 1000}k`,
31754
+ formatter: value => `$${getFormattedValue(value)}${getFormattedUnits(value)}`,
31759
31755
  fill: "#212121",
31760
31756
  fontSize: 12,
31761
31757
  fontWeight: "400",
@@ -31772,7 +31768,7 @@ function SingleChart({
31772
31768
  iconType: "Square",
31773
31769
  title: "INC Units"
31774
31770
  }]
31775
- })));
31771
+ }));
31776
31772
  }
31777
31773
 
31778
31774
  styled.div`
@@ -32134,7 +32130,17 @@ function InnerBarChart({
32134
32130
  travellerWidth: 10,
32135
32131
  startIndex: 0,
32136
32132
  endIndex: Math.min(6, brushInnerBarData.length - 1)
32137
- })));
32133
+ })), /*#__PURE__*/React$1.createElement(PerformanceAnalyticsLegend, {
32134
+ legendData: [{
32135
+ iconColor: "#CCDCDD",
32136
+ iconType: "Square",
32137
+ title: "New Shoppers"
32138
+ }, {
32139
+ iconColor: "#07575b",
32140
+ iconType: "Square",
32141
+ title: "Repeaters"
32142
+ }]
32143
+ }));
32138
32144
  }
32139
32145
 
32140
32146
  const BrushChart = props => {