| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { forwardRef } from 'react'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/Panel/panel.mjs'; |
| 5 |
import { css } from '@patternfly/react-styles'; |
| 6 |
const PanelBase = (_a) => { |
| 7 |
var { className, children, variant, isScrollable, isAutoHeight, hasNoBorder, isFullHeight, isGlass, isPill, innerRef } = _a, props = __rest(_a, ["className", "children", "variant", "isScrollable", "isAutoHeight", "hasNoBorder", "isFullHeight", "isGlass", "isPill", "innerRef"]); |
| 8 |
return (_jsx("div", Object.assign({ className: css(styles.panel, variant && styles.modifiers[variant], isScrollable && styles.modifiers.scrollable, isAutoHeight && styles.modifiers.scrollableAutoHeight, hasNoBorder && styles.modifiers.noBorder, isFullHeight && styles.modifiers.fullHeight, isGlass && styles.modifiers.glass, isPill && styles.modifiers.pill, className), ref: innerRef }, props, { children: children }))); |
| 9 |
}; |
| 10 |
export const Panel = forwardRef((props, ref) => _jsx(PanelBase, Object.assign({ innerRef: ref }, props))); |
| 11 |
Panel.displayName = 'Panel'; |
| 12 |
//# sourceMappingURL=Panel.js.map |