@patternfly/react-table 5.0.0-prerelease.24 → 5.0.0-prerelease.25

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-prerelease.24",
3
+ "version": "5.0.0-prerelease.25",
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": "^5.0.0-prerelease.24",
43
+ "@patternfly/react-core": "^5.0.0-prerelease.25",
44
44
  "@patternfly/react-icons": "^5.0.0-prerelease.9",
45
45
  "@patternfly/react-styles": "^5.0.0-prerelease.7",
46
46
  "@patternfly/react-tokens": "^5.0.0-prerelease.9",
@@ -55,5 +55,5 @@
55
55
  "react": "^17 || ^18",
56
56
  "react-dom": "^17 || ^18"
57
57
  },
58
- "gitHead": "84f2a1ecd3211da181754c55d9257feab2ddd205"
58
+ "gitHead": "b70bc3268c58e7d5bcf798b177b46017d79428a1"
59
59
  }
@@ -114,7 +114,7 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
114
114
  <DropdownList>
115
115
  {items
116
116
  .filter((item) => !item.isOutsideDropdown)
117
- .map(({ title, itemKey, onClick, tooltip, tooltipProps, isSeparator, ...props }, index) => {
117
+ .map(({ title, itemKey, onClick, tooltipProps, isSeparator, ...props }, index) => {
118
118
  if (isSeparator) {
119
119
  return <Divider key={itemKey || index} data-key={itemKey || index} />;
120
120
  }
@@ -133,9 +133,9 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
133
133
  </DropdownItem>
134
134
  );
135
135
 
136
- if (tooltip) {
136
+ if (tooltipProps?.content) {
137
137
  return (
138
- <Tooltip key={itemKey || index} content={tooltip} {...tooltipProps}>
138
+ <Tooltip key={itemKey || index} {...tooltipProps}>
139
139
  {item}
140
140
  </Tooltip>
141
141
  );
@@ -5,6 +5,7 @@ import { DropdownDirection, DropdownPosition } from '@patternfly/react-core/dist
5
5
  import * as React from 'react';
6
6
  import { CustomActionsToggleProps } from './ActionsColumn';
7
7
  import { ButtonProps } from '@patternfly/react-core/dist/esm/components/Button';
8
+ import { TooltipProps } from '@patternfly/react-core/dist/esm/components/Tooltip';
8
9
 
9
10
  export enum TableGridBreakpoint {
10
11
  none = '',
@@ -154,10 +155,10 @@ export interface IAction extends Omit<DropdownItemProps, 'title' | 'onClick'>, P
154
155
  itemKey?: string;
155
156
  /** Content to display in the actions menu item */
156
157
  title?: string | React.ReactNode;
157
- /** Tooltip to display when hovered over the item */
158
- tooltip?: React.ReactNode;
159
- /** Additional props forwarded to the tooltip component */
160
- tooltipProps?: any;
158
+ /** Render item as aria-disabled option */
159
+ isAriaDisabled?: boolean;
160
+ /** Props for adding a tooltip to a menu item. This is used to display tooltip when hovered over the item */
161
+ tooltipProps?: TooltipProps;
161
162
  /** Click handler for the actions menu item */
162
163
  onClick?: (event: React.MouseEvent, rowIndex: number, rowData: IRowData, extraData: IExtraData) => void;
163
164
  /** Flag indicating this action should be placed outside the actions menu, beside the toggle */
@@ -17,7 +17,6 @@ propComponents:
17
17
  'ThSelectType',
18
18
  'TdTreeRowType',
19
19
  'ActionsColumn',
20
- 'IActions',
21
20
  'TdCompoundExpandType',
22
21
  'TdFavoritesType',
23
22
  'TdDraggableType',