"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.SidebarPanel = exports.SidebarPanelWidthType = void 0;
const tslib_1 = require("tslib");
const React = tslib_1.__importStar(require("react"));
const react_styles_1 = require("@patternfly/react-styles");
const sidebar_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Sidebar/sidebar"));
const util_1 = require("../../helpers/util");
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 = exports.SidebarPanelWidthType || (exports.SidebarPanelWidthType = {}));
const SidebarPanel = (_a) => {
    var { className, children, variant = 'default', hasNoBackground, hasPadding, width } = _a, props = tslib_1.__rest(_a, ["className", "children", "variant", "hasNoBackground", "hasPadding", "width"]);
    return (React.createElement("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), className) }, props), children));
};
exports.SidebarPanel = SidebarPanel;
exports.SidebarPanel.displayName = 'SidebarPanel';
//# sourceMappingURL=SidebarPanel.js.map