@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.
Files changed (75) hide show
  1. package/CHANGELOG.md +2 -40
  2. package/components/package.json +1 -1
  3. package/deprecated/package.json +1 -1
  4. package/dist/dynamic/components/Table/package.json +1 -1
  5. package/dist/dynamic/components/Table/utils/decorators/package.json +1 -1
  6. package/dist/dynamic/components/Table/utils/package.json +1 -1
  7. package/dist/dynamic/deprecated/components/Table/base/package.json +1 -1
  8. package/dist/dynamic/deprecated/components/Table/package.json +1 -1
  9. package/dist/dynamic/deprecated/components/package.json +1 -1
  10. package/dist/esm/components/Table/EditColumn.js +2 -2
  11. package/dist/esm/components/Table/EditColumn.js.map +1 -1
  12. package/dist/esm/components/Table/HeaderCellInfoWrapper.js +2 -2
  13. package/dist/esm/components/Table/HeaderCellInfoWrapper.js.map +1 -1
  14. package/dist/esm/components/Table/SortColumn.js +5 -5
  15. package/dist/esm/components/Table/SortColumn.js.map +1 -1
  16. package/dist/esm/components/Table/Tr.d.ts.map +1 -1
  17. package/dist/esm/components/Table/Tr.js +1 -2
  18. package/dist/esm/components/Table/Tr.js.map +1 -1
  19. package/dist/esm/demos/DashboardHeader.js +3 -3
  20. package/dist/esm/demos/DashboardHeader.js.map +1 -1
  21. package/dist/esm/deprecated/components/Table/Table.d.ts.map +1 -1
  22. package/dist/esm/deprecated/components/Table/Table.js +0 -1
  23. package/dist/esm/deprecated/components/Table/Table.js.map +1 -1
  24. package/dist/js/components/Table/EditColumn.js +2 -2
  25. package/dist/js/components/Table/EditColumn.js.map +1 -1
  26. package/dist/js/components/Table/HeaderCellInfoWrapper.js +2 -2
  27. package/dist/js/components/Table/HeaderCellInfoWrapper.js.map +1 -1
  28. package/dist/js/components/Table/SortColumn.js +5 -5
  29. package/dist/js/components/Table/SortColumn.js.map +1 -1
  30. package/dist/js/components/Table/Tr.d.ts.map +1 -1
  31. package/dist/js/components/Table/Tr.js +1 -2
  32. package/dist/js/components/Table/Tr.js.map +1 -1
  33. package/dist/js/demos/DashboardHeader.js +3 -3
  34. package/dist/js/demos/DashboardHeader.js.map +1 -1
  35. package/dist/js/deprecated/components/Table/Table.d.ts.map +1 -1
  36. package/dist/js/deprecated/components/Table/Table.js +0 -1
  37. package/dist/js/deprecated/components/Table/Table.js.map +1 -1
  38. package/dist/umd/assets/{output-DRG_VfPB.css → output-DWpq4Q2w.css} +5354 -5354
  39. package/dist/umd/react-table.min.js +2 -2
  40. package/package.json +6 -6
  41. package/src/components/Table/EditColumn.tsx +2 -2
  42. package/src/components/Table/HeaderCellInfoWrapper.tsx +3 -3
  43. package/src/components/Table/SortColumn.tsx +5 -5
  44. package/src/components/Table/Tr.tsx +1 -2
  45. package/src/components/Table/examples/Table.md +4 -4
  46. package/src/components/Table/examples/TableEditable.tsx +37 -35
  47. package/src/components/Table/examples/TableEmptyState.tsx +2 -7
  48. package/src/components/Table/examples/TableTree.tsx +3 -3
  49. package/src/demos/DashboardHeader.tsx +3 -3
  50. package/src/demos/Table.md +6 -5
  51. package/src/demos/examples/TableColumnManagement.tsx +6 -7
  52. package/src/demos/examples/TableColumnManagementWithDraggable.tsx +6 -7
  53. package/src/demos/examples/TableCompact.tsx +7 -8
  54. package/src/demos/examples/TableCompoundExpansion.tsx +2 -2
  55. package/src/demos/examples/TableEmptyStateDefault.tsx +2 -2
  56. package/src/demos/examples/TableExpandCollapseAll.tsx +6 -6
  57. package/src/demos/examples/TableFilterable.tsx +9 -10
  58. package/src/demos/examples/TableSortableResponsive.tsx +9 -10
  59. package/src/demos/examples/TableStaticBottomPagination.tsx +7 -8
  60. package/src/demos/examples/TableStickyHeader.tsx +6 -6
  61. package/src/deprecated/components/Table/Table.tsx +0 -1
  62. package/src/deprecated/components/Table/__tests__/Table.test.tsx +0 -19
  63. package/src/deprecated/components/Table/__tests__/__snapshots__/Table.test.tsx.snap +326 -869
  64. package/src/deprecated/components/Table/examples/LegacyTableEmptyState.tsx +2 -2
  65. package/src/deprecated/components/Table/examples/LegacyTableTree.tsx +3 -3
  66. package/src/deprecated/components/Table/examples/Table.md +4 -3
  67. package/dist/esm/components/Table/utils/inert.d.ts +0 -6
  68. package/dist/esm/components/Table/utils/inert.d.ts.map +0 -1
  69. package/dist/esm/components/Table/utils/inert.js +0 -7
  70. package/dist/esm/components/Table/utils/inert.js.map +0 -1
  71. package/dist/js/components/Table/utils/inert.d.ts +0 -6
  72. package/dist/js/components/Table/utils/inert.d.ts.map +0 -1
  73. package/dist/js/components/Table/utils/inert.js +0 -10
  74. package/dist/js/components/Table/utils/inert.js.map +0 -1
  75. 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 RhMicronsSearchIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-search-icon';
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={RhMicronsSearchIcon}
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 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';
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 ? <RhUiFolderOpenFillIcon /> : <RhUiFolderFillIcon />;
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 RhMicronsSearchIcon from '@patternfly/react-icons/dist/esm/icons/rh-microns-search-icon';
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 RhUiFolderFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-folder-fill-icon';
23
- import RhUiFolderOpenFillIcon from '@patternfly/react-icons/dist/esm/icons/rh-ui-folder-open-fill-icon';
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,6 +0,0 @@
1
- /**
2
- * Before React 19, React JSX treats empty string "" as truthy for inert prop.
3
- * @see {@link https://stackoverflow.com/questions/72720469}
4
- */
5
- export declare const IS_INERT: boolean;
6
- //# sourceMappingURL=inert.d.ts.map
@@ -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,6 +0,0 @@
1
- /**
2
- * Before React 19, React JSX treats empty string "" as truthy for inert prop.
3
- * @see {@link https://stackoverflow.com/questions/72720469}
4
- */
5
- export declare const IS_INERT: boolean;
6
- //# sourceMappingURL=inert.d.ts.map
@@ -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);