@patternfly/react-table 4.83.2 → 4.83.5

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,39 @@
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.83.5 (2022-05-18)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * **Slider:** add support for aria-labelledby ad aria-describedby ([#7408](https://github.com/patternfly/patternfly-react/issues/7408)) ([7c8617a](https://github.com/patternfly/patternfly-react/commit/7c8617a1268a03061d51454b298c79ae5f7a59b0))
12
+
13
+
14
+
15
+
16
+
17
+ ## 4.83.4 (2022-05-18)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **Table:** Removed duplicate import from md file ([#7442](https://github.com/patternfly/patternfly-react/issues/7442)) ([00438a7](https://github.com/patternfly/patternfly-react/commit/00438a73c7b2548c4f0ad00ed09f9c60f99978d9))
23
+
24
+
25
+
26
+
27
+
28
+ ## 4.83.3 (2022-05-16)
29
+
30
+
31
+ ### Bug Fixes
32
+
33
+ * **Chip:** add custom maxWidth prop ([#7387](https://github.com/patternfly/patternfly-react/issues/7387)) ([7cfb1a2](https://github.com/patternfly/patternfly-react/commit/7cfb1a202c2f1405c454b2e10716d9a500d4508f))
34
+
35
+
36
+
37
+
38
+
6
39
  ## 4.83.2 (2022-05-13)
7
40
 
8
41
  **Note:** Version bump only for package @patternfly/react-table
@@ -5484,10 +5484,13 @@
5484
5484
  constructor(props) {
5485
5485
  super(props);
5486
5486
  this.span = React__namespace.createRef();
5487
+ this.setChipStyle = () => ({
5488
+ '--pf-c-chip__text--MaxWidth': this.props.textMaxWidth
5489
+ });
5487
5490
  this.renderOverflowChip = () => {
5488
5491
  const { children, className, onClick, ouiaId } = this.props;
5489
5492
  const Component = this.props.component;
5490
- return (React__namespace.createElement(Component, Object.assign({ onClick: onClick, className: css(styles$4.chip, styles$4.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
5493
+ return (React__namespace.createElement(Component, Object.assign({ onClick: onClick }, (this.props.textMaxWidth && Object.assign({ style: this.setChipStyle() }, this.props.style)), { className: css(styles$4.chip, styles$4.modifiers.overflow, className) }, (this.props.component === 'button' ? { type: 'button' } : {}), getOUIAProps('OverflowChip', ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
5491
5494
  React__namespace.createElement("span", { className: css(styles$4.chipText) }, children)));
5492
5495
  };
5493
5496
  this.renderChip = (randomId) => {
@@ -5510,7 +5513,9 @@
5510
5513
  renderInnerChip(id) {
5511
5514
  const { children, className, onClick, closeBtnAriaLabel, isReadOnly, component, ouiaId } = this.props;
5512
5515
  const Component = component;
5513
- return (React__namespace.createElement(Component, Object.assign({ className: css(styles$4.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
5516
+ return (React__namespace.createElement(Component, Object.assign({}, (this.props.textMaxWidth && {
5517
+ style: this.setChipStyle()
5518
+ }), { className: css(styles$4.chip, className) }, (this.state.isTooltipVisible && { tabIndex: 0 }), getOUIAProps(Chip.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId)),
5514
5519
  React__namespace.createElement("span", { ref: this.span, className: css(styles$4.chipText), id: id }, children),
5515
5520
  !isReadOnly && (React__namespace.createElement(Button, { onClick: onClick, variant: "plain", "aria-label": closeBtnAriaLabel, id: `remove_${id}`, "aria-labelledby": `remove_${id} ${id}`, ouiaId: ouiaId || closeBtnAriaLabel },
5516
5521
  React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" })))));