sag_components 2.0.0-beta77 → 2.0.0-beta79

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
@@ -23884,7 +23884,6 @@ const Label$2 = styled.label`
23884
23884
  font-size: 14px;
23885
23885
  font-weight: 500;
23886
23886
  color: ${props => props.disabled ? '#D0D0D0' : '212121'};
23887
- font-family: "Poppins";
23888
23887
  white-space: nowrap;
23889
23888
  `;
23890
23889
  const InputContainer$1 = styled.div`
@@ -23896,7 +23895,6 @@ const InputContainer$1 = styled.div`
23896
23895
  overflow: hidden;
23897
23896
  padding: 6px 16px;
23898
23897
  margin-bottom: 8px;
23899
- width: 256px;
23900
23898
  height: 24px;
23901
23899
  border: 1px solid
23902
23900
  ${props => props.disabled ? '#bdbdbd' : props.error ? 'red' : '#B1B1B1'};
@@ -23956,7 +23954,6 @@ const OptionsSubContainer$1 = styled.ul`
23956
23954
  left: 0;
23957
23955
  z-index: 101;
23958
23956
  width: calc(100% - 23px);
23959
- font-family: "Poppins";
23960
23957
  border-radius: 4px;
23961
23958
  background-color: white;
23962
23959
  display: ${props => props.showoptions && props.filteredoptions?.length > 0 ? 'block' : 'none'};
@@ -23968,9 +23965,7 @@ const OptionItem$1 = styled.li`
23968
23965
  padding: 10px;
23969
23966
  cursor: pointer;
23970
23967
  color: #212121;
23971
- font-family: "Poppins";
23972
23968
  font-size: 14px;
23973
- font-style: normal;
23974
23969
  font-weight: 400;
23975
23970
  transition: background-color 0.3s;
23976
23971
  background-color: ${props => props.selected ? '#C7E4FF' : '#fff'};
@@ -31607,7 +31602,9 @@ styleInject(css_248z);
31607
31602
 
31608
31603
  const BarLine = props => {
31609
31604
  const {
31610
- brushAreaBarData
31605
+ brushAreaBarData,
31606
+ color,
31607
+ lineColor
31611
31608
  } = props;
31612
31609
  const MAX_CHARS_PER_LINE = getMaxCharsPerLine(brushAreaBarData.length);
31613
31610
  const MAX_LINES = 2;
@@ -31721,11 +31718,11 @@ const BarLine = props => {
31721
31718
  }), /*#__PURE__*/React$1.createElement(Line, {
31722
31719
  type: "monotone",
31723
31720
  dataKey: "inc_roi",
31724
- stroke: "#F8CD00",
31721
+ stroke: lineColor,
31725
31722
  strokeWidth: 2,
31726
31723
  dot: {
31727
31724
  r: 4,
31728
- fill: "#F8CD00"
31725
+ fill: lineColor
31729
31726
  },
31730
31727
  activeDot: false,
31731
31728
  name: "INC Sales ROI"
@@ -31777,7 +31774,7 @@ const BarLine = props => {
31777
31774
  cursor: brushAreaBarData.length > 80
31778
31775
  }), /*#__PURE__*/React$1.createElement(Bar, {
31779
31776
  dataKey: "inc_sales",
31780
- fill: "#CCDCDD",
31777
+ fill: color,
31781
31778
  gap: 4,
31782
31779
  barSize: 53,
31783
31780
  name: "INC Sales"
@@ -31800,11 +31797,11 @@ const BarLine = props => {
31800
31797
  width: "100%",
31801
31798
  height: "40px",
31802
31799
  legendData: [{
31803
- iconColor: "#CCDCDD",
31800
+ iconColor: color,
31804
31801
  iconType: "Square",
31805
31802
  title: "INC Sales"
31806
31803
  }, {
31807
- iconColor: "#F8CD00",
31804
+ iconColor: lineColor,
31808
31805
  iconType: "LegendUnionIcon",
31809
31806
  title: "INC Sales ROI"
31810
31807
  }]
@@ -31813,7 +31810,8 @@ const BarLine = props => {
31813
31810
 
31814
31811
  const SingleChart = props => {
31815
31812
  const {
31816
- barData
31813
+ barData,
31814
+ color
31817
31815
  } = props;
31818
31816
  const MAX_CHARS_PER_LINE = getMaxCharsPerLine(barData.length);
31819
31817
  const MAX_LINES = 2;
@@ -31915,7 +31913,7 @@ const SingleChart = props => {
31915
31913
  content: /*#__PURE__*/React$1.createElement(CustomTooltip, null)
31916
31914
  }), /*#__PURE__*/React$1.createElement(Bar, {
31917
31915
  dataKey: "value",
31918
- fill: "#CCDCDD",
31916
+ fill: color,
31919
31917
  barSize: 53,
31920
31918
  name: "INC Sales"
31921
31919
  }, /*#__PURE__*/React$1.createElement(LabelList, {
@@ -31937,7 +31935,7 @@ const SingleChart = props => {
31937
31935
  width: "100%",
31938
31936
  height: "40px",
31939
31937
  legendData: [{
31940
- iconColor: "#CCDCDD",
31938
+ iconColor: color,
31941
31939
  iconType: "Square",
31942
31940
  title: "INC Units"
31943
31941
  }]
@@ -31946,7 +31944,9 @@ const SingleChart = props => {
31946
31944
 
31947
31945
  const InnerBar = props => {
31948
31946
  const {
31949
- brushInnerBarData
31947
+ brushInnerBarData,
31948
+ color,
31949
+ backgroundColor
31950
31950
  } = props;
31951
31951
  const MAX_CHARS_PER_LINE = getMaxCharsPerLine(brushInnerBarData.length);
31952
31952
  const MAX_LINES = 2;
@@ -31967,7 +31967,7 @@ const InnerBar = props => {
31967
31967
  y: y,
31968
31968
  width: width,
31969
31969
  height: height,
31970
- fill: "#d0e6ea",
31970
+ fill: backgroundColor,
31971
31971
  rx: 4,
31972
31972
  ry: 4
31973
31973
  }), /*#__PURE__*/React$1.createElement("text", {
@@ -31983,7 +31983,7 @@ const InnerBar = props => {
31983
31983
  y: innerY,
31984
31984
  width: width * 0.6,
31985
31985
  height: innerHeight,
31986
- fill: "#07575b",
31986
+ fill: color,
31987
31987
  rx: 2,
31988
31988
  ry: 2
31989
31989
  }), innerHeight > 16 && /*#__PURE__*/React$1.createElement("text", {
@@ -32107,11 +32107,11 @@ const InnerBar = props => {
32107
32107
  width: "100%",
32108
32108
  height: "40px",
32109
32109
  legendData: [{
32110
- iconColor: "#CCDCDD",
32110
+ iconColor: backgroundColor,
32111
32111
  iconType: "Square",
32112
32112
  title: "New Shoppers"
32113
32113
  }, {
32114
- iconColor: "#07575b",
32114
+ iconColor: color,
32115
32115
  iconType: "Square",
32116
32116
  title: "Repeaters"
32117
32117
  }]
@@ -32127,7 +32127,10 @@ const BrushChart = props => {
32127
32127
  brushBarBasketData,
32128
32128
  brushAreaBarData,
32129
32129
  segmentedbuttonOptions,
32130
- title
32130
+ title,
32131
+ lineChartColor,
32132
+ innerChartColor,
32133
+ barChartColor
32131
32134
  } = props;
32132
32135
  const [selectedOption, setSelectedOption] = useState(segmentedbuttonOptions[0]);
32133
32136
  return /*#__PURE__*/React$1.createElement(Container, {
@@ -32145,12 +32148,18 @@ const BrushChart = props => {
32145
32148
  return setSelectedOption(value);
32146
32149
  }
32147
32150
  }), /*#__PURE__*/React$1.createElement(ChartContainer, null, selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React$1.createElement(InnerBar, {
32151
+ color: innerChartColor,
32152
+ backgroundColor: barChartColor,
32148
32153
  brushInnerBarData: brushInnerBarData
32149
32154
  }), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React$1.createElement(BarLine, {
32155
+ color: barChartColor,
32156
+ lineColor: lineChartColor,
32150
32157
  brushAreaBarData: brushAreaBarData
32151
32158
  }), selectedOption === "INC Units" && /*#__PURE__*/React$1.createElement(SingleChart, {
32159
+ color: barChartColor,
32152
32160
  barData: brushBarIncData
32153
32161
  }), selectedOption === "Basket Lift" && /*#__PURE__*/React$1.createElement(SingleChart, {
32162
+ color: barChartColor,
32154
32163
  barData: brushBarBasketData
32155
32164
  })));
32156
32165
  };