@patternfly/react-table 6.0.0-alpha.63 → 6.0.0-alpha.64

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.63",
3
+ "version": "6.0.0-alpha.64",
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.63",
43
+ "@patternfly/react-core": "^6.0.0-alpha.64",
44
44
  "@patternfly/react-icons": "^6.0.0-alpha.24",
45
45
  "@patternfly/react-styles": "^6.0.0-alpha.24",
46
46
  "@patternfly/react-tokens": "^6.0.0-alpha.24",
@@ -51,5 +51,5 @@
51
51
  "react": "^17 || ^18",
52
52
  "react-dom": "^17 || ^18"
53
53
  },
54
- "gitHead": "e2f8bd614fe8c9c20f205f04ef3e8a26eabe1f33"
54
+ "gitHead": "8e3a02226113a421ca5340644360999ef4cdf32e"
55
55
  }
@@ -6,9 +6,7 @@ import {
6
6
  Card,
7
7
  EmptyState,
8
8
  EmptyStateVariant,
9
- EmptyStateIcon,
10
9
  EmptyStateBody,
11
- EmptyStateHeader,
12
10
  EmptyStateFooter,
13
11
  EmptyStateActions,
14
12
  PageSection
@@ -34,12 +32,12 @@ export const TableEmptyStateDefault: React.FunctionComponent = () => (
34
32
  <Tr>
35
33
  <Td colSpan={8}>
36
34
  <Bullseye>
37
- <EmptyState variant={EmptyStateVariant.sm}>
38
- <EmptyStateHeader
39
- icon={<EmptyStateIcon icon={SearchIcon} />}
40
- titleText="No results found"
41
- headingLevel="h2"
42
- />
35
+ <EmptyState
36
+ titleText="No results found"
37
+ icon={SearchIcon}
38
+ headingLevel="h2"
39
+ variant={EmptyStateVariant.sm}
40
+ >
43
41
  <EmptyStateBody>
44
42
  No results match this filter criteria. Clear all filters and try again.
45
43
  </EmptyStateBody>
@@ -1,15 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
3
- import {
4
- Bullseye,
5
- Card,
6
- EmptyState,
7
- EmptyStateVariant,
8
- EmptyStateIcon,
9
- EmptyStateBody,
10
- EmptyStateHeader,
11
- PageSection
12
- } from '@patternfly/react-core';
3
+ import { Bullseye, Card, EmptyState, EmptyStateVariant, EmptyStateBody, PageSection } from '@patternfly/react-core';
13
4
  import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
14
5
  import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
15
6
 
@@ -31,12 +22,12 @@ export const TableEmptyStateError: React.FunctionComponent = () => (
31
22
  <Tr>
32
23
  <Td colSpan={8}>
33
24
  <Bullseye>
34
- <EmptyState variant={EmptyStateVariant.sm} titleText="">
35
- <EmptyStateHeader
36
- titleText="Unable to connect"
37
- icon={<EmptyStateIcon icon={ExclamationCircleIcon} />}
38
- headingLevel="h2"
39
- />
25
+ <EmptyState
26
+ icon={ExclamationCircleIcon}
27
+ titleText="Unable to connect"
28
+ headingLevel="h2"
29
+ variant={EmptyStateVariant.sm}
30
+ >
40
31
  <EmptyStateBody>
41
32
  There was an error retrieving data. Check your connection and reload the page.
42
33
  </EmptyStateBody>
@@ -1,14 +1,6 @@
1
1
  import React from 'react';
2
2
  import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
3
- import {
4
- Bullseye,
5
- Card,
6
- EmptyState,
7
- EmptyStateIcon,
8
- EmptyStateHeader,
9
- PageSection,
10
- Spinner
11
- } from '@patternfly/react-core';
3
+ import { Bullseye, Card, EmptyState, PageSection, Spinner } from '@patternfly/react-core';
12
4
  import { DashboardWrapper } from '@patternfly/react-table/dist/esm/demos/DashboardWrapper';
13
5
 
14
6
  export const TableEmptyStateLoading: React.FunctionComponent = () => (
@@ -29,9 +21,7 @@ export const TableEmptyStateLoading: React.FunctionComponent = () => (
29
21
  <Tr>
30
22
  <Td colSpan={8}>
31
23
  <Bullseye>
32
- <EmptyState>
33
- <EmptyStateHeader titleText="Loading" headingLevel="h2" icon={<EmptyStateIcon icon={Spinner} />} />
34
- </EmptyState>
24
+ <EmptyState titleText="Loading" icon={Spinner} headingLevel="h2" />
35
25
  </Bullseye>
36
26
  </Td>
37
27
  </Tr>
@@ -6,8 +6,6 @@ import {
6
6
  EmptyState,
7
7
  EmptyStateActions,
8
8
  EmptyStateBody,
9
- EmptyStateIcon,
10
- EmptyStateHeader,
11
9
  EmptyStateFooter,
12
10
  Label,
13
11
  MenuToggle,
@@ -308,12 +306,7 @@ export const TableFilterable: React.FunctionComponent = () => {
308
306
  : rowData;
309
307
 
310
308
  const emptyState = (
311
- <EmptyState>
312
- <EmptyStateHeader
313
- titleText="Clear all filters and try again."
314
- headingLevel="h5"
315
- icon={<EmptyStateIcon icon={SearchIcon} />}
316
- />
309
+ <EmptyState icon={SearchIcon} titleText="Clear all filters and try again." headingLevel="h5">
317
310
  <EmptyStateBody>No results match the filter criteria. Clear all filters and try again.</EmptyStateBody>
318
311
  <EmptyStateFooter>
319
312
  <EmptyStateActions>