sag_components 2.0.0-beta85 → 2.0.0-beta86
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 +55 -46
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +55 -46
- package/dist/index.js.map +1 -1
- package/dist/types/components/BrushChart/BrushChart.stories.d.ts +18 -7
- package/package.json +1 -1
package/dist/index.esm.js
CHANGED
|
@@ -23990,22 +23990,21 @@ const DeleteIcon = styled.div`
|
|
|
23990
23990
|
position: absolute;
|
|
23991
23991
|
`;
|
|
23992
23992
|
|
|
23993
|
-
const QuickFilterDropdownSingle =
|
|
23994
|
-
|
|
23995
|
-
|
|
23996
|
-
|
|
23997
|
-
|
|
23998
|
-
|
|
23999
|
-
|
|
24000
|
-
|
|
24001
|
-
|
|
24002
|
-
|
|
24003
|
-
|
|
24004
|
-
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
} = _ref;
|
|
23993
|
+
const QuickFilterDropdownSingle = ({
|
|
23994
|
+
label,
|
|
23995
|
+
hoverColor,
|
|
23996
|
+
options,
|
|
23997
|
+
selectedValue,
|
|
23998
|
+
placeHolder,
|
|
23999
|
+
onChange,
|
|
24000
|
+
disabled,
|
|
24001
|
+
width,
|
|
24002
|
+
error,
|
|
24003
|
+
errorMessage,
|
|
24004
|
+
xIconShow,
|
|
24005
|
+
labelColor,
|
|
24006
|
+
showLabelOnTop
|
|
24007
|
+
}) => {
|
|
24009
24008
|
const [isFocused, setIsFocused] = useState(false);
|
|
24010
24009
|
const [showOptions, setShowOptions] = useState(false);
|
|
24011
24010
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -24403,24 +24402,23 @@ const IconContainer$2 = styled.div`
|
|
|
24403
24402
|
cursor: pointer;
|
|
24404
24403
|
`;
|
|
24405
24404
|
|
|
24406
|
-
const QuickFilterDropdownMultiSelection =
|
|
24407
|
-
|
|
24408
|
-
|
|
24409
|
-
|
|
24410
|
-
|
|
24411
|
-
|
|
24412
|
-
|
|
24413
|
-
|
|
24414
|
-
|
|
24415
|
-
|
|
24416
|
-
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
|
|
24422
|
-
|
|
24423
|
-
} = _ref;
|
|
24405
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24406
|
+
label,
|
|
24407
|
+
labelEmptyValue,
|
|
24408
|
+
options,
|
|
24409
|
+
selectedValue,
|
|
24410
|
+
placeHolder,
|
|
24411
|
+
onChange,
|
|
24412
|
+
required,
|
|
24413
|
+
disabled,
|
|
24414
|
+
width,
|
|
24415
|
+
error,
|
|
24416
|
+
errorMessage,
|
|
24417
|
+
labelColor,
|
|
24418
|
+
xIconShow,
|
|
24419
|
+
checkBoxColor,
|
|
24420
|
+
showLabelOnTop
|
|
24421
|
+
}) => {
|
|
24424
24422
|
const [isFocused, setIsFocused] = useState(false);
|
|
24425
24423
|
const [showOptions, setShowOptions] = useState(false);
|
|
24426
24424
|
const [inputValue, setInputValue] = useState('');
|
|
@@ -31504,7 +31502,7 @@ SegmentedButton.defaultProps = {
|
|
|
31504
31502
|
const Container = styled.div`
|
|
31505
31503
|
width: ${props => props.width};
|
|
31506
31504
|
height: ${props => props.height};
|
|
31507
|
-
|
|
31505
|
+
padding: 10px;
|
|
31508
31506
|
gap: 10px;
|
|
31509
31507
|
display: flex;
|
|
31510
31508
|
flex-direction: column;
|
|
@@ -31576,7 +31574,8 @@ const BarLine = props => {
|
|
|
31576
31574
|
const {
|
|
31577
31575
|
brushAreaBarData,
|
|
31578
31576
|
color,
|
|
31579
|
-
lineColor
|
|
31577
|
+
lineColor,
|
|
31578
|
+
hideBrush
|
|
31580
31579
|
} = props;
|
|
31581
31580
|
const MAX_CHARS_PER_LINE = getMaxCharsPerLine(brushAreaBarData.length);
|
|
31582
31581
|
const MAX_LINES = 2;
|
|
@@ -31706,7 +31705,7 @@ const BarLine = props => {
|
|
|
31706
31705
|
fontSize: 15,
|
|
31707
31706
|
fontWeight: "400",
|
|
31708
31707
|
fontFamily: "Poppins"
|
|
31709
|
-
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31708
|
+
})), !hideBrush && /*#__PURE__*/React$1.createElement(Brush, {
|
|
31710
31709
|
dataKey: "label",
|
|
31711
31710
|
height: 30,
|
|
31712
31711
|
stroke: "#212121",
|
|
@@ -31758,7 +31757,7 @@ const BarLine = props => {
|
|
|
31758
31757
|
fontSize: 16,
|
|
31759
31758
|
fontWeight: "400",
|
|
31760
31759
|
fontFamily: "Poppins"
|
|
31761
|
-
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31760
|
+
})), !hideBrush && /*#__PURE__*/React$1.createElement(Brush, {
|
|
31762
31761
|
height: 30,
|
|
31763
31762
|
fill: "#EFEFEF",
|
|
31764
31763
|
travellerWidth: 10,
|
|
@@ -31784,7 +31783,8 @@ const SingleChart = props => {
|
|
|
31784
31783
|
const {
|
|
31785
31784
|
barData,
|
|
31786
31785
|
color,
|
|
31787
|
-
legendLabel
|
|
31786
|
+
legendLabel,
|
|
31787
|
+
hideBrush
|
|
31788
31788
|
} = props;
|
|
31789
31789
|
const MAX_CHARS_PER_LINE = getMaxCharsPerLine(barData.length);
|
|
31790
31790
|
const MAX_LINES = 2;
|
|
@@ -31897,7 +31897,7 @@ const SingleChart = props => {
|
|
|
31897
31897
|
fontSize: 16,
|
|
31898
31898
|
fontWeight: "400",
|
|
31899
31899
|
fontFamily: "Poppins"
|
|
31900
|
-
})), /*#__PURE__*/React$1.createElement(Brush, {
|
|
31900
|
+
})), !hideBrush && /*#__PURE__*/React$1.createElement(Brush, {
|
|
31901
31901
|
height: 30,
|
|
31902
31902
|
fill: "#EFEFEF",
|
|
31903
31903
|
travellerWidth: 10,
|
|
@@ -31919,7 +31919,8 @@ const InnerBar = props => {
|
|
|
31919
31919
|
const {
|
|
31920
31920
|
brushInnerBarData,
|
|
31921
31921
|
color,
|
|
31922
|
-
backgroundColor
|
|
31922
|
+
backgroundColor,
|
|
31923
|
+
hideBrush
|
|
31923
31924
|
} = props;
|
|
31924
31925
|
const MAX_CHARS_PER_LINE = getMaxCharsPerLine(brushInnerBarData.length);
|
|
31925
31926
|
const MAX_LINES = 2;
|
|
@@ -32069,7 +32070,7 @@ const InnerBar = props => {
|
|
|
32069
32070
|
dataKey: "total",
|
|
32070
32071
|
shape: /*#__PURE__*/React$1.createElement(BarWithInner, null),
|
|
32071
32072
|
barSize: 55
|
|
32072
|
-
}), /*#__PURE__*/React$1.createElement(Brush, {
|
|
32073
|
+
}), !hideBrush && /*#__PURE__*/React$1.createElement(Brush, {
|
|
32073
32074
|
height: 30,
|
|
32074
32075
|
fill: "#EFEFEF",
|
|
32075
32076
|
travellerWidth: 10,
|
|
@@ -32099,6 +32100,10 @@ const BrushChart = props => {
|
|
|
32099
32100
|
brushBarIncData,
|
|
32100
32101
|
brushBarBasketData,
|
|
32101
32102
|
brushAreaBarData,
|
|
32103
|
+
hideFirstBrush,
|
|
32104
|
+
hideSecondBrush,
|
|
32105
|
+
hideThirdBrush,
|
|
32106
|
+
hideLastBrush,
|
|
32102
32107
|
segmentedbuttonOptions,
|
|
32103
32108
|
title,
|
|
32104
32109
|
lineChartColor,
|
|
@@ -32123,19 +32128,23 @@ const BrushChart = props => {
|
|
|
32123
32128
|
}), /*#__PURE__*/React$1.createElement(ChartContainer, null, selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React$1.createElement(InnerBar, {
|
|
32124
32129
|
color: innerChartColor,
|
|
32125
32130
|
backgroundColor: barChartColor,
|
|
32126
|
-
brushInnerBarData: brushInnerBarData
|
|
32131
|
+
brushInnerBarData: brushInnerBarData,
|
|
32132
|
+
hideBrush: hideFirstBrush
|
|
32127
32133
|
}), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React$1.createElement(BarLine, {
|
|
32128
32134
|
color: barChartColor,
|
|
32129
32135
|
lineColor: lineChartColor,
|
|
32130
|
-
brushAreaBarData: brushAreaBarData
|
|
32136
|
+
brushAreaBarData: brushAreaBarData,
|
|
32137
|
+
hideBrush: hideSecondBrush
|
|
32131
32138
|
}), selectedOption === "INC Units" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32132
32139
|
color: barChartColor,
|
|
32133
32140
|
barData: brushBarIncData,
|
|
32134
|
-
legendLabel: "INC Units"
|
|
32141
|
+
legendLabel: "INC Units",
|
|
32142
|
+
hideBrush: hideThirdBrush
|
|
32135
32143
|
}), selectedOption === "Basket Lift" && /*#__PURE__*/React$1.createElement(SingleChart, {
|
|
32136
32144
|
color: barChartColor,
|
|
32137
32145
|
barData: brushBarBasketData,
|
|
32138
|
-
legendLabel: "Basket Lift"
|
|
32146
|
+
legendLabel: "Basket Lift",
|
|
32147
|
+
hideBrush: hideLastBrush
|
|
32139
32148
|
})));
|
|
32140
32149
|
};
|
|
32141
32150
|
|