@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "6.0.0-alpha.88",
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.87",
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": "8e897861592c3ee8b186f6aef3958741073312e7"
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
- <TextContent>
113
- <Text component="h1">Main title</Text>
114
- <Text component="p">This is a full page demo.</Text>
115
- </TextContent>
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
 
@@ -21,7 +21,6 @@ Breadcrumb,
21
21
  BreadcrumbItem,
22
22
  Page,
23
23
  PageSectionVariants,
24
- TextContent,
25
24
  Text,
26
25
  Divider,
27
26
  Avatar,
@@ -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
- <TextContent>
217
- <Text component={TextVariants.p}>Selected categories will be displayed in the table.</Text>
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
- </TextContent>
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
- <TextContent>
431
- <Text component={TextVariants.p}>Selected categories will be displayed in the table.</Text>
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
- </TextContent>
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, TextVariants, Text, TextContent } from '@patternfly/react-core';
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
- <TextContent>
26
- <Text component={TextVariants.p}>
27
- Location<Text component={TextVariants.small}>Boston</Text>
28
- </Text>
29
- <Text component={TextVariants.p}>
30
- Last Modified<Text component={TextVariants.small}>2 hours ago</Text>
31
- </Text>
32
- <Text component={TextVariants.p}>
33
- URL<Text component={TextVariants.small}>http://www.redhat.com/en/office-locations/US-node1</Text>
34
- </Text>
35
- </TextContent>
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
- <TextContent>
46
- <Text component={TextVariants.p}>
47
- Location<Text component={TextVariants.small}>Atlanta</Text>
48
- </Text>
49
- <Text component={TextVariants.p}>
50
- Last Modified<Text component={TextVariants.small}>5 hours ago</Text>
51
- </Text>
52
- <Text component={TextVariants.p}>
53
- URL<Text component={TextVariants.small}>http://www.redhat.com/en/office-locations/US-node2</Text>
54
- </Text>
55
- </TextContent>
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
- <TextContent>
66
- <Text component={TextVariants.p}>
67
- Location<Text component={TextVariants.small}>San Francisco</Text>
68
- </Text>
69
- <Text component={TextVariants.p}>
70
- Last Modified<Text component={TextVariants.small}>20 minutes ago</Text>
71
- </Text>
72
- <Text component={TextVariants.p}>
73
- URL<Text component={TextVariants.small}>http://www.redhat.com/en/office-locations/US-node3</Text>
74
- </Text>
75
- </TextContent>
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
- <TextContent>
86
- <Text component={TextVariants.p}>
87
- Location<Text component={TextVariants.small}>Raleigh</Text>
88
- </Text>
89
- <Text component={TextVariants.p}>
90
- Last Modified<Text component={TextVariants.small}>10 minutes ago</Text>
91
- </Text>
92
- <Text component={TextVariants.p}>
93
- URL<Text component={TextVariants.small}>http://www.redhat.com/en/office-locations/US-node4</Text>
94
- </Text>
95
- </TextContent>
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
- <TextContent>
106
- <Text component={TextVariants.p}>
107
- Location<Text component={TextVariants.small}>Atlanta</Text>
108
- </Text>
109
- <Text component={TextVariants.p}>
110
- Last Modified<Text component={TextVariants.small}>15 minutes ago</Text>
111
- </Text>
112
- <Text component={TextVariants.p}>
113
- URL<Text component={TextVariants.small}>http://www.redhat.com/en/office-locations/US-node5</Text>
114
- </Text>
115
- </TextContent>
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
- <TextContent>
236
- <Text component="h1">Table demos</Text>
237
- <Text component="p">
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
- </Text>
241
- </TextContent>
239
+ </p>
240
+ </Content>
242
241
  </PageSection>
243
242
  <PageSection
244
243
  padding={{