@patternfly/react-table 4.67.6 → 4.67.9

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,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.67.9 (2022-03-01)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-table
9
+
10
+
11
+
12
+
13
+
14
+ ## 4.67.8 (2022-02-24)
15
+
16
+ **Note:** Version bump only for package @patternfly/react-table
17
+
18
+
19
+
20
+
21
+
22
+ ## 4.67.7 (2022-02-22)
23
+
24
+
25
+ ### Bug Fixes
26
+
27
+ * update release version number ([#6964](https://github.com/patternfly/patternfly-react/issues/6964)) ([6eefe79](https://github.com/patternfly/patternfly-react/commit/6eefe79b9eaaf871ecf93e3fdfd0e49c7326b221))
28
+
29
+
30
+
31
+
32
+
6
33
  ## 4.67.6 (2022-02-22)
7
34
 
8
35
  **Note:** Version bump only for package @patternfly/react-table
package/README.md CHANGED
@@ -146,4 +146,4 @@ yarn test packages/react-table
146
146
  ```
147
147
 
148
148
  [patternfly-4]: https://github.com/patternfly/patternfly-next
149
- [docs]: https://patternfly-react.surge.sh
149
+ [docs]: https://patternfly-react-main.surge.sh
@@ -9063,85 +9063,6 @@ button.pf-c-breadcrumb__link {
9063
9063
  font-weight: var(--pf-global--FontWeight--normal);
9064
9064
  }
9065
9065
 
9066
- .pf-c-chip-group {
9067
- --pf-global--Color--100: var(--pf-global--Color--dark-100);
9068
- --pf-global--Color--200: var(--pf-global--Color--dark-200);
9069
- --pf-global--BorderColor--100: var(--pf-global--BorderColor--dark-100);
9070
- --pf-global--primary-color--100: var(--pf-global--primary-color--dark-100);
9071
- --pf-global--link--Color: var(--pf-global--link--Color--dark);
9072
- --pf-global--link--Color--hover: var(--pf-global--link--Color--dark--hover);
9073
- --pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
9074
- }
9075
-
9076
- .pf-c-chip-group {
9077
- color: var(--pf-global--Color--100);
9078
- --pf-c-chip-group__list--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
9079
- --pf-c-chip-group__list--MarginRight: calc(var(--pf-global--spacer--xs) * -1);
9080
- --pf-c-chip-group--m-category--PaddingTop: var(--pf-global--spacer--xs);
9081
- --pf-c-chip-group--m-category--PaddingRight: var(--pf-global--spacer--xs);
9082
- --pf-c-chip-group--m-category--PaddingBottom: var(--pf-global--spacer--xs);
9083
- --pf-c-chip-group--m-category--PaddingLeft: var(--pf-global--spacer--sm);
9084
- --pf-c-chip-group--m-category--BorderRadius: var(--pf-global--BorderRadius--sm);
9085
- --pf-c-chip-group--m-category--BackgroundColor: var(--pf-global--BackgroundColor--200);
9086
- --pf-c-chip-group__label--MarginRight: var(--pf-global--spacer--sm);
9087
- --pf-c-chip-group__label--FontSize: var(--pf-global--FontSize--sm);
9088
- --pf-c-chip-group__label--MaxWidth: 18ch;
9089
- --pf-c-chip-group__close--MarginTop: calc(var(--pf-global--spacer--xs) * -1);
9090
- --pf-c-chip-group__close--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
9091
- --pf-c-chip-group__list-item--MarginRight: var(--pf-global--spacer--xs);
9092
- --pf-c-chip-group__list-item--MarginBottom: var(--pf-global--spacer--xs);
9093
- }
9094
-
9095
- .pf-c-chip-group.pf-m-category {
9096
- padding-top: var(--pf-c-chip-group--m-category--PaddingTop);
9097
- padding-right: var(--pf-c-chip-group--m-category--PaddingRight);
9098
- padding-bottom: var(--pf-c-chip-group--m-category--PaddingBottom);
9099
- padding-left: var(--pf-c-chip-group--m-category--PaddingLeft);
9100
- background-color: var(--pf-c-chip-group--m-category--BackgroundColor);
9101
- border-radius: var(--pf-c-chip-group--m-category--BorderRadius);
9102
- }
9103
-
9104
- .pf-c-chip-group__main {
9105
- display: flex;
9106
- flex: 1;
9107
- flex-wrap: wrap;
9108
- align-items: baseline;
9109
- }
9110
-
9111
- .pf-c-chip-group__list {
9112
- margin-right: var(--pf-c-chip-group__list--MarginRight);
9113
- margin-bottom: var(--pf-c-chip-group__list--MarginBottom);
9114
- }
9115
-
9116
- .pf-c-chip-group,
9117
- .pf-c-chip-group__list {
9118
- display: inline-flex;
9119
- flex-wrap: wrap;
9120
- align-items: center;
9121
- }
9122
-
9123
- .pf-c-chip-group__list-item {
9124
- display: inline-flex;
9125
- margin-right: var(--pf-c-chip-group__list-item--MarginRight);
9126
- margin-bottom: var(--pf-c-chip-group__list-item--MarginBottom);
9127
- }
9128
-
9129
- .pf-c-chip-group__label {
9130
- overflow: hidden;
9131
- text-overflow: ellipsis;
9132
- white-space: nowrap;
9133
- max-width: var(--pf-c-chip-group__label--MaxWidth);
9134
- margin-right: var(--pf-c-chip-group__label--MarginRight);
9135
- font-size: var(--pf-c-chip-group__label--FontSize);
9136
- }
9137
-
9138
- .pf-c-chip-group__close {
9139
- display: flex;
9140
- align-self: flex-start;
9141
- margin-top: var(--pf-c-chip-group__close--MarginTop);
9142
- margin-bottom: var(--pf-c-chip-group__close--MarginBottom);
9143
- }
9144
-
9145
9066
  .pf-c-chip {
9146
9067
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
9147
9068
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -9247,6 +9168,85 @@ button.pf-c-breadcrumb__link {
9247
9168
  margin-left: var(--pf-c-chip__icon--MarginLeft);
9248
9169
  }
9249
9170
 
9171
+ .pf-c-chip-group {
9172
+ --pf-global--Color--100: var(--pf-global--Color--dark-100);
9173
+ --pf-global--Color--200: var(--pf-global--Color--dark-200);
9174
+ --pf-global--BorderColor--100: var(--pf-global--BorderColor--dark-100);
9175
+ --pf-global--primary-color--100: var(--pf-global--primary-color--dark-100);
9176
+ --pf-global--link--Color: var(--pf-global--link--Color--dark);
9177
+ --pf-global--link--Color--hover: var(--pf-global--link--Color--dark--hover);
9178
+ --pf-global--BackgroundColor--100: var(--pf-global--BackgroundColor--light-100);
9179
+ }
9180
+
9181
+ .pf-c-chip-group {
9182
+ color: var(--pf-global--Color--100);
9183
+ --pf-c-chip-group__list--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
9184
+ --pf-c-chip-group__list--MarginRight: calc(var(--pf-global--spacer--xs) * -1);
9185
+ --pf-c-chip-group--m-category--PaddingTop: var(--pf-global--spacer--xs);
9186
+ --pf-c-chip-group--m-category--PaddingRight: var(--pf-global--spacer--xs);
9187
+ --pf-c-chip-group--m-category--PaddingBottom: var(--pf-global--spacer--xs);
9188
+ --pf-c-chip-group--m-category--PaddingLeft: var(--pf-global--spacer--sm);
9189
+ --pf-c-chip-group--m-category--BorderRadius: var(--pf-global--BorderRadius--sm);
9190
+ --pf-c-chip-group--m-category--BackgroundColor: var(--pf-global--BackgroundColor--200);
9191
+ --pf-c-chip-group__label--MarginRight: var(--pf-global--spacer--sm);
9192
+ --pf-c-chip-group__label--FontSize: var(--pf-global--FontSize--sm);
9193
+ --pf-c-chip-group__label--MaxWidth: 18ch;
9194
+ --pf-c-chip-group__close--MarginTop: calc(var(--pf-global--spacer--xs) * -1);
9195
+ --pf-c-chip-group__close--MarginBottom: calc(var(--pf-global--spacer--xs) * -1);
9196
+ --pf-c-chip-group__list-item--MarginRight: var(--pf-global--spacer--xs);
9197
+ --pf-c-chip-group__list-item--MarginBottom: var(--pf-global--spacer--xs);
9198
+ }
9199
+
9200
+ .pf-c-chip-group.pf-m-category {
9201
+ padding-top: var(--pf-c-chip-group--m-category--PaddingTop);
9202
+ padding-right: var(--pf-c-chip-group--m-category--PaddingRight);
9203
+ padding-bottom: var(--pf-c-chip-group--m-category--PaddingBottom);
9204
+ padding-left: var(--pf-c-chip-group--m-category--PaddingLeft);
9205
+ background-color: var(--pf-c-chip-group--m-category--BackgroundColor);
9206
+ border-radius: var(--pf-c-chip-group--m-category--BorderRadius);
9207
+ }
9208
+
9209
+ .pf-c-chip-group__main {
9210
+ display: flex;
9211
+ flex: 1;
9212
+ flex-wrap: wrap;
9213
+ align-items: baseline;
9214
+ }
9215
+
9216
+ .pf-c-chip-group__list {
9217
+ margin-right: var(--pf-c-chip-group__list--MarginRight);
9218
+ margin-bottom: var(--pf-c-chip-group__list--MarginBottom);
9219
+ }
9220
+
9221
+ .pf-c-chip-group,
9222
+ .pf-c-chip-group__list {
9223
+ display: inline-flex;
9224
+ flex-wrap: wrap;
9225
+ align-items: center;
9226
+ }
9227
+
9228
+ .pf-c-chip-group__list-item {
9229
+ display: inline-flex;
9230
+ margin-right: var(--pf-c-chip-group__list-item--MarginRight);
9231
+ margin-bottom: var(--pf-c-chip-group__list-item--MarginBottom);
9232
+ }
9233
+
9234
+ .pf-c-chip-group__label {
9235
+ overflow: hidden;
9236
+ text-overflow: ellipsis;
9237
+ white-space: nowrap;
9238
+ max-width: var(--pf-c-chip-group__label--MaxWidth);
9239
+ margin-right: var(--pf-c-chip-group__label--MarginRight);
9240
+ font-size: var(--pf-c-chip-group__label--FontSize);
9241
+ }
9242
+
9243
+ .pf-c-chip-group__close {
9244
+ display: flex;
9245
+ align-self: flex-start;
9246
+ margin-top: var(--pf-c-chip-group__close--MarginTop);
9247
+ margin-bottom: var(--pf-c-chip-group__close--MarginBottom);
9248
+ }
9249
+
9250
9250
  .pf-c-clipboard-copy {
9251
9251
  --pf-c-clipboard-copy__toggle-icon--Transition: .2s ease-in 0s;
9252
9252
  --pf-c-clipboard-copy--m-expanded__toggle-icon--Rotate: 90deg;
@@ -20812,7 +20812,7 @@ label.pf-c-radio, .pf-c-radio__label,
20812
20812
  --pf-c-select__toggle--before--BorderRightWidth: var(--pf-global--BorderWidth--sm);
20813
20813
  --pf-c-select__toggle--before--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
20814
20814
  --pf-c-select__toggle--before--BorderLeftWidth: var(--pf-global--BorderWidth--sm);
20815
- --pf-c-select__toggle--before--BorderWidth: var(--pf-c-select__toggle--before--BorderTopWidth) var(--pf-c-select__toggle--before--BorderRightWidth) var(--pf-c-select__toggle--before--BorderBottomWidth) var(--pf-c-select__toggle--before--BorderLeftWidth);
20815
+ --pf-c-select__toggle--before--BorderWidth: initial;
20816
20816
  --pf-c-select__toggle--before--BorderTopColor: var(--pf-global--BorderColor--300);
20817
20817
  --pf-c-select__toggle--before--BorderRightColor: var(--pf-global--BorderColor--300);
20818
20818
  --pf-c-select__toggle--before--BorderBottomColor: var(--pf-global--BorderColor--200);
@@ -21031,6 +21031,7 @@ label.pf-c-radio, .pf-c-radio__label,
21031
21031
  }
21032
21032
 
21033
21033
  .pf-c-select__toggle::before {
21034
+ --pf-c-select__toggle--before--BorderWidth-base: var(--pf-c-select__toggle--before--BorderTopWidth) var(--pf-c-select__toggle--before--BorderRightWidth) var(--pf-c-select__toggle--before--BorderBottomWidth) var(--pf-c-select__toggle--before--BorderLeftWidth);
21034
21035
  position: absolute;
21035
21036
  top: 0;
21036
21037
  right: 0;
@@ -21039,7 +21040,7 @@ label.pf-c-radio, .pf-c-radio__label,
21039
21040
  content: "";
21040
21041
  border-color: var(--pf-c-select__toggle--before--BorderTopColor) var(--pf-c-select__toggle--before--BorderRightColor) var(--pf-c-select__toggle--before--BorderBottomColor) var(--pf-c-select__toggle--before--BorderLeftColor);
21041
21042
  border-style: solid;
21042
- border-width: var(--pf-c-select__toggle--before--BorderWidth);
21043
+ border-width: var(--pf-c-select__toggle--before--BorderWidth, var(--pf-c-select__toggle--before--BorderWidth-base));
21043
21044
  }
21044
21045
 
21045
21046
  .pf-c-select__toggle:hover {
@@ -120,6 +120,16 @@
120
120
  ValidatedOptions["warning"] = "warning";
121
121
  ValidatedOptions["default"] = "default";
122
122
  })(ValidatedOptions || (ValidatedOptions = {}));
123
+ const KeyTypes = {
124
+ Tab: 'Tab',
125
+ Space: ' ',
126
+ Escape: 'Escape',
127
+ Enter: 'Enter',
128
+ ArrowUp: 'ArrowUp',
129
+ ArrowDown: 'ArrowDown',
130
+ ArrowLeft: 'ArrowLeft',
131
+ ArrowRight: 'ArrowRight'
132
+ };
123
133
 
124
134
  /*!
125
135
  * tabbable 5.1.4
@@ -3471,9 +3481,9 @@
3471
3481
  const Spinner = (_a) => {
3472
3482
  var {
3473
3483
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
3474
- className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter"]);
3484
+ className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", 'aria-label', 'aria-labelledBy']);
3475
3485
  const Component = isSVG ? 'svg' : 'span';
3476
- return (React__namespace.createElement(Component, Object.assign({ className: css(_default$h.spinner, _default$h.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), props), isSVG ? (React__namespace.createElement("circle", { className: _default$h.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
3486
+ return (React__namespace.createElement(Component, Object.assign({ className: css(_default$h.spinner, _default$h.modifiers[size], className), role: "progressbar", "aria-valuetext": ariaValueText }, (isSVG && { viewBox: '0 0 100 100' }), (diameter && { style: { '--pf-c-spinner--diameter': diameter } }), (ariaLabel && { 'aria-label': ariaLabel }), (ariaLabelledBy && { 'aria-labelledBy': ariaLabelledBy }), (!ariaLabel && !ariaLabelledBy && { 'aria-label': 'Contents' }), props), isSVG ? (React__namespace.createElement("circle", { className: _default$h.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
3477
3487
  React__namespace.createElement("span", { className: css(_default$h.spinnerClipper) }),
3478
3488
  React__namespace.createElement("span", { className: css(_default$h.spinnerLeadBall) }),
3479
3489
  React__namespace.createElement("span", { className: css(_default$h.spinnerTailBall) })))));
@@ -3498,7 +3508,7 @@
3498
3508
  ButtonType["reset"] = "reset";
3499
3509
  })(ButtonType || (ButtonType = {}));
3500
3510
  const ButtonBase = (_a) => {
3501
- var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef } = _a, props = __rest$1(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef"]);
3511
+ var { children = null, className = '', component = 'button', isActive = false, isBlock = false, isDisabled = false, isAriaDisabled = false, isLoading = null, isDanger = false, spinnerAriaValueText, spinnerAriaLabelledBy, spinnerAriaLabel, isSmall = false, isLarge = false, inoperableEvents = ['onClick', 'onKeyPress'], isInline = false, type = ButtonType.button, variant = ButtonVariant.primary, iconPosition = 'left', 'aria-label': ariaLabel = null, icon = null, ouiaId, ouiaSafe = true, tabIndex = null, innerRef } = _a, props = __rest$1(_a, ["children", "className", "component", "isActive", "isBlock", "isDisabled", "isAriaDisabled", "isLoading", "isDanger", "spinnerAriaValueText", "spinnerAriaLabelledBy", "spinnerAriaLabel", "isSmall", "isLarge", "inoperableEvents", "isInline", "type", "variant", "iconPosition", 'aria-label', "icon", "ouiaId", "ouiaSafe", "tabIndex", "innerRef"]);
3502
3512
  const ouiaProps = useOUIAProps(Button.displayName, ouiaId, ouiaSafe, variant);
3503
3513
  const Component = component;
3504
3514
  const isButtonElement = Component === 'button';
@@ -3519,7 +3529,7 @@
3519
3529
  };
3520
3530
  return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(_default$i.button, _default$i.modifiers[variant], isBlock && _default$i.modifiers.block, isDisabled && _default$i.modifiers.disabled, isAriaDisabled && _default$i.modifiers.ariaDisabled, isActive && _default$i.modifiers.active, isInline && variant === ButtonVariant.link && _default$i.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && _default$i.modifiers.danger, isLoading !== null && children !== null && _default$i.modifiers.progress, isLoading && _default$i.modifiers.inProgress, isSmall && _default$i.modifiers.small, isLarge && _default$i.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
3521
3531
  isLoading && (React__namespace.createElement("span", { className: css(_default$i.buttonProgress) },
3522
- React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText }))),
3532
+ React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
3523
3533
  variant === ButtonVariant.plain && children === null && icon ? icon : null,
3524
3534
  variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(_default$i.buttonIcon, _default$i.modifiers.start) }, icon)),
3525
3535
  children,
@@ -4879,16 +4889,6 @@
4879
4889
  SelectDirection["up"] = "up";
4880
4890
  SelectDirection["down"] = "down";
4881
4891
  })(SelectDirection || (SelectDirection = {}));
4882
- const KeyTypes = {
4883
- Tab: 'Tab',
4884
- Space: ' ',
4885
- Escape: 'Escape',
4886
- Enter: 'Enter',
4887
- ArrowUp: 'ArrowUp',
4888
- ArrowDown: 'ArrowDown',
4889
- ArrowLeft: 'ArrowLeft',
4890
- ArrowRight: 'ArrowRight'
4891
- };
4892
4892
  const SelectFooterTabbableItems = 'input, button, select, textarea, a[href]';
4893
4893
 
4894
4894
  class SelectOption extends React__namespace.Component {
@@ -5387,6 +5387,9 @@
5387
5387
  onClick: _event => {
5388
5388
  if (!isDisabled) {
5389
5389
  onToggle(!isOpen);
5390
+ if (isOpen) {
5391
+ onClose();
5392
+ }
5390
5393
  }
5391
5394
  }, onKeyDown: this.onKeyDown }),
5392
5395
  children,
@@ -5522,8 +5525,8 @@
5522
5525
  const { categoryName, tooltipPosition } = this.props;
5523
5526
  const { isTooltipVisible } = this.state;
5524
5527
  return isTooltipVisible ? (React__namespace.createElement(Tooltip, { position: tooltipPosition, content: categoryName },
5525
- React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$8.chipGroupLabel), id: id, "aria-label": categoryName },
5526
- React__namespace.createElement("span", { "aria-hidden": "true" }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(_default$8.chipGroupLabel), "aria-hidden": "true", id: id }, categoryName));
5528
+ React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$8.chipGroupLabel) },
5529
+ React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(_default$8.chipGroupLabel), id: id }, categoryName));
5527
5530
  }
5528
5531
  render() {
5529
5532
  const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
@@ -5540,7 +5543,7 @@
5540
5543
  const chipArray = !isOpen
5541
5544
  ? React__namespace.Children.toArray(children).slice(0, numChips)
5542
5545
  : React__namespace.Children.toArray(children);
5543
- return (React__namespace.createElement("div", Object.assign({ className: css(_default$8.chipGroup, className, categoryName && _default$8.modifiers.category) }, getOUIAProps(ChipGroup.displayName, ouiaId)),
5546
+ return (React__namespace.createElement("div", Object.assign({ className: css(_default$8.chipGroup, className, categoryName && _default$8.modifiers.category), role: "group" }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), getOUIAProps(ChipGroup.displayName, ouiaId)),
5544
5547
  React__namespace.createElement("div", { className: css(_default$8.chipGroupMain) },
5545
5548
  categoryName && this.renderLabel(id),
5546
5549
  React__namespace.createElement("ul", Object.assign({ className: css(_default$8.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
@@ -5867,7 +5870,8 @@
5867
5870
  const typeaheadActiveChild = this.getTypeaheadActiveChild(typeaheadCurrIndex);
5868
5871
  if (isOpen) {
5869
5872
  if (position === 'enter') {
5870
- if (typeaheadActiveChild || (this.refCollection[0] && this.refCollection[0][0])) {
5873
+ if (typeaheadCurrIndex !== -1 && // do not allow selection without moving to an initial option
5874
+ (typeaheadActiveChild || (this.refCollection[0] && this.refCollection[0][0]))) {
5871
5875
  this.setState({
5872
5876
  typeaheadInputValue: (typeaheadActiveChild && typeaheadActiveChild.innerText) || this.refCollection[0][0].innerText
5873
5877
  });
@@ -5957,6 +5961,7 @@
5957
5961
  // Close if there is no footer
5958
5962
  if (!this.props.footer) {
5959
5963
  this.onToggle(false);
5964
+ this.onClose();
5960
5965
  }
5961
5966
  else {
5962
5967
  // has footer
@@ -5966,6 +5971,7 @@
5966
5971
  if (shiftKey) {
5967
5972
  // close toggle if shift key and tab on input
5968
5973
  this.onToggle(false);
5974
+ this.onClose();
5969
5975
  }
5970
5976
  else {
5971
5977
  // tab to first tabbable item in footer
@@ -5974,6 +5980,7 @@
5974
5980
  }
5975
5981
  else {
5976
5982
  this.onToggle(false);
5983
+ this.onClose();
5977
5984
  }
5978
5985
  }
5979
5986
  }
@@ -5998,6 +6005,7 @@
5998
6005
  // no next item, close toggle
5999
6006
  this.onToggle(false);
6000
6007
  this.inputRef.current.focus();
6008
+ this.onClose();
6001
6009
  }
6002
6010
  }
6003
6011
  }