Debian Codegraph @

node/@patternfly/react-table/dist/js/components/Table/Thead.js

raw
1 "use strict";
2 Object.defineProperty(exports, "__esModule", { value: true });
3 exports.Thead = void 0;
4 const tslib_1 = require("tslib");
5 const jsx_runtime_1 = require("react/jsx-runtime");
6 const react_1 = require("react");
7 const react_styles_1 = require("@patternfly/react-styles");
8 const table_1 = tslib_1.__importDefault(require("@patternfly/react-styles/css/components/Table/table"));
9 const TheadBase = (_a) => {
10 var { children, className, noWrap = false, innerRef, hasNestedHeader } = _a, props = tslib_1.__rest(_a, ["children", "className", "noWrap", "innerRef", "hasNestedHeader"]);
11 return ((0, jsx_runtime_1.jsx)("thead", Object.assign({ className: (0, react_styles_1.css)(table_1.default.tableThead, className, noWrap && table_1.default.modifiers.nowrap, hasNestedHeader && table_1.default.modifiers.nestedColumnHeader), ref: innerRef }, props, { children: children })));
12 };
13 exports.Thead = (0, react_1.forwardRef)((props, ref) => ((0, jsx_runtime_1.jsx)(TheadBase, Object.assign({}, props, { innerRef: ref }))));
14 exports.Thead.displayName = 'Thead';
15 //# sourceMappingURL=Thead.js.map