Debian Codegraph @

node/@patternfly/react-core/dist/esm/components/Sidebar/Sidebar.js

raw
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 export var SidebarBackgroundVariant;
6 (function (SidebarBackgroundVariant) {
7 SidebarBackgroundVariant["default"] = "default";
8 SidebarBackgroundVariant["secondary"] = "secondary";
9 })(SidebarBackgroundVariant || (SidebarBackgroundVariant = {}));
10 export const Sidebar = (_a) => {
11 var { className, children, orientation, isPanelRight = false, hasGutter, hasNoBackground, hasBorder } = _a, props = __rest(_a, ["className", "children", "orientation", "isPanelRight", "hasGutter", "hasNoBackground", "hasBorder"]);
12 return (_jsx("div", Object.assign({ className: css(styles.sidebar, hasGutter && styles.modifiers.gutter, hasNoBackground && styles.modifiers.noBackground, isPanelRight && styles.modifiers.panelRight, styles.modifiers[orientation], className) }, props, { children: _jsx("div", { className: css(styles.sidebarMain, hasBorder && styles.modifiers.border), children: children }) })));
13 };
14 Sidebar.displayName = 'Sidebar';
15 //# sourceMappingURL=Sidebar.js.map