@patternfly/react-table 4.80.2 → 4.80.5

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.80.5 (2022-05-09)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **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))
12
+
13
+
14
+
15
+
16
+
17
+ ## 4.80.4 (2022-05-09)
18
+
19
+ **Note:** Version bump only for package @patternfly/react-table
20
+
21
+
22
+
23
+
24
+
25
+ ## 4.80.3 (2022-05-06)
26
+
27
+
28
+ ### Bug Fixes
29
+
30
+ * **LogViewer:** clear ANSI cache when resetting the log window ([#7355](https://github.com/patternfly/patternfly-react/issues/7355)) ([b3354b5](https://github.com/patternfly/patternfly-react/commit/b3354b5000c5d7397c479888140b0381367cbd2c))
31
+
32
+
33
+
34
+
35
+
6
36
  ## 4.80.2 (2022-05-06)
7
37
 
8
38
 
@@ -7458,6 +7458,37 @@ svg.pf-c-spinner.pf-m-xl {
7458
7458
  --pf-c-accordion__expanded-content-body--PaddingTop: var(--pf-c-accordion__expanded-content-body--expanded-content-body--PaddingTop);
7459
7459
  }
7460
7460
 
7461
+ .pf-c-action-list {
7462
+ --pf-c-action-list--m-icon--spacer: 0;
7463
+ --pf-c-action-list--child--spacer-base: var(--pf-global--spacer--md);
7464
+ --pf-c-action-list--group--spacer-base: var(--pf-global--spacer--2xl);
7465
+ }
7466
+
7467
+ .pf-c-action-list,
7468
+ .pf-c-action-list__group {
7469
+ --pf-c-action-list--child--spacer: var(--pf-c-action-list--child--spacer-base);
7470
+ --pf-c-action-list--group--spacer: var(--pf-c-action-list--group--spacer-base);
7471
+ display: flex;
7472
+ align-items: center;
7473
+ }
7474
+
7475
+ .pf-c-action-list > * + *,
7476
+ .pf-c-action-list__group > * + * {
7477
+ margin-left: var(--pf-c-action-list--child--spacer);
7478
+ }
7479
+
7480
+ .pf-c-action-list > * + .pf-c-action-list__group,
7481
+ .pf-c-action-list .pf-c-action-list__group + *,
7482
+ .pf-c-action-list__group > * + .pf-c-action-list__group,
7483
+ .pf-c-action-list__group .pf-c-action-list__group + * {
7484
+ margin-left: var(--pf-c-action-list--group--spacer);
7485
+ }
7486
+
7487
+ .pf-c-action-list.pf-m-icons,
7488
+ .pf-c-action-list__group.pf-m-icons {
7489
+ --pf-c-action-list--child--spacer: var(--pf-c-action-list--m-icon--spacer);
7490
+ }
7491
+
7461
7492
  .pf-c-alert {
7462
7493
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
7463
7494
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -7676,37 +7707,6 @@ svg.pf-c-spinner.pf-m-xl {
7676
7707
  --pf-c-alert__title--FontWeight: var(--pf-global--FontWeight--normal);
7677
7708
  }
7678
7709
 
7679
- .pf-c-action-list {
7680
- --pf-c-action-list--m-icon--spacer: 0;
7681
- --pf-c-action-list--child--spacer-base: var(--pf-global--spacer--md);
7682
- --pf-c-action-list--group--spacer-base: var(--pf-global--spacer--2xl);
7683
- }
7684
-
7685
- .pf-c-action-list,
7686
- .pf-c-action-list__group {
7687
- --pf-c-action-list--child--spacer: var(--pf-c-action-list--child--spacer-base);
7688
- --pf-c-action-list--group--spacer: var(--pf-c-action-list--group--spacer-base);
7689
- display: flex;
7690
- align-items: center;
7691
- }
7692
-
7693
- .pf-c-action-list > * + *,
7694
- .pf-c-action-list__group > * + * {
7695
- margin-left: var(--pf-c-action-list--child--spacer);
7696
- }
7697
-
7698
- .pf-c-action-list > * + .pf-c-action-list__group,
7699
- .pf-c-action-list .pf-c-action-list__group + *,
7700
- .pf-c-action-list__group > * + .pf-c-action-list__group,
7701
- .pf-c-action-list__group .pf-c-action-list__group + * {
7702
- margin-left: var(--pf-c-action-list--group--spacer);
7703
- }
7704
-
7705
- .pf-c-action-list.pf-m-icons,
7706
- .pf-c-action-list__group.pf-m-icons {
7707
- --pf-c-action-list--child--spacer: var(--pf-c-action-list--m-icon--spacer);
7708
- }
7709
-
7710
7710
  .pf-u-screen-reader {
7711
7711
  position: fixed;
7712
7712
  top: 0;
@@ -8337,6 +8337,41 @@ svg.pf-c-spinner.pf-m-xl {
8337
8337
  --pf-c-avatar--Height: var(--pf-c-avatar--m-xl--Height-on-2xl, var(--pf-c-avatar--m-xl--Height-on-xl, var(--pf-c-avatar--m-xl--Height-on-lg, var(--pf-c-avatar--m-xl--Height-on-md, var(--pf-c-avatar--m-xl--Height-on-sm, var(--pf-c-avatar--m-xl--Height))))));
8338
8338
  }
8339
8339
  }
8340
+ .pf-c-back-to-top {
8341
+ --pf-c-back-to-top--Right: var(--pf-global--spacer--2xl);
8342
+ --pf-c-back-to-top--Bottom: var(--pf-global--spacer--lg);
8343
+ --pf-c-back-to-top--md--Bottom: var(--pf-global--spacer--2xl);
8344
+ --pf-c-back-to-top--c-button--FontSize: var(--pf-global--FontSize--xs);
8345
+ --pf-c-back-to-top--c-button--BorderRadius: var(--pf-global--BorderRadius--lg);
8346
+ --pf-c-back-to-top--c-button--PaddingTop: var(--pf-global--spacer--xs);
8347
+ --pf-c-back-to-top--c-button--PaddingRight: var(--pf-global--spacer--sm);
8348
+ --pf-c-back-to-top--c-button--PaddingBottom: var(--pf-global--spacer--xs);
8349
+ --pf-c-back-to-top--c-button--PaddingLeft: var(--pf-global--spacer--sm);
8350
+ --pf-c-back-to-top--c-button--BoxShadow: var(--pf-global--BoxShadow--lg-bottom);
8351
+ position: absolute;
8352
+ right: var(--pf-c-back-to-top--Right);
8353
+ bottom: var(--pf-c-back-to-top--Bottom);
8354
+ }
8355
+
8356
+ @media (min-width: 768px) {
8357
+ .pf-c-back-to-top {
8358
+ --pf-c-back-to-top--Bottom: var(--pf-c-back-to-top--md--Bottom);
8359
+ }
8360
+ }
8361
+ .pf-c-back-to-top.pf-m-hidden {
8362
+ display: none;
8363
+ }
8364
+
8365
+ .pf-c-back-to-top .pf-c-button {
8366
+ --pf-c-button--FontSize: var(--pf-c-back-to-top--c-button--FontSize);
8367
+ --pf-c-button--BorderRadius: var(--pf-c-back-to-top--c-button--BorderRadius);
8368
+ --pf-c-button--PaddingTop: var(--pf-c-back-to-top--c-button--PaddingTop);
8369
+ --pf-c-button--PaddingRight: var(--pf-c-back-to-top--c-button--PaddingRight);
8370
+ --pf-c-button--PaddingBottom: var(--pf-c-back-to-top--c-button--PaddingBottom);
8371
+ --pf-c-button--PaddingLeft: var(--pf-c-back-to-top--c-button--PaddingLeft);
8372
+ box-shadow: var(--pf-c-back-to-top--c-button--BoxShadow);
8373
+ }
8374
+
8340
8375
  .pf-c-background-image {
8341
8376
  --pf-c-background-image--BackgroundColor: var(--pf-global--BackgroundColor--dark-100);
8342
8377
  --pf-c-background-image--BackgroundImage: url("../../assets/images/pfbg_576.jpg");
@@ -8420,41 +8455,6 @@ svg.pf-c-spinner.pf-m-xl {
8420
8455
  --pf-c-badge--BackgroundColor: var(--pf-c-badge--m-unread--BackgroundColor);
8421
8456
  }
8422
8457
 
8423
- .pf-c-back-to-top {
8424
- --pf-c-back-to-top--Right: var(--pf-global--spacer--2xl);
8425
- --pf-c-back-to-top--Bottom: var(--pf-global--spacer--lg);
8426
- --pf-c-back-to-top--md--Bottom: var(--pf-global--spacer--2xl);
8427
- --pf-c-back-to-top--c-button--FontSize: var(--pf-global--FontSize--xs);
8428
- --pf-c-back-to-top--c-button--BorderRadius: var(--pf-global--BorderRadius--lg);
8429
- --pf-c-back-to-top--c-button--PaddingTop: var(--pf-global--spacer--xs);
8430
- --pf-c-back-to-top--c-button--PaddingRight: var(--pf-global--spacer--sm);
8431
- --pf-c-back-to-top--c-button--PaddingBottom: var(--pf-global--spacer--xs);
8432
- --pf-c-back-to-top--c-button--PaddingLeft: var(--pf-global--spacer--sm);
8433
- --pf-c-back-to-top--c-button--BoxShadow: var(--pf-global--BoxShadow--lg-bottom);
8434
- position: absolute;
8435
- right: var(--pf-c-back-to-top--Right);
8436
- bottom: var(--pf-c-back-to-top--Bottom);
8437
- }
8438
-
8439
- @media (min-width: 768px) {
8440
- .pf-c-back-to-top {
8441
- --pf-c-back-to-top--Bottom: var(--pf-c-back-to-top--md--Bottom);
8442
- }
8443
- }
8444
- .pf-c-back-to-top.pf-m-hidden {
8445
- display: none;
8446
- }
8447
-
8448
- .pf-c-back-to-top .pf-c-button {
8449
- --pf-c-button--FontSize: var(--pf-c-back-to-top--c-button--FontSize);
8450
- --pf-c-button--BorderRadius: var(--pf-c-back-to-top--c-button--BorderRadius);
8451
- --pf-c-button--PaddingTop: var(--pf-c-back-to-top--c-button--PaddingTop);
8452
- --pf-c-button--PaddingRight: var(--pf-c-back-to-top--c-button--PaddingRight);
8453
- --pf-c-button--PaddingBottom: var(--pf-c-back-to-top--c-button--PaddingBottom);
8454
- --pf-c-button--PaddingLeft: var(--pf-c-back-to-top--c-button--PaddingLeft);
8455
- box-shadow: var(--pf-c-back-to-top--c-button--BoxShadow);
8456
- }
8457
-
8458
8458
  .pf-c-banner.pf-m-warning, .pf-c-banner.pf-m-info {
8459
8459
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
8460
8460
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -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
  }
@@ -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, forceUpdate } = usePopper(refOrTrigger, popperElement, {
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 = () => {
@@ -3729,7 +3730,7 @@
3729
3730
  const Tooltip = (_a) => {
3730
3731
  var { content: bodyContent, position = 'top', trigger = 'mouseenter focus', isVisible = false, isContentLeftAligned = false, enableFlip = true, className = '', entryDelay = 300, exitDelay = 0, appendTo = () => document.body, zIndex = 9999, maxWidth = tooltipMaxWidth.value, distance = 15, aria = 'describedby',
3731
3732
  // For every initial starting position, there are 3 escape positions
3732
- flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], id = `pf-tooltip-${pfTooltipIdCounter++}`, children, animationDuration = 300, reference, boundary, isAppLauncher, tippyProps } = _a, rest = __rest$1(_a, ["content", "position", "trigger", "isVisible", "isContentLeftAligned", "enableFlip", "className", "entryDelay", "exitDelay", "appendTo", "zIndex", "maxWidth", "distance", "aria", "flipBehavior", "id", "children", "animationDuration", "reference", "boundary", "isAppLauncher", "tippyProps"]);
3733
+ flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], id = `pf-tooltip-${pfTooltipIdCounter++}`, children, animationDuration = 300, reference, 'aria-live': ariaLive = reference ? 'polite' : 'off', boundary, isAppLauncher, tippyProps } = _a, rest = __rest$1(_a, ["content", "position", "trigger", "isVisible", "isContentLeftAligned", "enableFlip", "className", "entryDelay", "exitDelay", "appendTo", "zIndex", "maxWidth", "distance", "aria", "flipBehavior", "id", "children", "animationDuration", "reference", 'aria-live', "boundary", "isAppLauncher", "tippyProps"]);
3733
3734
  {
3734
3735
  boundary !== undefined &&
3735
3736
  console.warn('The Tooltip boundary prop has been deprecated. If you want to constrain the popper to a specific element use the appendTo prop instead.');
@@ -3811,7 +3812,7 @@
3811
3812
  'right-end': styles$9.modifiers.rightBottom
3812
3813
  };
3813
3814
  const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
3814
- const content = (React__namespace.createElement("div", Object.assign({ className: css(styles$9.tooltip, className), role: "tooltip", id: id, style: {
3815
+ const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$9.tooltip, className), role: "tooltip", id: id, style: {
3815
3816
  maxWidth: hasCustomMaxWidth ? maxWidth : null,
3816
3817
  opacity,
3817
3818
  transition: getOpacityTransition(animationDuration)