sag_components 2.0.0-beta304 → 2.0.0-beta305
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.d.ts +3 -1
- package/dist/index.esm.js +21 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +21 -6
- package/dist/index.js.map +1 -1
- package/dist/types/components/QuickFilter/QuickFilter.d.ts +3 -1
- package/dist/types/components/QuickFilter/QuickFilter.stories.d.ts +120 -101
- package/dist/types/components/QuickFilterDropdownMultiSelection/QuickFilterDropdownMultiSelection.d.ts +2 -1
- package/dist/types/components/QuickFilterDropdownSingle/QuickFilterDropdownSingle.d.ts +9 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -422,7 +422,7 @@ declare namespace CollapseHeader {
|
|
|
422
422
|
}
|
|
423
423
|
}
|
|
424
424
|
|
|
425
|
-
declare function QuickFilter({ hoverColor, multipleSelection, xIconShow, disabled, error, errorMessage, label, labelColor, placeHolder, width, height, checkBoxColor, dropdownHeight, onChange, options, selectedValue, }: {
|
|
425
|
+
declare function QuickFilter({ hoverColor, multipleSelection, xIconShow, disabled, error, errorMessage, label, labelColor, placeHolder, optionHoverColor, selectedOptionColor, width, height, checkBoxColor, dropdownHeight, onChange, options, selectedValue, }: {
|
|
426
426
|
hoverColor?: string;
|
|
427
427
|
multipleSelection?: boolean;
|
|
428
428
|
xIconShow?: boolean;
|
|
@@ -432,6 +432,8 @@ declare function QuickFilter({ hoverColor, multipleSelection, xIconShow, disable
|
|
|
432
432
|
label?: string;
|
|
433
433
|
labelColor?: string;
|
|
434
434
|
placeHolder?: string;
|
|
435
|
+
optionHoverColor?: string;
|
|
436
|
+
selectedOptionColor?: string;
|
|
435
437
|
width?: string;
|
|
436
438
|
height?: string;
|
|
437
439
|
checkBoxColor?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -24185,9 +24185,9 @@ const OptionItem$1 = styled.li`
|
|
|
24185
24185
|
font-size: 14px;
|
|
24186
24186
|
font-weight: 400;
|
|
24187
24187
|
transition: background-color 0.3s;
|
|
24188
|
-
background-color: ${props => props.selected ?
|
|
24188
|
+
background-color: ${props => props.selected ? props.selectedOptionColor : '#fff'};
|
|
24189
24189
|
&:hover {
|
|
24190
|
-
background-color:
|
|
24190
|
+
background-color: ${props => props.optionHoverColor};
|
|
24191
24191
|
}
|
|
24192
24192
|
.highlight {
|
|
24193
24193
|
color: #229e38;
|
|
@@ -24214,6 +24214,8 @@ const QuickFilterDropdownSingle = _ref => {
|
|
|
24214
24214
|
options,
|
|
24215
24215
|
selectedValue,
|
|
24216
24216
|
placeHolder,
|
|
24217
|
+
optionHoverColor = '#edf6ff',
|
|
24218
|
+
selectedOptionColor = "#C7E4FF",
|
|
24217
24219
|
onChange,
|
|
24218
24220
|
disabled,
|
|
24219
24221
|
width,
|
|
@@ -24399,7 +24401,9 @@ const QuickFilterDropdownSingle = _ref => {
|
|
|
24399
24401
|
className: "OptionItem",
|
|
24400
24402
|
key: option.value,
|
|
24401
24403
|
onClick: () => toggleOption(option),
|
|
24402
|
-
selected: isDropdowned(option)
|
|
24404
|
+
selected: isDropdowned(option),
|
|
24405
|
+
selectedOptionColor: selectedOptionColor,
|
|
24406
|
+
optionHoverColor: optionHoverColor
|
|
24403
24407
|
}, highlightText(option.label, inputValue))))));
|
|
24404
24408
|
};
|
|
24405
24409
|
QuickFilterDropdownSingle.propTypes = {
|
|
@@ -24407,6 +24411,8 @@ QuickFilterDropdownSingle.propTypes = {
|
|
|
24407
24411
|
label: PropTypes.string,
|
|
24408
24412
|
labelColor: PropTypes.string,
|
|
24409
24413
|
hoverColor: PropTypes.string,
|
|
24414
|
+
optionHoverColor: PropTypes.string,
|
|
24415
|
+
selectedOptionColor: PropTypes.string,
|
|
24410
24416
|
width: PropTypes.string,
|
|
24411
24417
|
disabled: PropTypes.bool,
|
|
24412
24418
|
error: PropTypes.bool,
|
|
@@ -24428,6 +24434,8 @@ QuickFilterDropdownSingle.defaultProps = {
|
|
|
24428
24434
|
label: "Label",
|
|
24429
24435
|
labelColor: "#066768",
|
|
24430
24436
|
hoverColor: "#066768",
|
|
24437
|
+
optionHoverColor: '#edf6ff',
|
|
24438
|
+
selectedOptionColor: "#C7E4FF",
|
|
24431
24439
|
width: "auto",
|
|
24432
24440
|
disabled: false,
|
|
24433
24441
|
error: false,
|
|
@@ -24612,7 +24620,7 @@ const OptionItem = styled.li`
|
|
|
24612
24620
|
transition: background-color 0.3s;
|
|
24613
24621
|
|
|
24614
24622
|
&:hover {
|
|
24615
|
-
background-color:
|
|
24623
|
+
background-color: ${props => props.optionHoverColor};
|
|
24616
24624
|
}
|
|
24617
24625
|
`;
|
|
24618
24626
|
const ErrorMessage$1 = styled.div`
|
|
@@ -24689,6 +24697,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
24689
24697
|
error,
|
|
24690
24698
|
errorMessage,
|
|
24691
24699
|
labelColor,
|
|
24700
|
+
optionHoverColor = '#edf6ff',
|
|
24692
24701
|
xIconShow,
|
|
24693
24702
|
checkBoxColor,
|
|
24694
24703
|
showLabelOnTop,
|
|
@@ -24943,7 +24952,8 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
24943
24952
|
className: "OptionItem",
|
|
24944
24953
|
key: option.value,
|
|
24945
24954
|
onClick: () => toggleOption(option),
|
|
24946
|
-
selected: isDropdowned(option)
|
|
24955
|
+
selected: isDropdowned(option),
|
|
24956
|
+
optionHoverColor: optionHoverColor
|
|
24947
24957
|
}, /*#__PURE__*/React$1.createElement(IconContainer$2, {
|
|
24948
24958
|
className: "IconContainer"
|
|
24949
24959
|
}, selectedOptions.find(itemSelectedOptions => option.value === itemSelectedOptions.value) ? /*#__PURE__*/React$1.createElement(CheckBoxCheckedIcon, {
|
|
@@ -25026,6 +25036,8 @@ const QuickFilter = _ref => {
|
|
|
25026
25036
|
label = "Unit Type:",
|
|
25027
25037
|
labelColor = "#066768",
|
|
25028
25038
|
placeHolder = "Select From List",
|
|
25039
|
+
optionHoverColor = '#edf6ff',
|
|
25040
|
+
selectedOptionColor = "#C7E4FF",
|
|
25029
25041
|
width = "auto",
|
|
25030
25042
|
height = "38px",
|
|
25031
25043
|
checkBoxColor = "#229E38",
|
|
@@ -25043,6 +25055,7 @@ const QuickFilter = _ref => {
|
|
|
25043
25055
|
label: label,
|
|
25044
25056
|
labelColor: labelColor,
|
|
25045
25057
|
checkBoxColor: checkBoxColor,
|
|
25058
|
+
optionHoverColor: optionHoverColor,
|
|
25046
25059
|
options: options,
|
|
25047
25060
|
width: width,
|
|
25048
25061
|
height: height,
|
|
@@ -25057,6 +25070,8 @@ const QuickFilter = _ref => {
|
|
|
25057
25070
|
placeHolder: placeHolder,
|
|
25058
25071
|
label: label,
|
|
25059
25072
|
labelColor: labelColor,
|
|
25073
|
+
optionHoverColor: optionHoverColor,
|
|
25074
|
+
selectedOptionColor: selectedOptionColor,
|
|
25060
25075
|
checkBoxColor: checkBoxColor,
|
|
25061
25076
|
options: options,
|
|
25062
25077
|
width: width,
|
|
@@ -35742,7 +35757,7 @@ const Label$3 = styled.label`
|
|
|
35742
35757
|
if (props.isFocused || props.hasValue) {
|
|
35743
35758
|
return '0px';
|
|
35744
35759
|
}
|
|
35745
|
-
return props.size === 'medium' ? '
|
|
35760
|
+
return props.size === 'medium' ? '50%' : '17px';
|
|
35746
35761
|
}};
|
|
35747
35762
|
left: ${props => {
|
|
35748
35763
|
if (props.multiline) {
|