@patternfly/react-table 6.6.1-prerelease.6 → 6.6.2
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 +2 -40
- 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/EditColumn.js +2 -2
- package/dist/esm/components/Table/EditColumn.js.map +1 -1
- package/dist/esm/components/Table/HeaderCellInfoWrapper.js +2 -2
- package/dist/esm/components/Table/HeaderCellInfoWrapper.js.map +1 -1
- package/dist/esm/components/Table/SortColumn.js +5 -5
- package/dist/esm/components/Table/SortColumn.js.map +1 -1
- package/dist/esm/components/Table/Tr.d.ts.map +1 -1
- package/dist/esm/components/Table/Tr.js +1 -2
- package/dist/esm/components/Table/Tr.js.map +1 -1
- package/dist/esm/demos/DashboardHeader.js +3 -3
- package/dist/esm/demos/DashboardHeader.js.map +1 -1
- package/dist/esm/deprecated/components/Table/Table.d.ts.map +1 -1
- package/dist/esm/deprecated/components/Table/Table.js +0 -1
- package/dist/esm/deprecated/components/Table/Table.js.map +1 -1
- package/dist/js/components/Table/EditColumn.js +2 -2
- package/dist/js/components/Table/EditColumn.js.map +1 -1
- package/dist/js/components/Table/HeaderCellInfoWrapper.js +2 -2
- package/dist/js/components/Table/HeaderCellInfoWrapper.js.map +1 -1
- package/dist/js/components/Table/SortColumn.js +5 -5
- package/dist/js/components/Table/SortColumn.js.map +1 -1
- package/dist/js/components/Table/Tr.d.ts.map +1 -1
- package/dist/js/components/Table/Tr.js +1 -2
- package/dist/js/components/Table/Tr.js.map +1 -1
- package/dist/js/demos/DashboardHeader.js +3 -3
- package/dist/js/demos/DashboardHeader.js.map +1 -1
- package/dist/js/deprecated/components/Table/Table.d.ts.map +1 -1
- package/dist/js/deprecated/components/Table/Table.js +0 -1
- package/dist/js/deprecated/components/Table/Table.js.map +1 -1
- package/dist/umd/assets/{output-DRG_VfPB.css → output-DWpq4Q2w.css} +5354 -5354
- package/dist/umd/react-table.min.js +2 -2
- package/package.json +6 -6
- package/src/components/Table/EditColumn.tsx +2 -2
- package/src/components/Table/HeaderCellInfoWrapper.tsx +3 -3
- package/src/components/Table/SortColumn.tsx +5 -5
- package/src/components/Table/Tr.tsx +1 -2
- package/src/components/Table/examples/Table.md +4 -4
- package/src/components/Table/examples/TableEditable.tsx +37 -35
- package/src/components/Table/examples/TableEmptyState.tsx +2 -7
- package/src/components/Table/examples/TableTree.tsx +3 -3
- package/src/demos/DashboardHeader.tsx +3 -3
- package/src/demos/Table.md +6 -5
- package/src/demos/examples/TableColumnManagement.tsx +6 -7
- package/src/demos/examples/TableColumnManagementWithDraggable.tsx +6 -7
- package/src/demos/examples/TableCompact.tsx +7 -8
- package/src/demos/examples/TableCompoundExpansion.tsx +2 -2
- package/src/demos/examples/TableEmptyStateDefault.tsx +2 -2
- package/src/demos/examples/TableExpandCollapseAll.tsx +6 -6
- package/src/demos/examples/TableFilterable.tsx +9 -10
- package/src/demos/examples/TableSortableResponsive.tsx +9 -10
- package/src/demos/examples/TableStaticBottomPagination.tsx +7 -8
- package/src/demos/examples/TableStickyHeader.tsx +6 -6
- package/src/deprecated/components/Table/Table.tsx +0 -1
- package/src/deprecated/components/Table/__tests__/Table.test.tsx +0 -19
- package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +326 -869
- package/src/deprecated/components/Table/examples/LegacyTableEmptyState.tsx +2 -2
- package/src/deprecated/components/Table/examples/LegacyTableTree.tsx +3 -3
- package/src/deprecated/components/Table/examples/Table.md +4 -3
- package/dist/esm/components/Table/utils/inert.d.ts +0 -6
- package/dist/esm/components/Table/utils/inert.d.ts.map +0 -1
- package/dist/esm/components/Table/utils/inert.js +0 -7
- package/dist/esm/components/Table/utils/inert.js.map +0 -1
- package/dist/js/components/Table/utils/inert.d.ts +0 -6
- package/dist/js/components/Table/utils/inert.d.ts.map +0 -1
- package/dist/js/components/Table/utils/inert.js +0 -10
- package/dist/js/components/Table/utils/inert.js.map +0 -1
- package/src/components/Table/utils/inert.ts +0 -7
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
EmptyStateFooter,
|
|
9
9
|
EmptyStateActions
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
-
import
|
|
11
|
+
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
12
12
|
|
|
13
13
|
// This example has been simplified to focus on the empty state. In real usage,
|
|
14
14
|
// you may want to derive your rows from typed underlying data and minimal state. See other examples.
|
|
@@ -26,7 +26,7 @@ export const LegacyTableEmptyState: React.FunctionComponent = () => {
|
|
|
26
26
|
<EmptyState
|
|
27
27
|
headingLevel="h2"
|
|
28
28
|
titleText="No results found"
|
|
29
|
-
icon={
|
|
29
|
+
icon={SearchIcon}
|
|
30
30
|
variant={EmptyStateVariant.sm}
|
|
31
31
|
>
|
|
32
32
|
<EmptyStateBody>Clear all filters and try again.</EmptyStateBody>
|
|
@@ -2,8 +2,8 @@ import { useState } from 'react';
|
|
|
2
2
|
import { treeRow, IRow, OnTreeRowCollapse, OnCheckChange, OnToggleRowDetails } from '@patternfly/react-table';
|
|
3
3
|
import { Table, TableHeader, TableBody } from '@patternfly/react-table/deprecated';
|
|
4
4
|
import LeafIcon from '@patternfly/react-icons/dist/esm/icons/leaf-icon';
|
|
5
|
-
import
|
|
6
|
-
import
|
|
5
|
+
import FolderIcon from '@patternfly/react-icons/dist/esm/icons/folder-icon';
|
|
6
|
+
import FolderOpenIcon from '@patternfly/react-icons/dist/esm/icons/folder-open-icon';
|
|
7
7
|
|
|
8
8
|
interface RepositoriesTreeNode {
|
|
9
9
|
name: string;
|
|
@@ -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 ? <
|
|
129
|
+
icon = isExpanded ? <FolderOpenIcon /> : <FolderIcon />;
|
|
130
130
|
}
|
|
131
131
|
flattenedNodes.push(node);
|
|
132
132
|
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
id: Table
|
|
3
|
+
cssPrefix: pf-c-table
|
|
3
4
|
section: components
|
|
4
5
|
propComponents: ['Table', 'TableHeader', 'TableBody', 'ISortBy']
|
|
5
6
|
ouia: true
|
|
@@ -13,14 +14,14 @@ Note: Table lives in its own package at [@patternfly/react-table](https://www.np
|
|
|
13
14
|
This deprecated `Table` component is configuration-based and takes a less declarative and more implicit approach to laying out the table structure, such as the rows and cells within it.
|
|
14
15
|
|
|
15
16
|
import { Fragment, isValidElement, useCallback, useEffect, useRef, useState } from 'react';
|
|
16
|
-
import
|
|
17
|
+
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
17
18
|
import RhUiCodeIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-code-icon';
|
|
18
19
|
import RhUiBranchFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-branch-fill-icon';
|
|
19
20
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
20
21
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
21
22
|
import LeafIcon from '@patternfly/react-icons/dist/esm/icons/leaf-icon';
|
|
22
|
-
import
|
|
23
|
-
import
|
|
23
|
+
import FolderIcon from '@patternfly/react-icons/dist/esm/icons/folder-icon';
|
|
24
|
+
import FolderOpenIcon from '@patternfly/react-icons/dist/esm/icons/folder-open-icon';
|
|
24
25
|
import RhMicronsSortDownLargeToSmallIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-sort-down-large-to-small-icon';
|
|
25
26
|
import {
|
|
26
27
|
Select as NewSelect,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inert.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/utils/inert.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,QAAQ,SAA0E,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { version } from 'react';
|
|
2
|
-
/**
|
|
3
|
-
* Before React 19, React JSX treats empty string "" as truthy for inert prop.
|
|
4
|
-
* @see {@link https://stackoverflow.com/questions/72720469}
|
|
5
|
-
*/
|
|
6
|
-
export const IS_INERT = Number(version.split('.')[0]) >= 19 ? true : '';
|
|
7
|
-
//# sourceMappingURL=inert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inert.js","sourceRoot":"","sources":["../../../../../src/components/Table/utils/inert.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,OAAO,CAAC;AAEhC;;;GAGG;AACH,MAAM,CAAC,MAAM,QAAQ,GAAG,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,EAAyB,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inert.d.ts","sourceRoot":"","sources":["../../../../../src/components/Table/utils/inert.ts"],"names":[],"mappings":"AAEA;;;GAGG;AACH,eAAO,MAAM,QAAQ,SAA0E,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.IS_INERT = void 0;
|
|
4
|
-
const react_1 = require("react");
|
|
5
|
-
/**
|
|
6
|
-
* Before React 19, React JSX treats empty string "" as truthy for inert prop.
|
|
7
|
-
* @see {@link https://stackoverflow.com/questions/72720469}
|
|
8
|
-
*/
|
|
9
|
-
exports.IS_INERT = Number(react_1.version.split('.')[0]) >= 19 ? true : '';
|
|
10
|
-
//# sourceMappingURL=inert.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"inert.js","sourceRoot":"","sources":["../../../../../src/components/Table/utils/inert.ts"],"names":[],"mappings":";;;AAAA,iCAAgC;AAEhC;;;GAGG;AACU,QAAA,QAAQ,GAAG,MAAM,CAAC,eAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAE,EAAyB,CAAC"}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { version } from 'react';
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* Before React 19, React JSX treats empty string "" as truthy for inert prop.
|
|
5
|
-
* @see {@link https://stackoverflow.com/questions/72720469}
|
|
6
|
-
*/
|
|
7
|
-
export const IS_INERT = Number(version.split('.')[0]) >= 19 ? true : ('' as unknown as boolean);
|