@patternfly/react-table 4.67.7 → 4.67.8
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 +8 -0
- package/README.md +1 -1
- package/dist/umd/react-table.css +27 -27
- package/dist/umd/react-table.js +7 -7
- package/dist/umd/react-table.min.css +31 -31
- package/dist/umd/react-table.min.js +2 -2
- package/package.json +6 -6
- package/src/components/TableComposable/examples/ComposableTableTree.tsx +2 -1
- package/src/demos/Table.md +3 -22
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,14 @@
|
|
|
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.8 (2022-02-24)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @patternfly/react-table
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
6
14
|
## 4.67.7 (2022-02-22)
|
|
7
15
|
|
|
8
16
|
|
package/README.md
CHANGED
package/dist/umd/react-table.css
CHANGED
|
@@ -7005,23 +7005,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
7005
7005
|
transform: rotate(720deg);
|
|
7006
7006
|
}
|
|
7007
7007
|
}
|
|
7008
|
-
.pf-c-backdrop {
|
|
7009
|
-
--pf-c-backdrop--Position: fixed;
|
|
7010
|
-
--pf-c-backdrop--ZIndex: var(--pf-global--ZIndex--lg);
|
|
7011
|
-
--pf-c-backdrop--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-100);
|
|
7012
|
-
position: var(--pf-c-backdrop--Position);
|
|
7013
|
-
top: 0;
|
|
7014
|
-
left: 0;
|
|
7015
|
-
z-index: var(--pf-c-backdrop--ZIndex);
|
|
7016
|
-
width: 100%;
|
|
7017
|
-
height: 100%;
|
|
7018
|
-
background-color: var(--pf-c-backdrop--BackgroundColor);
|
|
7019
|
-
}
|
|
7020
|
-
|
|
7021
|
-
.pf-c-backdrop__open {
|
|
7022
|
-
overflow: hidden;
|
|
7023
|
-
}
|
|
7024
|
-
|
|
7025
7008
|
.pf-c-accordion {
|
|
7026
7009
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
7027
7010
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
@@ -7656,6 +7639,23 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
7656
7639
|
display: none !important;
|
|
7657
7640
|
}
|
|
7658
7641
|
}
|
|
7642
|
+
.pf-c-backdrop {
|
|
7643
|
+
--pf-c-backdrop--Position: fixed;
|
|
7644
|
+
--pf-c-backdrop--ZIndex: var(--pf-global--ZIndex--lg);
|
|
7645
|
+
--pf-c-backdrop--BackgroundColor: var(--pf-global--BackgroundColor--dark-transparent-100);
|
|
7646
|
+
position: var(--pf-c-backdrop--Position);
|
|
7647
|
+
top: 0;
|
|
7648
|
+
left: 0;
|
|
7649
|
+
z-index: var(--pf-c-backdrop--ZIndex);
|
|
7650
|
+
width: 100%;
|
|
7651
|
+
height: 100%;
|
|
7652
|
+
background-color: var(--pf-c-backdrop--BackgroundColor);
|
|
7653
|
+
}
|
|
7654
|
+
|
|
7655
|
+
.pf-c-backdrop__open {
|
|
7656
|
+
overflow: hidden;
|
|
7657
|
+
}
|
|
7658
|
+
|
|
7659
7659
|
.pf-c-app-launcher {
|
|
7660
7660
|
--pf-c-app-launcher__menu--BackgroundColor: var(--pf-global--BackgroundColor--light-100);
|
|
7661
7661
|
--pf-c-app-launcher__menu--BoxShadow: var(--pf-global--BoxShadow--md);
|
|
@@ -16755,16 +16755,6 @@ ul.pf-c-list {
|
|
|
16755
16755
|
--pf-c-modal-box__footer--c-button--MarginRight: var(--pf-c-modal-box__footer--c-button--sm--MarginRight);
|
|
16756
16756
|
}
|
|
16757
16757
|
}
|
|
16758
|
-
.pf-l-bullseye {
|
|
16759
|
-
--pf-l-bullseye--Padding: 0;
|
|
16760
|
-
display: flex;
|
|
16761
|
-
align-items: center;
|
|
16762
|
-
justify-content: center;
|
|
16763
|
-
height: 100%;
|
|
16764
|
-
padding: var(--pf-l-bullseye--Padding);
|
|
16765
|
-
margin: 0;
|
|
16766
|
-
}
|
|
16767
|
-
|
|
16768
16758
|
.pf-c-multiple-file-upload {
|
|
16769
16759
|
--pf-c-multiple-file-upload--GridTemplateColumns: 1fr;
|
|
16770
16760
|
--pf-c-multiple-file-upload--Gap: var(--pf-global--spacer--lg);
|
|
@@ -16949,6 +16939,16 @@ ul.pf-c-list {
|
|
|
16949
16939
|
color: var(--pf-c-multiple-file-upload__status-item-progress-size--Color);
|
|
16950
16940
|
}
|
|
16951
16941
|
|
|
16942
|
+
.pf-l-bullseye {
|
|
16943
|
+
--pf-l-bullseye--Padding: 0;
|
|
16944
|
+
display: flex;
|
|
16945
|
+
align-items: center;
|
|
16946
|
+
justify-content: center;
|
|
16947
|
+
height: 100%;
|
|
16948
|
+
padding: var(--pf-l-bullseye--Padding);
|
|
16949
|
+
margin: 0;
|
|
16950
|
+
}
|
|
16951
|
+
|
|
16952
16952
|
.pf-c-nav {
|
|
16953
16953
|
--pf-c-nav--Transition: var(--pf-global--Transition);
|
|
16954
16954
|
--pf-c-nav--m-light__item--before--BorderColor: var(--pf-global--BorderColor--300);
|
package/dist/umd/react-table.js
CHANGED
|
@@ -3471,9 +3471,9 @@
|
|
|
3471
3471
|
const Spinner = (_a) => {
|
|
3472
3472
|
var {
|
|
3473
3473
|
// 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"]);
|
|
3474
|
+
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
3475
|
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,
|
|
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 } }), (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
3477
|
React__namespace.createElement("span", { className: css(_default$h.spinnerClipper) }),
|
|
3478
3478
|
React__namespace.createElement("span", { className: css(_default$h.spinnerLeadBall) }),
|
|
3479
3479
|
React__namespace.createElement("span", { className: css(_default$h.spinnerTailBall) })))));
|
|
@@ -3498,7 +3498,7 @@
|
|
|
3498
3498
|
ButtonType["reset"] = "reset";
|
|
3499
3499
|
})(ButtonType || (ButtonType = {}));
|
|
3500
3500
|
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"]);
|
|
3501
|
+
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
3502
|
const ouiaProps = useOUIAProps(Button.displayName, ouiaId, ouiaSafe, variant);
|
|
3503
3503
|
const Component = component;
|
|
3504
3504
|
const isButtonElement = Component === 'button';
|
|
@@ -3519,7 +3519,7 @@
|
|
|
3519
3519
|
};
|
|
3520
3520
|
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
3521
|
isLoading && (React__namespace.createElement("span", { className: css(_default$i.buttonProgress) },
|
|
3522
|
-
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText }))),
|
|
3522
|
+
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
3523
3523
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
3524
3524
|
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(_default$i.buttonIcon, _default$i.modifiers.start) }, icon)),
|
|
3525
3525
|
children,
|
|
@@ -5522,8 +5522,8 @@
|
|
|
5522
5522
|
const { categoryName, tooltipPosition } = this.props;
|
|
5523
5523
|
const { isTooltipVisible } = this.state;
|
|
5524
5524
|
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)
|
|
5526
|
-
React__namespace.createElement("span", {
|
|
5525
|
+
React__namespace.createElement("span", { tabIndex: 0, ref: this.headingRef, className: css(_default$8.chipGroupLabel) },
|
|
5526
|
+
React__namespace.createElement("span", { id: id }, categoryName)))) : (React__namespace.createElement("span", { ref: this.headingRef, className: css(_default$8.chipGroupLabel), id: id }, categoryName));
|
|
5527
5527
|
}
|
|
5528
5528
|
render() {
|
|
5529
5529
|
const _a = this.props, { categoryName, children, className, isClosable, closeBtnAriaLabel, 'aria-label': ariaLabel, onClick, onOverflowChipClick, numChips, expandedText, collapsedText, ouiaId,
|
|
@@ -5540,7 +5540,7 @@
|
|
|
5540
5540
|
const chipArray = !isOpen
|
|
5541
5541
|
? React__namespace.Children.toArray(children).slice(0, numChips)
|
|
5542
5542
|
: 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)),
|
|
5543
|
+
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
5544
|
React__namespace.createElement("div", { className: css(_default$8.chipGroupMain) },
|
|
5545
5545
|
categoryName && this.renderLabel(id),
|
|
5546
5546
|
React__namespace.createElement("ul", Object.assign({ className: css(_default$8.chipGroupList) }, (categoryName && { 'aria-labelledby': id }), (!categoryName && { 'aria-label': ariaLabel }), { role: "list" }, rest),
|
|
@@ -7022,37 +7022,6 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
7022
7022
|
overflow: hidden;
|
|
7023
7023
|
}
|
|
7024
7024
|
|
|
7025
|
-
.pf-c-action-list {
|
|
7026
|
-
--pf-c-action-list--m-icon--spacer: 0;
|
|
7027
|
-
--pf-c-action-list--child--spacer-base: var(--pf-global--spacer--md);
|
|
7028
|
-
--pf-c-action-list--group--spacer-base: var(--pf-global--spacer--2xl);
|
|
7029
|
-
}
|
|
7030
|
-
|
|
7031
|
-
.pf-c-action-list,
|
|
7032
|
-
.pf-c-action-list__group {
|
|
7033
|
-
--pf-c-action-list--child--spacer: var(--pf-c-action-list--child--spacer-base);
|
|
7034
|
-
--pf-c-action-list--group--spacer: var(--pf-c-action-list--group--spacer-base);
|
|
7035
|
-
display: flex;
|
|
7036
|
-
align-items: center;
|
|
7037
|
-
}
|
|
7038
|
-
|
|
7039
|
-
.pf-c-action-list > * + *,
|
|
7040
|
-
.pf-c-action-list__group > * + * {
|
|
7041
|
-
margin-left: var(--pf-c-action-list--child--spacer);
|
|
7042
|
-
}
|
|
7043
|
-
|
|
7044
|
-
.pf-c-action-list > * + .pf-c-action-list__group,
|
|
7045
|
-
.pf-c-action-list .pf-c-action-list__group + *,
|
|
7046
|
-
.pf-c-action-list__group > * + .pf-c-action-list__group,
|
|
7047
|
-
.pf-c-action-list__group .pf-c-action-list__group + * {
|
|
7048
|
-
margin-left: var(--pf-c-action-list--group--spacer);
|
|
7049
|
-
}
|
|
7050
|
-
|
|
7051
|
-
.pf-c-action-list.pf-m-icons,
|
|
7052
|
-
.pf-c-action-list__group.pf-m-icons {
|
|
7053
|
-
--pf-c-action-list--child--spacer: var(--pf-c-action-list--m-icon--spacer);
|
|
7054
|
-
}
|
|
7055
|
-
|
|
7056
7025
|
.pf-c-accordion {
|
|
7057
7026
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
7058
7027
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|
|
@@ -7291,6 +7260,37 @@ svg.pf-c-spinner.pf-m-xl {
|
|
|
7291
7260
|
--pf-c-accordion__expanded-content-body--PaddingTop: var(--pf-c-accordion__expanded-content-body--expanded-content-body--PaddingTop);
|
|
7292
7261
|
}
|
|
7293
7262
|
|
|
7263
|
+
.pf-c-action-list {
|
|
7264
|
+
--pf-c-action-list--m-icon--spacer: 0;
|
|
7265
|
+
--pf-c-action-list--child--spacer-base: var(--pf-global--spacer--md);
|
|
7266
|
+
--pf-c-action-list--group--spacer-base: var(--pf-global--spacer--2xl);
|
|
7267
|
+
}
|
|
7268
|
+
|
|
7269
|
+
.pf-c-action-list,
|
|
7270
|
+
.pf-c-action-list__group {
|
|
7271
|
+
--pf-c-action-list--child--spacer: var(--pf-c-action-list--child--spacer-base);
|
|
7272
|
+
--pf-c-action-list--group--spacer: var(--pf-c-action-list--group--spacer-base);
|
|
7273
|
+
display: flex;
|
|
7274
|
+
align-items: center;
|
|
7275
|
+
}
|
|
7276
|
+
|
|
7277
|
+
.pf-c-action-list > * + *,
|
|
7278
|
+
.pf-c-action-list__group > * + * {
|
|
7279
|
+
margin-left: var(--pf-c-action-list--child--spacer);
|
|
7280
|
+
}
|
|
7281
|
+
|
|
7282
|
+
.pf-c-action-list > * + .pf-c-action-list__group,
|
|
7283
|
+
.pf-c-action-list .pf-c-action-list__group + *,
|
|
7284
|
+
.pf-c-action-list__group > * + .pf-c-action-list__group,
|
|
7285
|
+
.pf-c-action-list__group .pf-c-action-list__group + * {
|
|
7286
|
+
margin-left: var(--pf-c-action-list--group--spacer);
|
|
7287
|
+
}
|
|
7288
|
+
|
|
7289
|
+
.pf-c-action-list.pf-m-icons,
|
|
7290
|
+
.pf-c-action-list__group.pf-m-icons {
|
|
7291
|
+
--pf-c-action-list--child--spacer: var(--pf-c-action-list--m-icon--spacer);
|
|
7292
|
+
}
|
|
7293
|
+
|
|
7294
7294
|
.pf-c-alert {
|
|
7295
7295
|
--pf-global--Color--100: var(--pf-global--Color--dark-100);
|
|
7296
7296
|
--pf-global--Color--200: var(--pf-global--Color--dark-200);
|