sag_components 2.0.0-beta115 → 2.0.0-beta117
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 +2 -1
- package/dist/index.esm.js +19 -18
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +19 -18
- package/dist/index.js.map +1 -1
- package/dist/types/components/OverlayDropdown/OverlayDropdown.d.ts +2 -1
- package/dist/types/components/OverlayDropdown/OverlayDropdown.stories.d.ts +17 -4
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -1463,12 +1463,13 @@ declare function ModalDrawer({ open, onClose, children, widthPercent }: {
|
|
|
1463
1463
|
widthPercent?: number;
|
|
1464
1464
|
}): react_jsx_runtime.JSX.Element;
|
|
1465
1465
|
|
|
1466
|
-
declare function OverlayDropdown({ data, value, onSelectClick, disabled, required, selectedColor, hoverColor, dropdownMaxHeight, width, ...props }: {
|
|
1466
|
+
declare function OverlayDropdown({ data, value, onSelectClick, disabled, isDarkerBackground, required, selectedColor, hoverColor, dropdownMaxHeight, width, ...props }: {
|
|
1467
1467
|
[x: string]: any;
|
|
1468
1468
|
data?: any[];
|
|
1469
1469
|
value: any;
|
|
1470
1470
|
onSelectClick: any;
|
|
1471
1471
|
disabled?: boolean;
|
|
1472
|
+
isDarkerBackground?: boolean;
|
|
1472
1473
|
required?: boolean;
|
|
1473
1474
|
selectedColor?: string;
|
|
1474
1475
|
hoverColor?: string;
|
package/dist/index.esm.js
CHANGED
|
@@ -23897,21 +23897,22 @@ const DeleteIcon = styled.div`
|
|
|
23897
23897
|
position: absolute;
|
|
23898
23898
|
`;
|
|
23899
23899
|
|
|
23900
|
-
const QuickFilterDropdownSingle =
|
|
23901
|
-
|
|
23902
|
-
|
|
23903
|
-
|
|
23904
|
-
|
|
23905
|
-
|
|
23906
|
-
|
|
23907
|
-
|
|
23908
|
-
|
|
23909
|
-
|
|
23910
|
-
|
|
23911
|
-
|
|
23912
|
-
|
|
23913
|
-
|
|
23914
|
-
|
|
23900
|
+
const QuickFilterDropdownSingle = _ref => {
|
|
23901
|
+
let {
|
|
23902
|
+
label,
|
|
23903
|
+
hoverColor,
|
|
23904
|
+
options,
|
|
23905
|
+
selectedValue,
|
|
23906
|
+
placeHolder,
|
|
23907
|
+
onChange,
|
|
23908
|
+
disabled,
|
|
23909
|
+
width,
|
|
23910
|
+
error,
|
|
23911
|
+
errorMessage,
|
|
23912
|
+
xIconShow,
|
|
23913
|
+
labelColor,
|
|
23914
|
+
showLabelOnTop
|
|
23915
|
+
} = _ref;
|
|
23915
23916
|
const [isFocused, setIsFocused] = useState(false);
|
|
23916
23917
|
const [showOptions, setShowOptions] = useState(false);
|
|
23917
23918
|
const [inputValue, setInputValue] = useState("");
|
|
@@ -51125,7 +51126,6 @@ const scrollableStyles = `
|
|
|
51125
51126
|
const DropdownContainer = styled.div`
|
|
51126
51127
|
position: relative;
|
|
51127
51128
|
width: ${props => props.width || '100%'};
|
|
51128
|
-
max-width: 420px;
|
|
51129
51129
|
font-family: "Poppins", sans-serif;
|
|
51130
51130
|
`;
|
|
51131
51131
|
const DropdownButton = styled.button`
|
|
@@ -51143,6 +51143,7 @@ const DropdownButton = styled.button`
|
|
|
51143
51143
|
color: #D0D0D0;
|
|
51144
51144
|
cursor: not-allowed;
|
|
51145
51145
|
border: 1px solid #D0D0D0;
|
|
51146
|
+
background: ${props => props.isDarkerBackground ? '#F2F2F2' : '#fff'};
|
|
51146
51147
|
`}
|
|
51147
51148
|
`;
|
|
51148
51149
|
const DropdownList = styled.ul`
|
|
@@ -51154,8 +51155,6 @@ const DropdownList = styled.ul`
|
|
|
51154
51155
|
margin: 0;
|
|
51155
51156
|
padding: 8px 0;
|
|
51156
51157
|
width: ${props => props.width || '100%'};
|
|
51157
|
-
/* min-width: 320px; */
|
|
51158
|
-
max-width: 600px;
|
|
51159
51158
|
max-height: ${props => props.dropdownMaxHeight || '420px'};
|
|
51160
51159
|
overflow-y: auto;
|
|
51161
51160
|
left: 0;
|
|
@@ -51440,6 +51439,7 @@ const OverlayDropdown = _ref => {
|
|
|
51440
51439
|
value,
|
|
51441
51440
|
onSelectClick,
|
|
51442
51441
|
disabled = false,
|
|
51442
|
+
isDarkerBackground = false,
|
|
51443
51443
|
required = false,
|
|
51444
51444
|
selectedColor = '#066768',
|
|
51445
51445
|
hoverColor = '#E6F0F0',
|
|
@@ -51635,6 +51635,7 @@ const OverlayDropdown = _ref => {
|
|
|
51635
51635
|
ref: buttonRef,
|
|
51636
51636
|
onClick: toggleDropdown,
|
|
51637
51637
|
disabled: disabled,
|
|
51638
|
+
isDarkerBackground: isDarkerBackground,
|
|
51638
51639
|
type: "button"
|
|
51639
51640
|
}, /*#__PURE__*/React$1.createElement(TruncatedText, {
|
|
51640
51641
|
onMouseEnter: () => setHoveredText(selected?.label),
|