@patternfly/react-core
Version:
This library provides a set of common React components for use with the PatternFly reference implementation.
21 lines • 1.5 kB
JavaScript
import { __rest } from "tslib";
import { jsx as _jsx } from "react/jsx-runtime";
import { css } from '@patternfly/react-styles';
import styles from '@patternfly/react-styles/css/components/Sidebar/sidebar.mjs';
import { formatBreakpointMods } from '../../helpers/util';
export var SidebarPanelWidthType;
(function (SidebarPanelWidthType) {
SidebarPanelWidthType["default"] = "default";
SidebarPanelWidthType["width25"] = "width_25";
SidebarPanelWidthType["width33"] = "width_33";
SidebarPanelWidthType["width50"] = "width_50";
SidebarPanelWidthType["width66"] = "width_66";
SidebarPanelWidthType["width75"] = "width_75";
SidebarPanelWidthType["width100"] = "width_100";
})(SidebarPanelWidthType || (SidebarPanelWidthType = {}));
export const SidebarPanel = (_a) => {
var { className, children, variant = 'default', hasNoBackground, hasPadding, width, backgroundVariant = 'default' } = _a, props = __rest(_a, ["className", "children", "variant", "hasNoBackground", "hasPadding", "width", "backgroundVariant"]);
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 })));
};
SidebarPanel.displayName = 'SidebarPanel';
//# sourceMappingURL=SidebarPanel.js.map