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.js
CHANGED
|
@@ -24195,9 +24195,9 @@ const OptionItem$1 = styled__default["default"].li`
|
|
|
24195
24195
|
font-size: 14px;
|
|
24196
24196
|
font-weight: 400;
|
|
24197
24197
|
transition: background-color 0.3s;
|
|
24198
|
-
background-color: ${props => props.selected ?
|
|
24198
|
+
background-color: ${props => props.selected ? props.selectedOptionColor : '#fff'};
|
|
24199
24199
|
&:hover {
|
|
24200
|
-
background-color:
|
|
24200
|
+
background-color: ${props => props.optionHoverColor};
|
|
24201
24201
|
}
|
|
24202
24202
|
.highlight {
|
|
24203
24203
|
color: #229e38;
|
|
@@ -24224,6 +24224,8 @@ const QuickFilterDropdownSingle = _ref => {
|
|
|
24224
24224
|
options,
|
|
24225
24225
|
selectedValue,
|
|
24226
24226
|
placeHolder,
|
|
24227
|
+
optionHoverColor = '#edf6ff',
|
|
24228
|
+
selectedOptionColor = "#C7E4FF",
|
|
24227
24229
|
onChange,
|
|
24228
24230
|
disabled,
|
|
24229
24231
|
width,
|
|
@@ -24409,7 +24411,9 @@ const QuickFilterDropdownSingle = _ref => {
|
|
|
24409
24411
|
className: "OptionItem",
|
|
24410
24412
|
key: option.value,
|
|
24411
24413
|
onClick: () => toggleOption(option),
|
|
24412
|
-
selected: isDropdowned(option)
|
|
24414
|
+
selected: isDropdowned(option),
|
|
24415
|
+
selectedOptionColor: selectedOptionColor,
|
|
24416
|
+
optionHoverColor: optionHoverColor
|
|
24413
24417
|
}, highlightText(option.label, inputValue))))));
|
|
24414
24418
|
};
|
|
24415
24419
|
QuickFilterDropdownSingle.propTypes = {
|
|
@@ -24417,6 +24421,8 @@ QuickFilterDropdownSingle.propTypes = {
|
|
|
24417
24421
|
label: PropTypes.string,
|
|
24418
24422
|
labelColor: PropTypes.string,
|
|
24419
24423
|
hoverColor: PropTypes.string,
|
|
24424
|
+
optionHoverColor: PropTypes.string,
|
|
24425
|
+
selectedOptionColor: PropTypes.string,
|
|
24420
24426
|
width: PropTypes.string,
|
|
24421
24427
|
disabled: PropTypes.bool,
|
|
24422
24428
|
error: PropTypes.bool,
|
|
@@ -24438,6 +24444,8 @@ QuickFilterDropdownSingle.defaultProps = {
|
|
|
24438
24444
|
label: "Label",
|
|
24439
24445
|
labelColor: "#066768",
|
|
24440
24446
|
hoverColor: "#066768",
|
|
24447
|
+
optionHoverColor: '#edf6ff',
|
|
24448
|
+
selectedOptionColor: "#C7E4FF",
|
|
24441
24449
|
width: "auto",
|
|
24442
24450
|
disabled: false,
|
|
24443
24451
|
error: false,
|
|
@@ -24622,7 +24630,7 @@ const OptionItem = styled__default["default"].li`
|
|
|
24622
24630
|
transition: background-color 0.3s;
|
|
24623
24631
|
|
|
24624
24632
|
&:hover {
|
|
24625
|
-
background-color:
|
|
24633
|
+
background-color: ${props => props.optionHoverColor};
|
|
24626
24634
|
}
|
|
24627
24635
|
`;
|
|
24628
24636
|
const ErrorMessage$1 = styled__default["default"].div`
|
|
@@ -24699,6 +24707,7 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
24699
24707
|
error,
|
|
24700
24708
|
errorMessage,
|
|
24701
24709
|
labelColor,
|
|
24710
|
+
optionHoverColor = '#edf6ff',
|
|
24702
24711
|
xIconShow,
|
|
24703
24712
|
checkBoxColor,
|
|
24704
24713
|
showLabelOnTop,
|
|
@@ -24953,7 +24962,8 @@ const QuickFilterDropdownMultiSelection = _ref => {
|
|
|
24953
24962
|
className: "OptionItem",
|
|
24954
24963
|
key: option.value,
|
|
24955
24964
|
onClick: () => toggleOption(option),
|
|
24956
|
-
selected: isDropdowned(option)
|
|
24965
|
+
selected: isDropdowned(option),
|
|
24966
|
+
optionHoverColor: optionHoverColor
|
|
24957
24967
|
}, /*#__PURE__*/React__default["default"].createElement(IconContainer$2, {
|
|
24958
24968
|
className: "IconContainer"
|
|
24959
24969
|
}, selectedOptions.find(itemSelectedOptions => option.value === itemSelectedOptions.value) ? /*#__PURE__*/React__default["default"].createElement(CheckBoxCheckedIcon, {
|
|
@@ -25036,6 +25046,8 @@ const QuickFilter = _ref => {
|
|
|
25036
25046
|
label = "Unit Type:",
|
|
25037
25047
|
labelColor = "#066768",
|
|
25038
25048
|
placeHolder = "Select From List",
|
|
25049
|
+
optionHoverColor = '#edf6ff',
|
|
25050
|
+
selectedOptionColor = "#C7E4FF",
|
|
25039
25051
|
width = "auto",
|
|
25040
25052
|
height = "38px",
|
|
25041
25053
|
checkBoxColor = "#229E38",
|
|
@@ -25053,6 +25065,7 @@ const QuickFilter = _ref => {
|
|
|
25053
25065
|
label: label,
|
|
25054
25066
|
labelColor: labelColor,
|
|
25055
25067
|
checkBoxColor: checkBoxColor,
|
|
25068
|
+
optionHoverColor: optionHoverColor,
|
|
25056
25069
|
options: options,
|
|
25057
25070
|
width: width,
|
|
25058
25071
|
height: height,
|
|
@@ -25067,6 +25080,8 @@ const QuickFilter = _ref => {
|
|
|
25067
25080
|
placeHolder: placeHolder,
|
|
25068
25081
|
label: label,
|
|
25069
25082
|
labelColor: labelColor,
|
|
25083
|
+
optionHoverColor: optionHoverColor,
|
|
25084
|
+
selectedOptionColor: selectedOptionColor,
|
|
25070
25085
|
checkBoxColor: checkBoxColor,
|
|
25071
25086
|
options: options,
|
|
25072
25087
|
width: width,
|
|
@@ -35752,7 +35767,7 @@ const Label$3 = styled__default["default"].label`
|
|
|
35752
35767
|
if (props.isFocused || props.hasValue) {
|
|
35753
35768
|
return '0px';
|
|
35754
35769
|
}
|
|
35755
|
-
return props.size === 'medium' ? '
|
|
35770
|
+
return props.size === 'medium' ? '50%' : '17px';
|
|
35756
35771
|
}};
|
|
35757
35772
|
left: ${props => {
|
|
35758
35773
|
if (props.multiline) {
|