@patternfly/react-table 6.0.0-alpha.88 → 6.0.0-alpha.89
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 +6 -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/demos/DashboardWrapper.d.ts.map +1 -1
- package/dist/esm/demos/DashboardWrapper.js +4 -4
- package/dist/esm/demos/DashboardWrapper.js.map +1 -1
- package/dist/js/demos/DashboardWrapper.d.ts.map +1 -1
- package/dist/js/demos/DashboardWrapper.js +3 -3
- package/dist/js/demos/DashboardWrapper.js.map +1 -1
- package/dist/umd/assets/{output-CPSFovR1.css → output-Mw3m3QuH.css} +21239 -21239
- package/package.json +3 -3
- package/src/demos/DashboardWrapper.tsx +6 -7
- package/src/demos/Table.md +0 -1
- package/src/demos/examples/TableColumnManagement.tsx +5 -7
- package/src/demos/examples/TableColumnManagementWithDraggable.tsx +4 -6
- package/src/demos/examples/TableExpandCollapseAll.tsx +56 -56
- package/src/demos/examples/TableSortableResponsive.tsx +6 -7
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "6.0.0-alpha.
|
|
3
|
+
"version": "6.0.0-alpha.89",
|
|
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.js --config subpaths.config.json"
|
|
41
41
|
},
|
|
42
42
|
"dependencies": {
|
|
43
|
-
"@patternfly/react-core": "^6.0.0-alpha.
|
|
43
|
+
"@patternfly/react-core": "^6.0.0-alpha.88",
|
|
44
44
|
"@patternfly/react-icons": "^6.0.0-alpha.31",
|
|
45
45
|
"@patternfly/react-styles": "^6.0.0-alpha.30",
|
|
46
46
|
"@patternfly/react-tokens": "^6.0.0-alpha.30",
|
|
@@ -51,5 +51,5 @@
|
|
|
51
51
|
"react": "^17 || ^18",
|
|
52
52
|
"react-dom": "^17 || ^18"
|
|
53
53
|
},
|
|
54
|
-
"gitHead": "
|
|
54
|
+
"gitHead": "18e869e654d317afd33701db8252d408690fbd62"
|
|
55
55
|
}
|
|
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import {
|
|
3
3
|
Breadcrumb,
|
|
4
4
|
BreadcrumbItem,
|
|
5
|
+
Content,
|
|
5
6
|
Nav,
|
|
6
7
|
NavItem,
|
|
7
8
|
NavList,
|
|
@@ -9,9 +10,7 @@ import {
|
|
|
9
10
|
PageSection,
|
|
10
11
|
PageSidebar,
|
|
11
12
|
PageSidebarBody,
|
|
12
|
-
SkipToContent
|
|
13
|
-
Text,
|
|
14
|
-
TextContent
|
|
13
|
+
SkipToContent
|
|
15
14
|
} from '@patternfly/react-core';
|
|
16
15
|
import { DashboardHeader } from './DashboardHeader';
|
|
17
16
|
|
|
@@ -109,10 +108,10 @@ export const DashboardBreadcrumb = (
|
|
|
109
108
|
|
|
110
109
|
const PageTemplateTitle = (
|
|
111
110
|
<PageSection>
|
|
112
|
-
<
|
|
113
|
-
<
|
|
114
|
-
<
|
|
115
|
-
</
|
|
111
|
+
<Content>
|
|
112
|
+
<h1>Main title</h1>
|
|
113
|
+
<p>This is a full page demo.</p>
|
|
114
|
+
</Content>
|
|
116
115
|
</PageSection>
|
|
117
116
|
);
|
|
118
117
|
|
package/src/demos/Table.md
CHANGED
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
5
|
Card,
|
|
6
|
+
Content,
|
|
6
7
|
DataList,
|
|
7
8
|
DataListCheck,
|
|
8
9
|
DataListItem,
|
|
@@ -20,10 +21,7 @@ import {
|
|
|
20
21
|
OverflowMenuItem,
|
|
21
22
|
PageSection,
|
|
22
23
|
Pagination,
|
|
23
|
-
PaginationVariant
|
|
24
|
-
Text,
|
|
25
|
-
TextContent,
|
|
26
|
-
TextVariants
|
|
24
|
+
PaginationVariant
|
|
27
25
|
} from '@patternfly/react-core';
|
|
28
26
|
import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
29
27
|
import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
|
|
@@ -213,12 +211,12 @@ export const TableColumnManagement: React.FunctionComponent = () => {
|
|
|
213
211
|
isOpen={isModalOpen}
|
|
214
212
|
variant="small"
|
|
215
213
|
description={
|
|
216
|
-
<
|
|
217
|
-
<
|
|
214
|
+
<Content>
|
|
215
|
+
<p>Selected categories will be displayed in the table.</p>
|
|
218
216
|
<Button isInline onClick={selectAllColumns} variant="link">
|
|
219
217
|
Select all
|
|
220
218
|
</Button>
|
|
221
|
-
</
|
|
219
|
+
</Content>
|
|
222
220
|
}
|
|
223
221
|
onClose={handleModalToggle}
|
|
224
222
|
actions={[
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import {
|
|
3
3
|
Button,
|
|
4
|
+
Content,
|
|
4
5
|
DataList,
|
|
5
6
|
DataListCheck,
|
|
6
7
|
DataListControl,
|
|
@@ -16,9 +17,6 @@ import {
|
|
|
16
17
|
OverflowMenu,
|
|
17
18
|
OverflowMenuGroup,
|
|
18
19
|
OverflowMenuItem,
|
|
19
|
-
Text,
|
|
20
|
-
TextContent,
|
|
21
|
-
TextVariants,
|
|
22
20
|
MenuToggle
|
|
23
21
|
} from '@patternfly/react-core';
|
|
24
22
|
import { Table as TableDeprecated, TableHeader, TableBody } from '@patternfly/react-table/deprecated';
|
|
@@ -427,12 +425,12 @@ export const TableColumnManagementWithDraggable: React.FunctionComponent = () =>
|
|
|
427
425
|
isOpen={isModalOpen}
|
|
428
426
|
variant="small"
|
|
429
427
|
description={
|
|
430
|
-
<
|
|
431
|
-
<
|
|
428
|
+
<Content>
|
|
429
|
+
<p>Selected categories will be displayed in the table.</p>
|
|
432
430
|
<Button isInline onClick={selectAllColumns} variant="link">
|
|
433
431
|
Select all
|
|
434
432
|
</Button>
|
|
435
|
-
</
|
|
433
|
+
</Content>
|
|
436
434
|
}
|
|
437
435
|
onClose={handleModalToggle}
|
|
438
436
|
actions={[
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React, { ReactNode } from 'react';
|
|
2
|
-
import { Card, Label, PageSection
|
|
2
|
+
import { Card, Content, Label, PageSection } from '@patternfly/react-core';
|
|
3
3
|
import { Table, Thead, Tbody, Tr, Th, Td, ExpandableRowContent } from '@patternfly/react-table';
|
|
4
4
|
import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
|
|
5
5
|
|
|
@@ -22,17 +22,17 @@ const serverData: Server[] = [
|
|
|
22
22
|
workspaces: 7,
|
|
23
23
|
status: { title: <Label color="green">Running</Label> },
|
|
24
24
|
details: (
|
|
25
|
-
<
|
|
26
|
-
<
|
|
27
|
-
Location<
|
|
28
|
-
</
|
|
29
|
-
<
|
|
30
|
-
Last Modified<
|
|
31
|
-
</
|
|
32
|
-
<
|
|
33
|
-
URL<
|
|
34
|
-
</
|
|
35
|
-
</
|
|
25
|
+
<Content>
|
|
26
|
+
<p>
|
|
27
|
+
Location<small>Boston</small>
|
|
28
|
+
</p>
|
|
29
|
+
<p>
|
|
30
|
+
Last Modified<small>2 hours ago</small>
|
|
31
|
+
</p>
|
|
32
|
+
<p>
|
|
33
|
+
URL<small>http://www.redhat.com/en/office-locations/US-node1</small>
|
|
34
|
+
</p>
|
|
35
|
+
</Content>
|
|
36
36
|
)
|
|
37
37
|
},
|
|
38
38
|
{
|
|
@@ -42,17 +42,17 @@ const serverData: Server[] = [
|
|
|
42
42
|
workspaces: 17,
|
|
43
43
|
status: { title: <Label color="red">Down</Label> },
|
|
44
44
|
details: (
|
|
45
|
-
<
|
|
46
|
-
<
|
|
47
|
-
Location<
|
|
48
|
-
</
|
|
49
|
-
<
|
|
50
|
-
Last Modified<
|
|
51
|
-
</
|
|
52
|
-
<
|
|
53
|
-
URL<
|
|
54
|
-
</
|
|
55
|
-
</
|
|
45
|
+
<Content>
|
|
46
|
+
<p>
|
|
47
|
+
Location<small>Atlanta</small>
|
|
48
|
+
</p>
|
|
49
|
+
<p>
|
|
50
|
+
Last Modified<small>5 hours ago</small>
|
|
51
|
+
</p>
|
|
52
|
+
<p>
|
|
53
|
+
URL<small>http://www.redhat.com/en/office-locations/US-node2</small>
|
|
54
|
+
</p>
|
|
55
|
+
</Content>
|
|
56
56
|
)
|
|
57
57
|
},
|
|
58
58
|
{
|
|
@@ -62,17 +62,17 @@ const serverData: Server[] = [
|
|
|
62
62
|
workspaces: 3,
|
|
63
63
|
status: { title: <Label color="green">Running</Label> },
|
|
64
64
|
details: (
|
|
65
|
-
<
|
|
66
|
-
<
|
|
67
|
-
Location<
|
|
68
|
-
</
|
|
69
|
-
<
|
|
70
|
-
Last Modified<
|
|
71
|
-
</
|
|
72
|
-
<
|
|
73
|
-
URL<
|
|
74
|
-
</
|
|
75
|
-
</
|
|
65
|
+
<Content>
|
|
66
|
+
<p>
|
|
67
|
+
Location<small>San Francisco</small>
|
|
68
|
+
</p>
|
|
69
|
+
<p>
|
|
70
|
+
Last Modified<small>20 minutes ago</small>
|
|
71
|
+
</p>
|
|
72
|
+
<p>
|
|
73
|
+
URL<small>http://www.redhat.com/en/office-locations/US-node3</small>
|
|
74
|
+
</p>
|
|
75
|
+
</Content>
|
|
76
76
|
)
|
|
77
77
|
},
|
|
78
78
|
{
|
|
@@ -82,17 +82,17 @@ const serverData: Server[] = [
|
|
|
82
82
|
workspaces: 15,
|
|
83
83
|
status: { title: <Label color="blue">Needs Maintenance</Label> },
|
|
84
84
|
details: (
|
|
85
|
-
<
|
|
86
|
-
<
|
|
87
|
-
Location<
|
|
88
|
-
</
|
|
89
|
-
<
|
|
90
|
-
Last Modified<
|
|
91
|
-
</
|
|
92
|
-
<
|
|
93
|
-
URL<
|
|
94
|
-
</
|
|
95
|
-
</
|
|
85
|
+
<Content>
|
|
86
|
+
<p>
|
|
87
|
+
Location<small>Raleigh</small>
|
|
88
|
+
</p>
|
|
89
|
+
<p>
|
|
90
|
+
Last Modified<small>10 minutes ago</small>
|
|
91
|
+
</p>
|
|
92
|
+
<p>
|
|
93
|
+
URL<small>http://www.redhat.com/en/office-locations/US-node4</small>
|
|
94
|
+
</p>
|
|
95
|
+
</Content>
|
|
96
96
|
)
|
|
97
97
|
},
|
|
98
98
|
{
|
|
@@ -102,17 +102,17 @@ const serverData: Server[] = [
|
|
|
102
102
|
workspaces: 17,
|
|
103
103
|
status: { title: <Label color="orange">Stopped</Label> },
|
|
104
104
|
details: (
|
|
105
|
-
<
|
|
106
|
-
<
|
|
107
|
-
Location<
|
|
108
|
-
</
|
|
109
|
-
<
|
|
110
|
-
Last Modified<
|
|
111
|
-
</
|
|
112
|
-
<
|
|
113
|
-
URL<
|
|
114
|
-
</
|
|
115
|
-
</
|
|
105
|
+
<Content>
|
|
106
|
+
<p>
|
|
107
|
+
Location<small>Atlanta</small>
|
|
108
|
+
</p>
|
|
109
|
+
<p>
|
|
110
|
+
Last Modified<small>15 minutes ago</small>
|
|
111
|
+
</p>
|
|
112
|
+
<p>
|
|
113
|
+
URL<small>http://www.redhat.com/en/office-locations/US-node5</small>
|
|
114
|
+
</p>
|
|
115
|
+
</Content>
|
|
116
116
|
)
|
|
117
117
|
}
|
|
118
118
|
];
|
|
@@ -3,6 +3,7 @@ import React from 'react';
|
|
|
3
3
|
import {
|
|
4
4
|
Button,
|
|
5
5
|
Card,
|
|
6
|
+
Content,
|
|
6
7
|
Dropdown,
|
|
7
8
|
DropdownList,
|
|
8
9
|
Flex,
|
|
@@ -14,8 +15,6 @@ import {
|
|
|
14
15
|
SelectOption,
|
|
15
16
|
SelectList,
|
|
16
17
|
SelectGroup,
|
|
17
|
-
Text,
|
|
18
|
-
TextContent,
|
|
19
18
|
Toolbar,
|
|
20
19
|
ToolbarContent,
|
|
21
20
|
ToolbarGroup,
|
|
@@ -232,13 +231,13 @@ export const TableSortableResponsive: React.FunctionComponent = () => {
|
|
|
232
231
|
<React.Fragment>
|
|
233
232
|
<DashboardWrapper>
|
|
234
233
|
<PageSection isWidthLimited variant={PageSectionVariants.light}>
|
|
235
|
-
<
|
|
236
|
-
<
|
|
237
|
-
<
|
|
234
|
+
<Content>
|
|
235
|
+
<h1>Table demos</h1>
|
|
236
|
+
<p>
|
|
238
237
|
Below is an example of a responsive sortable table. When the screen size shrinks the table into a compact
|
|
239
238
|
form, the toolbar will display a dropdown menu containing sorting options.
|
|
240
|
-
</
|
|
241
|
-
</
|
|
239
|
+
</p>
|
|
240
|
+
</Content>
|
|
242
241
|
</PageSection>
|
|
243
242
|
<PageSection
|
|
244
243
|
padding={{
|