@patternfly/react-table 5.0.0-prerelease.24 → 5.0.0-prerelease.26
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/CHANGELOG.md +10 -0
- package/components/package.json +1 -1
- package/deprecated/package.json +1 -1
- package/dist/dynamic/components/Table/package.json +1 -1
- package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
- package/dist/dynamic/components/Table/utils/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
- package/dist/dynamic/deprecated/components/Table/package.json +1 -1
- package/dist/dynamic/deprecated/components/package.json +1 -1
- package/dist/esm/components/Table/ActionsColumn.js +3 -3
- package/dist/esm/components/Table/ActionsColumn.js.map +1 -1
- package/dist/esm/components/Table/TableTypes.d.ts +5 -4
- package/dist/esm/components/Table/TableTypes.d.ts.map +1 -1
- package/dist/esm/components/Table/TableTypes.js.map +1 -1
- package/dist/js/components/Table/ActionsColumn.js +3 -3
- package/dist/js/components/Table/ActionsColumn.js.map +1 -1
- package/dist/js/components/Table/TableTypes.d.ts +5 -4
- package/dist/js/components/Table/TableTypes.d.ts.map +1 -1
- package/dist/js/components/Table/TableTypes.js +1 -0
- package/dist/js/components/Table/TableTypes.js.map +1 -1
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +3 -3
- package/src/components/Table/ActionsColumn.tsx +3 -3
- package/src/components/Table/TableTypes.tsx +5 -4
- package/src/components/Table/examples/Table.md +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "5.0.0-prerelease.
|
|
3
|
+
"version": "5.0.0-prerelease.26",
|
|
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.
|
|
43
|
+
"@patternfly/react-core": "^5.0.0-prerelease.26",
|
|
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": "
|
|
58
|
+
"gitHead": "3976445d6910dbf63d884bc058f7aea3a0dc8a17"
|
|
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,
|
|
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 (
|
|
136
|
+
if (tooltipProps?.content) {
|
|
137
137
|
return (
|
|
138
|
-
<Tooltip key={itemKey || index}
|
|
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
|
-
/**
|
|
158
|
-
|
|
159
|
-
/**
|
|
160
|
-
tooltipProps?:
|
|
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 */
|