UNPKG

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