@patternfly/react-table 5.0.0-alpha.59 → 5.0.0-alpha.60

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.0.0-alpha.59",
3
+ "version": "5.0.0-alpha.60",
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",
@@ -39,7 +39,7 @@
39
39
  "subpaths": "node scripts/createSubpaths.js"
40
40
  },
41
41
  "dependencies": {
42
- "@patternfly/react-core": "^5.0.0-alpha.58",
42
+ "@patternfly/react-core": "^5.0.0-alpha.59",
43
43
  "@patternfly/react-icons": "^5.0.0-alpha.9",
44
44
  "@patternfly/react-styles": "^5.0.0-alpha.6",
45
45
  "@patternfly/react-tokens": "^5.0.0-alpha.6",
@@ -54,5 +54,5 @@
54
54
  "react": "^17 || ^18",
55
55
  "react-dom": "^17 || ^18"
56
56
  },
57
- "gitHead": "fc36268d68c08a19ef06a3b0a555d21c8ab98b6c"
57
+ "gitHead": "3eacdfd9af09ad538b0293e0452bbe7bfb72cec2"
58
58
  }
@@ -120,7 +120,7 @@ const TdBase: React.FunctionComponent<TdProps> = ({
120
120
  rowIndex: select.rowIndex,
121
121
  rowData: {
122
122
  selected: select.isSelected,
123
- disableSelection: select?.disable,
123
+ disableSelection: select?.isDisabled,
124
124
  props: select?.props
125
125
  },
126
126
  column: {
@@ -45,8 +45,8 @@ export interface TdSelectType {
45
45
  onSelect?: OnSelect;
46
46
  /** Whether the cell is selected */
47
47
  isSelected: boolean;
48
- /** Whether to disable the selection */
49
- disable?: boolean;
48
+ /** Whether the selection is disabled */
49
+ isDisabled?: boolean;
50
50
  /** The row index */
51
51
  rowIndex: number;
52
52
  /** Additional props forwarded to select rowData */
@@ -109,7 +109,7 @@ export const TableSelectable: React.FunctionComponent = () => {
109
109
  rowIndex,
110
110
  onSelect: (_event, isSelecting) => onSelectRepo(repo, rowIndex, isSelecting),
111
111
  isSelected: isRepoSelected(repo),
112
- disable: !isRepoSelectable(repo)
112
+ isDisabled: !isRepoSelectable(repo)
113
113
  }}
114
114
  />
115
115
  <Td dataLabel={columnNames.name}>{repo.name}</Td>
@@ -51,7 +51,7 @@ export const TableSelectableRadio: React.FunctionComponent = () => {
51
51
  rowIndex,
52
52
  onSelect: () => setSelectedRepoName(repo.name),
53
53
  isSelected: selectedRepoName === repo.name,
54
- disable: !isRepoSelectable(repo),
54
+ isDisabled: !isRepoSelectable(repo),
55
55
  variant: 'radio'
56
56
  }}
57
57
  />