@patternfly/react-core 4.211.1 → 4.211.4
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 +30 -0
- package/dist/esm/components/Menu/Menu.js +1 -1
- package/dist/esm/components/Menu/Menu.js.map +1 -1
- package/dist/esm/components/Modal/Modal.d.ts +4 -0
- package/dist/esm/components/Modal/Modal.d.ts.map +1 -1
- package/dist/esm/components/Modal/Modal.js +2 -2
- package/dist/esm/components/Modal/Modal.js.map +1 -1
- package/dist/esm/components/Modal/ModalContent.d.ts +4 -0
- package/dist/esm/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/esm/components/Modal/ModalContent.js +3 -2
- package/dist/esm/components/Modal/ModalContent.js.map +1 -1
- package/dist/esm/components/Page/PageBreadcrumb.d.ts.map +1 -1
- package/dist/esm/components/Page/PageBreadcrumb.js +1 -1
- package/dist/esm/components/Page/PageBreadcrumb.js.map +1 -1
- package/dist/esm/components/Page/PageGroup.d.ts.map +1 -1
- package/dist/esm/components/Page/PageGroup.js +1 -1
- package/dist/esm/components/Page/PageGroup.js.map +1 -1
- package/dist/esm/components/Page/PageNavigation.d.ts.map +1 -1
- package/dist/esm/components/Page/PageNavigation.js +1 -1
- package/dist/esm/components/Page/PageNavigation.js.map +1 -1
- package/dist/esm/components/Page/PageSection.d.ts.map +1 -1
- package/dist/esm/components/Page/PageSection.js +1 -1
- package/dist/esm/components/Page/PageSection.js.map +1 -1
- package/dist/esm/components/Panel/Panel.d.ts +3 -1
- package/dist/esm/components/Panel/Panel.d.ts.map +1 -1
- package/dist/esm/components/Panel/Panel.js +4 -3
- package/dist/esm/components/Panel/Panel.js.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.d.ts +6 -0
- package/dist/esm/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/esm/components/Tooltip/Tooltip.js +2 -2
- package/dist/esm/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/esm/helpers/KeyboardHandler.d.ts +2 -0
- package/dist/esm/helpers/KeyboardHandler.d.ts.map +1 -1
- package/dist/esm/helpers/KeyboardHandler.js +3 -2
- package/dist/esm/helpers/KeyboardHandler.js.map +1 -1
- package/dist/js/components/Menu/Menu.js +1 -1
- package/dist/js/components/Menu/Menu.js.map +1 -1
- package/dist/js/components/Modal/Modal.d.ts +4 -0
- package/dist/js/components/Modal/Modal.d.ts.map +1 -1
- package/dist/js/components/Modal/Modal.js +2 -2
- package/dist/js/components/Modal/Modal.js.map +1 -1
- package/dist/js/components/Modal/ModalContent.d.ts +4 -0
- package/dist/js/components/Modal/ModalContent.d.ts.map +1 -1
- package/dist/js/components/Modal/ModalContent.js +3 -2
- package/dist/js/components/Modal/ModalContent.js.map +1 -1
- package/dist/js/components/Page/PageBreadcrumb.d.ts.map +1 -1
- package/dist/js/components/Page/PageBreadcrumb.js +1 -1
- package/dist/js/components/Page/PageBreadcrumb.js.map +1 -1
- package/dist/js/components/Page/PageGroup.d.ts.map +1 -1
- package/dist/js/components/Page/PageGroup.js +1 -1
- package/dist/js/components/Page/PageGroup.js.map +1 -1
- package/dist/js/components/Page/PageNavigation.d.ts.map +1 -1
- package/dist/js/components/Page/PageNavigation.js +1 -1
- package/dist/js/components/Page/PageNavigation.js.map +1 -1
- package/dist/js/components/Page/PageSection.d.ts.map +1 -1
- package/dist/js/components/Page/PageSection.js +1 -1
- package/dist/js/components/Page/PageSection.js.map +1 -1
- package/dist/js/components/Panel/Panel.d.ts +3 -1
- package/dist/js/components/Panel/Panel.d.ts.map +1 -1
- package/dist/js/components/Panel/Panel.js +4 -4
- package/dist/js/components/Panel/Panel.js.map +1 -1
- package/dist/js/components/Tooltip/Tooltip.d.ts +6 -0
- package/dist/js/components/Tooltip/Tooltip.d.ts.map +1 -1
- package/dist/js/components/Tooltip/Tooltip.js +2 -2
- package/dist/js/components/Tooltip/Tooltip.js.map +1 -1
- package/dist/js/helpers/KeyboardHandler.d.ts +2 -0
- package/dist/js/helpers/KeyboardHandler.d.ts.map +1 -1
- package/dist/js/helpers/KeyboardHandler.js +3 -2
- package/dist/js/helpers/KeyboardHandler.js.map +1 -1
- package/dist/umd/react-core.css +5 -0
- package/dist/umd/react-core.js +19 -16
- package/dist/umd/react-core.min.css +5 -0
- package/dist/umd/react-core.min.js +4 -4
- package/package.json +6 -6
- package/src/components/Menu/Menu.tsx +1 -1
- package/src/components/Modal/Modal.tsx +8 -0
- package/src/components/Modal/ModalContent.tsx +14 -1
- package/src/components/Modal/__tests__/Modal.test.tsx +56 -0
- package/src/components/Modal/examples/Modal.md +7 -0
- package/src/components/Modal/examples/ModalWithOverflowingContent.tsx +71 -0
- package/src/components/Page/PageBreadcrumb.tsx +1 -0
- package/src/components/Page/PageGroup.tsx +1 -0
- package/src/components/Page/PageNavigation.tsx +1 -0
- package/src/components/Page/PageSection.tsx +1 -0
- package/src/components/Page/__tests__/__snapshots__/PageBreadcrumb.test.tsx.snap +1 -0
- package/src/components/Page/__tests__/__snapshots__/PageGroup.test.tsx.snap +1 -0
- package/src/components/Page/__tests__/__snapshots__/PageNavigation.test.tsx.snap +1 -0
- package/src/components/Page/__tests__/__snapshots__/PageSection.test.tsx.snap +1 -0
- package/src/components/Panel/Panel.tsx +8 -1
- package/src/components/Tabs/examples/Tabs.md +144 -25
- package/src/components/Tooltip/Tooltip.tsx +8 -0
- package/src/components/Tooltip/examples/Tooltip.md +86 -41
- package/src/demos/ComposableMenu/ComposableMenu.md +2 -0
- package/src/demos/ComposableMenu/examples/ComposableTreeViewMenu.tsx +62 -28
- package/src/helpers/KeyboardHandler.tsx +7 -2
package/dist/umd/react-core.js
CHANGED
|
@@ -3332,7 +3332,7 @@
|
|
|
3332
3332
|
if (isEventFromContainer ? !isEventFromContainer(event) : !this._isEventFromContainer(event)) {
|
|
3333
3333
|
return;
|
|
3334
3334
|
}
|
|
3335
|
-
const { isActiveElement, getFocusableElement, noVerticalArrowHandling, noHorizontalArrowHandling, noEnterHandling, noSpaceHandling, updateTabIndex, validSiblingTags, additionalKeyHandler, createNavigableElements } = this.props;
|
|
3335
|
+
const { isActiveElement, getFocusableElement, noVerticalArrowHandling, noHorizontalArrowHandling, noEnterHandling, noSpaceHandling, updateTabIndex, validSiblingTags, additionalKeyHandler, createNavigableElements, onlyTraverseSiblings } = this.props;
|
|
3336
3336
|
// Pass the event off to be handled by any custom handler
|
|
3337
3337
|
additionalKeyHandler && additionalKeyHandler(event);
|
|
3338
3338
|
// Initalize navigableElements from the createNavigableElements callback
|
|
@@ -3360,7 +3360,7 @@
|
|
|
3360
3360
|
}
|
|
3361
3361
|
}
|
|
3362
3362
|
// Inject helper handler for arrow navigation
|
|
3363
|
-
handleArrows(event, navigableElements, isActiveElement, getFocusableElement, validSiblingTags, noVerticalArrowHandling, noHorizontalArrowHandling, updateTabIndex);
|
|
3363
|
+
handleArrows(event, navigableElements, isActiveElement, getFocusableElement, validSiblingTags, noVerticalArrowHandling, noHorizontalArrowHandling, updateTabIndex, onlyTraverseSiblings);
|
|
3364
3364
|
};
|
|
3365
3365
|
this._isEventFromContainer = (event) => {
|
|
3366
3366
|
const { containerRef } = this.props;
|
|
@@ -3388,6 +3388,7 @@
|
|
|
3388
3388
|
isActiveElement: (navigableElement) => document.activeElement === navigableElement,
|
|
3389
3389
|
getFocusableElement: (navigableElement) => navigableElement,
|
|
3390
3390
|
validSiblingTags: ['BUTTON', 'A'],
|
|
3391
|
+
onlyTraverseSiblings: true,
|
|
3391
3392
|
updateTabIndex: true,
|
|
3392
3393
|
noHorizontalArrowHandling: false,
|
|
3393
3394
|
noVerticalArrowHandling: false,
|
|
@@ -4237,7 +4238,7 @@
|
|
|
4237
4238
|
const Tooltip = (_a) => {
|
|
4238
4239
|
var { content: bodyContent, position = 'top', trigger = 'mouseenter focus', isVisible = false, isContentLeftAligned = false, enableFlip = true, className = '', entryDelay = 300, exitDelay = 0, appendTo = () => document.body, zIndex = 9999, maxWidth = tooltipMaxWidth.value, distance = 15, aria = 'describedby',
|
|
4239
4240
|
// For every initial starting position, there are 3 escape positions
|
|
4240
|
-
flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], id = `pf-tooltip-${pfTooltipIdCounter++}`, children, animationDuration = 300, reference, boundary, isAppLauncher, tippyProps } = _a, rest = __rest$1(_a, ["content", "position", "trigger", "isVisible", "isContentLeftAligned", "enableFlip", "className", "entryDelay", "exitDelay", "appendTo", "zIndex", "maxWidth", "distance", "aria", "flipBehavior", "id", "children", "animationDuration", "reference", "boundary", "isAppLauncher", "tippyProps"]);
|
|
4241
|
+
flipBehavior = ['top', 'right', 'bottom', 'left', 'top', 'right', 'bottom'], id = `pf-tooltip-${pfTooltipIdCounter++}`, children, animationDuration = 300, reference, 'aria-live': ariaLive = reference ? 'polite' : 'off', boundary, isAppLauncher, tippyProps } = _a, rest = __rest$1(_a, ["content", "position", "trigger", "isVisible", "isContentLeftAligned", "enableFlip", "className", "entryDelay", "exitDelay", "appendTo", "zIndex", "maxWidth", "distance", "aria", "flipBehavior", "id", "children", "animationDuration", "reference", 'aria-live', "boundary", "isAppLauncher", "tippyProps"]);
|
|
4241
4242
|
{
|
|
4242
4243
|
boundary !== undefined &&
|
|
4243
4244
|
console.warn('The Tooltip boundary prop has been deprecated. If you want to constrain the popper to a specific element use the appendTo prop instead.');
|
|
@@ -4319,7 +4320,7 @@
|
|
|
4319
4320
|
'right-end': styles$19.modifiers.rightBottom
|
|
4320
4321
|
};
|
|
4321
4322
|
const hasCustomMaxWidth = maxWidth !== tooltipMaxWidth.value;
|
|
4322
|
-
const content = (React__namespace.createElement("div", Object.assign({ className: css(styles$19.tooltip, className), role: "tooltip", id: id, style: {
|
|
4323
|
+
const content = (React__namespace.createElement("div", Object.assign({ "aria-live": ariaLive, className: css(styles$19.tooltip, className), role: "tooltip", id: id, style: {
|
|
4323
4324
|
maxWidth: hasCustomMaxWidth ? maxWidth : null,
|
|
4324
4325
|
opacity,
|
|
4325
4326
|
transition: getOpacityTransition(animationDuration)
|
|
@@ -14440,7 +14441,7 @@
|
|
|
14440
14441
|
|
|
14441
14442
|
const PageGroup = (_a) => {
|
|
14442
14443
|
var { className = '', children, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
14443
|
-
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$z.pageMainGroup, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }), children));
|
|
14444
|
+
return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$z.pageMainGroup, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 })), children));
|
|
14444
14445
|
};
|
|
14445
14446
|
PageGroup.displayName = 'PageGroup';
|
|
14446
14447
|
|
|
@@ -14783,7 +14784,7 @@
|
|
|
14783
14784
|
const isDrilldown = this.props.containsDrilldown;
|
|
14784
14785
|
return isDrilldown
|
|
14785
14786
|
? Array.from(this.activeMenu.getElementsByTagName('UL')[0].children).filter(el => !(el.classList.contains('pf-m-disabled') || el.classList.contains('pf-c-divider')))
|
|
14786
|
-
: Array.from(this.
|
|
14787
|
+
: Array.from(this.menuRef.current.getElementsByTagName('LI')).filter(el => !(el.classList.contains('pf-m-disabled') || el.classList.contains('pf-c-divider')));
|
|
14787
14788
|
};
|
|
14788
14789
|
if (props.innerRef) {
|
|
14789
14790
|
this.menuRef = props.innerRef;
|
|
@@ -15333,7 +15334,7 @@
|
|
|
15333
15334
|
ModalBoxTitle.displayName = 'ModalBoxTitle';
|
|
15334
15335
|
|
|
15335
15336
|
const ModalContent = (_a) => {
|
|
15336
|
-
var { children, className = '', isOpen = false, header = null, help = null, description = null, title = '', titleIconVariant = null, titleLabel = '', 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, 'aria-labelledby': ariaLabelledby, showClose = true, footer = null, actions = [], onClose = () => undefined, variant = 'default', position, positionOffset, width = -1, boxId, labelId, descriptorId, disableFocusTrap = false, hasNoBodyWrapper = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "isOpen", "header", "help", "description", "title", "titleIconVariant", "titleLabel", 'aria-label', 'aria-describedby', 'aria-labelledby', "showClose", "footer", "actions", "onClose", "variant", "position", "positionOffset", "width", "boxId", "labelId", "descriptorId", "disableFocusTrap", "hasNoBodyWrapper", "ouiaId", "ouiaSafe"]);
|
|
15337
|
+
var { children, className = '', isOpen = false, header = null, help = null, description = null, title = '', titleIconVariant = null, titleLabel = '', 'aria-label': ariaLabel = '', 'aria-describedby': ariaDescribedby, 'aria-labelledby': ariaLabelledby, bodyAriaLabel, bodyAriaRole, showClose = true, footer = null, actions = [], onClose = () => undefined, variant = 'default', position, positionOffset, width = -1, boxId, labelId, descriptorId, disableFocusTrap = false, hasNoBodyWrapper = false, ouiaId, ouiaSafe = true } = _a, props = __rest$1(_a, ["children", "className", "isOpen", "header", "help", "description", "title", "titleIconVariant", "titleLabel", 'aria-label', 'aria-describedby', 'aria-labelledby', "bodyAriaLabel", "bodyAriaRole", "showClose", "footer", "actions", "onClose", "variant", "position", "positionOffset", "width", "boxId", "labelId", "descriptorId", "disableFocusTrap", "hasNoBodyWrapper", "ouiaId", "ouiaSafe"]);
|
|
15337
15338
|
if (!isOpen) {
|
|
15338
15339
|
return null;
|
|
15339
15340
|
}
|
|
@@ -15341,7 +15342,8 @@
|
|
|
15341
15342
|
React__namespace.createElement(ModalBoxTitle, { title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, id: labelId }),
|
|
15342
15343
|
description && React__namespace.createElement(ModalBoxDescription, { id: descriptorId }, description))));
|
|
15343
15344
|
const modalBoxFooter = footer ? (React__namespace.createElement(ModalBoxFooter, null, footer)) : (actions.length > 0 && React__namespace.createElement(ModalBoxFooter, null, actions));
|
|
15344
|
-
const
|
|
15345
|
+
const defaultModalBodyAriaRole = bodyAriaLabel ? 'region' : undefined;
|
|
15346
|
+
const modalBody = hasNoBodyWrapper ? (children) : (React__namespace.createElement(ModalBoxBody, Object.assign({ "aria-label": bodyAriaLabel, role: bodyAriaRole || defaultModalBodyAriaRole }, props, (!description && !ariaDescribedby && { id: descriptorId })), children));
|
|
15345
15347
|
const boxStyle = width === -1 ? {} : { width };
|
|
15346
15348
|
const ariaLabelledbyFormatted = () => {
|
|
15347
15349
|
if (ariaLabelledby === null) {
|
|
@@ -15465,12 +15467,12 @@
|
|
|
15465
15467
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15466
15468
|
appendTo,
|
|
15467
15469
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
15468
|
-
onEscapePress, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, title, titleIconVariant, titleLabel, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["appendTo", "onEscapePress", 'aria-labelledby', 'aria-label', 'aria-describedby', "title", "titleIconVariant", "titleLabel", "ouiaId", "ouiaSafe"]);
|
|
15470
|
+
onEscapePress, 'aria-labelledby': ariaLabelledby, 'aria-label': ariaLabel, 'aria-describedby': ariaDescribedby, bodyAriaLabel, bodyAriaRole, title, titleIconVariant, titleLabel, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["appendTo", "onEscapePress", 'aria-labelledby', 'aria-label', 'aria-describedby', "bodyAriaLabel", "bodyAriaRole", "title", "titleIconVariant", "titleLabel", "ouiaId", "ouiaSafe"]);
|
|
15469
15471
|
const { container } = this.state;
|
|
15470
15472
|
if (!canUseDOM || !container) {
|
|
15471
15473
|
return null;
|
|
15472
15474
|
}
|
|
15473
|
-
return ReactDOM__namespace.createPortal(React__namespace.createElement(ModalContent, Object.assign({}, props, { boxId: this.boxId, labelId: this.labelId, descriptorId: this.descriptorId, title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, ouiaId: ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe: ouiaSafe })), container);
|
|
15475
|
+
return ReactDOM__namespace.createPortal(React__namespace.createElement(ModalContent, Object.assign({}, props, { boxId: this.boxId, labelId: this.labelId, descriptorId: this.descriptorId, title: title, titleIconVariant: titleIconVariant, titleLabel: titleLabel, "aria-label": ariaLabel, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, bodyAriaLabel: bodyAriaLabel, bodyAriaRole: bodyAriaRole, ouiaId: ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe: ouiaSafe })), container);
|
|
15474
15476
|
}
|
|
15475
15477
|
}
|
|
15476
15478
|
Modal.displayName = 'Modal';
|
|
@@ -16787,7 +16789,7 @@
|
|
|
16787
16789
|
|
|
16788
16790
|
const PageBreadcrumb = (_a) => {
|
|
16789
16791
|
var { className = '', children, isWidthLimited, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
16790
|
-
return (React__namespace.createElement("section", Object.assign({ className: css(styles$z.pageMainBreadcrumb, isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, props),
|
|
16792
|
+
return (React__namespace.createElement("section", Object.assign({ className: css(styles$z.pageMainBreadcrumb, isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), props),
|
|
16791
16793
|
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
16792
16794
|
!isWidthLimited && children));
|
|
16793
16795
|
};
|
|
@@ -16859,7 +16861,7 @@
|
|
|
16859
16861
|
};
|
|
16860
16862
|
const PageSection = (_a) => {
|
|
16861
16863
|
var { className = '', children, variant = 'default', type = 'default', padding, isFilled, isWidthLimited = false, isCenterAligned = false, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "variant", "type", "padding", "isFilled", "isWidthLimited", "isCenterAligned", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
16862
|
-
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$z), variantStyle$3[variant], isFilled === false && styles$z.modifiers.noFill, isFilled === true && styles$z.modifiers.fill, isWidthLimited && styles$z.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== exports.PageSectionTypes.subNav && styles$z.modifiers.alignCenter, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }),
|
|
16864
|
+
return (React__namespace.createElement("section", Object.assign({}, props, { className: css(variantType[type], formatBreakpointMods(padding, styles$z), variantStyle$3[variant], isFilled === false && styles$z.modifiers.noFill, isFilled === true && styles$z.modifiers.fill, isWidthLimited && styles$z.modifiers.limitWidth, isWidthLimited && isCenterAligned && type !== exports.PageSectionTypes.subNav && styles$z.modifiers.alignCenter, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 })),
|
|
16863
16865
|
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
16864
16866
|
!isWidthLimited && children));
|
|
16865
16867
|
};
|
|
@@ -16887,7 +16889,7 @@
|
|
|
16887
16889
|
|
|
16888
16890
|
const PageNavigation = (_a) => {
|
|
16889
16891
|
var { className = '', children, isWidthLimited, sticky, hasShadowTop = false, hasShadowBottom = false, hasOverflowScroll = false } = _a, props = __rest$1(_a, ["className", "children", "isWidthLimited", "sticky", "hasShadowTop", "hasShadowBottom", "hasOverflowScroll"]);
|
|
16890
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageMainNav, isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, props),
|
|
16892
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$z.pageMainNav, isWidthLimited && styles$z.modifiers.limitWidth, sticky === 'top' && styles$z.modifiers.stickyTop, sticky === 'bottom' && styles$z.modifiers.stickyBottom, hasShadowTop && styles$z.modifiers.shadowTop, hasShadowBottom && styles$z.modifiers.shadowBottom, hasOverflowScroll && styles$z.modifiers.overflowScroll, className) }, (hasOverflowScroll && { tabIndex: 0 }), props),
|
|
16891
16893
|
isWidthLimited && React__namespace.createElement("div", { className: css(styles$z.pageMainBody) }, children),
|
|
16892
16894
|
!isWidthLimited && children));
|
|
16893
16895
|
};
|
|
@@ -20690,10 +20692,11 @@
|
|
|
20690
20692
|
"panelMainBody": "pf-c-panel__main-body"
|
|
20691
20693
|
};
|
|
20692
20694
|
|
|
20693
|
-
const
|
|
20694
|
-
var { className, children, variant, isScrollable } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable"]);
|
|
20695
|
-
return (React__namespace.createElement("div", Object.assign({ className: css(styles$7.panel, variant === 'raised' && styles$7.modifiers.raised, variant === 'bordered' && styles$7.modifiers.bordered, isScrollable && styles$7.modifiers.scrollable, className) }, props), children));
|
|
20695
|
+
const PanelBase = (_a) => {
|
|
20696
|
+
var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
|
|
20697
|
+
return (React__namespace.createElement("div", Object.assign({ className: css(styles$7.panel, variant === 'raised' && styles$7.modifiers.raised, variant === 'bordered' && styles$7.modifiers.bordered, isScrollable && styles$7.modifiers.scrollable, className), ref: innerRef }, props), children));
|
|
20696
20698
|
};
|
|
20699
|
+
const Panel = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
|
|
20697
20700
|
Panel.displayName = 'Panel';
|
|
20698
20701
|
|
|
20699
20702
|
const PanelMain = (_a) => {
|
|
@@ -3123,6 +3123,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
3123
3123
|
position: relative;
|
|
3124
3124
|
display: inline-flex;
|
|
3125
3125
|
align-items: center;
|
|
3126
|
+
min-width: 0;
|
|
3126
3127
|
padding: var(--pf-c-chip--PaddingTop) var(--pf-c-chip--PaddingRight) var(--pf-c-chip--PaddingBottom) var(--pf-c-chip--PaddingLeft);
|
|
3127
3128
|
list-style: none;
|
|
3128
3129
|
background-color: var(--pf-c-chip--BackgroundColor);
|
|
@@ -3230,6 +3231,7 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
3230
3231
|
flex: 1;
|
|
3231
3232
|
flex-wrap: wrap;
|
|
3232
3233
|
align-items: baseline;
|
|
3234
|
+
min-width: 0;
|
|
3233
3235
|
}
|
|
3234
3236
|
|
|
3235
3237
|
.pf-c-chip-group__list {
|
|
@@ -3242,10 +3244,13 @@ label.pf-c-check, .pf-c-check__label,
|
|
|
3242
3244
|
display: inline-flex;
|
|
3243
3245
|
flex-wrap: wrap;
|
|
3244
3246
|
align-items: center;
|
|
3247
|
+
min-width: 0;
|
|
3248
|
+
max-width: 100%;
|
|
3245
3249
|
}
|
|
3246
3250
|
|
|
3247
3251
|
.pf-c-chip-group__list-item {
|
|
3248
3252
|
display: inline-flex;
|
|
3253
|
+
min-width: 0;
|
|
3249
3254
|
margin-right: var(--pf-c-chip-group__list-item--MarginRight);
|
|
3250
3255
|
margin-bottom: var(--pf-c-chip-group__list-item--MarginBottom);
|
|
3251
3256
|
}
|