@patternfly/react-table 4.52.10 → 4.53.2

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,41 @@
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.53.2 (2022-01-10)
7
+
8
+ **Note:** Version bump only for package @patternfly/react-table
9
+
10
+
11
+
12
+
13
+
14
+ ## 4.53.1 (2022-01-10)
15
+
16
+ **Note:** Version bump only for package @patternfly/react-table
17
+
18
+
19
+
20
+
21
+
22
+ # 4.53.0 (2022-01-10)
23
+
24
+
25
+ ### Features
26
+
27
+ * **Dropdown:** add plain-text variant support ([#6721](https://github.com/patternfly/patternfly-react/issues/6721)) ([e5000e3](https://github.com/patternfly/patternfly-react/commit/e5000e36194e36b9c6ae49efdb0a513125efcb70))
28
+
29
+
30
+
31
+
32
+
33
+ ## 4.52.11 (2022-01-10)
34
+
35
+ **Note:** Version bump only for package @patternfly/react-table
36
+
37
+
38
+
39
+
40
+
6
41
  ## 4.52.10 (2022-01-10)
7
42
 
8
43
 
@@ -620,7 +620,7 @@
620
620
  .pf-c-table .pf-c-table__icon,
621
621
  .pf-c-table .pf-m-fit-content {
622
622
  --pf-c-table--cell--MinWidth: fit-content;
623
- --pf-c-table--cell--MaxWidth: fit-content;
623
+ --pf-c-table--cell--MaxWidth: none;
624
624
  --pf-c-table--cell--Width: 1%;
625
625
  --pf-c-table--cell--Overflow: visible;
626
626
  --pf-c-table--cell--TextOverflow: clip;
@@ -4995,6 +4995,7 @@ label.pf-c-check, .pf-c-check__label,
4995
4995
  --pf-c-button__progress--width: calc(var(--pf-global--icon--FontSize--md) + var(--pf-global--spacer--sm));
4996
4996
  --pf-c-button__progress--Opacity: 0;
4997
4997
  --pf-c-button__progress--TranslateY: -50%;
4998
+ --pf-c-button__progress--TranslateX: 0;
4998
4999
  --pf-c-button__progress--Top: 50%;
4999
5000
  --pf-c-button__progress--Left: var(--pf-global--spacer--md);
5000
5001
  --pf-c-button--m-progress--TransitionProperty: padding;
@@ -5003,6 +5004,9 @@ label.pf-c-check, .pf-c-check__label,
5003
5004
  --pf-c-button--m-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width) / 2);
5004
5005
  --pf-c-button--m-in-progress--PaddingRight: var(--pf-global--spacer--md);
5005
5006
  --pf-c-button--m-in-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width));
5007
+ --pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
5008
+ --pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
5009
+ --pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
5006
5010
  position: relative;
5007
5011
  display: inline-block;
5008
5012
  padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
@@ -5350,11 +5354,21 @@ label.pf-c-check, .pf-c-check__label,
5350
5354
  transition: var(--pf-c-button--m-progress--TransitionProperty) var(--pf-c-button--m-progress--TransitionDuration);
5351
5355
  }
5352
5356
 
5353
- .pf-c-button.pf-m-in-progress {
5357
+ .pf-c-button.pf-m-in-progress:not(.pf-m-plain) {
5354
5358
  --pf-c-button--PaddingRight: var(--pf-c-button--m-in-progress--PaddingRight);
5355
5359
  --pf-c-button--PaddingLeft: var(--pf-c-button--m-in-progress--PaddingLeft);
5356
5360
  }
5357
5361
 
5362
+ .pf-c-button.pf-m-in-progress.pf-m-plain {
5363
+ --pf-c-button--m-plain--Color: var(--pf-c-button--m-in-progress--m-plain--Color);
5364
+ --pf-c-button__progress--Left: var(--pf-c-button--m-in-progress--m-plain__progress--Left);
5365
+ --pf-c-button__progress--TranslateX: var(--pf-c-button--m-in-progress--m-plain__progress--TranslateX);
5366
+ }
5367
+
5368
+ .pf-c-button.pf-m-in-progress.pf-m-plain > :not(.pf-c-button__progress) {
5369
+ opacity: 0;
5370
+ }
5371
+
5358
5372
  .pf-c-button__icon.pf-m-start {
5359
5373
  margin-right: var(--pf-c-button__icon--m-start--MarginRight);
5360
5374
  }
@@ -5368,7 +5382,7 @@ label.pf-c-check, .pf-c-check__label,
5368
5382
  top: var(--pf-c-button__progress--Top);
5369
5383
  left: var(--pf-c-button__progress--Left);
5370
5384
  line-height: 1;
5371
- transform: translateY(var(--pf-c-button__progress--TranslateY));
5385
+ transform: translate(var(--pf-c-button__progress--TranslateX), var(--pf-c-button__progress--TranslateY));
5372
5386
  }
5373
5387
 
5374
5388
  .pf-c-button__progress .pf-c-spinner {
@@ -14442,6 +14456,7 @@ ul.pf-c-list {
14442
14456
  }
14443
14457
 
14444
14458
  .pf-c-login__main {
14459
+ align-self: start;
14445
14460
  margin-bottom: var(--pf-c-login__main--MarginBottom);
14446
14461
  background-color: var(--pf-c-login__main--BackgroundColor);
14447
14462
  grid-area: main;
@@ -4037,9 +4037,9 @@
4037
4037
  }
4038
4038
  }
4039
4039
  render() {
4040
- const _a = this.props, { children, className, direction, dropdownItems, isOpen, isPlain, isGrouped, isFullHeight,
4040
+ const _a = this.props, { children, className, direction, dropdownItems, isOpen, isPlain, isText, isGrouped, isFullHeight,
4041
4041
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
4042
- onSelect, position, toggle, autoFocus, menuAppendTo } = _a, props = __rest$1(_a, ["children", "className", "direction", "dropdownItems", "isOpen", "isPlain", "isGrouped", "isFullHeight", "onSelect", "position", "toggle", "autoFocus", "menuAppendTo"]);
4042
+ onSelect, position, toggle, autoFocus, menuAppendTo } = _a, props = __rest$1(_a, ["children", "className", "direction", "dropdownItems", "isOpen", "isPlain", "isText", "isGrouped", "isFullHeight", "onSelect", "position", "toggle", "autoFocus", "menuAppendTo"]);
4043
4043
  const id = toggle.props.id || `pf-dropdown-toggle-id-${DropdownWithContext.currentId++}`;
4044
4044
  let component;
4045
4045
  let renderedContent;
@@ -4065,6 +4065,7 @@
4065
4065
  isOpen,
4066
4066
  id,
4067
4067
  isPlain,
4068
+ isText,
4068
4069
  'aria-haspopup': ariaHasPopup,
4069
4070
  onEnter: () => {
4070
4071
  this.onEnter();
@@ -4090,6 +4091,7 @@
4090
4091
  dropdownItems: [],
4091
4092
  isOpen: false,
4092
4093
  isPlain: false,
4094
+ isText: false,
4093
4095
  isGrouped: false,
4094
4096
  position: DropdownPosition.left,
4095
4097
  direction: DropdownDirection.down,
@@ -4421,12 +4423,12 @@
4421
4423
  };
4422
4424
  }
4423
4425
  render() {
4424
- const _a = this.props, { className, children, isOpen, isDisabled, isPlain, isPrimary, isSplitButton, toggleVariant, onToggle, 'aria-haspopup': ariaHasPopup,
4426
+ const _a = this.props, { className, children, isOpen, isDisabled, isPlain, isText, isPrimary, isSplitButton, toggleVariant, onToggle, 'aria-haspopup': ariaHasPopup,
4425
4427
  /* eslint-disable @typescript-eslint/no-unused-vars */
4426
4428
  isActive, bubbleEvent, onEnter, parentRef, getMenuRef,
4427
4429
  /* eslint-enable @typescript-eslint/no-unused-vars */
4428
- id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
4429
- return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? _default$e.dropdownToggleButton : toggleClass || _default$e.dropdownToggle, isActive && _default$e.modifiers.active, isPlain && _default$e.modifiers.plain, isPrimary && _default$e.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
4430
+ id, type } = _a, props = __rest$1(_a, ["className", "children", "isOpen", "isDisabled", "isPlain", "isText", "isPrimary", "isSplitButton", "toggleVariant", "onToggle", 'aria-haspopup', "isActive", "bubbleEvent", "onEnter", "parentRef", "getMenuRef", "id", "type"]);
4431
+ return (React__namespace.createElement(DropdownContext.Consumer, null, ({ toggleClass }) => (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.buttonRef, className: css(isSplitButton ? _default$e.dropdownToggleButton : toggleClass || _default$e.dropdownToggle, isActive && _default$e.modifiers.active, isPlain && _default$e.modifiers.plain, isText && _default$e.modifiers.text, isPrimary && _default$e.modifiers.primary, buttonVariantStyles[toggleVariant], className), type: type || 'button', onClick: event => onToggle(!isOpen, event), "aria-expanded": isOpen, "aria-haspopup": ariaHasPopup, onKeyDown: event => this.onKeyDown(event), disabled: isDisabled }), children))));
4430
4432
  }
4431
4433
  }
4432
4434
  Toggle.displayName = 'Toggle';
@@ -4436,6 +4438,7 @@
4436
4438
  isActive: false,
4437
4439
  isDisabled: false,
4438
4440
  isPlain: false,
4441
+ isText: false,
4439
4442
  isPrimary: false,
4440
4443
  isSplitButton: false,
4441
4444
  onToggle: () => { },
@@ -620,7 +620,7 @@
620
620
  .pf-c-table .pf-c-table__icon,
621
621
  .pf-c-table .pf-m-fit-content {
622
622
  --pf-c-table--cell--MinWidth: fit-content;
623
- --pf-c-table--cell--MaxWidth: fit-content;
623
+ --pf-c-table--cell--MaxWidth: none;
624
624
  --pf-c-table--cell--Width: 1%;
625
625
  --pf-c-table--cell--Overflow: visible;
626
626
  --pf-c-table--cell--TextOverflow: clip;
@@ -4995,6 +4995,7 @@ label.pf-c-check, .pf-c-check__label,
4995
4995
  --pf-c-button__progress--width: calc(var(--pf-global--icon--FontSize--md) + var(--pf-global--spacer--sm));
4996
4996
  --pf-c-button__progress--Opacity: 0;
4997
4997
  --pf-c-button__progress--TranslateY: -50%;
4998
+ --pf-c-button__progress--TranslateX: 0;
4998
4999
  --pf-c-button__progress--Top: 50%;
4999
5000
  --pf-c-button__progress--Left: var(--pf-global--spacer--md);
5000
5001
  --pf-c-button--m-progress--TransitionProperty: padding;
@@ -5003,6 +5004,9 @@ label.pf-c-check, .pf-c-check__label,
5003
5004
  --pf-c-button--m-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width) / 2);
5004
5005
  --pf-c-button--m-in-progress--PaddingRight: var(--pf-global--spacer--md);
5005
5006
  --pf-c-button--m-in-progress--PaddingLeft: calc(var(--pf-global--spacer--md) + var(--pf-c-button__progress--width));
5007
+ --pf-c-button--m-in-progress--m-plain--Color: var(--pf-global--primary-color--100);
5008
+ --pf-c-button--m-in-progress--m-plain__progress--Left: 50%;
5009
+ --pf-c-button--m-in-progress--m-plain__progress--TranslateX: -50%;
5006
5010
  position: relative;
5007
5011
  display: inline-block;
5008
5012
  padding: var(--pf-c-button--PaddingTop) var(--pf-c-button--PaddingRight) var(--pf-c-button--PaddingBottom) var(--pf-c-button--PaddingLeft);
@@ -5350,11 +5354,21 @@ label.pf-c-check, .pf-c-check__label,
5350
5354
  transition: var(--pf-c-button--m-progress--TransitionProperty) var(--pf-c-button--m-progress--TransitionDuration);
5351
5355
  }
5352
5356
 
5353
- .pf-c-button.pf-m-in-progress {
5357
+ .pf-c-button.pf-m-in-progress:not(.pf-m-plain) {
5354
5358
  --pf-c-button--PaddingRight: var(--pf-c-button--m-in-progress--PaddingRight);
5355
5359
  --pf-c-button--PaddingLeft: var(--pf-c-button--m-in-progress--PaddingLeft);
5356
5360
  }
5357
5361
 
5362
+ .pf-c-button.pf-m-in-progress.pf-m-plain {
5363
+ --pf-c-button--m-plain--Color: var(--pf-c-button--m-in-progress--m-plain--Color);
5364
+ --pf-c-button__progress--Left: var(--pf-c-button--m-in-progress--m-plain__progress--Left);
5365
+ --pf-c-button__progress--TranslateX: var(--pf-c-button--m-in-progress--m-plain__progress--TranslateX);
5366
+ }
5367
+
5368
+ .pf-c-button.pf-m-in-progress.pf-m-plain > :not(.pf-c-button__progress) {
5369
+ opacity: 0;
5370
+ }
5371
+
5358
5372
  .pf-c-button__icon.pf-m-start {
5359
5373
  margin-right: var(--pf-c-button__icon--m-start--MarginRight);
5360
5374
  }
@@ -5368,7 +5382,7 @@ label.pf-c-check, .pf-c-check__label,
5368
5382
  top: var(--pf-c-button__progress--Top);
5369
5383
  left: var(--pf-c-button__progress--Left);
5370
5384
  line-height: 1;
5371
- transform: translateY(var(--pf-c-button__progress--TranslateY));
5385
+ transform: translate(var(--pf-c-button__progress--TranslateX), var(--pf-c-button__progress--TranslateY));
5372
5386
  }
5373
5387
 
5374
5388
  .pf-c-button__progress .pf-c-spinner {
@@ -14442,6 +14456,7 @@ ul.pf-c-list {
14442
14456
  }
14443
14457
 
14444
14458
  .pf-c-login__main {
14459
+ align-self: start;
14445
14460
  margin-bottom: var(--pf-c-login__main--MarginBottom);
14446
14461
  background-color: var(--pf-c-login__main--BackgroundColor);
14447
14462
  grid-area: main;