@patternfly/react-table 4.105.3 → 4.105.4

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,14 @@
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.105.4 (2022-09-02)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-table
9
+
10
+
11
+
12
+
13
+
6
14
  ## 4.105.3 (2022-09-01)
7
15
 
8
16
  **Note:** Version bump only for package @patternfly/react-table
@@ -9331,6 +9331,7 @@ button.pf-c-breadcrumb__link {
9331
9331
  --pf-c-card--child--PaddingBottom: var(--pf-global--spacer--lg);
9332
9332
  --pf-c-card--child--PaddingLeft: var(--pf-global--spacer--lg);
9333
9333
  --pf-c-card--c-divider--child--PaddingTop: var(--pf-global--spacer--lg);
9334
+ --pf-c-card__title--FontFamily: var(--pf-global--FontFamily--heading--sans-serif);
9334
9335
  --pf-c-card__title--FontSize: var(--pf-global--FontSize--md);
9335
9336
  --pf-c-card__title--FontWeight: var(--pf-global--FontWeight--bold);
9336
9337
  --pf-c-card__title--not--last-child--PaddingBottom: var(--pf-global--spacer--md);
@@ -17934,6 +17935,16 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
17934
17935
  --pf-c-modal-box--BackgroundColor: var(--pf-global--BackgroundColor--300);
17935
17936
  }
17936
17937
 
17938
+ .pf-l-bullseye {
17939
+ --pf-l-bullseye--Padding: 0;
17940
+ display: flex;
17941
+ align-items: center;
17942
+ justify-content: center;
17943
+ height: 100%;
17944
+ padding: var(--pf-l-bullseye--Padding);
17945
+ margin: 0;
17946
+ }
17947
+
17937
17948
  .pf-c-multiple-file-upload {
17938
17949
  --pf-c-multiple-file-upload--GridTemplateColumns: 1fr;
17939
17950
  --pf-c-multiple-file-upload--Gap: var(--pf-global--spacer--lg);
@@ -18118,16 +18129,6 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
18118
18129
  color: var(--pf-c-multiple-file-upload__status-item-progress-size--Color);
18119
18130
  }
18120
18131
 
18121
- .pf-l-bullseye {
18122
- --pf-l-bullseye--Padding: 0;
18123
- display: flex;
18124
- align-items: center;
18125
- justify-content: center;
18126
- height: 100%;
18127
- padding: var(--pf-l-bullseye--Padding);
18128
- margin: 0;
18129
- }
18130
-
18131
18132
  .pf-c-nav {
18132
18133
  --pf-c-nav--Transition: var(--pf-global--Transition);
18133
18134
  --pf-c-nav--m-light__item--before--BorderColor: var(--pf-global--BorderColor--300);
@@ -179,7 +179,6 @@
179
179
  };
180
180
  var globalHeightBreakpoint2xl = global_height_breakpoint_2xl;
181
181
 
182
- const KEY_CODES = { ARROW_UP: 38, ARROW_DOWN: 40, ESCAPE_KEY: 27, TAB: 9, ENTER: 13, SPACE: 32 };
183
182
  const KEYHANDLER_DIRECTION = { UP: 'up', DOWN: 'down', RIGHT: 'right', LEFT: 'left' };
184
183
  var ValidatedOptions;
185
184
  (function (ValidatedOptions) {
@@ -4433,13 +4432,13 @@
4433
4432
  }, []);
4434
4433
  const onDocumentKeyDown = (event) => {
4435
4434
  if (!triggerManually) {
4436
- if (event.keyCode === KEY_CODES.ESCAPE_KEY && visible) {
4435
+ if (event.key === KeyTypes.Escape && visible) {
4437
4436
  hide();
4438
4437
  }
4439
4438
  }
4440
4439
  };
4441
4440
  const onTriggerEnter = (event) => {
4442
- if (event.keyCode === KEY_CODES.ENTER) {
4441
+ if (event.key === KeyTypes.Enter) {
4443
4442
  if (!visible) {
4444
4443
  show();
4445
4444
  }
@@ -5140,12 +5139,11 @@
5140
5139
  };
5141
5140
  this.onEscPress = (event) => {
5142
5141
  const { parentRef, getMenuRef } = this.props;
5143
- const keyCode = event.keyCode || event.which;
5144
5142
  const menuRef = getMenuRef && getMenuRef();
5145
5143
  const escFromToggle = parentRef && parentRef.current && parentRef.current.contains(event.target);
5146
5144
  const escFromWithinMenu = menuRef && menuRef.contains && menuRef.contains(event.target);
5147
5145
  if (this.props.isOpen &&
5148
- (keyCode === KEY_CODES.ESCAPE_KEY || event.key === 'Tab') &&
5146
+ (event.key === KeyTypes.Escape || event.key === 'Tab') &&
5149
5147
  (escFromToggle || escFromWithinMenu)) {
5150
5148
  this.props.onToggle(false, event);
5151
5149
  this.buttonRef.current.focus();