@patternfly/react-table 6.6.0-prerelease.9 → 6.6.1-prerelease.0
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 +26 -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/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 +2 -1
- package/dist/esm/components/Table/Tr.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/components/Table/utils/inert.d.ts +6 -0
- package/dist/esm/components/Table/utils/inert.d.ts.map +1 -0
- package/dist/esm/components/Table/utils/inert.js +7 -0
- package/dist/esm/components/Table/utils/inert.js.map +1 -0
- package/dist/esm/demos/DashboardHeader.js +2 -2
- 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 +1 -0
- 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 +2 -1
- package/dist/js/components/Table/Tr.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/components/Table/utils/inert.d.ts +6 -0
- package/dist/js/components/Table/utils/inert.d.ts.map +1 -0
- package/dist/js/components/Table/utils/inert.js +10 -0
- package/dist/js/components/Table/utils/inert.js.map +1 -0
- package/dist/js/demos/DashboardHeader.js +2 -2
- 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 +1 -0
- package/dist/js/deprecated/components/Table/Table.js.map +1 -1
- package/dist/umd/assets/{output-BNeslI6z.css → output-bkpDV61l.css} +4761 -4757
- 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 +2 -1
- package/src/components/Table/examples/Table.md +4 -4
- package/src/components/Table/examples/TableEditable.tsx +2 -2
- package/src/components/Table/examples/TableEmptyState.tsx +7 -2
- package/src/components/Table/examples/TableTree.tsx +3 -3
- package/src/components/Table/utils/decorators/treeRow.tsx +2 -2
- package/src/components/Table/utils/inert.ts +7 -0
- package/src/demos/DashboardHeader.tsx +2 -2
- package/src/demos/Table.md +5 -6
- package/src/demos/examples/TableColumnManagement.tsx +2 -2
- package/src/demos/examples/TableColumnManagementWithDraggable.tsx +2 -2
- package/src/demos/examples/TableCompact.tsx +2 -2
- package/src/demos/examples/TableCompoundExpansion.tsx +2 -2
- package/src/demos/examples/TableEmptyStateDefault.tsx +2 -2
- package/src/demos/examples/TableFilterable.tsx +5 -5
- package/src/demos/examples/TableSortableResponsive.tsx +4 -4
- package/src/demos/examples/TableStaticBottomPagination.tsx +2 -2
- package/src/deprecated/components/Table/Table.tsx +1 -0
- package/src/deprecated/components/Table/__tests__/Table.test.tsx +19 -0
- package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +869 -326
- 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 +3 -3
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
EmptyStateFooter,
|
|
9
9
|
EmptyStateActions
|
|
10
10
|
} from '@patternfly/react-core';
|
|
11
|
-
import
|
|
11
|
+
import RhMicronsSearchIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-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={RhMicronsSearchIcon}
|
|
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 RhUiFolderFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-folder-fill-icon';
|
|
6
|
+
import RhUiFolderOpenFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-folder-open-fill-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 ? <RhUiFolderOpenFillIcon /> : <RhUiFolderFillIcon />;
|
|
130
130
|
}
|
|
131
131
|
flattenedNodes.push(node);
|
|
132
132
|
|
|
@@ -14,14 +14,14 @@ Note: Table lives in its own package at [@patternfly/react-table](https://www.np
|
|
|
14
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.
|
|
15
15
|
|
|
16
16
|
import { Fragment, isValidElement, useCallback, useEffect, useRef, useState } from 'react';
|
|
17
|
-
import
|
|
17
|
+
import RhMicronsSearchIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-search-icon';
|
|
18
18
|
import RhUiCodeIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-code-icon';
|
|
19
19
|
import RhUiBranchFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-branch-fill-icon';
|
|
20
20
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
21
21
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
22
22
|
import LeafIcon from '@patternfly/react-icons/dist/esm/icons/leaf-icon';
|
|
23
|
-
import
|
|
24
|
-
import
|
|
23
|
+
import RhUiFolderFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-folder-fill-icon';
|
|
24
|
+
import RhUiFolderOpenFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-folder-open-fill-icon';
|
|
25
25
|
import RhMicronsSortDownLargeToSmallIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-sort-down-large-to-small-icon';
|
|
26
26
|
import {
|
|
27
27
|
Select as NewSelect,
|