@patternfly/react-core 4.222.8 → 4.222.11

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.222.11 (2022-06-17)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Table:** update expandable examples to set column widths ([#7513](https://github.com/patternfly/patternfly-react/issues/7513)) ([c2e1e61](https://github.com/patternfly/patternfly-react/commit/c2e1e618a6924bdbb2b1e8e7ad94553615196fb2))
12
+
13
+
14
+
15
+
16
+
17
+ ## 4.222.10 (2022-06-16)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Topology:** Fix for group position when it has no children ([#7573](https://github.com/patternfly/patternfly-react/issues/7573)) ([04e435e](https://github.com/patternfly/patternfly-react/commit/04e435ebc87ad7d1c687db95ee8ef8beffae514d))
23
+
24
+
25
+
26
+
27
+
28
+ ## 4.222.9 (2022-06-16)
29
+
30
+ **Note:** Version bump only for package @patternfly/react-core
31
+
32
+
33
+
34
+
35
+
6
36
  ## 4.222.8 (2022-06-16)
7
37
 
8
38
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/react-core",
3
- "version": "4.222.8",
3
+ "version": "4.222.11",
4
4
  "description": "This library provides a set of common React components for use with the PatternFly reference implementation.",
5
5
  "main": "dist/js/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -34,9 +34,9 @@
34
34
  "generate": "node scripts/copyStyles.js"
35
35
  },
36
36
  "dependencies": {
37
- "@patternfly/react-icons": "^4.73.8",
38
- "@patternfly/react-styles": "^4.72.8",
39
- "@patternfly/react-tokens": "^4.74.8",
37
+ "@patternfly/react-icons": "^4.73.11",
38
+ "@patternfly/react-styles": "^4.72.11",
39
+ "@patternfly/react-tokens": "^4.74.11",
40
40
  "focus-trap": "6.9.2",
41
41
  "react-dropzone": "9.0.0",
42
42
  "tippy.js": "5.1.2",
@@ -60,5 +60,5 @@
60
60
  "react": "^16.8.0 || ^17.0.0",
61
61
  "react-dom": "^16.8.0 || ^17.0.0"
62
62
  },
63
- "gitHead": "578849aa95888275b3834c63ffac16fb41ae0a2f"
63
+ "gitHead": "f1a199ba0c0555f0e78faf42e7d25fa5e6510871"
64
64
  }
@@ -106,6 +106,13 @@ class CardViewBasic extends React.Component {
106
106
  totalItemCount: 10
107
107
  };
108
108
 
109
+ this.checkAllSelected = (selected, total) => {
110
+ if (selected && selected < total) {
111
+ return null;
112
+ }
113
+ return selected === total;
114
+ };
115
+
109
116
  this.onToolbarDropdownToggle = isLowerToolbarDropdownOpen => {
110
117
  this.setState(prevState => ({
111
118
  isLowerToolbarDropdownOpen
@@ -209,11 +216,11 @@ class CardViewBasic extends React.Component {
209
216
  return prevState.selectedItems.includes(productId * 1)
210
217
  ? {
211
218
  selectedItems: [...prevState.selectedItems.filter(id => productId * 1 != id)],
212
- areAllSelected: false
219
+ areAllSelected: this.checkAllSelected(prevState.selectedItems.length - 1, prevState.totalItemCount)
213
220
  }
214
221
  : {
215
222
  selectedItems: [...prevState.selectedItems, productId * 1],
216
- areAllSelected: prevState.totalItemCount === prevState.selectedItems.length + 1
223
+ areAllSelected: this.checkAllSelected(prevState.selectedItems.length + 1, prevState.totalItemCount)
217
224
  };
218
225
  });
219
226
  }
@@ -224,11 +231,11 @@ class CardViewBasic extends React.Component {
224
231
  return prevState.selectedItems.includes(productId * 1)
225
232
  ? {
226
233
  selectedItems: [...prevState.selectedItems.filter(id => productId * 1 != id)],
227
- areAllSelected: false
234
+ areAllSelected: this.checkAllSelected(prevState.selectedItems.length - 1, prevState.totalItemCount)
228
235
  }
229
236
  : {
230
237
  selectedItems: [...prevState.selectedItems, productId * 1],
231
- areAllSelected: prevState.totalItemCount === prevState.selectedItems.length + 1
238
+ areAllSelected: this.checkAllSelected(prevState.selectedItems.length + 1, prevState.totalItemCount)
232
239
  };
233
240
  });
234
241
  };
@@ -562,7 +569,7 @@ class CardViewBasic extends React.Component {
562
569
  </PageSection>
563
570
  <PageSection isFilled>
564
571
  <Gallery hasGutter aria-label="Selectable card container">
565
- <Card isSelectableRaised isCompact>
572
+ <Card isCompact>
566
573
  <Bullseye>
567
574
  <EmptyState variant={EmptyStateVariant.xs}>
568
575
  <EmptyStateIcon icon={PlusCircleIcon} />
@@ -577,7 +584,6 @@ class CardViewBasic extends React.Component {
577
584
  </Card>
578
585
  {filtered.map((product, key) => (
579
586
  <Card
580
- isSelectableRaised
581
587
  hasSelectableInput
582
588
  isCompact
583
589
  key={product.name}