| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.SidebarPanel = exports.SidebarPanelWidthType = 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 |
const util_1 = require("../../helpers/util"); |
| 9 |
var SidebarPanelWidthType; |
| 10 |
(function (SidebarPanelWidthType) { |
| 11 |
SidebarPanelWidthType["default"] = "default"; |
| 12 |
SidebarPanelWidthType["width25"] = "width_25"; |
| 13 |
SidebarPanelWidthType["width33"] = "width_33"; |
| 14 |
SidebarPanelWidthType["width50"] = "width_50"; |
| 15 |
SidebarPanelWidthType["width66"] = "width_66"; |
| 16 |
SidebarPanelWidthType["width75"] = "width_75"; |
| 17 |
SidebarPanelWidthType["width100"] = "width_100"; |
| 18 |
})(SidebarPanelWidthType || (exports.SidebarPanelWidthType = SidebarPanelWidthType = {})); |
| 19 |
const SidebarPanel = (_a) => { |
| 20 |
var { className, children, variant = 'default', hasNoBackground, hasPadding, width, backgroundVariant = 'default' } = _a, props = tslib_1.__rest(_a, ["className", "children", "variant", "hasNoBackground", "hasPadding", "width", "backgroundVariant"]); |
| 21 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(sidebar_1.default.sidebarPanel, variant !== 'default' && sidebar_1.default.modifiers[variant], hasNoBackground && sidebar_1.default.modifiers.noBackground, hasPadding && sidebar_1.default.modifiers.padding, (0, util_1.formatBreakpointMods)(width, sidebar_1.default), backgroundVariant !== 'default' && sidebar_1.default.modifiers[backgroundVariant], className) }, props, { children: children }))); |
| 22 |
}; |
| 23 |
exports.SidebarPanel = SidebarPanel; |
| 24 |
exports.SidebarPanel.displayName = 'SidebarPanel'; |
| 25 |
//# sourceMappingURL=SidebarPanel.js.map |