@patternfly/react-table 6.1.0 → 6.1.1-prerelease.1
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 +8 -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/DraggableCell.js +1 -1
- package/dist/esm/components/Table/DraggableCell.js.map +1 -1
- package/dist/esm/components/Table/FavoritesCell.js +1 -1
- package/dist/esm/components/Table/FavoritesCell.js.map +1 -1
- package/dist/esm/components/Table/utils/decorators/sortable.js +1 -1
- package/dist/esm/components/Table/utils/decorators/sortable.js.map +1 -1
- package/dist/esm/components/Table/utils/decorators/treeRow.js +2 -2
- package/dist/esm/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +2 -2
- package/dist/esm/demos/DashboardHeader.js.map +1 -1
- package/dist/js/components/Table/DraggableCell.js +1 -1
- package/dist/js/components/Table/DraggableCell.js.map +1 -1
- package/dist/js/components/Table/FavoritesCell.js +1 -1
- package/dist/js/components/Table/FavoritesCell.js.map +1 -1
- package/dist/js/components/Table/utils/decorators/sortable.js +1 -1
- package/dist/js/components/Table/utils/decorators/sortable.js.map +1 -1
- package/dist/js/components/Table/utils/decorators/treeRow.js +2 -2
- package/dist/js/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/js/demos/DashboardHeader.js +2 -2
- package/dist/js/demos/DashboardHeader.js.map +1 -1
- package/dist/umd/assets/{output-CgSNqxUl.css → output-CeZPvnh9.css} +15003 -15003
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
- package/src/components/Table/DraggableCell.tsx +1 -1
- package/src/components/Table/FavoritesCell.tsx +1 -1
- package/src/components/Table/examples/TableTree.tsx +1 -1
- package/src/components/Table/utils/decorators/sortable.tsx +1 -1
- package/src/components/Table/utils/decorators/treeRow.tsx +2 -2
- package/src/demos/DashboardHeader.tsx +2 -2
- package/src/demos/examples/TableColumnManagement.tsx +1 -5
- package/src/demos/examples/TableColumnManagementWithDraggable.tsx +1 -1
- package/src/deprecated/components/Table/examples/LegacyTableTree.tsx +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "6.1.
|
|
3
|
+
"version": "6.1.1-prerelease.1",
|
|
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.mjs --config subpaths.config.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@patternfly/react-core": "^6.1.
|
|
43
|
+
"@patternfly/react-core": "^6.1.1-prerelease.1",
|
|
44
44
|
"@patternfly/react-icons": "^6.1.0",
|
|
45
45
|
"@patternfly/react-styles": "^6.1.0",
|
|
46
46
|
"@patternfly/react-tokens": "^6.1.0",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react": "^17 || ^18",
|
|
52
52
|
"react-dom": "^17 || ^18"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "561f17ebb6ec19c65d0bc7811ff7b0ada358fc31"
|
|
55
55
|
}
|
|
@@ -24,7 +24,7 @@ export const DraggableCell: React.FunctionComponent<DraggableCellProps> = ({
|
|
|
24
24
|
aria-label={ariaLabel || `Draggable row draggable button`}
|
|
25
25
|
onClick={onClick}
|
|
26
26
|
{...props}
|
|
27
|
-
icon={<GripVerticalIcon
|
|
27
|
+
icon={<GripVerticalIcon />}
|
|
28
28
|
/>
|
|
29
29
|
);
|
|
30
30
|
|
|
@@ -139,7 +139,7 @@ export const TableTree: React.FunctionComponent = () => {
|
|
|
139
139
|
const isChecked = isNodeChecked(node);
|
|
140
140
|
let icon = <LeafIcon />;
|
|
141
141
|
if (node.children) {
|
|
142
|
-
icon = isExpanded ? <FolderOpenIcon
|
|
142
|
+
icon = isExpanded ? <FolderOpenIcon /> : <FolderIcon />;
|
|
143
143
|
}
|
|
144
144
|
|
|
145
145
|
const treeRow: TdProps['treeRow'] = {
|
|
@@ -6,7 +6,7 @@ import { SortColumn, SortByDirection } from '../../SortColumn';
|
|
|
6
6
|
import StarIcon from '@patternfly/react-icons/dist/esm/icons/star-icon';
|
|
7
7
|
|
|
8
8
|
export const sortableFavorites = (sort: any) => () =>
|
|
9
|
-
sortable(<StarIcon
|
|
9
|
+
sortable(<StarIcon />, {
|
|
10
10
|
columnIndex: sort.columnIndex,
|
|
11
11
|
className: styles.tableFavorite,
|
|
12
12
|
ariaLabel: sort.ariaLabel ?? 'Sort favorites',
|
|
@@ -55,7 +55,7 @@ export const treeRow =
|
|
|
55
55
|
aria-label={toggleAriaLabel || `${isExpanded ? 'Collapse' : 'Expand'} row ${rowIndex}`}
|
|
56
56
|
icon={
|
|
57
57
|
<div className={css(stylesTreeView.tableToggleIcon)}>
|
|
58
|
-
<AngleDownIcon
|
|
58
|
+
<AngleDownIcon />
|
|
59
59
|
</div>
|
|
60
60
|
}
|
|
61
61
|
/>
|
|
@@ -85,7 +85,7 @@ export const treeRow =
|
|
|
85
85
|
}
|
|
86
86
|
icon={
|
|
87
87
|
<span className={`${styles.table}__details-toggle-icon`}>
|
|
88
|
-
<EllipsisHIcon
|
|
88
|
+
<EllipsisHIcon />
|
|
89
89
|
</span>
|
|
90
90
|
}
|
|
91
91
|
/>
|
|
@@ -137,7 +137,7 @@ export const DashboardHeader: React.FC<DashboardHeaderProps> = ({ notificationBa
|
|
|
137
137
|
onClick={onKebabDropdownToggle}
|
|
138
138
|
variant="plain"
|
|
139
139
|
aria-label="Settings and help"
|
|
140
|
-
icon={<EllipsisVIcon
|
|
140
|
+
icon={<EllipsisVIcon />}
|
|
141
141
|
/>
|
|
142
142
|
)}
|
|
143
143
|
>
|
|
@@ -157,7 +157,7 @@ export const DashboardHeader: React.FC<DashboardHeaderProps> = ({ notificationBa
|
|
|
157
157
|
onClick={onFullKebabToggle}
|
|
158
158
|
variant="plain"
|
|
159
159
|
aria-label="Toolbar menu"
|
|
160
|
-
icon={<EllipsisVIcon
|
|
160
|
+
icon={<EllipsisVIcon />}
|
|
161
161
|
/>
|
|
162
162
|
)}
|
|
163
163
|
>
|
|
@@ -405,11 +405,7 @@ export const TableColumnManagement: React.FunctionComponent = () => {
|
|
|
405
405
|
<MenuToggle icon={<FilterIcon />}>Name</MenuToggle>
|
|
406
406
|
</OverflowMenuItem>
|
|
407
407
|
<OverflowMenuItem>
|
|
408
|
-
<MenuToggle
|
|
409
|
-
variant="plain"
|
|
410
|
-
aria-label="Sort columns"
|
|
411
|
-
icon={<SortAmountDownIcon aria-hidden="true" />}
|
|
412
|
-
/>
|
|
408
|
+
<MenuToggle variant="plain" aria-label="Sort columns" icon={<SortAmountDownIcon />} />
|
|
413
409
|
</OverflowMenuItem>
|
|
414
410
|
<OverflowMenuGroup groupType="button" isPersistent>
|
|
415
411
|
<OverflowMenuItem>
|
|
@@ -594,7 +594,7 @@ export const TableColumnManagementWithDraggable: React.FunctionComponent = () =>
|
|
|
594
594
|
<MenuToggle icon={<FilterIcon />}>Name</MenuToggle>
|
|
595
595
|
</OverflowMenuItem>
|
|
596
596
|
<OverflowMenuItem>
|
|
597
|
-
<MenuToggle variant="plain" aria-label="Sort columns" icon={<SortAmountDownIcon
|
|
597
|
+
<MenuToggle variant="plain" aria-label="Sort columns" icon={<SortAmountDownIcon />} />
|
|
598
598
|
</OverflowMenuItem>
|
|
599
599
|
<OverflowMenuGroup groupType="button" isPersistent>
|
|
600
600
|
<OverflowMenuItem>
|
|
@@ -126,7 +126,7 @@ export const LegacyTableTree: React.FunctionComponent = () => {
|
|
|
126
126
|
const isChecked = isNodeChecked(node);
|
|
127
127
|
let icon = <LeafIcon />;
|
|
128
128
|
if (node.children) {
|
|
129
|
-
icon = isExpanded ? <FolderOpenIcon
|
|
129
|
+
icon = isExpanded ? <FolderOpenIcon /> : <FolderIcon />;
|
|
130
130
|
}
|
|
131
131
|
flattenedNodes.push(node);
|
|
132
132
|
|