@patternfly/react-table 4.111.30 → 4.111.32

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,25 @@
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.111.32](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.111.31...@patternfly/react-table@4.111.32) (2022-10-26)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Pagination:** prevented regenerating random id on each render ([#8175](https://github.com/patternfly/patternfly-react/issues/8175)) ([873cff7](https://github.com/patternfly/patternfly-react/commit/873cff7c4ec5443408dc66306cf168888f5e5580))
12
+
13
+
14
+
15
+
16
+
17
+ ## [4.111.31](https://github.com/patternfly/patternfly-react/compare/@patternfly/react-table@4.111.30...@patternfly/react-table@4.111.31) (2022-10-26)
18
+
19
+ **Note:** Version bump only for package @patternfly/react-table
20
+
21
+
22
+
23
+
24
+
6
25
  ## 4.111.30 (2022-10-25)
7
26
 
8
27
  **Note:** Version bump only for package @patternfly/react-table
@@ -6194,8 +6194,12 @@ label.pf-c-check, .pf-c-check__label,
6194
6194
  }
6195
6195
 
6196
6196
  .pf-c-dropdown__menu.pf-m-static {
6197
+ --pf-c-dropdown--m-top__menu--TranslateY: 0;
6197
6198
  position: static;
6198
6199
  top: auto;
6200
+ right: auto;
6201
+ bottom: auto;
6202
+ left: auto;
6199
6203
  z-index: auto;
6200
6204
  min-width: min-content;
6201
6205
  }
@@ -8161,6 +8165,17 @@ svg.pf-c-spinner.pf-m-xl {
8161
8165
  transform: translateY(var(--pf-c-app-launcher--m-top__menu--TranslateY));
8162
8166
  }
8163
8167
 
8168
+ .pf-c-app-launcher__menu.pf-m-static {
8169
+ --pf-c-app-launcher--m-top__menu--TranslateY: 0;
8170
+ position: static;
8171
+ top: auto;
8172
+ right: auto;
8173
+ bottom: auto;
8174
+ left: auto;
8175
+ z-index: auto;
8176
+ min-width: min-content;
8177
+ }
8178
+
8164
8179
  .pf-c-app-launcher__menu-search {
8165
8180
  padding: var(--pf-c-app-launcher__menu-search--PaddingTop) var(--pf-c-app-launcher__menu-search--PaddingRight) var(--pf-c-app-launcher__menu-search--PaddingBottom) var(--pf-c-app-launcher__menu-search--PaddingLeft);
8166
8181
  margin-bottom: var(--pf-c-app-launcher__menu-search--MarginBottom);
@@ -8760,70 +8775,6 @@ svg.pf-c-spinner.pf-m-xl {
8760
8775
  display: block;
8761
8776
  }
8762
8777
 
8763
- .pf-c-brand {
8764
- --pf-c-brand--Width: auto;
8765
- --pf-c-brand--Height: auto;
8766
- width: var(--pf-c-brand--Width--base);
8767
- height: var(--pf-c-brand--Height--base);
8768
- --pf-c-brand--Width--base: var(--pf-c-brand--Width);
8769
- --pf-c-brand--Height--base: var(--pf-c-brand--Height);
8770
- }
8771
-
8772
- @media (min-width: 576px) {
8773
- .pf-c-brand {
8774
- --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width));
8775
- }
8776
- }
8777
- @media (min-width: 768px) {
8778
- .pf-c-brand {
8779
- --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width)));
8780
- }
8781
- }
8782
- @media (min-width: 992px) {
8783
- .pf-c-brand {
8784
- --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-lg, var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width))));
8785
- }
8786
- }
8787
- @media (min-width: 1200px) {
8788
- .pf-c-brand {
8789
- --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-xl, var(--pf-c-brand--Width-on-lg, var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width)))));
8790
- }
8791
- }
8792
- @media (min-width: 1450px) {
8793
- .pf-c-brand {
8794
- --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-2xl, var(--pf-c-brand--Width-on-xl, var(--pf-c-brand--Width-on-lg, var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width))))));
8795
- }
8796
- }
8797
- @media (min-width: 576px) {
8798
- .pf-c-brand {
8799
- --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height));
8800
- }
8801
- }
8802
- @media (min-width: 768px) {
8803
- .pf-c-brand {
8804
- --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height)));
8805
- }
8806
- }
8807
- @media (min-width: 992px) {
8808
- .pf-c-brand {
8809
- --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-lg, var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height))));
8810
- }
8811
- }
8812
- @media (min-width: 1200px) {
8813
- .pf-c-brand {
8814
- --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-xl, var(--pf-c-brand--Height-on-lg, var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height)))));
8815
- }
8816
- }
8817
- @media (min-width: 1450px) {
8818
- .pf-c-brand {
8819
- --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-2xl, var(--pf-c-brand--Height-on-xl, var(--pf-c-brand--Height-on-lg, var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height))))));
8820
- }
8821
- }
8822
- .pf-c-brand.pf-m-picture {
8823
- display: inline-flex;
8824
- max-width: 100%;
8825
- }
8826
-
8827
8778
  .pf-c-banner.pf-m-warning, .pf-c-banner.pf-m-gold, .pf-c-banner.pf-m-info, .pf-c-banner.pf-m-blue {
8828
8779
  --pf-global--Color--100: var(--pf-global--Color--dark-100);
8829
8780
  --pf-global--Color--200: var(--pf-global--Color--dark-200);
@@ -9002,6 +8953,70 @@ svg.pf-c-spinner.pf-m-xl {
9002
8953
  color: var(--pf-global--palette--black-900);
9003
8954
  }
9004
8955
 
8956
+ .pf-c-brand {
8957
+ --pf-c-brand--Width: auto;
8958
+ --pf-c-brand--Height: auto;
8959
+ width: var(--pf-c-brand--Width--base);
8960
+ height: var(--pf-c-brand--Height--base);
8961
+ --pf-c-brand--Width--base: var(--pf-c-brand--Width);
8962
+ --pf-c-brand--Height--base: var(--pf-c-brand--Height);
8963
+ }
8964
+
8965
+ @media (min-width: 576px) {
8966
+ .pf-c-brand {
8967
+ --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width));
8968
+ }
8969
+ }
8970
+ @media (min-width: 768px) {
8971
+ .pf-c-brand {
8972
+ --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width)));
8973
+ }
8974
+ }
8975
+ @media (min-width: 992px) {
8976
+ .pf-c-brand {
8977
+ --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-lg, var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width))));
8978
+ }
8979
+ }
8980
+ @media (min-width: 1200px) {
8981
+ .pf-c-brand {
8982
+ --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-xl, var(--pf-c-brand--Width-on-lg, var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width)))));
8983
+ }
8984
+ }
8985
+ @media (min-width: 1450px) {
8986
+ .pf-c-brand {
8987
+ --pf-c-brand--Width--base: var(--pf-c-brand--Width-on-2xl, var(--pf-c-brand--Width-on-xl, var(--pf-c-brand--Width-on-lg, var(--pf-c-brand--Width-on-md, var(--pf-c-brand--Width-on-sm, var(--pf-c-brand--Width))))));
8988
+ }
8989
+ }
8990
+ @media (min-width: 576px) {
8991
+ .pf-c-brand {
8992
+ --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height));
8993
+ }
8994
+ }
8995
+ @media (min-width: 768px) {
8996
+ .pf-c-brand {
8997
+ --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height)));
8998
+ }
8999
+ }
9000
+ @media (min-width: 992px) {
9001
+ .pf-c-brand {
9002
+ --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-lg, var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height))));
9003
+ }
9004
+ }
9005
+ @media (min-width: 1200px) {
9006
+ .pf-c-brand {
9007
+ --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-xl, var(--pf-c-brand--Height-on-lg, var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height)))));
9008
+ }
9009
+ }
9010
+ @media (min-width: 1450px) {
9011
+ .pf-c-brand {
9012
+ --pf-c-brand--Height--base: var(--pf-c-brand--Height-on-2xl, var(--pf-c-brand--Height-on-xl, var(--pf-c-brand--Height-on-lg, var(--pf-c-brand--Height-on-md, var(--pf-c-brand--Height-on-sm, var(--pf-c-brand--Height))))));
9013
+ }
9014
+ }
9015
+ .pf-c-brand.pf-m-picture {
9016
+ display: inline-flex;
9017
+ max-width: 100%;
9018
+ }
9019
+
9005
9020
  .pf-c-breadcrumb {
9006
9021
  --pf-c-breadcrumb__item--FontSize: var(--pf-global--FontSize--sm);
9007
9022
  --pf-c-breadcrumb__item--LineHeight: var(--pf-global--LineHeight--sm);
@@ -10333,6 +10348,9 @@ button.pf-c-breadcrumb__link {
10333
10348
  .pf-c-context-selector__menu.pf-m-static {
10334
10349
  position: static;
10335
10350
  top: auto;
10351
+ right: auto;
10352
+ bottom: auto;
10353
+ left: auto;
10336
10354
  z-index: auto;
10337
10355
  min-width: min-content;
10338
10356
  }
@@ -11926,6 +11944,17 @@ button.pf-c-breadcrumb__link {
11926
11944
  transform: translateY(var(--pf-c-date-picker--m-top__calendar--TranslateY));
11927
11945
  }
11928
11946
 
11947
+ .pf-c-date-picker__calendar.pf-m-static {
11948
+ --pf-c-date-picker--m-top__calendar--TranslateY: 0;
11949
+ position: static;
11950
+ top: auto;
11951
+ right: auto;
11952
+ bottom: auto;
11953
+ left: auto;
11954
+ z-index: auto;
11955
+ min-width: min-content;
11956
+ }
11957
+
11929
11958
  :where(.pf-theme-dark) .pf-c-date-picker {
11930
11959
  --pf-c-date-picker__calendar--BackgroundColor: var(--pf-global--BackgroundColor--300);
11931
11960
  --pf-c-date-picker__calendar--Top: 100%;
@@ -19973,6 +20002,17 @@ label.pf-c-menu__item:where(:not([disabled], .pf-m-disabled)) {
19973
20002
  transform: translateY(var(--pf-c-options-menu--m-top__menu--TranslateY));
19974
20003
  }
19975
20004
 
20005
+ .pf-c-options-menu__menu.pf-m-static {
20006
+ --pf-c-options-menu--m-top__menu--TranslateY: 0;
20007
+ position: static;
20008
+ top: auto;
20009
+ right: auto;
20010
+ bottom: auto;
20011
+ left: auto;
20012
+ z-index: auto;
20013
+ min-width: min-content;
20014
+ }
20015
+
19976
20016
  .pf-c-options-menu__menu-item {
19977
20017
  display: flex;
19978
20018
  align-items: baseline;
@@ -23127,8 +23167,12 @@ label.pf-c-radio, .pf-c-radio__label,
23127
23167
  }
23128
23168
 
23129
23169
  .pf-c-select__menu.pf-m-static {
23170
+ --pf-c-select__menu--m-top--TranslateY: 0;
23130
23171
  position: static;
23131
23172
  top: auto;
23173
+ right: auto;
23174
+ bottom: auto;
23175
+ left: auto;
23132
23176
  z-index: auto;
23133
23177
  min-width: min-content;
23134
23178
  }
@@ -4887,12 +4887,10 @@
4887
4887
  renderedContent = React__namespace.Children.toArray(children);
4888
4888
  }
4889
4889
  const openedOnEnter = this.openedOnEnter;
4890
+ const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
4890
4891
  return (React__namespace.createElement(DropdownContext.Consumer, null, ({ baseClass, baseComponent, id: contextId, ouiaId, ouiaComponentType, ouiaSafe, alignments }) => {
4891
4892
  const BaseComponent = baseComponent;
4892
- const menuContainer = (React__namespace.createElement(DropdownMenu
4893
- // This removes the `position: absolute` styling from the `.pf-c-dropdown__menu`
4894
- // allowing the menu to flip correctly
4895
- , Object.assign({}, (isFlipEnabled && { style: { position: 'revert', minWidth: 'min-content' } }), { setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }), renderedContent));
4893
+ const menuContainer = (React__namespace.createElement(DropdownMenu, { className: css(isStatic && styles$8.modifiers.static), setMenuComponentRef: this.setMenuComponentRef, component: component, isOpen: isOpen, position: position, "aria-labelledby": contextId ? `${contextId}-toggle` : id, isGrouped: isGrouped, autoFocus: openedOnEnter && autoFocus, alignments: alignments }, renderedContent));
4896
4894
  const popperContainer = (React__namespace.createElement("div", { className: css(baseClass, direction === DropdownDirection.up && styles$8.modifiers.top, position === DropdownPosition.right && styles$8.modifiers.alignRight, isOpen && styles$8.modifiers.expanded, className) }, isOpen && menuContainer));
4897
4895
  const mainContainer = (React__namespace.createElement(BaseComponent, Object.assign({}, props, { className: css(baseClass, direction === DropdownDirection.up && styles$8.modifiers.top, position === DropdownPosition.right && styles$8.modifiers.alignRight, isOpen && styles$8.modifiers.expanded, isFullHeight && styles$8.modifiers.fullHeight, className), ref: this.baseComponentRef }, getOUIAProps(ouiaComponentType, ouiaId, ouiaSafe)),
4898
4896
  React__namespace.Children.map(toggle, oneToggle => React__namespace.cloneElement(oneToggle, {
@@ -4934,14 +4932,14 @@
4934
4932
  onSelect: () => undefined,
4935
4933
  autoFocus: true,
4936
4934
  menuAppendTo: 'inline',
4937
- isFlipEnabled: false
4935
+ isFlipEnabled: true
4938
4936
  };
4939
4937
 
4940
4938
  const Dropdown = (_a) => {
4941
4939
  var { onSelect,
4942
4940
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4943
4941
  ref, // Types of Ref are different for React.FunctionComponent vs React.Component
4944
- ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled = false, removeFindDomNode = false } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo", "isFlipEnabled", "removeFindDomNode"]);
4942
+ ouiaId, ouiaSafe, alignments, contextProps, menuAppendTo = 'inline', isFlipEnabled = true, removeFindDomNode = false } = _a, props = __rest$1(_a, ["onSelect", "ref", "ouiaId", "ouiaSafe", "alignments", "contextProps", "menuAppendTo", "isFlipEnabled", "removeFindDomNode"]);
4945
4943
  return (React__namespace.createElement(DropdownContext.Provider, { value: Object.assign({ onSelect: event => onSelect && onSelect(event), toggleTextClass: styles$8.dropdownToggleText, toggleIconClass: styles$8.dropdownToggleImage, toggleIndicatorClass: styles$8.dropdownToggleIcon, menuClass: styles$8.dropdownMenu, itemClass: styles$8.dropdownMenuItem, toggleClass: styles$8.dropdownToggle, baseClass: styles$8.dropdown, baseComponent: 'div', sectionClass: styles$8.dropdownGroup, sectionTitleClass: styles$8.dropdownGroupTitle, sectionComponent: 'section', disabledClass: styles$8.modifiers.disabled, plainTextClass: styles$8.modifiers.text, ouiaId: useOUIAId(Dropdown.displayName, ouiaId), ouiaSafe, ouiaComponentType: Dropdown.displayName, alignments }, contextProps) },
4946
4944
  React__namespace.createElement(DropdownWithContext, Object.assign({ menuAppendTo: menuAppendTo, isFlipEnabled: isFlipEnabled, removeFindDomNode: removeFindDomNode }, props))));
4947
4945
  };
@@ -7181,10 +7179,8 @@
7181
7179
  break;
7182
7180
  }
7183
7181
  }
7184
- const innerMenu = (React__namespace.createElement(SelectMenu
7185
- // This removes the `position: absolute` styling from the `.pf-c-select__menu`
7186
- // allowing the menu to flip correctly
7187
- , Object.assign({}, (isFlipEnabled && { style: { position: 'revert' } }), props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
7182
+ const isStatic = isFlipEnabled && menuAppendTo !== 'inline';
7183
+ const innerMenu = (React__namespace.createElement(SelectMenu, Object.assign({ className: css(isStatic && styles$6.modifiers.static) }, props, { isGrouped: isGrouped, selected: selections }, variantProps, { openedOnEnter: openedOnEnter, "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, sendRef: this.sendRef, keyHandler: this.handleMenuKeys, maxHeight: maxHeight, ref: this.menuComponentRef, footer: footer, footerRef: this.footerRef, isLastOptionBeforeFooter: this.isLastOptionBeforeFooter }), variantChildren));
7188
7184
  const menuContainer = footer ? React__namespace.createElement("div", { className: css(styles$6.selectMenu) },
7189
7185
  " ",
7190
7186
  innerMenu,
@@ -7294,7 +7290,7 @@
7294
7290
  isInputFilterPersisted: false,
7295
7291
  isCreateSelectOptionObject: false,
7296
7292
  shouldResetOnSelect: true,
7297
- isFlipEnabled: false,
7293
+ isFlipEnabled: true,
7298
7294
  removeFindDomNode: false
7299
7295
  };
7300
7296