@patternfly/react-table 4.88.2 → 4.89.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.min.css +1714 -1714
- package/package.json +6 -6
- package/src/demos/Table.md +27 -11
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.89.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.220.2",
|
|
35
|
+
"@patternfly/react-icons": "^4.71.2",
|
|
36
|
+
"@patternfly/react-styles": "^4.70.2",
|
|
37
|
+
"@patternfly/react-tokens": "^4.72.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": "a8c59ffa9bb424d46036dabe35c777b999fb11d6"
|
|
50
50
|
}
|
package/src/demos/Table.md
CHANGED
|
@@ -3107,20 +3107,29 @@ class LoadingStateDemo extends React.Component {
|
|
|
3107
3107
|
|
|
3108
3108
|
### Error
|
|
3109
3109
|
|
|
3110
|
-
```js
|
|
3110
|
+
```js isFullscreen
|
|
3111
3111
|
import React from 'react';
|
|
3112
|
-
import {
|
|
3112
|
+
import {
|
|
3113
|
+
Card,
|
|
3114
|
+
EmptyState,
|
|
3115
|
+
EmptyStateIcon,
|
|
3116
|
+
EmptyStateBody,
|
|
3117
|
+
EmptyStateVariant,
|
|
3118
|
+
PageSection,
|
|
3119
|
+
Title
|
|
3120
|
+
} from '@patternfly/react-core';
|
|
3113
3121
|
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
3122
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
3123
|
+
import ExclamationCircleIcon from '@patternfly/react-icons/dist/esm/icons/exclamation-circle-icon';
|
|
3114
3124
|
|
|
3115
3125
|
class ErrorStateDemo extends React.Component {
|
|
3116
3126
|
render() {
|
|
3117
3127
|
const columns = [
|
|
3118
|
-
{ title: '
|
|
3119
|
-
{ title: '
|
|
3120
|
-
{ title: '
|
|
3128
|
+
{ title: 'Repositories' },
|
|
3129
|
+
{ title: 'Branches' },
|
|
3130
|
+
{ title: 'Pull requests' },
|
|
3121
3131
|
{ title: 'Workspaces' },
|
|
3122
|
-
{ title: '
|
|
3123
|
-
{ title: 'Location' }
|
|
3132
|
+
{ title: 'Last commit' }
|
|
3124
3133
|
];
|
|
3125
3134
|
const rows = [
|
|
3126
3135
|
{
|
|
@@ -3130,6 +3139,7 @@ class ErrorStateDemo extends React.Component {
|
|
|
3130
3139
|
props: { colSpan: 8 },
|
|
3131
3140
|
title: (
|
|
3132
3141
|
<EmptyState variant={EmptyStateVariant.small}>
|
|
3142
|
+
<EmptyStateIcon icon={ExclamationCircleIcon} color={globalDangerColor200.value} />
|
|
3133
3143
|
<Title headingLevel="h2" size="lg">
|
|
3134
3144
|
Unable to connect
|
|
3135
3145
|
</Title>
|
|
@@ -3144,10 +3154,16 @@ class ErrorStateDemo extends React.Component {
|
|
|
3144
3154
|
];
|
|
3145
3155
|
|
|
3146
3156
|
return (
|
|
3147
|
-
<
|
|
3148
|
-
<
|
|
3149
|
-
|
|
3150
|
-
|
|
3157
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
3158
|
+
<PageSection padding={{ default: 'noPadding', xl: 'padding' }}>
|
|
3159
|
+
<Card component="div">
|
|
3160
|
+
<Table cells={columns} rows={rows} aria-label="Error table demo">
|
|
3161
|
+
<TableHeader />
|
|
3162
|
+
<TableBody />
|
|
3163
|
+
</Table>
|
|
3164
|
+
</Card>
|
|
3165
|
+
</PageSection>
|
|
3166
|
+
</DashboardWrapper>
|
|
3151
3167
|
);
|
|
3152
3168
|
}
|
|
3153
3169
|
}
|