@patternfly/react-table 5.4.0-prerelease.21 → 5.4.0-prerelease.22

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "5.4.0-prerelease.21",
3
+ "version": "5.4.0-prerelease.22",
4
4
  "description": "This library provides a set of React table components for use with the PatternFly 4",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -50,5 +50,5 @@
50
50
  "react": "^17 || ^18",
51
51
  "react-dom": "^17 || ^18"
52
52
  },
53
- "gitHead": "471218c7aa7f9ee4ed972da44c37a76b433bfefe"
53
+ "gitHead": "03c18995f2f8798f141808bacae0af5d9391e982"
54
54
  }
@@ -28,6 +28,8 @@ export interface TrProps extends Omit<React.HTMLProps<HTMLTableRowElement>, 'onR
28
28
  isStriped?: boolean;
29
29
  /** Flag indicating the row will act as a border. This is typically used for a table with a nested and sticky header. */
30
30
  isBorderRow?: boolean;
31
+ /** Flag indicating the row is controlling the expansion of another row. */
32
+ isControlRow?: boolean;
31
33
  /** An event handler for the row */
32
34
  onRowClick?: (event?: React.KeyboardEvent | React.MouseEvent) => void;
33
35
  /** Flag indicating that the row is selectable */
@@ -50,6 +52,7 @@ const TrBase: React.FunctionComponent<TrProps> = ({
50
52
  isRowSelected = false,
51
53
  isStriped = false,
52
54
  isBorderRow = false,
55
+ isControlRow = false,
53
56
  innerRef,
54
57
  ouiaId,
55
58
  ouiaSafe = true,
@@ -100,6 +103,7 @@ const TrBase: React.FunctionComponent<TrProps> = ({
100
103
  isRowSelected && styles.modifiers.selected,
101
104
  isStriped && styles.modifiers.striped,
102
105
  isBorderRow && styles.modifiers.borderRow,
106
+ isControlRow && styles.tableControlRow,
103
107
  resetOffset && styles.modifiers.firstCellOffsetReset
104
108
  )}
105
109
  hidden={rowIsHidden}
@@ -75,7 +75,7 @@ export const TableCompoundExpandable: React.FunctionComponent = () => {
75
75
  const isRowExpanded = !!expandedCellKey;
76
76
  return (
77
77
  <Tbody key={repo.name} isExpanded={isRowExpanded}>
78
- <Tr>
78
+ <Tr isControlRow>
79
79
  <Td width={25} dataLabel={columnNames.name} component="th">
80
80
  <a href="#">{repo.name}</a>
81
81
  </Td>