| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.PopoverDialog = exports.PopoverPosition = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const popover_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Popover/popover")); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
exports.PopoverPosition = { |
| 9 |
top: 'top', |
| 10 |
bottom: 'bottom', |
| 11 |
left: 'left', |
| 12 |
right: 'right' |
| 13 |
}; |
| 14 |
const PopoverDialog = (_a) => { |
| 15 |
var { position = 'top', children = null, className = null } = _a, props = tslib_1.__rest(_a, ["position", "children", "className"]); |
| 16 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(popover_1.default.popover, popover_1.default.modifiers[position] || popover_1.default.modifiers.top, className), role: "dialog", "aria-modal": "true" }, props, { children: children }))); |
| 17 |
}; |
| 18 |
exports.PopoverDialog = PopoverDialog; |
| 19 |
exports.PopoverDialog.displayName = 'PopoverDialog'; |
| 20 |
//# sourceMappingURL=PopoverDialog.js.map |