@patternfly/react-table 4.111.43 → 4.111.44
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/dist/umd/react-table.css +633 -633
- package/dist/umd/react-table.js +9 -6
- package/dist/umd/react-table.min.css +3592 -3592
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +3 -3
package/dist/umd/react-table.js
CHANGED
|
@@ -3744,7 +3744,7 @@
|
|
|
3744
3744
|
return () => { };
|
|
3745
3745
|
}
|
|
3746
3746
|
}), [popperMatchesTriggerWidth]);
|
|
3747
|
-
const { styles: popperStyles, attributes, update } = usePopper(refOrTrigger, popperElement, {
|
|
3747
|
+
const { styles: popperStyles, attributes, update, forceUpdate } = usePopper(refOrTrigger, popperElement, {
|
|
3748
3748
|
placement: getPlacementMemo,
|
|
3749
3749
|
modifiers: [
|
|
3750
3750
|
{
|
|
@@ -3772,6 +3772,9 @@
|
|
|
3772
3772
|
sameWidthMod
|
|
3773
3773
|
]
|
|
3774
3774
|
});
|
|
3775
|
+
React__namespace.useEffect(() => {
|
|
3776
|
+
forceUpdate && forceUpdate();
|
|
3777
|
+
}, [popper]);
|
|
3775
3778
|
// Returns the CSS modifier class in order to place the Popper's arrow properly
|
|
3776
3779
|
// Depends on the position of the Popper relative to the reference element
|
|
3777
3780
|
const modifierFromPopperPosition = () => {
|
|
@@ -3803,7 +3806,7 @@
|
|
|
3803
3806
|
let popperPortal;
|
|
3804
3807
|
if (removeFindDomNode) {
|
|
3805
3808
|
// If removeFindDomNode is passed, use the removeFindDomNode method of wrapping divs
|
|
3806
|
-
popperPortal = React__namespace.createElement("div", { ref: node => setPopperElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, menuWithPopper);
|
|
3809
|
+
popperPortal = (React__namespace.createElement("div", { style: { display: 'contents' }, ref: node => setPopperElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, menuWithPopper));
|
|
3807
3810
|
}
|
|
3808
3811
|
else if (popperRef) {
|
|
3809
3812
|
// If removeFindDomNode is not passed and popperRef is passed, use the popperRef method
|
|
@@ -3815,7 +3818,7 @@
|
|
|
3815
3818
|
}
|
|
3816
3819
|
return (React__namespace.createElement(React__namespace.Fragment, null,
|
|
3817
3820
|
!reference && trigger && React__namespace.isValidElement(trigger) && !removeFindDomNode && (React__namespace.createElement(FindRefWrapper, { onFoundRef: (foundRef) => setTriggerElement(foundRef) }, trigger)),
|
|
3818
|
-
!reference && trigger && React__namespace.isValidElement(trigger) && removeFindDomNode && (React__namespace.createElement("div", { ref: node => setTriggerElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, trigger)),
|
|
3821
|
+
!reference && trigger && React__namespace.isValidElement(trigger) && removeFindDomNode && (React__namespace.createElement("div", { style: { display: 'contents' }, ref: node => setTriggerElement(node === null || node === void 0 ? void 0 : node.firstElementChild) }, trigger)),
|
|
3819
3822
|
ready && isVisible && ReactDOM__namespace.createPortal(popperPortal, getTarget())));
|
|
3820
3823
|
};
|
|
3821
3824
|
Popper.displayName = 'Popper';
|
|
@@ -4216,9 +4219,9 @@
|
|
|
4216
4219
|
const Spinner = (_a) => {
|
|
4217
4220
|
var {
|
|
4218
4221
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
4219
|
-
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']);
|
|
4222
|
+
className = '', size = 'xl', 'aria-valuetext': ariaValueText = 'Loading...', isSVG = false, diameter, isInline = false, 'aria-label': ariaLabel, 'aria-labelledBy': ariaLabelledBy } = _a, props = __rest$1(_a, ["className", "size", 'aria-valuetext', "isSVG", "diameter", "isInline", 'aria-label', 'aria-labelledBy']);
|
|
4220
4223
|
const Component = isSVG ? 'svg' : 'span';
|
|
4221
|
-
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$a.spinner, styles$a.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: styles$a.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4224
|
+
return (React__namespace.createElement(Component, Object.assign({ className: css(styles$a.spinner, isInline ? styles$a.modifiers.inline : styles$a.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: styles$a.spinnerPath, cx: "50", cy: "50", r: "45", fill: "none" })) : (React__namespace.createElement(React__namespace.Fragment, null,
|
|
4222
4225
|
React__namespace.createElement("span", { className: css(styles$a.spinnerClipper) }),
|
|
4223
4226
|
React__namespace.createElement("span", { className: css(styles$a.spinnerLeadBall) }),
|
|
4224
4227
|
React__namespace.createElement("span", { className: css(styles$a.spinnerTailBall) })))));
|
|
@@ -4279,7 +4282,7 @@
|
|
|
4279
4282
|
};
|
|
4280
4283
|
return (React__namespace.createElement(Component, Object.assign({}, props, (isAriaDisabled ? preventedEvents : null), { "aria-disabled": isDisabled || isAriaDisabled, "aria-label": ariaLabel, className: css(buttonStyles.button, buttonStyles.modifiers[variant], isBlock && buttonStyles.modifiers.block, isDisabled && buttonStyles.modifiers.disabled, isAriaDisabled && buttonStyles.modifiers.ariaDisabled, isActive && buttonStyles.modifiers.active, isInline && variant === ButtonVariant.link && buttonStyles.modifiers.inline, isDanger && (variant === ButtonVariant.secondary || variant === ButtonVariant.link) && buttonStyles.modifiers.danger, isLoading !== null && children !== null && buttonStyles.modifiers.progress, isLoading && buttonStyles.modifiers.inProgress, isSmall && buttonStyles.modifiers.small, isLarge && buttonStyles.modifiers.displayLg, className), disabled: isButtonElement ? isDisabled : null, tabIndex: tabIndex !== null ? tabIndex : getDefaultTabIdx(), type: isButtonElement || isInlineSpan ? type : null, role: isInlineSpan ? 'button' : null, ref: innerRef }, ouiaProps),
|
|
4281
4284
|
isLoading && (React__namespace.createElement("span", { className: css(buttonStyles.buttonProgress) },
|
|
4282
|
-
React__namespace.createElement(Spinner, { size: spinnerSize.md, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4285
|
+
React__namespace.createElement(Spinner, { size: spinnerSize.md, isInline: isInline, "aria-valuetext": spinnerAriaValueText, "aria-label": spinnerAriaLabel, "aria-labelledby": spinnerAriaLabelledBy }))),
|
|
4283
4286
|
variant === ButtonVariant.plain && children === null && icon ? icon : null,
|
|
4284
4287
|
variant !== ButtonVariant.plain && icon && iconPosition === 'left' && (React__namespace.createElement("span", { className: css(buttonStyles.buttonIcon, buttonStyles.modifiers.start) }, icon)),
|
|
4285
4288
|
children,
|