@patternfly/react-table 4.88.2 → 4.89.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 CHANGED
@@ -3,6 +3,17 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ # 4.89.0 (2022-05-31)
7
+
8
+
9
+ ### Features
10
+
11
+ * **table:** add fullscreen demo for error state ([#7443](https://github.com/patternfly/patternfly-react/issues/7443)) ([eeab219](https://github.com/patternfly/patternfly-react/commit/eeab2197765589262ee7c328e57dbf1606da6d7f))
12
+
13
+
14
+
15
+
16
+
6
17
  ## 4.88.2 (2022-05-27)
7
18
 
8
19
  **Note:** Version bump only for package @patternfly/react-table
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.88.2",
3
+ "version": "4.89.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.219.2",
35
- "@patternfly/react-icons": "^4.70.2",
36
- "@patternfly/react-styles": "^4.69.2",
37
- "@patternfly/react-tokens": "^4.71.2",
34
+ "@patternfly/react-core": "^4.220.0",
35
+ "@patternfly/react-icons": "^4.71.0",
36
+ "@patternfly/react-styles": "^4.70.0",
37
+ "@patternfly/react-tokens": "^4.72.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": "5b818b06af7c427e8b6b1fe87a6642e52072e477"
49
+ "gitHead": "ac2570b4006ca5bd89b16da7e499a54459f6a2a2"
50
50
  }
@@ -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 { EmptyState, EmptyStateBody, EmptyStateVariant, Title } from '@patternfly/react-core';
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: 'Servers' },
3119
- { title: 'Threads' },
3120
- { title: 'Applications' },
3128
+ { title: 'Repositories' },
3129
+ { title: 'Branches' },
3130
+ { title: 'Pull requests' },
3121
3131
  { title: 'Workspaces' },
3122
- { title: 'Status' },
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
- <Table cells={columns} rows={rows} aria-label="Error Table Demo">
3148
- <TableHeader />
3149
- <TableBody />
3150
- </Table>
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
  }