| 1 |
"use strict"; |
| 2 |
Object.defineProperty(exports, "__esModule", { value: true }); |
| 3 |
exports.DrawerSection = void 0; |
| 4 |
const tslib_1 = require("tslib"); |
| 5 |
const jsx_runtime_1 = require("react/jsx-runtime"); |
| 6 |
const drawer_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Drawer/drawer")); |
| 7 |
const react_styles_1 = require("@patternfly/react-styles"); |
| 8 |
const Drawer_1 = require("./Drawer"); |
| 9 |
const DrawerSection = (_a) => { |
| 10 |
var { className = '', children, colorVariant = Drawer_1.DrawerColorVariant.default, isPlain = false } = _a, props = tslib_1.__rest(_a, ["className", "children", "colorVariant", "isPlain"]); |
| 11 |
return ((0, jsx_runtime_1.jsx)("div", Object.assign({ className: (0, react_styles_1.css)(drawer_1.default.drawerSection, isPlain && drawer_1.default.modifiers.plain, colorVariant === Drawer_1.DrawerColorVariant.noBackground && drawer_1.default.modifiers.noBackground, colorVariant === Drawer_1.DrawerColorVariant.secondary && drawer_1.default.modifiers.secondary, className) }, props, { children: children }))); |
| 12 |
}; |
| 13 |
exports.DrawerSection = DrawerSection; |
| 14 |
exports.DrawerSection.displayName = 'DrawerSection'; |
| 15 |
//# sourceMappingURL=DrawerSection.js.map |