| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar.mjs'; |
| 5 |
import { formatBreakpointMods } from '../../helpers/util'; |
| 6 |
export var SidebarPanelWidthType; |
| 7 |
(function (SidebarPanelWidthType) { |
| 8 |
SidebarPanelWidthType["default"] = "default"; |
| 9 |
SidebarPanelWidthType["width25"] = "width_25"; |
| 10 |
SidebarPanelWidthType["width33"] = "width_33"; |
| 11 |
SidebarPanelWidthType["width50"] = "width_50"; |
| 12 |
SidebarPanelWidthType["width66"] = "width_66"; |
| 13 |
SidebarPanelWidthType["width75"] = "width_75"; |
| 14 |
SidebarPanelWidthType["width100"] = "width_100"; |
| 15 |
})(SidebarPanelWidthType || (SidebarPanelWidthType = {})); |
| 16 |
export const SidebarPanel = (_a) => { |
| 17 |
var { className, children, variant = 'default', hasNoBackground, hasPadding, width, backgroundVariant = 'default' } = _a, props = __rest(_a, ["className", "children", "variant", "hasNoBackground", "hasPadding", "width", "backgroundVariant"]); |
| 18 |
return (_jsx("div", Object.assign({ className: css(styles.sidebarPanel, variant !== 'default' && styles.modifiers[variant], hasNoBackground && styles.modifiers.noBackground, hasPadding && styles.modifiers.padding, formatBreakpointMods(width, styles), backgroundVariant !== 'default' && styles.modifiers[backgroundVariant], className) }, props, { children: children }))); |
| 19 |
}; |
| 20 |
SidebarPanel.displayName = 'SidebarPanel'; |
| 21 |
//# sourceMappingURL=SidebarPanel.js.map |