@patternfly/react-table 4.52.11 → 4.53.0
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,17 @@
|
|
|
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.0 (2022-01-10)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Features
|
|
10
|
+
|
|
11
|
+
* **Dropdown:** add plain-text variant support ([#6721](https://github.com/patternfly/patternfly-react/issues/6721)) ([e5000e3](https://github.com/patternfly/patternfly-react/commit/e5000e36194e36b9c6ae49efdb0a513125efcb70))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## 4.52.11 (2022-01-10)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @patternfly/react-table
|
package/dist/umd/react-table.js
CHANGED
|
@@ -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: () => { },
|