@patternfly/react-table 4.85.1 → 4.86.2
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 +27 -0
- package/dist/umd/react-table.js +2 -2
- package/dist/umd/react-table.min.css +410 -410
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
- package/src/demos/Table.md +24 -13
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.86.2",
|
|
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.217.2",
|
|
35
|
+
"@patternfly/react-icons": "^4.68.2",
|
|
36
|
+
"@patternfly/react-styles": "^4.67.2",
|
|
37
|
+
"@patternfly/react-tokens": "^4.69.2",
|
|
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": "9aeee7e7186d7d8e8d572108ec54bea7bbb2bc6b"
|
|
50
50
|
}
|
package/src/demos/Table.md
CHANGED
|
@@ -3045,20 +3045,20 @@ class EmptyStateDemo extends React.Component {
|
|
|
3045
3045
|
|
|
3046
3046
|
### Loading
|
|
3047
3047
|
|
|
3048
|
-
```js
|
|
3048
|
+
```js isFullscreen
|
|
3049
3049
|
import React from 'react';
|
|
3050
|
-
import { Bullseye, Spinner } from '@patternfly/react-core';
|
|
3051
|
-
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
3050
|
+
import { Bullseye, Card, EmptyState, EmptyStateIcon, Spinner, Title } from '@patternfly/react-core';
|
|
3051
|
+
import { PageSection, Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
3052
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
3052
3053
|
|
|
3053
3054
|
class LoadingStateDemo extends React.Component {
|
|
3054
3055
|
render() {
|
|
3055
3056
|
const columns = [
|
|
3056
|
-
{ title: '
|
|
3057
|
-
{ title: '
|
|
3058
|
-
{ title: '
|
|
3057
|
+
{ title: 'Repositories' },
|
|
3058
|
+
{ title: 'Branches' },
|
|
3059
|
+
{ title: 'Pull requests' },
|
|
3059
3060
|
{ title: 'Workspaces' },
|
|
3060
|
-
{ title: '
|
|
3061
|
-
{ title: 'Location' }
|
|
3061
|
+
{ title: 'Last commit' }
|
|
3062
3062
|
];
|
|
3063
3063
|
const rows = [
|
|
3064
3064
|
{
|
|
@@ -3068,7 +3068,12 @@ class LoadingStateDemo extends React.Component {
|
|
|
3068
3068
|
props: { colSpan: 8 },
|
|
3069
3069
|
title: (
|
|
3070
3070
|
<Bullseye>
|
|
3071
|
-
<
|
|
3071
|
+
<EmptyState>
|
|
3072
|
+
<EmptyStateIcon variant="container" component={Spinner} />
|
|
3073
|
+
<Title size="lg" headingLevel="h2">
|
|
3074
|
+
Loading
|
|
3075
|
+
</Title>
|
|
3076
|
+
</EmptyState>
|
|
3072
3077
|
</Bullseye>
|
|
3073
3078
|
)
|
|
3074
3079
|
}
|
|
@@ -3077,10 +3082,16 @@ class LoadingStateDemo extends React.Component {
|
|
|
3077
3082
|
];
|
|
3078
3083
|
|
|
3079
3084
|
return (
|
|
3080
|
-
<
|
|
3081
|
-
<
|
|
3082
|
-
|
|
3083
|
-
|
|
3085
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
3086
|
+
<PageSection padding={{ default: 'noPadding', xl: 'padding' }}>
|
|
3087
|
+
<Card component="div">
|
|
3088
|
+
<Table cells={columns} rows={rows} aria-label="Loading table demo">
|
|
3089
|
+
<TableHeader />
|
|
3090
|
+
<TableBody />
|
|
3091
|
+
</Table>
|
|
3092
|
+
</Card>
|
|
3093
|
+
</PageSection>
|
|
3094
|
+
</DashboardWrapper>
|
|
3084
3095
|
);
|
|
3085
3096
|
}
|
|
3086
3097
|
}
|