@patternfly/react-table 4.38.1 → 4.38.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 +8 -0
- package/dist/umd/react-table.css +776 -776
- package/dist/umd/react-table.js +7 -4
- package/dist/umd/react-table.min.js +1 -1
- package/package.json +6 -6
package/dist/umd/react-table.js
CHANGED
|
@@ -6258,6 +6258,8 @@
|
|
|
6258
6258
|
"title": "pf-c-title"
|
|
6259
6259
|
};
|
|
6260
6260
|
|
|
6261
|
+
const PopoverContext = React__namespace.createContext({});
|
|
6262
|
+
|
|
6261
6263
|
const PopoverContent = (_a) => {
|
|
6262
6264
|
var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
|
|
6263
6265
|
return (React__namespace.createElement("div", Object.assign({ className: css(_default$5.popoverContent, className) }, props), children));
|
|
@@ -6272,7 +6274,7 @@
|
|
|
6272
6274
|
|
|
6273
6275
|
const PopoverHeader = (_a) => {
|
|
6274
6276
|
var { children, id } = _a, props = __rest$1(_a, ["children", "id"]);
|
|
6275
|
-
return (React__namespace.createElement(Title, Object.assign({ headingLevel:
|
|
6277
|
+
return (React__namespace.createElement(PopoverContext.Consumer, null, ({ headerComponent }) => (React__namespace.createElement(Title, Object.assign({ headingLevel: headerComponent, size: TitleSizes.md, id: id }, props), children))));
|
|
6276
6278
|
};
|
|
6277
6279
|
PopoverHeader.displayName = 'PopoverHeader';
|
|
6278
6280
|
|
|
@@ -6334,9 +6336,9 @@
|
|
|
6334
6336
|
PopoverPosition["rightEnd"] = "right-end";
|
|
6335
6337
|
})(PopoverPosition || (PopoverPosition = {}));
|
|
6336
6338
|
const Popover = (_a) => {
|
|
6337
|
-
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = popoverMinWidth && popoverMinWidth.value, maxWidth = popoverMaxWidth && popoverMaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
6339
|
+
var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = popoverMinWidth && popoverMinWidth.value, maxWidth = popoverMaxWidth && popoverMaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
|
|
6338
6340
|
// For every initial starting position, there are 3 escape positions
|
|
6339
|
-
flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], animationDuration = 300, id, withFocusTrap: propWithFocusTrap, boundary, tippyProps, reference, hasNoPadding = false, hasAutoWidth = false } = _a, rest = __rest$1(_a, ["children", "position", "enableFlip", "className", "isVisible", "shouldClose", "shouldOpen", 'aria-label', "bodyContent", "headerContent", "footerContent", "appendTo", "hideOnOutsideClick", "onHide", "onHidden", "onShow", "onShown", "onMount", "zIndex", "minWidth", "maxWidth", "closeBtnAriaLabel", "showClose", "distance", "flipBehavior", "animationDuration", "id", "withFocusTrap", "boundary", "tippyProps", "reference", "hasNoPadding", "hasAutoWidth"]);
|
|
6341
|
+
flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], animationDuration = 300, id, withFocusTrap: propWithFocusTrap, boundary, tippyProps, reference, hasNoPadding = false, hasAutoWidth = false } = _a, rest = __rest$1(_a, ["children", "position", "enableFlip", "className", "isVisible", "shouldClose", "shouldOpen", 'aria-label', "bodyContent", "headerContent", "headerComponent", "footerContent", "appendTo", "hideOnOutsideClick", "onHide", "onHidden", "onShow", "onShown", "onMount", "zIndex", "minWidth", "maxWidth", "closeBtnAriaLabel", "showClose", "distance", "flipBehavior", "animationDuration", "id", "withFocusTrap", "boundary", "tippyProps", "reference", "hasNoPadding", "hasAutoWidth"]);
|
|
6340
6342
|
{
|
|
6341
6343
|
boundary !== undefined &&
|
|
6342
6344
|
console.warn('The Popover boundary prop has been deprecated. If you want to constrain the popper to a specific element use the appendTo prop instead.');
|
|
@@ -6514,7 +6516,8 @@
|
|
|
6514
6516
|
headerContent && (React__namespace.createElement(PopoverHeader, { id: `popover-${uniqueId}-header` }, typeof headerContent === 'function' ? headerContent(hide) : headerContent)),
|
|
6515
6517
|
React__namespace.createElement(PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
|
|
6516
6518
|
footerContent && (React__namespace.createElement(PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
|
|
6517
|
-
return (React__namespace.createElement(
|
|
6519
|
+
return (React__namespace.createElement(PopoverContext.Provider, { value: { headerComponent } },
|
|
6520
|
+
React__namespace.createElement(Popper, { trigger: children, reference: reference, popper: content, popperMatchesTriggerWidth: false, appendTo: appendTo, isVisible: visible, positionModifiers: positionModifiers, distance: distance, placement: position, onTriggerClick: onTriggerClick, onTriggerEnter: onTriggerEnter, onDocumentClick: onDocumentClick, onDocumentKeyDown: onDocumentKeyDown, enableFlip: enableFlip, zIndex: zIndex, flipBehavior: flipBehavior })));
|
|
6518
6521
|
};
|
|
6519
6522
|
Popover.displayName = 'Popover';
|
|
6520
6523
|
|