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.js
CHANGED
|
@@ -24000,22 +24000,21 @@ const DeleteIcon = styled__default["default"].div`
|
|
|
24000
24000
|
position: absolute;
|
|
24001
24001
|
`;
|
|
24002
24002
|
|
|
24003
|
-
const QuickFilterDropdownSingle =
|
|
24004
|
-
|
|
24005
|
-
|
|
24006
|
-
|
|
24007
|
-
|
|
24008
|
-
|
|
24009
|
-
|
|
24010
|
-
|
|
24011
|
-
|
|
24012
|
-
|
|
24013
|
-
|
|
24014
|
-
|
|
24015
|
-
|
|
24016
|
-
|
|
24017
|
-
|
|
24018
|
-
} = _ref;
|
|
24003
|
+
const QuickFilterDropdownSingle = ({
|
|
24004
|
+
label,
|
|
24005
|
+
hoverColor,
|
|
24006
|
+
options,
|
|
24007
|
+
selectedValue,
|
|
24008
|
+
placeHolder,
|
|
24009
|
+
onChange,
|
|
24010
|
+
disabled,
|
|
24011
|
+
width,
|
|
24012
|
+
error,
|
|
24013
|
+
errorMessage,
|
|
24014
|
+
xIconShow,
|
|
24015
|
+
labelColor,
|
|
24016
|
+
showLabelOnTop
|
|
24017
|
+
}) => {
|
|
24019
24018
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24020
24019
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24021
24020
|
const [inputValue, setInputValue] = React$1.useState("");
|
|
@@ -24413,24 +24412,23 @@ const IconContainer$2 = styled__default["default"].div`
|
|
|
24413
24412
|
cursor: pointer;
|
|
24414
24413
|
`;
|
|
24415
24414
|
|
|
24416
|
-
const QuickFilterDropdownMultiSelection =
|
|
24417
|
-
|
|
24418
|
-
|
|
24419
|
-
|
|
24420
|
-
|
|
24421
|
-
|
|
24422
|
-
|
|
24423
|
-
|
|
24424
|
-
|
|
24425
|
-
|
|
24426
|
-
|
|
24427
|
-
|
|
24428
|
-
|
|
24429
|
-
|
|
24430
|
-
|
|
24431
|
-
|
|
24432
|
-
|
|
24433
|
-
} = _ref;
|
|
24415
|
+
const QuickFilterDropdownMultiSelection = ({
|
|
24416
|
+
label,
|
|
24417
|
+
labelEmptyValue,
|
|
24418
|
+
options,
|
|
24419
|
+
selectedValue,
|
|
24420
|
+
placeHolder,
|
|
24421
|
+
onChange,
|
|
24422
|
+
required,
|
|
24423
|
+
disabled,
|
|
24424
|
+
width,
|
|
24425
|
+
error,
|
|
24426
|
+
errorMessage,
|
|
24427
|
+
labelColor,
|
|
24428
|
+
xIconShow,
|
|
24429
|
+
checkBoxColor,
|
|
24430
|
+
showLabelOnTop
|
|
24431
|
+
}) => {
|
|
24434
24432
|
const [isFocused, setIsFocused] = React$1.useState(false);
|
|
24435
24433
|
const [showOptions, setShowOptions] = React$1.useState(false);
|
|
24436
24434
|
const [inputValue, setInputValue] = React$1.useState('');
|
|
@@ -31514,7 +31512,7 @@ SegmentedButton.defaultProps = {
|
|
|
31514
31512
|
const Container = styled__default["default"].div`
|
|
31515
31513
|
width: ${props => props.width};
|
|
31516
31514
|
height: ${props => props.height};
|
|
31517
|
-
|
|
31515
|
+
padding: 10px;
|
|
31518
31516
|
gap: 10px;
|
|
31519
31517
|
display: flex;
|
|
31520
31518
|
flex-direction: column;
|
|
@@ -31586,7 +31584,8 @@ const BarLine = props => {
|
|
|
31586
31584
|
const {
|
|
31587
31585
|
brushAreaBarData,
|
|
31588
31586
|
color,
|
|
31589
|
-
lineColor
|
|
31587
|
+
lineColor,
|
|
31588
|
+
hideBrush
|
|
31590
31589
|
} = props;
|
|
31591
31590
|
const MAX_CHARS_PER_LINE = getMaxCharsPerLine(brushAreaBarData.length);
|
|
31592
31591
|
const MAX_LINES = 2;
|
|
@@ -31716,7 +31715,7 @@ const BarLine = props => {
|
|
|
31716
31715
|
fontSize: 15,
|
|
31717
31716
|
fontWeight: "400",
|
|
31718
31717
|
fontFamily: "Poppins"
|
|
31719
|
-
})), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31718
|
+
})), !hideBrush && /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31720
31719
|
dataKey: "label",
|
|
31721
31720
|
height: 30,
|
|
31722
31721
|
stroke: "#212121",
|
|
@@ -31768,7 +31767,7 @@ const BarLine = props => {
|
|
|
31768
31767
|
fontSize: 16,
|
|
31769
31768
|
fontWeight: "400",
|
|
31770
31769
|
fontFamily: "Poppins"
|
|
31771
|
-
})), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31770
|
+
})), !hideBrush && /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31772
31771
|
height: 30,
|
|
31773
31772
|
fill: "#EFEFEF",
|
|
31774
31773
|
travellerWidth: 10,
|
|
@@ -31794,7 +31793,8 @@ const SingleChart = props => {
|
|
|
31794
31793
|
const {
|
|
31795
31794
|
barData,
|
|
31796
31795
|
color,
|
|
31797
|
-
legendLabel
|
|
31796
|
+
legendLabel,
|
|
31797
|
+
hideBrush
|
|
31798
31798
|
} = props;
|
|
31799
31799
|
const MAX_CHARS_PER_LINE = getMaxCharsPerLine(barData.length);
|
|
31800
31800
|
const MAX_LINES = 2;
|
|
@@ -31907,7 +31907,7 @@ const SingleChart = props => {
|
|
|
31907
31907
|
fontSize: 16,
|
|
31908
31908
|
fontWeight: "400",
|
|
31909
31909
|
fontFamily: "Poppins"
|
|
31910
|
-
})), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31910
|
+
})), !hideBrush && /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
31911
31911
|
height: 30,
|
|
31912
31912
|
fill: "#EFEFEF",
|
|
31913
31913
|
travellerWidth: 10,
|
|
@@ -31929,7 +31929,8 @@ const InnerBar = props => {
|
|
|
31929
31929
|
const {
|
|
31930
31930
|
brushInnerBarData,
|
|
31931
31931
|
color,
|
|
31932
|
-
backgroundColor
|
|
31932
|
+
backgroundColor,
|
|
31933
|
+
hideBrush
|
|
31933
31934
|
} = props;
|
|
31934
31935
|
const MAX_CHARS_PER_LINE = getMaxCharsPerLine(brushInnerBarData.length);
|
|
31935
31936
|
const MAX_LINES = 2;
|
|
@@ -32079,7 +32080,7 @@ const InnerBar = props => {
|
|
|
32079
32080
|
dataKey: "total",
|
|
32080
32081
|
shape: /*#__PURE__*/React__default["default"].createElement(BarWithInner, null),
|
|
32081
32082
|
barSize: 55
|
|
32082
|
-
}), /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
32083
|
+
}), !hideBrush && /*#__PURE__*/React__default["default"].createElement(recharts.Brush, {
|
|
32083
32084
|
height: 30,
|
|
32084
32085
|
fill: "#EFEFEF",
|
|
32085
32086
|
travellerWidth: 10,
|
|
@@ -32109,6 +32110,10 @@ const BrushChart = props => {
|
|
|
32109
32110
|
brushBarIncData,
|
|
32110
32111
|
brushBarBasketData,
|
|
32111
32112
|
brushAreaBarData,
|
|
32113
|
+
hideFirstBrush,
|
|
32114
|
+
hideSecondBrush,
|
|
32115
|
+
hideThirdBrush,
|
|
32116
|
+
hideLastBrush,
|
|
32112
32117
|
segmentedbuttonOptions,
|
|
32113
32118
|
title,
|
|
32114
32119
|
lineChartColor,
|
|
@@ -32133,19 +32138,23 @@ const BrushChart = props => {
|
|
|
32133
32138
|
}), /*#__PURE__*/React__default["default"].createElement(ChartContainer, null, selectedOption === "New Shoppers & Repeaters" && /*#__PURE__*/React__default["default"].createElement(InnerBar, {
|
|
32134
32139
|
color: innerChartColor,
|
|
32135
32140
|
backgroundColor: barChartColor,
|
|
32136
|
-
brushInnerBarData: brushInnerBarData
|
|
32141
|
+
brushInnerBarData: brushInnerBarData,
|
|
32142
|
+
hideBrush: hideFirstBrush
|
|
32137
32143
|
}), selectedOption === "INC Sales & ROI" && /*#__PURE__*/React__default["default"].createElement(BarLine, {
|
|
32138
32144
|
color: barChartColor,
|
|
32139
32145
|
lineColor: lineChartColor,
|
|
32140
|
-
brushAreaBarData: brushAreaBarData
|
|
32146
|
+
brushAreaBarData: brushAreaBarData,
|
|
32147
|
+
hideBrush: hideSecondBrush
|
|
32141
32148
|
}), selectedOption === "INC Units" && /*#__PURE__*/React__default["default"].createElement(SingleChart, {
|
|
32142
32149
|
color: barChartColor,
|
|
32143
32150
|
barData: brushBarIncData,
|
|
32144
|
-
legendLabel: "INC Units"
|
|
32151
|
+
legendLabel: "INC Units",
|
|
32152
|
+
hideBrush: hideThirdBrush
|
|
32145
32153
|
}), selectedOption === "Basket Lift" && /*#__PURE__*/React__default["default"].createElement(SingleChart, {
|
|
32146
32154
|
color: barChartColor,
|
|
32147
32155
|
barData: brushBarBasketData,
|
|
32148
|
-
legendLabel: "Basket Lift"
|
|
32156
|
+
legendLabel: "Basket Lift",
|
|
32157
|
+
hideBrush: hideLastBrush
|
|
32149
32158
|
})));
|
|
32150
32159
|
};
|
|
32151
32160
|
|