@patternfly/react-table 4.86.3 → 4.88.0
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 +30 -0
- package/dist/umd/react-table.js +9 -3
- package/dist/umd/react-table.min.css +244 -244
- package/dist/umd/react-table.min.js +2 -2
- package/package.json +6 -6
- package/src/demos/Table.md +19 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.88.0",
|
|
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",
|
|
@@ -31,10 +31,10 @@
|
|
|
31
31
|
"clean": "rimraf dist"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"@patternfly/react-core": "^4.
|
|
35
|
-
"@patternfly/react-icons": "^4.
|
|
36
|
-
"@patternfly/react-styles": "^4.
|
|
37
|
-
"@patternfly/react-tokens": "^4.
|
|
34
|
+
"@patternfly/react-core": "^4.219.0",
|
|
35
|
+
"@patternfly/react-icons": "^4.70.0",
|
|
36
|
+
"@patternfly/react-styles": "^4.69.0",
|
|
37
|
+
"@patternfly/react-tokens": "^4.71.0",
|
|
38
38
|
"lodash": "^4.17.19",
|
|
39
39
|
"tslib": "^2.0.0"
|
|
40
40
|
},
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"react": "^16.8.0 || ^17.0.0",
|
|
47
47
|
"react-dom": "^16.8.0 || ^17.0.0"
|
|
48
48
|
},
|
|
49
|
-
"gitHead": "
|
|
49
|
+
"gitHead": "35dea6aaa7ed4c6f49ae0d3ee6644dda3efb2889"
|
|
50
50
|
}
|
package/src/demos/Table.md
CHANGED
|
@@ -2984,28 +2984,30 @@ These examples demonstrate the use of an [Empty State component](/components/emp
|
|
|
2984
2984
|
|
|
2985
2985
|
### Empty
|
|
2986
2986
|
|
|
2987
|
-
```js
|
|
2987
|
+
```js isFullscreen
|
|
2988
2988
|
import React from 'react';
|
|
2989
2989
|
import {
|
|
2990
2990
|
Button,
|
|
2991
|
+
Card,
|
|
2991
2992
|
EmptyState,
|
|
2992
2993
|
EmptyStateIcon,
|
|
2993
2994
|
EmptyStateBody,
|
|
2994
2995
|
EmptyStateSecondaryActions,
|
|
2996
|
+
PageSection,
|
|
2995
2997
|
Title
|
|
2996
2998
|
} from '@patternfly/react-core';
|
|
2997
2999
|
import SearchIcon from '@patternfly/react-icons/dist/esm/icons/search-icon';
|
|
2998
3000
|
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
3001
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
2999
3002
|
|
|
3000
3003
|
class EmptyStateDemo extends React.Component {
|
|
3001
3004
|
render() {
|
|
3002
3005
|
const columns = [
|
|
3003
|
-
{ title: '
|
|
3004
|
-
{ title: '
|
|
3005
|
-
{ title: '
|
|
3006
|
+
{ title: 'Repositories' },
|
|
3007
|
+
{ title: 'Branches' },
|
|
3008
|
+
{ title: 'Pull requests' },
|
|
3006
3009
|
{ title: 'Workspaces' },
|
|
3007
|
-
{ title: '
|
|
3008
|
-
{ title: 'Location' }
|
|
3010
|
+
{ title: 'Last commit' }
|
|
3009
3011
|
];
|
|
3010
3012
|
|
|
3011
3013
|
const rows = [
|
|
@@ -3017,7 +3019,7 @@ class EmptyStateDemo extends React.Component {
|
|
|
3017
3019
|
title: (
|
|
3018
3020
|
<EmptyState>
|
|
3019
3021
|
<EmptyStateIcon icon={SearchIcon} />
|
|
3020
|
-
<Title headingLevel="
|
|
3022
|
+
<Title headingLevel="h2" size="lg">
|
|
3021
3023
|
No results found
|
|
3022
3024
|
</Title>
|
|
3023
3025
|
<EmptyStateBody>No results match this filter criteria. Clear all filters and try again.</EmptyStateBody>
|
|
@@ -3034,10 +3036,16 @@ class EmptyStateDemo extends React.Component {
|
|
|
3034
3036
|
];
|
|
3035
3037
|
|
|
3036
3038
|
return (
|
|
3037
|
-
<
|
|
3038
|
-
<
|
|
3039
|
-
|
|
3040
|
-
|
|
3039
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
3040
|
+
<PageSection padding={{ default: 'noPadding', xl: 'padding' }}>
|
|
3041
|
+
<Card component="div">
|
|
3042
|
+
<Table cells={columns} rows={rows} aria-label="Empty state demo">
|
|
3043
|
+
<TableHeader />
|
|
3044
|
+
<TableBody />
|
|
3045
|
+
</Table>
|
|
3046
|
+
</Card>
|
|
3047
|
+
</PageSection>
|
|
3048
|
+
</DashboardWrapper>
|
|
3041
3049
|
);
|
|
3042
3050
|
}
|
|
3043
3051
|
}
|