@patternfly/react-table 4.80.3 → 4.80.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 +27 -0
- package/dist/umd/react-table.css +5 -0
- package/dist/umd/react-table.js +7 -6
- package/dist/umd/react-table.min.css +1140 -1135
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,33 @@
|
|
|
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.80.6 (2022-05-09)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## 4.80.5 (2022-05-09)
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Bug Fixes
|
|
18
|
+
|
|
19
|
+
* **Popper:** update Popper modifiers when child DOM changes ([#7385](https://github.com/patternfly/patternfly-react/issues/7385)) ([28d0b74](https://github.com/patternfly/patternfly-react/commit/28d0b74107ae76acae535c37ea73cec3a4cf49d5))
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## 4.80.4 (2022-05-09)
|
|
26
|
+
|
|
27
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
|
|
6
33
|
## 4.80.3 (2022-05-06)
|
|
7
34
|
|
|
8
35
|
|
package/dist/umd/react-table.css
CHANGED
|
@@ -9368,6 +9368,7 @@ button.pf-c-breadcrumb__link {
|
|
|
9368
9368
|
position: relative;
|
|
9369
9369
|
display: inline-flex;
|
|
9370
9370
|
align-items: center;
|
|
9371
|
+
min-width: 0;
|
|
9371
9372
|
padding: var(--pf-c-chip--PaddingTop) var(--pf-c-chip--PaddingRight) var(--pf-c-chip--PaddingBottom) var(--pf-c-chip--PaddingLeft);
|
|
9372
9373
|
list-style: none;
|
|
9373
9374
|
background-color: var(--pf-c-chip--BackgroundColor);
|
|
@@ -9475,6 +9476,7 @@ button.pf-c-breadcrumb__link {
|
|
|
9475
9476
|
flex: 1;
|
|
9476
9477
|
flex-wrap: wrap;
|
|
9477
9478
|
align-items: baseline;
|
|
9479
|
+
min-width: 0;
|
|
9478
9480
|
}
|
|
9479
9481
|
|
|
9480
9482
|
.pf-c-chip-group__list {
|
|
@@ -9487,10 +9489,13 @@ button.pf-c-breadcrumb__link {
|
|
|
9487
9489
|
display: inline-flex;
|
|
9488
9490
|
flex-wrap: wrap;
|
|
9489
9491
|
align-items: center;
|
|
9492
|
+
min-width: 0;
|
|
9493
|
+
max-width: 100%;
|
|
9490
9494
|
}
|
|
9491
9495
|
|
|
9492
9496
|
.pf-c-chip-group__list-item {
|
|
9493
9497
|
display: inline-flex;
|
|
9498
|
+
min-width: 0;
|
|
9494
9499
|
margin-right: var(--pf-c-chip-group__list-item--MarginRight);
|
|
9495
9500
|
margin-bottom: var(--pf-c-chip-group__list-item--MarginBottom);
|
|
9496
9501
|
}
|
package/dist/umd/react-table.js
CHANGED
|
@@ -2987,6 +2987,11 @@
|
|
|
2987
2987
|
addEventListener(onPopperClick, popperElement, 'click');
|
|
2988
2988
|
onDocumentClick && addEventListener(onDocumentClickCallback, document, 'click');
|
|
2989
2989
|
addEventListener(onDocumentKeyDown, document, 'keydown');
|
|
2990
|
+
// Trigger a Popper update when content changes.
|
|
2991
|
+
const observer = new MutationObserver(() => {
|
|
2992
|
+
update && update();
|
|
2993
|
+
});
|
|
2994
|
+
popperElement && observer.observe(popperElement, { attributes: true, childList: true, subtree: true });
|
|
2990
2995
|
return () => {
|
|
2991
2996
|
removeEventListener(onMouseEnter, refOrTrigger, 'mouseenter');
|
|
2992
2997
|
removeEventListener(onMouseLeave, refOrTrigger, 'mouseleave');
|
|
@@ -2997,6 +3002,7 @@
|
|
|
2997
3002
|
removeEventListener(onPopperClick, popperElement, 'click');
|
|
2998
3003
|
onDocumentClick && removeEventListener(onDocumentClickCallback, document, 'click');
|
|
2999
3004
|
removeEventListener(onDocumentKeyDown, document, 'keydown');
|
|
3005
|
+
observer.disconnect();
|
|
3000
3006
|
};
|
|
3001
3007
|
}, [
|
|
3002
3008
|
triggerElement,
|
|
@@ -3041,7 +3047,7 @@
|
|
|
3041
3047
|
return () => { };
|
|
3042
3048
|
}
|
|
3043
3049
|
}), [popperMatchesTriggerWidth]);
|
|
3044
|
-
const { styles: popperStyles, attributes,
|
|
3050
|
+
const { styles: popperStyles, attributes, update } = usePopper(refOrTrigger, popperElement, {
|
|
3045
3051
|
placement: getPlacementMemo,
|
|
3046
3052
|
modifiers: [
|
|
3047
3053
|
{
|
|
@@ -3069,11 +3075,6 @@
|
|
|
3069
3075
|
sameWidthMod
|
|
3070
3076
|
]
|
|
3071
3077
|
});
|
|
3072
|
-
// force update when content changes
|
|
3073
|
-
// https://github.com/patternfly/patternfly-react/issues/5620
|
|
3074
|
-
React__namespace.useEffect(() => {
|
|
3075
|
-
forceUpdate && forceUpdate();
|
|
3076
|
-
}, [popper]);
|
|
3077
3078
|
// Returns the CSS modifier class in order to place the Popper's arrow properly
|
|
3078
3079
|
// Depends on the position of the Popper relative to the reference element
|
|
3079
3080
|
const modifierFromPopperPosition = () => {
|