Repository URL to install this package:
|
Version:
3.12.16 ▾
|
import { Popper } from '@scaleflex/ui/core';
import Styled from './FilterPopup.styled';
import { jsx as _jsx } from "react/jsx-runtime";
var FilterPopup = function FilterPopup(_ref) {
var open = _ref.open,
anchor = _ref.anchor,
children = _ref.children,
onRequestClose = _ref.onRequestClose;
return /*#__PURE__*/_jsx(Popper, {
className: "filerobot-Provider-Filters-FilterMenu",
open: open,
anchorEl: anchor,
overlay: true,
onClick: onRequestClose,
position: "bottom-start",
popperOptions: {
modifiers: [{
name: 'offset',
options: {
offset: [5, 0]
}
}, {
name: 'preventOverflow',
options: {
padding: 24
}
}]
},
children: /*#__PURE__*/_jsx(Styled.PopupWrapper, {
children: children
})
});
};
export default FilterPopup;