@patternfly/react-table 6.0.0-alpha.63 → 6.0.0-alpha.65
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 +10 -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/umd/assets/{output-CkGaeUIm.css → output-JEA2O29j.css} +7361 -7361
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
- package/src/demos/examples/TableEmptyStateDefault.tsx +6 -8
- package/src/demos/examples/TableEmptyStateError.tsx +7 -16
- package/src/demos/examples/TableEmptyStateLoading.tsx +2 -12
- package/src/demos/examples/TableFilterable.tsx +1 -8
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.65",
|
|
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.65",
|
|
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": "
|
|
54
|
+
"gitHead": "c78a547d4e50b3766eead9a2814667c778c3c86f"
|
|
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
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
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
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
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>
|