@patternfly/react-table 4.82.4 → 4.83.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,36 @@
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.83.0 (2022-05-12)
7
+
8
+
9
+ ### Features
10
+
11
+ * **table:** expandable table demo ([#7277](https://github.com/patternfly/patternfly-react/issues/7277)) ([c081a61](https://github.com/patternfly/patternfly-react/commit/c081a61f11ceeb92688798106962e3604c243606))
12
+
13
+
14
+
15
+
16
+
17
+ ## 4.82.6 (2022-05-11)
18
+
19
+ **Note:** Version bump only for package @patternfly/react-table
20
+
21
+
22
+
23
+
24
+
25
+ ## 4.82.5 (2022-05-11)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **charts:** support customizing tooltip border for dark theme ([#7393](https://github.com/patternfly/patternfly-react/issues/7393)) ([7168a1d](https://github.com/patternfly/patternfly-react/commit/7168a1dc7f3a1302d719a32bcd32dcdb9ad8fb86))
31
+
32
+
33
+
34
+
35
+
6
36
  ## 4.82.4 (2022-05-11)
7
37
 
8
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-table",
3
- "version": "4.82.4",
3
+ "version": "4.83.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.213.4",
35
- "@patternfly/react-icons": "^4.64.4",
36
- "@patternfly/react-styles": "^4.63.4",
37
- "@patternfly/react-tokens": "^4.65.4",
34
+ "@patternfly/react-core": "^4.214.0",
35
+ "@patternfly/react-icons": "^4.65.0",
36
+ "@patternfly/react-styles": "^4.64.0",
37
+ "@patternfly/react-tokens": "^4.66.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": "351d36e715f337de045e0652779d01393c1cf812"
49
+ "gitHead": "ec9d9318898ab30d77ec7ab4e86a4577c27eb5ce"
50
50
  }
@@ -274,7 +274,7 @@ class BulkSelectTableDemo extends React.Component {
274
274
 
275
275
  ### Expand/collapse all
276
276
 
277
- ```js file="table-demos/ExpandCollapseAll.jsx"
277
+ ```js isFullscreen file="table-demos/ExpandCollapseAll.jsx"
278
278
  ```
279
279
 
280
280
  ### Column management
@@ -3043,7 +3043,7 @@ class LoadingStateDemo extends React.Component {
3043
3043
  props: { colSpan: 8 },
3044
3044
  title: (
3045
3045
  <Bullseye>
3046
- <Spinner size="xl" aria-labelledby="loading-table-demo"/>
3046
+ <Spinner size="xl" aria-labelledby="loading-table-demo" />
3047
3047
  </Bullseye>
3048
3048
  )
3049
3049
  }
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
- import { Table, TableHeader, TableBody, expandable } from '@patternfly/react-table';
2
+ import { Card, PageSection, Table, TableHeader, TableBody, expandable } from '@patternfly/react-table';
3
+ import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
3
4
 
4
5
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
5
6
  class ExpandCollapseAllTableDemo extends React.Component {
@@ -13,7 +14,7 @@ class ExpandCollapseAllTableDemo extends React.Component {
13
14
  collapseAllAriaLabel: 'Expand all',
14
15
  columns: [
15
16
  {
16
- title: 'Header cell1',
17
+ title: 'Repositories',
17
18
  cellFormatters: [expandable]
18
19
  },
19
20
  'Branches',
@@ -120,19 +121,30 @@ class ExpandCollapseAllTableDemo extends React.Component {
120
121
 
121
122
  return (
122
123
  <React.Fragment>
123
- <Table
124
- aria-label="Collapsible table"
125
- onSelect={this.onSelect}
126
- onCollapse={this.onCollapse}
127
- rows={rows}
128
- cells={columns}
129
- canSelectAll={true}
130
- canCollapseAll={true}
131
- collapseAllAriaLabel={collapseAllAriaLabel}
132
- >
133
- <TableHeader />
134
- <TableBody />
135
- </Table>
124
+ <DashboardWrapper hasPageTemplateTitle>
125
+ <PageSection
126
+ padding={{
127
+ default: 'noPadding',
128
+ xl: 'padding'
129
+ }}
130
+ >
131
+ <Card component="div">
132
+ <Table
133
+ aria-label="Collapsible table"
134
+ onSelect={this.onSelect}
135
+ onCollapse={this.onCollapse}
136
+ rows={rows}
137
+ cells={columns}
138
+ canSelectAll={false}
139
+ canCollapseAll={true}
140
+ collapseAllAriaLabel={collapseAllAriaLabel}
141
+ >
142
+ <TableHeader />
143
+ <TableBody />
144
+ </Table>
145
+ </Card>
146
+ </PageSection>
147
+ </DashboardWrapper>
136
148
  </React.Fragment>
137
149
  );
138
150
  }