@patternfly/react-table 6.0.0-alpha.85 → 6.0.0-alpha.87

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": "6.0.0-alpha.85",
3
+ "version": "6.0.0-alpha.87",
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",
@@ -40,7 +40,7 @@
40
40
  "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
41
41
  },
42
42
  "dependencies": {
43
- "@patternfly/react-core": "^6.0.0-alpha.84",
43
+ "@patternfly/react-core": "^6.0.0-alpha.86",
44
44
  "@patternfly/react-icons": "^6.0.0-alpha.30",
45
45
  "@patternfly/react-styles": "^6.0.0-alpha.29",
46
46
  "@patternfly/react-tokens": "^6.0.0-alpha.29",
@@ -51,5 +51,5 @@
51
51
  "react": "^17 || ^18",
52
52
  "react-dom": "^17 || ^18"
53
53
  },
54
- "gitHead": "d49fbd742aef4dadd4a1863265e596d9084fed7d"
54
+ "gitHead": "25a8747bbb2bd86419ea3ee470535709f6e7fe26"
55
55
  }
@@ -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>
@@ -109,7 +109,7 @@ export const TableCompoundExpandable: React.FunctionComponent = () => {
109
109
  </Tr>
110
110
  {isRowExpanded ? (
111
111
  <Tr isExpanded={isRowExpanded}>
112
- <Td dataLabel={columnNames[expandedCellKey]} noPadding colSpan={6}>
112
+ <Td dataLabel={columnNames[expandedCellKey]} colSpan={6}>
113
113
  <ExpandableRowContent>
114
114
  <div className={spacing.mMd}>
115
115
  Lorem ipsum sit dolor. Lorem ipsum sit dolor. Lorem ipsum sit dolor. Lorem ipsum sit dolor. Lorem