Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Popover/PopoverDialog.js

raw
1 import { __rest } from "tslib";
2 import { jsx as _jsx } from "react/jsx-runtime";
3 import styles from '@patternfly/react-styles/css/components/Popover/popover.mjs';
4 import { css } from '@patternfly/react-styles';
5 export const PopoverPosition = {
6 top: 'top',
7 bottom: 'bottom',
8 left: 'left',
9 right: 'right'
10 };
11 export const PopoverDialog = (_a) => {
12 var { position = 'top', children = null, className = null } = _a, props = __rest(_a, ["position", "children", "className"]);
13 return (_jsx("div", Object.assign({ className: css(styles.popover, styles.modifiers[position] || styles.modifiers.top, className), role: "dialog", "aria-modal": "true" }, props, { children: children })));
14 };
15 PopoverDialog.displayName = 'PopoverDialog';
16 //# sourceMappingURL=PopoverDialog.js.map