/*
 * Copyright 2021 The Kubernetes Authors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 * http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
import React from 'react';
import { TableComposable, Thead, Tbody, Th, Tr, Td } from '@patternfly/react-table/dist/esm/components/TableComposable';
export function table(props) {
    return (React.createElement(TableComposable, { variant: "compact", className: props.className + ' kui--table-like' }, props.children));
}
export function thead(props) {
    return React.createElement(Thead, { className: props.className }, props.children);
}
export function tbody(props) {
    return React.createElement(Tbody, { className: props.className }, props.children);
}
export function tr(props) {
    return React.createElement(Tr, { className: props.className }, props.children);
}
export function th(props) {
    // hmm, without modifier=wrap, PatternFly (or is it electron
    // 13?)... if the td content is narrower than the th content, they
    // seem to favor favor ellipsis for that wider column header. This
    // looks especially bad if the td content is quite narrow.
    return (React.createElement(Th, { className: props.className, modifier: "wrap" }, props.children));
}
export function td(props) {
    return React.createElement(Td, { className: props.className }, props.children);
}
//# sourceMappingURL=table.js.map