@patternfly/react-table 4.86.4 → 4.88.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.86.4",
3
+ "version": "4.88.1",
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.217.4",
35
- "@patternfly/react-icons": "^4.68.4",
36
- "@patternfly/react-styles": "^4.67.4",
37
- "@patternfly/react-tokens": "^4.69.4",
34
+ "@patternfly/react-core": "^4.219.1",
35
+ "@patternfly/react-icons": "^4.70.1",
36
+ "@patternfly/react-styles": "^4.69.1",
37
+ "@patternfly/react-tokens": "^4.71.1",
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": "ba782c2941a816480fc345e27ce9f15782a81298"
49
+ "gitHead": "7a00f2e2733a593e840464c786f7096e004d02f1"
50
50
  }
@@ -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: 'Servers' },
3004
- { title: 'Threads' },
3005
- { title: 'Applications' },
3006
+ { title: 'Repositories' },
3007
+ { title: 'Branches' },
3008
+ { title: 'Pull requests' },
3006
3009
  { title: 'Workspaces' },
3007
- { title: 'Status' },
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="h5" size="lg">
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
- <Table cells={columns} rows={rows} aria-label="Empty state demo">
3038
- <TableHeader />
3039
- <TableBody />
3040
- </Table>
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
  }