@patternfly/react-table 4.77.3 → 4.77.6
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 +24 -0
- package/dist/umd/react-table.css +10 -10
- package/package.json +6 -6
- package/src/demos/Table.md +37 -28
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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.77.6 (2022-05-03)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.77.5 (2022-05-03)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## 4.77.4 (2022-05-03)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
6
30
|
## 4.77.3 (2022-05-03)
|
|
7
31
|
|
|
8
32
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.css
CHANGED
|
@@ -17218,16 +17218,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
17218
17218
|
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-c-modal-box__footer--c-button--sm--MarginRight);
|
|
17219
17219
|
}
|
|
17220
17220
|
}
|
|
17221
|
-
.pf-l-bullseye {
|
|
17222
|
-
--pf-l-bullseye--Padding: 0;
|
|
17223
|
-
display: flex;
|
|
17224
|
-
align-items: center;
|
|
17225
|
-
justify-content: center;
|
|
17226
|
-
height: 100%;
|
|
17227
|
-
padding: var(--pf-l-bullseye--Padding);
|
|
17228
|
-
margin: 0;
|
|
17229
|
-
}
|
|
17230
|
-
|
|
17231
17221
|
.pf-c-multiple-file-upload {
|
|
17232
17222
|
--pf-c-multiple-file-upload--GridTemplateColumns: 1fr;
|
|
17233
17223
|
--pf-c-multiple-file-upload--Gap: var(--pf-global--spacer--lg);
|
|
@@ -17412,6 +17402,16 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
|
|
|
17412
17402
|
color: var(--pf-c-multiple-file-upload__status-item-progress-size--Color);
|
|
17413
17403
|
}
|
|
17414
17404
|
|
|
17405
|
+
.pf-l-bullseye {
|
|
17406
|
+
--pf-l-bullseye--Padding: 0;
|
|
17407
|
+
display: flex;
|
|
17408
|
+
align-items: center;
|
|
17409
|
+
justify-content: center;
|
|
17410
|
+
height: 100%;
|
|
17411
|
+
padding: var(--pf-l-bullseye--Padding);
|
|
17412
|
+
margin: 0;
|
|
17413
|
+
}
|
|
17414
|
+
|
|
17415
17415
|
.pf-c-nav {
|
|
17416
17416
|
--pf-c-nav--Transition: var(--pf-global--Transition);
|
|
17417
17417
|
--pf-c-nav--m-light__item--before--BorderColor: var(--pf-global--BorderColor--300);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@patternfly/react-table",
|
|
3
|
-
"version": "4.77.
|
|
3
|
+
"version": "4.77.6",
|
|
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.208.
|
|
35
|
-
"@patternfly/react-icons": "^4.59.
|
|
36
|
-
"@patternfly/react-styles": "^4.58.
|
|
37
|
-
"@patternfly/react-tokens": "^4.60.
|
|
34
|
+
"@patternfly/react-core": "^4.208.6",
|
|
35
|
+
"@patternfly/react-icons": "^4.59.6",
|
|
36
|
+
"@patternfly/react-styles": "^4.58.6",
|
|
37
|
+
"@patternfly/react-tokens": "^4.60.6",
|
|
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": "35f7c3e0f7efd0b45a2659f80268b463f3e0a8d4"
|
|
50
50
|
}
|
package/src/demos/Table.md
CHANGED
|
@@ -3,7 +3,7 @@ id: Table
|
|
|
3
3
|
section: components
|
|
4
4
|
---
|
|
5
5
|
|
|
6
|
-
import { Checkbox, ToolbarExpandIconWrapper, ToolbarContent } from '@patternfly/react-core';
|
|
6
|
+
import { Checkbox, PageSection, ToolbarExpandIconWrapper, ToolbarContent } from '@patternfly/react-core';
|
|
7
7
|
import CodeIcon from '@patternfly/react-icons/dist/esm/icons/code-icon';
|
|
8
8
|
import CodeBranchIcon from '@patternfly/react-icons/dist/esm/icons/code-branch-icon';
|
|
9
9
|
import CubeIcon from '@patternfly/react-icons/dist/esm/icons/cube-icon';
|
|
@@ -21,10 +21,11 @@ import AngleDownIcon from '@patternfly/react-icons/dist/esm/icons/angle-down-ico
|
|
|
21
21
|
import AngleRightIcon from '@patternfly/react-icons/dist/esm/icons/angle-right-icon';
|
|
22
22
|
import BarsIcon from '@patternfly/react-icons/dist/esm/icons/bars-icon';
|
|
23
23
|
import AttentionBellIcon from '@patternfly/react-icons/dist/esm/icons/attention-bell-icon';
|
|
24
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
24
25
|
|
|
25
26
|
### Bulk select
|
|
26
27
|
|
|
27
|
-
```js
|
|
28
|
+
```js isFullscreen
|
|
28
29
|
import React from 'react';
|
|
29
30
|
import {
|
|
30
31
|
Dropdown,
|
|
@@ -32,13 +33,16 @@ import {
|
|
|
32
33
|
DropdownPosition,
|
|
33
34
|
DropdownToggle,
|
|
34
35
|
DropdownToggleCheckbox,
|
|
36
|
+
PageSection,
|
|
35
37
|
Pagination,
|
|
36
38
|
Title,
|
|
37
39
|
Toolbar,
|
|
40
|
+
ToolbarContent,
|
|
38
41
|
ToolbarGroup,
|
|
39
42
|
ToolbarItem
|
|
40
43
|
} from '@patternfly/react-core';
|
|
41
44
|
import { Table, TableHeader, TableBody } from '@patternfly/react-table';
|
|
45
|
+
import DashboardWrapper from '@patternfly/react-core/src/demos/examples/DashboardWrapper';
|
|
42
46
|
|
|
43
47
|
class BulkSelectTableDemo extends React.Component {
|
|
44
48
|
constructor(props) {
|
|
@@ -218,10 +222,12 @@ class BulkSelectTableDemo extends React.Component {
|
|
|
218
222
|
return (
|
|
219
223
|
<React.Fragment>
|
|
220
224
|
<Toolbar>
|
|
221
|
-
<
|
|
222
|
-
<
|
|
225
|
+
<ToolbarContent>
|
|
226
|
+
<ToolbarGroup>
|
|
227
|
+
<ToolbarItem variant="bulk-select">{this.buildSelectDropdown()}</ToolbarItem>
|
|
228
|
+
</ToolbarGroup>
|
|
223
229
|
<ToolbarItem variant="pagination">{this.renderPagination('top')}</ToolbarItem>
|
|
224
|
-
</
|
|
230
|
+
</ToolbarContent>
|
|
225
231
|
</Toolbar>
|
|
226
232
|
</React.Fragment>
|
|
227
233
|
);
|
|
@@ -235,29 +241,32 @@ class BulkSelectTableDemo extends React.Component {
|
|
|
235
241
|
}));
|
|
236
242
|
|
|
237
243
|
return (
|
|
238
|
-
<
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
244
|
+
<DashboardWrapper hasPageTemplateTitle>
|
|
245
|
+
<PageSection isWidthLimited>
|
|
246
|
+
{this.renderToolbar()}
|
|
247
|
+
{!loading && (
|
|
248
|
+
<Table
|
|
249
|
+
aria-label="Bulk Select Table Demo"
|
|
250
|
+
cells={['Title', 'Body']}
|
|
251
|
+
rows={rows}
|
|
252
|
+
onSelect={this.onSelect}
|
|
253
|
+
canSelectAll={false}
|
|
254
|
+
>
|
|
255
|
+
<TableHeader />
|
|
256
|
+
<TableBody />
|
|
257
|
+
</Table>
|
|
258
|
+
)}
|
|
259
|
+
|
|
260
|
+
{loading && (
|
|
261
|
+
<div className="pf-l-bullseye">
|
|
262
|
+
<Title headingLevel="h2" size="3xl">
|
|
263
|
+
Please wait while loading data
|
|
264
|
+
</Title>
|
|
265
|
+
</div>
|
|
266
|
+
)}
|
|
267
|
+
{this.renderPagination('bottom')}
|
|
268
|
+
</PageSection>
|
|
269
|
+
</DashboardWrapper>
|
|
261
270
|
);
|
|
262
271
|
}
|
|
263
272
|
}
|