| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.Panel = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_1 = require("react"); |
| 7 |
const panel_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Panel/panel")); |
| 8 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 9 |
const PanelBase = (_a) => { |
| 10 |
var { className, children, variant, isScrollable, isAutoHeight, hasNoBorder, isFullHeight, isGlass, isPill, innerRef } = _a, props = tslib_1.__rest(_a, ["className", "children", "variant", "isScrollable", "isAutoHeight", "hasNoBorder", "isFullHeight", "isGlass", "isPill", "innerRef"]); |
| 11 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(panel_1.default.panel, variant && panel_1.default.modifiers[variant], isScrollable && panel_1.default.modifiers.scrollable, isAutoHeight && panel_1.default.modifiers.scrollableAutoHeight, hasNoBorder && panel_1.default.modifiers.noBorder, isFullHeight && panel_1.default.modifiers.fullHeight, isGlass && panel_1.default.modifiers.glass, isPill && panel_1.default.modifiers.pill, className), ref: innerRef }, props, { children: children }))); |
| 12 |
}; |
| 13 |
exports.Panel = (0, react_1.forwardRef)((props, ref) => (0, jsx_runtime_1.jsx)(PanelBase, Object.assign({ innerRef: ref }, props))); |
| 14 |
exports.Panel.displayName = 'Panel'; |
| 15 |
//# sourceMappingURL=Panel.js.map |