@patternfly/react-table 5.1.1-prerelease.9 → 5.2.0-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 +74 -0
- package/README.md +1 -1
- 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.d.ts +1 -1
- package/dist/esm/components/Table/ActionsColumn.d.ts.map +1 -1
- package/dist/esm/components/Table/ActionsColumn.js +1 -1
- package/dist/esm/components/Table/ActionsColumn.js.map +1 -1
- package/dist/esm/components/Table/RowWrapper.d.ts +1 -1
- package/dist/esm/components/Table/Table.d.ts +1 -1
- package/dist/esm/components/Table/Table.d.ts.map +1 -1
- package/dist/esm/components/Table/Tbody.d.ts +1 -1
- package/dist/esm/components/Table/Tbody.d.ts.map +1 -1
- package/dist/esm/components/Table/Td.d.ts +1 -1
- package/dist/esm/components/Table/Td.d.ts.map +1 -1
- package/dist/esm/components/Table/Th.d.ts +1 -1
- package/dist/esm/components/Table/Th.d.ts.map +1 -1
- package/dist/esm/components/Table/Thead.d.ts +1 -1
- package/dist/esm/components/Table/Thead.d.ts.map +1 -1
- package/dist/esm/components/Table/Tr.d.ts +2 -2
- package/dist/esm/components/Table/Tr.d.ts.map +1 -1
- package/dist/esm/components/Table/base/provider.d.ts +8 -8
- package/dist/esm/components/Table/base/types.d.ts +7 -7
- package/dist/esm/components/Table/utils/decorators/treeRow.d.ts +2 -2
- package/dist/esm/components/Table/utils/decorators/treeRow.d.ts.map +1 -1
- package/dist/esm/deprecated/components/Table/Body.d.ts +1 -1
- package/dist/esm/deprecated/components/Table/Body.d.ts.map +1 -1
- package/dist/esm/deprecated/components/Table/Table.d.ts +1 -1
- package/dist/esm/deprecated/components/Table/base/body.d.ts +8 -2
- package/dist/esm/deprecated/components/Table/base/body.d.ts.map +1 -1
- package/dist/esm/deprecated/components/Table/base/header.d.ts +1 -1
- package/dist/esm/deprecated/components/Table/base/header.d.ts.map +1 -1
- package/dist/js/components/Table/ActionsColumn.d.ts +1 -1
- package/dist/js/components/Table/ActionsColumn.d.ts.map +1 -1
- package/dist/js/components/Table/ActionsColumn.js +7 -7
- package/dist/js/components/Table/ActionsColumn.js.map +1 -1
- package/dist/js/components/Table/CollapseColumn.js +2 -2
- package/dist/js/components/Table/CollapseColumn.js.map +1 -1
- package/dist/js/components/Table/DraggableCell.js +2 -2
- package/dist/js/components/Table/DraggableCell.js.map +1 -1
- package/dist/js/components/Table/EditColumn.js +4 -4
- package/dist/js/components/Table/EditColumn.js.map +1 -1
- package/dist/js/components/Table/EditableSelectInputCell.js +1 -1
- package/dist/js/components/Table/EditableSelectInputCell.js.map +1 -1
- package/dist/js/components/Table/EditableTextCell.js +1 -1
- package/dist/js/components/Table/EditableTextCell.js.map +1 -1
- package/dist/js/components/Table/FavoritesCell.js +2 -2
- package/dist/js/components/Table/FavoritesCell.js.map +1 -1
- package/dist/js/components/Table/HeaderCellInfoWrapper.js +4 -4
- package/dist/js/components/Table/HeaderCellInfoWrapper.js.map +1 -1
- package/dist/js/components/Table/RowWrapper.d.ts +1 -1
- package/dist/js/components/Table/RowWrapper.js +2 -1
- package/dist/js/components/Table/RowWrapper.js.map +1 -1
- package/dist/js/components/Table/SortColumn.js +3 -3
- package/dist/js/components/Table/SortColumn.js.map +1 -1
- package/dist/js/components/Table/Table.d.ts +1 -1
- package/dist/js/components/Table/Table.d.ts.map +1 -1
- package/dist/js/components/Table/TableText.js +1 -1
- package/dist/js/components/Table/TableText.js.map +1 -1
- package/dist/js/components/Table/TableTypes.js +4 -0
- package/dist/js/components/Table/TableTypes.js.map +1 -1
- package/dist/js/components/Table/Tbody.d.ts +1 -1
- package/dist/js/components/Table/Tbody.d.ts.map +1 -1
- package/dist/js/components/Table/Td.d.ts +1 -1
- package/dist/js/components/Table/Td.d.ts.map +1 -1
- package/dist/js/components/Table/Td.js +1 -1
- package/dist/js/components/Table/Td.js.map +1 -1
- package/dist/js/components/Table/Th.d.ts +1 -1
- package/dist/js/components/Table/Th.d.ts.map +1 -1
- package/dist/js/components/Table/Th.js +1 -1
- package/dist/js/components/Table/Th.js.map +1 -1
- package/dist/js/components/Table/Thead.d.ts +1 -1
- package/dist/js/components/Table/Thead.d.ts.map +1 -1
- package/dist/js/components/Table/Tr.d.ts +2 -2
- package/dist/js/components/Table/Tr.d.ts.map +1 -1
- package/dist/js/components/Table/Tr.js +1 -1
- package/dist/js/components/Table/Tr.js.map +1 -1
- package/dist/js/components/Table/base/provider.d.ts +8 -8
- package/dist/js/components/Table/base/types.d.ts +7 -7
- package/dist/js/components/Table/base/types.js +4 -0
- package/dist/js/components/Table/base/types.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.d.ts +2 -2
- package/dist/js/components/Table/utils/decorators/treeRow.d.ts.map +1 -1
- package/dist/js/components/Table/utils/decorators/treeRow.js +4 -4
- package/dist/js/components/Table/utils/decorators/treeRow.js.map +1 -1
- package/dist/js/deprecated/components/Table/Body.d.ts +1 -1
- package/dist/js/deprecated/components/Table/Body.d.ts.map +1 -1
- package/dist/js/deprecated/components/Table/BodyCell.js +4 -3
- package/dist/js/deprecated/components/Table/BodyCell.js.map +1 -1
- package/dist/js/deprecated/components/Table/Table.d.ts +1 -1
- package/dist/js/deprecated/components/Table/Table.js +1 -1
- package/dist/js/deprecated/components/Table/Table.js.map +1 -1
- package/dist/js/deprecated/components/Table/base/body.d.ts +8 -2
- package/dist/js/deprecated/components/Table/base/body.d.ts.map +1 -1
- package/dist/js/deprecated/components/Table/base/header.d.ts +1 -1
- package/dist/js/deprecated/components/Table/base/header.d.ts.map +1 -1
- package/dist/umd/react-table.min.js +3 -3
- package/package.json +6 -6
- package/src/components/Table/ActionsColumn.tsx +1 -1
- package/src/components/Table/Tr.tsx +1 -1
- package/src/deprecated/components/Table/examples/LegacyTableMisc.tsx +1 -2
- package/src/deprecated/components/Table/examples/LegacyTableStripedCustomTr.tsx +2 -6
- package/src/docs/demos/Table.md +8 -7
- package/src/docs/demos/table-demos/BulkSelect.jsx +2 -3
- package/src/docs/demos/table-demos/ColumnManagement.jsx +7 -7
- package/src/docs/demos/table-demos/Compact.jsx +4 -4
- package/src/docs/demos/table-demos/CompoundExpansion.jsx +1 -1
- package/src/docs/demos/table-demos/ExpandCollapseAll.jsx +1 -1
- package/src/docs/demos/table-demos/SortableResponsive.jsx +12 -4
- package/src/docs/demos/table-demos/StaticBottomPagination.jsx +3 -4
- package/src/docs/demos/table-demos/StickyFirstColumn.jsx +1 -1
- package/src/docs/demos/table-demos/StickyHeader.jsx +2 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.2.0-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",
|
|
@@ -39,10 +39,10 @@
|
|
|
39
39
|
"subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
|
|
40
40
|
},
|
|
41
41
|
"dependencies": {
|
|
42
|
-
"@patternfly/react-core": "^5.
|
|
43
|
-
"@patternfly/react-icons": "^5.
|
|
44
|
-
"@patternfly/react-styles": "^5.
|
|
45
|
-
"@patternfly/react-tokens": "^5.
|
|
42
|
+
"@patternfly/react-core": "^5.2.0-prerelease.1",
|
|
43
|
+
"@patternfly/react-icons": "^5.2.0-prerelease.0",
|
|
44
|
+
"@patternfly/react-styles": "^5.2.0-prerelease.0",
|
|
45
|
+
"@patternfly/react-tokens": "^5.2.0-prerelease.0",
|
|
46
46
|
"lodash": "^4.17.19",
|
|
47
47
|
"tslib": "^2.5.0"
|
|
48
48
|
},
|
|
@@ -54,5 +54,5 @@
|
|
|
54
54
|
"react": "^17 || ^18",
|
|
55
55
|
"react-dom": "^17 || ^18"
|
|
56
56
|
},
|
|
57
|
-
"gitHead": "
|
|
57
|
+
"gitHead": "f7f065572254120f68487ab4b4caff597ece5ad3"
|
|
58
58
|
}
|
|
@@ -5,7 +5,7 @@ import inlineStyles from '@patternfly/react-styles/css/components/InlineEdit/inl
|
|
|
5
5
|
import { css } from '@patternfly/react-styles';
|
|
6
6
|
import { TableContext } from './Table';
|
|
7
7
|
|
|
8
|
-
export interface TrProps extends React.HTMLProps<HTMLTableRowElement>, OUIAProps {
|
|
8
|
+
export interface TrProps extends Omit<React.HTMLProps<HTMLTableRowElement>, 'onResize'>, OUIAProps {
|
|
9
9
|
/** Content rendered inside the <tr> row */
|
|
10
10
|
children?: React.ReactNode;
|
|
11
11
|
/** Additional classes added to the <tr> row */
|
|
@@ -27,14 +27,13 @@ export const LegacyTableMisc: React.FunctionComponent = () => {
|
|
|
27
27
|
repo.lastCommit
|
|
28
28
|
]);
|
|
29
29
|
|
|
30
|
-
const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row
|
|
30
|
+
const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => {
|
|
31
31
|
const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true;
|
|
32
32
|
const customStyle = {
|
|
33
33
|
borderLeft: '3px solid var(--pf-v5-global--primary-color--100)'
|
|
34
34
|
};
|
|
35
35
|
return (
|
|
36
36
|
<tr
|
|
37
|
-
{...props}
|
|
38
37
|
ref={trRef as React.LegacyRef<HTMLTableRowElement>}
|
|
39
38
|
className={css(className, isOddRow ? 'odd-row-class' : 'even-row-class', 'custom-static-class')}
|
|
40
39
|
style={isOddRow ? customStyle : {}}
|
|
@@ -27,14 +27,10 @@ export const LegacyTableStripedCustomTr: React.FunctionComponent = () => {
|
|
|
27
27
|
repo.lastCommit
|
|
28
28
|
]);
|
|
29
29
|
|
|
30
|
-
const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row
|
|
30
|
+
const customRowWrapper: TableProps['rowWrapper'] = ({ trRef, className, rowProps, row: _row }) => {
|
|
31
31
|
const isOddRow = rowProps ? !!((rowProps.rowIndex + 1) % 2) : true;
|
|
32
32
|
return (
|
|
33
|
-
<tr
|
|
34
|
-
{...props}
|
|
35
|
-
ref={trRef as React.LegacyRef<HTMLTableRowElement>}
|
|
36
|
-
className={css(className, isOddRow && 'pf-m-striped')}
|
|
37
|
-
/>
|
|
33
|
+
<tr ref={trRef as React.LegacyRef<HTMLTableRowElement>} className={css(className, isOddRow && 'pf-m-striped')} />
|
|
38
34
|
);
|
|
39
35
|
};
|
|
40
36
|
|
package/src/docs/demos/Table.md
CHANGED
|
@@ -47,10 +47,9 @@ import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-ico
|
|
|
47
47
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
48
48
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
49
49
|
import AttentionBellIcon from '@patternfly/react-icons/dist/esm/icons/attention-bell-icon';
|
|
50
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
51
50
|
import BlueprintIcon from '@patternfly/react-icons/dist/esm/icons/blueprint-icon';
|
|
52
51
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
53
|
-
import { rows, columns } from '
|
|
52
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
54
53
|
|
|
55
54
|
## Demos
|
|
56
55
|
|
|
@@ -109,9 +108,10 @@ import {
|
|
|
109
108
|
PaginationVariant,
|
|
110
109
|
Text,
|
|
111
110
|
TextContent,
|
|
111
|
+
TextVariants,
|
|
112
112
|
MenuToggle
|
|
113
113
|
} from '@patternfly/react-core';
|
|
114
|
-
import { Table as TableDeprecated, TableHeader, TableBody } from '@patternfly/react-table/deprecated';
|
|
114
|
+
import { Table as TableDeprecated, TableHeader, TableBody, TableText } from '@patternfly/react-table/deprecated';
|
|
115
115
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
116
116
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
117
117
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -855,7 +855,7 @@ import {
|
|
|
855
855
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
856
856
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
857
857
|
import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
858
|
-
import { rows, columns } from '';
|
|
858
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
859
859
|
|
|
860
860
|
class FilterTableDemo extends React.Component {
|
|
861
861
|
constructor(props) {
|
|
@@ -1457,7 +1457,6 @@ import {
|
|
|
1457
1457
|
Bullseye,
|
|
1458
1458
|
Button,
|
|
1459
1459
|
Card,
|
|
1460
|
-
DashboardWrapper,
|
|
1461
1460
|
EmptyState,
|
|
1462
1461
|
EmptyStateVariant,
|
|
1463
1462
|
EmptyStateIcon,
|
|
@@ -1468,6 +1467,7 @@ import {
|
|
|
1468
1467
|
PageSection
|
|
1469
1468
|
} from '@patternfly/react-core';
|
|
1470
1469
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
1470
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
1471
1471
|
|
|
1472
1472
|
export const TableEmptyState: React.FunctionComponent = () => (
|
|
1473
1473
|
<DashboardWrapper hasPageTemplateTitle>
|
|
@@ -1521,7 +1521,6 @@ import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
|
1521
1521
|
import {
|
|
1522
1522
|
Bullseye,
|
|
1523
1523
|
Card,
|
|
1524
|
-
DashboardWrapper,
|
|
1525
1524
|
EmptyState,
|
|
1526
1525
|
EmptyStateIcon,
|
|
1527
1526
|
EmptyStateBody,
|
|
@@ -1529,6 +1528,7 @@ import {
|
|
|
1529
1528
|
PageSection,
|
|
1530
1529
|
Spinner
|
|
1531
1530
|
} from '@patternfly/react-core';
|
|
1531
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
1532
1532
|
|
|
1533
1533
|
export const LoadingStateDemo: React.FunctionComponent = () => (
|
|
1534
1534
|
<DashboardWrapper hasPageTemplateTitle>
|
|
@@ -1570,7 +1570,6 @@ import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
|
1570
1570
|
import {
|
|
1571
1571
|
Bullseye,
|
|
1572
1572
|
Card,
|
|
1573
|
-
DashboardWrapper,
|
|
1574
1573
|
EmptyState,
|
|
1575
1574
|
EmptyStateVariant,
|
|
1576
1575
|
EmptyStateIcon,
|
|
@@ -1579,6 +1578,8 @@ import {
|
|
|
1579
1578
|
PageSection
|
|
1580
1579
|
} from '@patternfly/react-core';
|
|
1581
1580
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
1581
|
+
import globalDangerColor200 from '@patternfly/react-tokens/dist/esm/global_danger_color_200';
|
|
1582
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
1582
1583
|
|
|
1583
1584
|
export const ErrorStateDemo: React.FunctionComponent = () => (
|
|
1584
1585
|
<DashboardWrapper hasPageTemplateTitle>
|
|
@@ -14,9 +14,8 @@ import {
|
|
|
14
14
|
ToolbarItem
|
|
15
15
|
} from '@patternfly/react-core';
|
|
16
16
|
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
17
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
18
|
-
|
|
19
|
-
import { rows, columns } from './sampleData';
|
|
17
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
18
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
20
19
|
|
|
21
20
|
export const BulkSelectTableDemo = () => {
|
|
22
21
|
const [isBulkSelectDropdownOpen, setIsBulkSelectDropdownOpen] = React.useState(false);
|
|
@@ -2,6 +2,7 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
|
+
Card,
|
|
5
6
|
DataList,
|
|
6
7
|
DataListCheck,
|
|
7
8
|
DataListItem,
|
|
@@ -17,20 +18,19 @@ import {
|
|
|
17
18
|
OverflowMenu,
|
|
18
19
|
OverflowMenuGroup,
|
|
19
20
|
OverflowMenuItem,
|
|
20
|
-
|
|
21
|
-
OptionsMenuToggle,
|
|
21
|
+
PageSection,
|
|
22
22
|
Pagination,
|
|
23
23
|
PaginationVariant,
|
|
24
24
|
Text,
|
|
25
|
-
TextContent
|
|
25
|
+
TextContent,
|
|
26
|
+
TextVariants
|
|
26
27
|
} from '@patternfly/react-core';
|
|
27
|
-
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
28
|
+
import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
28
29
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
29
30
|
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
|
|
30
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
31
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper.js';
|
|
31
32
|
import { capitalize } from '@patternfly/react-table/src/components/Table/utils/utils';
|
|
32
|
-
|
|
33
|
-
import { rows, columns } from './sampleData';
|
|
33
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
34
34
|
|
|
35
35
|
export const ColumnManagementAction = () => {
|
|
36
36
|
const defaultColumns = columns;
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
5
|
Card,
|
|
6
|
+
Label,
|
|
6
7
|
MenuToggle,
|
|
7
8
|
MenuToggleElement,
|
|
8
9
|
Pagination,
|
|
@@ -14,11 +15,10 @@ import {
|
|
|
14
15
|
ToolbarGroup,
|
|
15
16
|
ToolbarItem
|
|
16
17
|
} from '@patternfly/react-core';
|
|
17
|
-
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
18
|
+
import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
18
19
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
19
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
20
|
-
|
|
21
|
-
import { rows, columns } from './sampleData';
|
|
20
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
21
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
22
22
|
|
|
23
23
|
export const CompactTable = () => {
|
|
24
24
|
const [isSelectOpen, setIsSelectOpen] = React.useState(false);
|
|
@@ -19,7 +19,7 @@ import {
|
|
|
19
19
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-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
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
22
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
23
23
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
24
24
|
|
|
25
25
|
export const CompoundExpandable = () => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Card, Label, PageSection, TextVariants, Text, TextContent } from '@patternfly/react-core';
|
|
3
3
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
4
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
4
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
5
5
|
|
|
6
6
|
const expandableColumns = ['Servers', 'Threads', 'Applications', 'Workspaces', 'Status'];
|
|
7
7
|
|
|
@@ -7,10 +7,19 @@ import {
|
|
|
7
7
|
DropdownList,
|
|
8
8
|
Flex,
|
|
9
9
|
FlexItem,
|
|
10
|
+
Label,
|
|
10
11
|
MenuToggle,
|
|
11
12
|
MenuToggleElement,
|
|
13
|
+
OverflowMenu,
|
|
14
|
+
OverflowMenuContent,
|
|
15
|
+
OverflowMenuControl,
|
|
16
|
+
OverflowMenuDropdownItem,
|
|
17
|
+
OverflowMenuGroup,
|
|
18
|
+
OverflowMenuItem,
|
|
12
19
|
PageSection,
|
|
20
|
+
PageSectionVariants,
|
|
13
21
|
Pagination,
|
|
22
|
+
Select,
|
|
14
23
|
SelectOption,
|
|
15
24
|
SelectList,
|
|
16
25
|
SelectGroup,
|
|
@@ -29,10 +38,9 @@ import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
|
29
38
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
30
39
|
import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amount-down-icon';
|
|
31
40
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
32
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
41
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
33
42
|
import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
|
|
34
|
-
|
|
35
|
-
import { rows, columns } from './sampleData';
|
|
43
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
36
44
|
|
|
37
45
|
export const ComposableTableSortable = () => {
|
|
38
46
|
const [isKebabDropdownOpen, setIsKebabDropdownOpen] = React.useState(false);
|
|
@@ -89,7 +97,7 @@ export const ComposableTableSortable = () => {
|
|
|
89
97
|
setPerPage(newPerPage);
|
|
90
98
|
};
|
|
91
99
|
|
|
92
|
-
renderPagination = (variant) => (
|
|
100
|
+
const renderPagination = (variant) => (
|
|
93
101
|
<Pagination
|
|
94
102
|
isCompact
|
|
95
103
|
itemCount={rows.length}
|
|
@@ -15,11 +15,10 @@ import {
|
|
|
15
15
|
Select,
|
|
16
16
|
SelectOption
|
|
17
17
|
} from '@patternfly/react-core';
|
|
18
|
-
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
18
|
+
import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
19
19
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
20
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
21
|
-
|
|
22
|
-
import { rows, columns } from './sampleData';
|
|
20
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
21
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
23
22
|
|
|
24
23
|
export const StaticBottomPagination = () => {
|
|
25
24
|
const [isSelectOpen, setIsSelectOpen] = React.useState(false);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { Table, Thead, Tr, Th, Tbody, Td, InnerScrollContainer } from '@patternfly/react-table';
|
|
3
3
|
import { Card, PageSection } from '@patternfly/react-core';
|
|
4
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
4
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
5
5
|
|
|
6
6
|
export const StickyFirstColumn = () => {
|
|
7
7
|
const facts = Array.from(
|
|
@@ -2,9 +2,8 @@ import React from 'react';
|
|
|
2
2
|
|
|
3
3
|
import { Card, Label, PageSection } from '@patternfly/react-core';
|
|
4
4
|
import { Table, Thead, Tr, Th, Tbody, Td, TableText } from '@patternfly/react-table';
|
|
5
|
-
import DashboardWrapper from '@patternfly/react-core/src/demos/
|
|
6
|
-
|
|
7
|
-
import { rows, columns } from '../examples/Data';
|
|
5
|
+
import { DashboardWrapper } from '@patternfly/react-core/src/demos/DashboardWrapper';
|
|
6
|
+
import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
|
|
8
7
|
|
|
9
8
|
export const StickyHeader: React.FunctionComponent = () => {
|
|
10
9
|
const renderLabel = (labelText: string) => {
|