| 1 |
import { __rest } from "tslib"; |
| 2 |
import { jsx as _jsx } from "react/jsx-runtime"; |
| 3 |
import { css } from '@patternfly/react-styles'; |
| 4 |
import styles from '@patternfly/react-styles/css/components/Table/table.mjs'; |
| 5 |
import stylesTreeView from '@patternfly/react-styles/css/components/Table/table-tree-view.mjs'; |
| 6 |
import { Tr } from './Tr'; |
| 7 |
export const DraggableRowWrapper = (_a) => { |
| 8 |
var { className, |
| 9 |
// eslint-disable-next-line @typescript-eslint/no-unused-vars |
| 10 |
rowProps, row } = _a, props = __rest(_a, ["className", "rowProps", "row"]); |
| 11 |
const { 'aria-level': level, 'aria-posinset': posinset, 'aria-setsize': setsize, isExpanded, isDetailsExpanded, isHidden } = row.props; |
| 12 |
return (_jsx(Tr, Object.assign({ "aria-level": level, "aria-posinset": posinset, "aria-setsize": setsize, "aria-expanded": !!isExpanded, isHidden: isHidden, className: css(className, isExpanded && styles.modifiers.expanded, isDetailsExpanded && stylesTreeView.modifiers.treeViewDetailsExpanded) }, props))); |
| 13 |
}; |
| 14 |
DraggableRowWrapper.displayName = 'DraggableRowWrapper'; |
| 15 |
//# sourceMappingURL=DraggableRowWrapper.js.map |