| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.Sidebar = exports.SidebarBackgroundVariant = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 7 |
const sidebar_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Sidebar/sidebar")); |
| 8 |
var SidebarBackgroundVariant; |
| 9 |
(function (SidebarBackgroundVariant) { |
| 10 |
SidebarBackgroundVariant["default"] = "default"; |
| 11 |
SidebarBackgroundVariant["secondary"] = "secondary"; |
| 12 |
})(SidebarBackgroundVariant || (exports.SidebarBackgroundVariant = SidebarBackgroundVariant = {})); |
| 13 |
const Sidebar = (_a) => { |
| 14 |
var { className, children, orientation, isPanelRight = false, hasGutter, hasNoBackground, hasBorder } = _a, props = tslib_1.__rest(_a, ["className", "children", "orientation", "isPanelRight", "hasGutter", "hasNoBackground", "hasBorder"]); |
| 15 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(sidebar_1.default.sidebar, hasGutter && sidebar_1.default.modifiers.gutter, hasNoBackground && sidebar_1.default.modifiers.noBackground, isPanelRight && sidebar_1.default.modifiers.panelRight, sidebar_1.default.modifiers[orientation], className) }, props, { children: (0, jsx_runtime_1.jsx)("div", { className: (0, react_styles_1.css)(sidebar_1.default.sidebarMain, hasBorder && sidebar_1.default.modifiers.border), children: children }) }))); |
| 16 |
}; |
| 17 |
exports.Sidebar = Sidebar; |
| 18 |
exports.Sidebar.displayName = 'Sidebar'; |
| 19 |
//# sourceMappingURL=Sidebar.js.map |