@patternfly/react-table 5.1.1-prerelease.9 → 6.0.0-alpha.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "5.1.1-prerelease.9",
3
+ "version": "6.0.0-alpha.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",
@@ -15,7 +15,8 @@
15
15
  "patternfly:src": "src/",
16
16
  "sideEffects": false,
17
17
  "publishConfig": {
18
- "access": "public"
18
+ "access": "public",
19
+ "tag": "alpha"
19
20
  },
20
21
  "repository": {
21
22
  "type": "git",
@@ -39,10 +40,10 @@
39
40
  "subpaths": "node ../../scripts/exportSubpaths.js --config subpaths.config.json"
40
41
  },
41
42
  "dependencies": {
42
- "@patternfly/react-core": "^5.1.1-prerelease.9",
43
- "@patternfly/react-icons": "^5.1.1-prerelease.5",
44
- "@patternfly/react-styles": "^5.1.1-prerelease.5",
45
- "@patternfly/react-tokens": "^5.1.1-prerelease.5",
43
+ "@patternfly/react-core": "^6.0.0-alpha.1",
44
+ "@patternfly/react-icons": "^6.0.0-alpha.1",
45
+ "@patternfly/react-styles": "^6.0.0-alpha.1",
46
+ "@patternfly/react-tokens": "^6.0.0-alpha.1",
46
47
  "lodash": "^4.17.19",
47
48
  "tslib": "^2.5.0"
48
49
  },
@@ -54,5 +55,5 @@
54
55
  "react": "^17 || ^18",
55
56
  "react-dom": "^17 || ^18"
56
57
  },
57
- "gitHead": "295aa26fe74665f75560a61f157c3a02122d550a"
58
+ "gitHead": "abccf530a0a642a4d7b4eda6ada09c5822c855b0"
58
59
  }
@@ -39,7 +39,7 @@ const ActionsColumnBase: React.FunctionComponent<ActionsColumnProps> = ({
39
39
  extraData,
40
40
  actionsToggle,
41
41
  popperProps = {
42
- position: 'right',
42
+ position: 'end',
43
43
  direction: 'down'
44
44
  },
45
45
  innerRef,
@@ -50,7 +50,7 @@ import AttentionBellIcon from '@patternfly/react-icons/dist/esm/icons/attention-
50
50
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
51
51
  import BlueprintIcon from '@patternfly/react-icons/dist/esm/icons/blueprint-icon';
52
52
  import EllipsisVIcon from '@patternfly/react-icons/dist/esm/icons/ellipsis-v-icon';
53
- import { rows, columns } from './table-demos/sampleData';
53
+ import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
54
54
 
55
55
  ## Demos
56
56
 
@@ -109,9 +109,10 @@ import {
109
109
  PaginationVariant,
110
110
  Text,
111
111
  TextContent,
112
+ TextVariants,
112
113
  MenuToggle
113
114
  } from '@patternfly/react-core';
114
- import { Table as TableDeprecated, TableHeader, TableBody } from '@patternfly/react-table/deprecated';
115
+ import { Table as TableDeprecated, TableHeader, TableBody, TableText } from '@patternfly/react-table/deprecated';
115
116
  import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
116
117
  import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
117
118
  import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
@@ -855,7 +856,7 @@ import {
855
856
  import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
856
857
  import FilterIcon from '@patternfly/react-icons/dist/esm/icons/filter-icon';
857
858
  import { Table, TableText, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
858
- import { rows, columns } from '';
859
+ import { rows, columns } from '@patternfly/react-table/src/docs/demos/table-demos/sampleData';
859
860
 
860
861
  class FilterTableDemo extends React.Component {
861
862
  constructor(props) {
@@ -1457,7 +1458,6 @@ import {
1457
1458
  Bullseye,
1458
1459
  Button,
1459
1460
  Card,
1460
- DashboardWrapper,
1461
1461
  EmptyState,
1462
1462
  EmptyStateVariant,
1463
1463
  EmptyStateIcon,
@@ -1468,6 +1468,7 @@ import {
1468
1468
  PageSection
1469
1469
  } from '@patternfly/react-core';
1470
1470
  import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
1471
+ import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
1471
1472
 
1472
1473
  export const TableEmptyState: React.FunctionComponent = () => (
1473
1474
  <DashboardWrapper hasPageTemplateTitle>
@@ -1521,7 +1522,6 @@ import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
1521
1522
  import {
1522
1523
  Bullseye,
1523
1524
  Card,
1524
- DashboardWrapper,
1525
1525
  EmptyState,
1526
1526
  EmptyStateIcon,
1527
1527
  EmptyStateBody,
@@ -1529,6 +1529,7 @@ import {
1529
1529
  PageSection,
1530
1530
  Spinner
1531
1531
  } from '@patternfly/react-core';
1532
+ import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
1532
1533
 
1533
1534
  export const LoadingStateDemo: React.FunctionComponent = () => (
1534
1535
  <DashboardWrapper hasPageTemplateTitle>
@@ -1570,7 +1571,6 @@ import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
1570
1571
  import {
1571
1572
  Bullseye,
1572
1573
  Card,
1573
- DashboardWrapper,
1574
1574
  EmptyState,
1575
1575
  EmptyStateVariant,
1576
1576
  EmptyStateIcon,
@@ -1579,6 +1579,8 @@ import {
1579
1579
  PageSection
1580
1580
  } from '@patternfly/react-core';
1581
1581
  import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
1582
+ import globalDangerColor200 from '@patternfly/react-tokens/dist/esm/global_danger_color_200';
1583
+ import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
1582
1584
 
1583
1585
  export const ErrorStateDemo: React.FunctionComponent = () => (
1584
1586
  <DashboardWrapper hasPageTemplateTitle>
@@ -15,8 +15,7 @@ import {
15
15
  } from '@patternfly/react-core';
16
16
  import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
17
17
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
18
-
19
- import { rows, columns } from './sampleData';
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
- OptionsMenu,
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
31
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/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
20
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
20
-
21
- import { rows, columns } from './sampleData';
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);
@@ -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,
@@ -31,8 +40,7 @@ import SortAmountDownIcon from '@patternfly/react-icons/dist/esm/icons/sort-amou
31
40
  import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
32
41
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/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
20
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
21
-
22
- import { rows, columns } from './sampleData';
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);
@@ -3,8 +3,7 @@ import React from 'react';
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
5
  import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
6
-
7
- import { rows, columns } from '../examples/Data';
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) => {