@patternfly/react-core 4.169.0 → 4.169.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.
Files changed (80) hide show
  1. package/CHANGELOG.md +35 -0
  2. package/dist/esm/components/Pagination/OptionsToggle.d.ts +2 -0
  3. package/dist/esm/components/Pagination/OptionsToggle.d.ts.map +1 -1
  4. package/dist/esm/components/Pagination/OptionsToggle.js +2 -2
  5. package/dist/esm/components/Pagination/OptionsToggle.js.map +1 -1
  6. package/dist/esm/components/Pagination/Pagination.d.ts.map +1 -1
  7. package/dist/esm/components/Pagination/Pagination.js +1 -1
  8. package/dist/esm/components/Pagination/Pagination.js.map +1 -1
  9. package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts +2 -0
  10. package/dist/esm/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
  11. package/dist/esm/components/Pagination/PaginationOptionsMenu.js +15 -12
  12. package/dist/esm/components/Pagination/PaginationOptionsMenu.js.map +1 -1
  13. package/dist/esm/components/Popover/Popover.d.ts +2 -0
  14. package/dist/esm/components/Popover/Popover.d.ts.map +1 -1
  15. package/dist/esm/components/Popover/Popover.js +5 -3
  16. package/dist/esm/components/Popover/Popover.js.map +1 -1
  17. package/dist/esm/components/Popover/PopoverContext.d.ts +7 -0
  18. package/dist/esm/components/Popover/PopoverContext.d.ts.map +1 -0
  19. package/dist/esm/components/Popover/PopoverContext.js +3 -0
  20. package/dist/esm/components/Popover/PopoverContext.js.map +1 -0
  21. package/dist/esm/components/Popover/PopoverHeader.d.ts.map +1 -1
  22. package/dist/esm/components/Popover/PopoverHeader.js +2 -1
  23. package/dist/esm/components/Popover/PopoverHeader.js.map +1 -1
  24. package/dist/esm/helpers/index.d.ts +1 -0
  25. package/dist/esm/helpers/index.d.ts.map +1 -1
  26. package/dist/esm/helpers/index.js +1 -0
  27. package/dist/esm/helpers/index.js.map +1 -1
  28. package/dist/esm/helpers/resizeObserver.d.ts +2 -3
  29. package/dist/esm/helpers/resizeObserver.d.ts.map +1 -1
  30. package/dist/esm/helpers/resizeObserver.js +5 -5
  31. package/dist/esm/helpers/resizeObserver.js.map +1 -1
  32. package/dist/js/components/Pagination/OptionsToggle.d.ts +2 -0
  33. package/dist/js/components/Pagination/OptionsToggle.d.ts.map +1 -1
  34. package/dist/js/components/Pagination/OptionsToggle.js +2 -2
  35. package/dist/js/components/Pagination/OptionsToggle.js.map +1 -1
  36. package/dist/js/components/Pagination/Pagination.d.ts.map +1 -1
  37. package/dist/js/components/Pagination/Pagination.js +1 -1
  38. package/dist/js/components/Pagination/Pagination.js.map +1 -1
  39. package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts +2 -0
  40. package/dist/js/components/Pagination/PaginationOptionsMenu.d.ts.map +1 -1
  41. package/dist/js/components/Pagination/PaginationOptionsMenu.js +15 -12
  42. package/dist/js/components/Pagination/PaginationOptionsMenu.js.map +1 -1
  43. package/dist/js/components/Popover/Popover.d.ts +2 -0
  44. package/dist/js/components/Popover/Popover.d.ts.map +1 -1
  45. package/dist/js/components/Popover/Popover.js +5 -3
  46. package/dist/js/components/Popover/Popover.js.map +1 -1
  47. package/dist/js/components/Popover/PopoverContext.d.ts +7 -0
  48. package/dist/js/components/Popover/PopoverContext.d.ts.map +1 -0
  49. package/dist/js/components/Popover/PopoverContext.js +7 -0
  50. package/dist/js/components/Popover/PopoverContext.js.map +1 -0
  51. package/dist/js/components/Popover/PopoverHeader.d.ts.map +1 -1
  52. package/dist/js/components/Popover/PopoverHeader.js +2 -1
  53. package/dist/js/components/Popover/PopoverHeader.js.map +1 -1
  54. package/dist/js/helpers/index.d.ts +1 -0
  55. package/dist/js/helpers/index.d.ts.map +1 -1
  56. package/dist/js/helpers/index.js +1 -0
  57. package/dist/js/helpers/index.js.map +1 -1
  58. package/dist/js/helpers/resizeObserver.d.ts +2 -3
  59. package/dist/js/helpers/resizeObserver.d.ts.map +1 -1
  60. package/dist/js/helpers/resizeObserver.js +5 -5
  61. package/dist/js/helpers/resizeObserver.js.map +1 -1
  62. package/dist/umd/react-core.css +47 -27
  63. package/dist/umd/react-core.js +125 -108
  64. package/dist/umd/react-core.min.css +47 -27
  65. package/dist/umd/react-core.min.js +3 -3
  66. package/package.json +6 -6
  67. package/src/components/Pagination/OptionsToggle.tsx +5 -1
  68. package/src/components/Pagination/Pagination.tsx +1 -0
  69. package/src/components/Pagination/PaginationOptionsMenu.tsx +18 -10
  70. package/src/components/Pagination/__tests__/Generated/__snapshots__/Pagination.test.tsx.snap +1 -0
  71. package/src/components/Pagination/__tests__/Generated/__snapshots__/PaginationOptionsMenu.test.tsx.snap +1 -0
  72. package/src/components/Pagination/__tests__/__snapshots__/Pagination.test.tsx.snap +62 -0
  73. package/src/components/Popover/Popover.tsx +24 -18
  74. package/src/components/Popover/PopoverContext.tsx +7 -0
  75. package/src/components/Popover/PopoverHeader.tsx +8 -3
  76. package/src/components/Popover/__tests__/Generated/__snapshots__/Popover.test.tsx.snap +91 -83
  77. package/src/components/Popover/__tests__/Generated/__snapshots__/PopoverHeader.test.tsx.snap +3 -9
  78. package/src/components/Popover/__tests__/__snapshots__/Popover.test.tsx.snap +406 -374
  79. package/src/helpers/index.ts +1 -0
  80. package/src/helpers/resizeObserver.tsx +5 -6
@@ -3308,6 +3308,94 @@
3308
3308
  noSpaceHandling: false
3309
3309
  };
3310
3310
 
3311
+ /**
3312
+ * This function creates a ResizeObserver used to handle resize events for the given containerRef. If ResizeObserver
3313
+ * or the given containerRef are not available, a window resize event listener is used by default.
3314
+ *
3315
+ * Example 1:
3316
+ *
3317
+ * private containerRef = React.createRef<HTMLDivElement>();
3318
+ * private observer: any = () => {};
3319
+ *
3320
+ * public componentDidMount() {
3321
+ * this.observer = getResizeObserver(this.containerRef.current, this.handleResize);
3322
+ * }
3323
+ *
3324
+ * public componentWillUnmount() {
3325
+ * this.observer();
3326
+ * }
3327
+ *
3328
+ * private handleResize = () => {
3329
+ * if (this.containerRef.current && this.containerRef.current.clientWidth) {
3330
+ * this.setState({ width: this.containerRef.current.clientWidth });
3331
+ * }
3332
+ * };
3333
+ *
3334
+ * public render() {
3335
+ * return (
3336
+ * <div ref={this.containerRef} >
3337
+ * <Chart width={this.state.width} ... />
3338
+ * </div>
3339
+ * );
3340
+ * }
3341
+ *
3342
+ * Example 2:
3343
+ *
3344
+ * private inputRef = React.createRef<HTMLInputElement>();
3345
+ * private observer: any = () => {};
3346
+ *
3347
+ * public componentDidMount() {
3348
+ * this.observer = getResizeObserver(this.inputRef.current, this.handleResize);
3349
+ * }
3350
+ *
3351
+ * public componentWillUnmount() {
3352
+ * this.observer();
3353
+ * }
3354
+ *
3355
+ * private handleResize = () => {
3356
+ * if (this.inputRef.current) {
3357
+ * trimLeft(inputRef.current, String(this.props.value));
3358
+ * }
3359
+ * };
3360
+ *
3361
+ * public render() {
3362
+ * return (
3363
+ * <input ref={this.inputRef} ... />
3364
+ * );
3365
+ * }
3366
+ *
3367
+ * @param {Element} containerRefElement The container reference to observe
3368
+ * @param {Function} handleResize The function to call for resize events
3369
+ * @return {Function} The function used to unobserve resize events
3370
+ */
3371
+ const getResizeObserver = (containerRefElement, handleResize) => {
3372
+ let unobserve;
3373
+ if (canUseDOM) {
3374
+ const { ResizeObserver } = window;
3375
+ if (containerRefElement && ResizeObserver) {
3376
+ const resizeObserver = new ResizeObserver((entries) => {
3377
+ // Wrap resize function in requestAnimationFrame to avoid "ResizeObserver loop limit exceeded" errors
3378
+ window.requestAnimationFrame(() => {
3379
+ if (Array.isArray(entries) && entries.length > 0) {
3380
+ handleResize();
3381
+ }
3382
+ });
3383
+ });
3384
+ resizeObserver.observe(containerRefElement);
3385
+ unobserve = () => resizeObserver.unobserve(containerRefElement);
3386
+ }
3387
+ else {
3388
+ window.addEventListener('resize', handleResize);
3389
+ unobserve = () => window.removeEventListener('resize', handleResize);
3390
+ }
3391
+ }
3392
+ return () => {
3393
+ if (unobserve) {
3394
+ unobserve();
3395
+ }
3396
+ };
3397
+ };
3398
+
3311
3399
  var _default$1n = {
3312
3400
  "bullseye": "pf-l-bullseye"
3313
3401
  };
@@ -3972,9 +4060,17 @@
3972
4060
  var _default$1d = {
3973
4061
  "modifiers": {
3974
4062
  "top": "pf-m-top",
4063
+ "topLeft": "pf-m-top-left",
4064
+ "topRight": "pf-m-top-right",
3975
4065
  "bottom": "pf-m-bottom",
4066
+ "bottomLeft": "pf-m-bottom-left",
4067
+ "bottomRight": "pf-m-bottom-right",
3976
4068
  "left": "pf-m-left",
4069
+ "leftTop": "pf-m-left-top",
4070
+ "leftBottom": "pf-m-left-bottom",
3977
4071
  "right": "pf-m-right",
4072
+ "rightTop": "pf-m-right-top",
4073
+ "rightBottom": "pf-m-right-bottom",
3978
4074
  "textAlignLeft": "pf-m-text-align-left"
3979
4075
  },
3980
4076
  "tooltip": "pf-c-tooltip",
@@ -5604,94 +5700,6 @@
5604
5700
  };
5605
5701
  BreadcrumbHeading.displayName = 'BreadcrumbHeading';
5606
5702
 
5607
- /**
5608
- * This function creates a ResizeObserver used to handle resize events for the given containerRef. If ResizeObserver
5609
- * or the given containerRef are not available, a window resize event listener is used by default.
5610
- *
5611
- * Example 1:
5612
- *
5613
- * private containerRef = React.createRef<HTMLDivElement>();
5614
- * private observer: any = () => {};
5615
- *
5616
- * public componentDidMount() {
5617
- * this.observer = getResizeObserver(this.containerRef.current, this.handleResize);
5618
- * }
5619
- *
5620
- * public componentWillUnmount() {
5621
- * this.observer();
5622
- * }
5623
- *
5624
- * private handleResize = () => {
5625
- * if (this.containerRef.current && this.containerRef.current.clientWidth) {
5626
- * this.setState({ width: this.containerRef.current.clientWidth });
5627
- * }
5628
- * };
5629
- *
5630
- * public render() {
5631
- * return (
5632
- * <div ref={this.containerRef} >
5633
- * <Chart width={this.state.width} ... />
5634
- * </div>
5635
- * );
5636
- * }
5637
- *
5638
- * Example 2:
5639
- *
5640
- * private inputRef = React.createRef<HTMLInputElement>();
5641
- * private observer: any = () => {};
5642
- *
5643
- * public componentDidMount() {
5644
- * this.observer = getResizeObserver(this.inputRef.current, this.handleResize);
5645
- * }
5646
- *
5647
- * public componentWillUnmount() {
5648
- * this.observer();
5649
- * }
5650
- *
5651
- * private handleResize = () => {
5652
- * if (this.inputRef.current) {
5653
- * trimLeft(inputRef.current, String(this.props.value));
5654
- * }
5655
- * };
5656
- *
5657
- * public render() {
5658
- * return (
5659
- * <input ref={this.inputRef} ... />
5660
- * );
5661
- * }
5662
- *
5663
- * @param {React.RefObject} containerRef The container reference to observe
5664
- * @param {Function} handleResize The function to call for resize events
5665
- * @return {Function} The function used to unobserve resize events
5666
- */
5667
- const getResizeObserver = (containerRef, handleResize) => {
5668
- let unobserve;
5669
- if (canUseDOM) {
5670
- const { ResizeObserver } = window;
5671
- if (containerRef && ResizeObserver) {
5672
- const resizeObserver = new ResizeObserver((entries) => {
5673
- // Wrap resize function in requestAnimationFrame to avoid "ResizeObserver loop limit exceeded" errors
5674
- window.requestAnimationFrame(() => {
5675
- if (Array.isArray(entries) && entries.length > 0) {
5676
- handleResize();
5677
- }
5678
- });
5679
- });
5680
- resizeObserver.observe(containerRef);
5681
- unobserve = () => resizeObserver.unobserve(containerRef);
5682
- }
5683
- else {
5684
- window.addEventListener('resize', handleResize);
5685
- unobserve = () => window.removeEventListener('resize', handleResize);
5686
- }
5687
- }
5688
- return () => {
5689
- if (unobserve) {
5690
- unobserve();
5691
- }
5692
- };
5693
- };
5694
-
5695
5703
  exports.TextInputTypes = void 0;
5696
5704
  (function (TextInputTypes) {
5697
5705
  TextInputTypes["text"] = "text";
@@ -8863,6 +8871,8 @@
8863
8871
  "title": "pf-c-title"
8864
8872
  };
8865
8873
 
8874
+ const PopoverContext = React__namespace.createContext({});
8875
+
8866
8876
  const PopoverContent = (_a) => {
8867
8877
  var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
8868
8878
  return (React__namespace.createElement("div", Object.assign({ className: css(_default$P.popoverContent, className) }, props), children));
@@ -8877,7 +8887,7 @@
8877
8887
 
8878
8888
  const PopoverHeader = (_a) => {
8879
8889
  var { children, id } = _a, props = __rest$1(_a, ["children", "id"]);
8880
- return (React__namespace.createElement(Title, Object.assign({ headingLevel: "h6", size: exports.TitleSizes.md, id: id }, props), children));
8890
+ return (React__namespace.createElement(PopoverContext.Consumer, null, ({ headerComponent }) => (React__namespace.createElement(Title, Object.assign({ headingLevel: headerComponent, size: exports.TitleSizes.md, id: id }, props), children))));
8881
8891
  };
8882
8892
  PopoverHeader.displayName = 'PopoverHeader';
8883
8893
 
@@ -8939,9 +8949,9 @@
8939
8949
  PopoverPosition["rightEnd"] = "right-end";
8940
8950
  })(exports.PopoverPosition || (exports.PopoverPosition = {}));
8941
8951
  const Popover = (_a) => {
8942
- 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,
8952
+ 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,
8943
8953
  // For every initial starting position, there are 3 escape positions
8944
- 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"]);
8954
+ 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"]);
8945
8955
  {
8946
8956
  boundary !== undefined &&
8947
8957
  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.');
@@ -9119,7 +9129,8 @@
9119
9129
  headerContent && (React__namespace.createElement(PopoverHeader, { id: `popover-${uniqueId}-header` }, typeof headerContent === 'function' ? headerContent(hide) : headerContent)),
9120
9130
  React__namespace.createElement(PopoverBody, { id: `popover-${uniqueId}-body` }, typeof bodyContent === 'function' ? bodyContent(hide) : bodyContent),
9121
9131
  footerContent && (React__namespace.createElement(PopoverFooter, { id: `popover-${uniqueId}-footer` }, typeof footerContent === 'function' ? footerContent(hide) : footerContent)))));
9122
- return (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 }));
9132
+ return (React__namespace.createElement(PopoverContext.Provider, { value: { headerComponent } },
9133
+ 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 })));
9123
9134
  };
9124
9135
  Popover.displayName = 'Popover';
9125
9136
 
@@ -14285,6 +14296,7 @@
14285
14296
  "modifiers": {
14286
14297
  "primary": "pf-m-primary",
14287
14298
  "plain": "pf-m-plain",
14299
+ "text": "pf-m-text",
14288
14300
  "expanded": "pf-m-expanded",
14289
14301
  "fullHeight": "pf-m-full-height"
14290
14302
  }
@@ -14597,11 +14609,11 @@
14597
14609
  "scrollable": "pf-m-scrollable",
14598
14610
  "overflowHidden": "pf-m-overflow-hidden",
14599
14611
  "expandable": "pf-m-expandable",
14612
+ "expanded": "pf-m-expanded",
14600
14613
  "flyout": "pf-m-flyout",
14601
14614
  "top": "pf-m-top",
14602
14615
  "left": "pf-m-left",
14603
14616
  "drilldown": "pf-m-drilldown",
14604
- "expanded": "pf-m-expanded",
14605
14617
  "current": "pf-m-current",
14606
14618
  "start": "pf-m-start"
14607
14619
  },
@@ -15991,10 +16003,10 @@
15991
16003
  let toggleId = 0;
15992
16004
  const OptionsToggle = ({ itemsTitle = 'items', optionsToggle = 'Items per page',
15993
16005
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15994
- itemsPerPageTitle = 'Items per page', firstIndex = 0, lastIndex = 0, itemCount = 0, widgetId = '', showToggle = true,
16006
+ itemsPerPageTitle = 'Items per page', ofWord = 'of', firstIndex = 0, lastIndex = 0, itemCount = 0, widgetId = '', showToggle = true,
15995
16007
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
15996
16008
  onToggle = (_isOpen) => undefined, isOpen = false, isDisabled = false, parentRef = null, toggleTemplate: ToggleTemplate = '', onEnter = null }) => (React__namespace.createElement("div", { className: css(_default$r.optionsMenuToggle, isDisabled && _default$r.modifiers.disabled, _default$r.modifiers.plain, _default$r.modifiers.text) }, showToggle && (React__namespace.createElement(React__namespace.Fragment, null,
15997
- React__namespace.createElement("span", { className: css(_default$r.optionsMenuToggleText) }, typeof ToggleTemplate === 'string' ? (fillTemplate(ToggleTemplate, { firstIndex, lastIndex, itemCount, itemsTitle })) : (React__namespace.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: itemsTitle }))),
16009
+ React__namespace.createElement("span", { className: css(_default$r.optionsMenuToggleText) }, typeof ToggleTemplate === 'string' ? (fillTemplate(ToggleTemplate, { firstIndex, lastIndex, ofWord, itemCount, itemsTitle })) : (React__namespace.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, ofWord: ofWord, itemCount: itemCount, itemsTitle: itemsTitle }))),
15998
16010
  React__namespace.createElement(DropdownToggle, { onEnter: onEnter, "aria-label": optionsToggle, onToggle: onToggle, isDisabled: isDisabled || itemCount <= 0, isOpen: isOpen, id: `${widgetId}-toggle-${toggleId++}`, className: _default$r.optionsMenuToggleButton, parentRef: parentRef })))));
15999
16011
  OptionsToggle.displayName = 'OptionsToggle';
16000
16012
 
@@ -16038,7 +16050,7 @@
16038
16050
  };
16039
16051
  }
16040
16052
  render() {
16041
- const { widgetId, isDisabled, itemsPerPageTitle, dropDirection, optionsToggle, perPageOptions, toggleTemplate, firstIndex, lastIndex, itemCount, itemsTitle } = this.props;
16053
+ const { widgetId, isDisabled, itemsPerPageTitle, dropDirection, optionsToggle, perPageOptions, toggleTemplate, firstIndex, lastIndex, itemCount, itemsTitle, ofWord } = this.props;
16042
16054
  const { isOpen } = this.state;
16043
16055
  return (React__namespace.createElement(DropdownContext.Provider, { value: {
16044
16056
  id: widgetId,
@@ -16054,7 +16066,19 @@
16054
16066
  baseComponent: 'div',
16055
16067
  ouiaComponentType: PaginationOptionsMenu.displayName
16056
16068
  } },
16057
- React__namespace.createElement(DropdownWithContext, { direction: dropDirection, isOpen: isOpen, toggle: React__namespace.createElement(OptionsToggle, { optionsToggle: optionsToggle, itemsPerPageTitle: itemsPerPageTitle, showToggle: perPageOptions && perPageOptions.length > 0, onToggle: this.onToggle, isOpen: isOpen, widgetId: widgetId, firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: itemsTitle, toggleTemplate: toggleTemplate, parentRef: this.parentRef.current, isDisabled: isDisabled }), dropdownItems: this.renderItems(), isPlain: true })));
16069
+ React__namespace.createElement(DropdownWithContext, { direction: dropDirection, isOpen: isOpen, toggle: React__namespace.createElement(OptionsToggle, { optionsToggle: optionsToggle, itemsPerPageTitle: itemsPerPageTitle, showToggle: perPageOptions && perPageOptions.length > 0, onToggle: this.onToggle, isOpen: isOpen, widgetId: widgetId, firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: itemsTitle, ofWord: ofWord, toggleTemplate: toggleTemplate
16070
+ ? toggleTemplate
16071
+ : ({ firstIndex, lastIndex, itemCount, ofWord, itemsTitle }) => (React__namespace.createElement(React__namespace.Fragment, null,
16072
+ React__namespace.createElement("b", null,
16073
+ firstIndex,
16074
+ " - ",
16075
+ lastIndex),
16076
+ ' ',
16077
+ ofWord,
16078
+ " ",
16079
+ React__namespace.createElement("b", null, itemCount),
16080
+ " ",
16081
+ itemsTitle)), parentRef: this.parentRef.current, isDisabled: isDisabled }), dropdownItems: this.renderItems(), isPlain: true })));
16058
16082
  }
16059
16083
  }
16060
16084
  PaginationOptionsMenu.displayName = 'PaginationOptionsMenu';
@@ -16067,22 +16091,13 @@
16067
16091
  itemsPerPageTitle: 'Items per page',
16068
16092
  perPageSuffix: 'per page',
16069
16093
  optionsToggle: 'Items per page',
16094
+ ofWord: 'of',
16070
16095
  perPage: 0,
16071
16096
  firstIndex: 0,
16072
16097
  lastIndex: 0,
16073
16098
  defaultToFullPage: false,
16074
16099
  itemCount: 0,
16075
16100
  itemsTitle: 'items',
16076
- toggleTemplate: ({ firstIndex, lastIndex, itemCount, itemsTitle }) => (React__namespace.createElement(React__namespace.Fragment, null,
16077
- React__namespace.createElement("b", null,
16078
- firstIndex,
16079
- " - ",
16080
- lastIndex),
16081
- ' ',
16082
- "of",
16083
- React__namespace.createElement("b", null, itemCount),
16084
- " ",
16085
- itemsTitle)),
16086
16101
  onPerPageSelect: () => null
16087
16102
  };
16088
16103
 
@@ -16176,7 +16191,7 @@
16176
16191
  return (React__namespace.createElement("div", Object.assign({ ref: this.paginationRef, className: css(_default$p.pagination, variant === exports.PaginationVariant.bottom && _default$p.modifiers.bottom, isCompact && _default$p.modifiers.compact, isStatic && _default$p.modifiers.static, isSticky && _default$p.modifiers.sticky, className), id: `${widgetId}-${paginationId++}` }, getOUIAProps(Pagination.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
16177
16192
  variant === exports.PaginationVariant.top && (React__namespace.createElement("div", { className: css(_default$p.paginationTotalItems) },
16178
16193
  React__namespace.createElement(ToggleTemplate, { firstIndex: firstIndex, lastIndex: lastIndex, itemCount: itemCount, itemsTitle: titles.items, ofWord: titles.ofWord }))),
16179
- React__namespace.createElement(PaginationOptionsMenu, { itemsPerPageTitle: titles.itemsPerPage, perPageSuffix: titles.perPageSuffix, itemsTitle: isCompact ? '' : titles.items, optionsToggle: titles.optionsToggle, perPageOptions: perPageOptions, firstIndex: itemsStart !== null ? itemsStart : firstIndex, lastIndex: itemsEnd !== null ? itemsEnd : lastIndex, defaultToFullPage: defaultToFullPage, itemCount: itemCount, page: page, perPage: perPage, lastPage: lastPage, onPerPageSelect: onPerPageSelect, dropDirection: dropDirection, widgetId: widgetId, toggleTemplate: toggleTemplate, isDisabled: isDisabled }),
16194
+ React__namespace.createElement(PaginationOptionsMenu, { itemsPerPageTitle: titles.itemsPerPage, perPageSuffix: titles.perPageSuffix, itemsTitle: isCompact ? '' : titles.items, optionsToggle: titles.optionsToggle, perPageOptions: perPageOptions, firstIndex: itemsStart !== null ? itemsStart : firstIndex, lastIndex: itemsEnd !== null ? itemsEnd : lastIndex, ofWord: titles.ofWord, defaultToFullPage: defaultToFullPage, itemCount: itemCount, page: page, perPage: perPage, lastPage: lastPage, onPerPageSelect: onPerPageSelect, dropDirection: dropDirection, widgetId: widgetId, toggleTemplate: toggleTemplate, isDisabled: isDisabled }),
16180
16195
  React__namespace.createElement(Navigation, { pagesTitle: titles.page, toLastPage: titles.toLastPage, toPreviousPage: titles.toPreviousPage, toNextPage: titles.toNextPage, toFirstPage: titles.toFirstPage, currPage: titles.currPage, paginationTitle: titles.paginationTitle, ofWord: titles.ofWord, page: itemCount <= 0 ? 0 : page, perPage: perPage, firstPage: itemsStart !== null ? itemsStart : 1, lastPage: lastPage, onSetPage: onSetPage, onFirstClick: onFirstClick, onPreviousClick: onPreviousClick, onNextClick: onNextClick, onLastClick: onLastClick, onPageInput: onPageInput, isDisabled: isDisabled, isCompact: isCompact }),
16181
16196
  children));
16182
16197
  }
@@ -19521,6 +19536,7 @@
19521
19536
  "chipGroup": "pf-c-chip-group",
19522
19537
  "chipGroupList": "pf-c-chip-group__list",
19523
19538
  "modifiers": {
19539
+ "disabled": "pf-m-disabled",
19524
19540
  "icon": "pf-m-icon",
19525
19541
  "hint": "pf-m-hint"
19526
19542
  },
@@ -20750,6 +20766,7 @@
20750
20766
  exports.getNextIndex = getNextIndex;
20751
20767
  exports.getOUIAProps = getOUIAProps;
20752
20768
  exports.getOpacityTransition = getOpacityTransition;
20769
+ exports.getResizeObserver = getResizeObserver;
20753
20770
  exports.getTextWidth = getTextWidth;
20754
20771
  exports.getUniqueId = getUniqueId;
20755
20772
  exports.globalBreakpoints = globalBreakpoints;
@@ -11186,7 +11186,7 @@ ul.pf-c-list {
11186
11186
  --pf-c-menu-toggle--m-expanded--BackgroundColor: var(--pf-c-menu-toggle--m-primary--m-expanded--BackgroundColor);
11187
11187
  }
11188
11188
 
11189
- .pf-c-menu-toggle.pf-m-plain {
11189
+ .pf-c-menu-toggle.pf-m-plain:not(.pf-m-text) {
11190
11190
  --pf-c-menu-toggle--Color: var(--pf-c-menu-toggle--m-plain--Color);
11191
11191
  --pf-c-menu-toggle--hover--Color: var(--pf-c-menu-toggle--m-plain--hover--Color);
11192
11192
  --pf-c-menu-toggle--focus--Color: var(--pf-c-menu-toggle--m-plain--hover--Color);
@@ -11971,14 +11971,12 @@ ul.pf-c-list {
11971
11971
  }
11972
11972
 
11973
11973
  .pf-c-nav__item {
11974
- --pf-c-nav__item__toggle-icon--Rotate: 0;
11975
11974
  position: relative;
11976
11975
  margin-top: var(--pf-c-nav__item--MarginTop);
11977
11976
  }
11978
11977
 
11979
11978
  .pf-c-nav__item.pf-m-expandable {
11980
11979
  --pf-c-nav__link--before--BorderBottomWidth: 0;
11981
- --pf-c-nav__item__toggle-icon--Rotate: var(--pf-c-nav__item--m-expanded__toggle-icon--Rotate);
11982
11980
  }
11983
11981
 
11984
11982
  .pf-c-nav__item.pf-m-expandable::before {
@@ -11990,6 +11988,10 @@ ul.pf-c-list {
11990
11988
  border-bottom: var(--pf-c-nav__item--before--BorderWidth) solid var(--pf-c-nav__item--before--BorderColor);
11991
11989
  }
11992
11990
 
11991
+ .pf-c-nav__item .pf-c-nav__item:not(.pf-m-expanded) .pf-c-nav__toggle-icon {
11992
+ transform: rotate(0);
11993
+ }
11994
+
11993
11995
  .pf-c-nav__item .pf-c-nav__item.pf-m-expandable {
11994
11996
  --pf-c-nav__toggle--FontSize: var(--pf-c-nav__item__item__toggle--FontSize);
11995
11997
  --pf-c-nav__link--PaddingRight: var(--pf-c-nav__item__item__link--PaddingRight);
@@ -12277,11 +12279,7 @@ ul.pf-c-list {
12277
12279
  transition: var(--pf-c-nav__toggle-icon--Transition);
12278
12280
  }
12279
12281
 
12280
- .pf-c-nav__item.pf-m-expanded .pf-c-nav__item .pf-c-nav__toggle-icon {
12281
- transform: rotate(0deg);
12282
- }
12283
-
12284
- .pf-c-nav__item.pf-m-expanded .pf-c-nav__toggle-icon, .pf-c-nav__item .pf-c-nav__item.pf-m-expanded .pf-c-nav__toggle-icon {
12282
+ .pf-c-nav__item.pf-m-expanded .pf-c-nav__toggle-icon {
12285
12283
  transform: rotate(var(--pf-c-nav__item--m-expanded__toggle-icon--Rotate));
12286
12284
  }
12287
12285
 
@@ -12878,44 +12876,34 @@ ul.pf-c-list {
12878
12876
  justify-content: space-between;
12879
12877
  min-width: var(--pf-c-options-menu__toggle--MinWidth);
12880
12878
  max-width: 100%;
12881
- padding-left: var(--pf-c-options-menu__toggle--PaddingLeft);
12879
+ padding: var(--pf-c-options-menu__toggle--PaddingTop) var(--pf-c-options-menu__toggle--PaddingRight) var(--pf-c-options-menu__toggle--PaddingBottom) var(--pf-c-options-menu__toggle--PaddingLeft);
12882
12880
  line-height: var(--pf-c-options-menu__toggle--LineHeight);
12883
12881
  color: var(--pf-c-options-menu__toggle--Color);
12884
12882
  background-color: var(--pf-c-options-menu__toggle--BackgroundColor);
12885
12883
  border: none;
12886
12884
  }
12887
12885
 
12888
- .pf-c-options-menu__toggle:not(.pf-m-text) {
12889
- padding-top: var(--pf-c-options-menu__toggle--PaddingTop);
12890
- padding-right: var(--pf-c-options-menu__toggle--PaddingRight);
12891
- padding-bottom: var(--pf-c-options-menu__toggle--PaddingBottom);
12892
- }
12893
-
12894
12886
  .pf-c-options-menu.pf-m-expanded > .pf-c-options-menu__toggle::before {
12895
12887
  --pf-c-options-menu__toggle--BorderBottomColor: var(--pf-c-options-menu__toggle--expanded--BorderBottomColor);
12896
12888
  border-bottom-width: var(--pf-c-options-menu__toggle--expanded--BorderBottomWidth);
12897
12889
  }
12898
12890
 
12899
- .pf-c-options-menu__toggle.pf-m-plain {
12891
+ .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text) {
12900
12892
  --pf-c-options-menu__toggle--PaddingRight: var(--pf-c-options-menu__toggle--m-plain--PaddingRight);
12901
12893
  --pf-c-options-menu__toggle--PaddingLeft: var(--pf-c-options-menu__toggle--m-plain--PaddingLeft);
12902
12894
  display: inline-block;
12903
- }
12904
-
12905
- .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text) {
12906
- justify-content: center;
12907
12895
  color: var(--pf-c-options-menu__toggle--m-plain--Color);
12908
12896
  }
12909
12897
 
12910
- .pf-c-options-menu__toggle.pf-m-plain .pf-c-options-menu__toggle-button-icon {
12898
+ .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text) .pf-c-options-menu__toggle-button-icon {
12911
12899
  line-height: var(--pf-c-options-menu__toggle--LineHeight);
12912
12900
  }
12913
12901
 
12914
- .pf-c-options-menu__toggle.pf-m-plain:hover, .pf-c-options-menu__toggle.pf-m-plain:active, .pf-c-options-menu__toggle.pf-m-plain.pf-m-active, .pf-c-options-menu__toggle.pf-m-plain:focus, .pf-c-options-menu.pf-m-expanded > .pf-c-options-menu__toggle.pf-m-plain {
12902
+ .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text):hover, .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text):active, .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text).pf-m-active, .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text):focus, .pf-c-options-menu.pf-m-expanded > .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text) {
12915
12903
  --pf-c-options-menu__toggle--m-plain--Color: var(--pf-c-options-menu__toggle--m-plain--hover--Color);
12916
12904
  }
12917
12905
 
12918
- .pf-c-options-menu__toggle.pf-m-plain.pf-m-disabled, .pf-c-options-menu__toggle.pf-m-plain:disabled {
12906
+ .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text).pf-m-disabled, .pf-c-options-menu__toggle.pf-m-plain:not(.pf-m-text):disabled {
12919
12907
  --pf-c-options-menu__toggle--m-plain--Color: var(--pf-c-options-menu__toggle--m-plain--disabled--Color);
12920
12908
  }
12921
12909
 
@@ -19560,30 +19548,48 @@ svg.pf-c-spinner.pf-m-xl {
19560
19548
  box-shadow: var(--pf-c-tooltip--BoxShadow);
19561
19549
  }
19562
19550
 
19563
- .pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow {
19551
+ .pf-c-tooltip.pf-m-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow {
19564
19552
  bottom: 0;
19565
19553
  left: 50%;
19566
19554
  transform: translateX(var(--pf-c-tooltip__arrow--m-top--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-top--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-top--Rotate));
19567
19555
  }
19568
19556
 
19569
- .pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow {
19557
+ .pf-c-tooltip.pf-m-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
19570
19558
  top: 0;
19571
19559
  left: 50%;
19572
19560
  transform: translateX(var(--pf-c-tooltip__arrow--m-bottom--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-bottom--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-bottom--Rotate));
19573
19561
  }
19574
19562
 
19575
- .pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow {
19563
+ .pf-c-tooltip.pf-m-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow {
19576
19564
  top: 50%;
19577
19565
  right: 0;
19578
19566
  transform: translateX(var(--pf-c-tooltip__arrow--m-left--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-left--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-left--Rotate));
19579
19567
  }
19580
19568
 
19581
- .pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow {
19569
+ .pf-c-tooltip.pf-m-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
19582
19570
  top: 50%;
19583
19571
  left: 0;
19584
19572
  transform: translateX(var(--pf-c-tooltip__arrow--m-right--TranslateX)) translateY(var(--pf-c-tooltip__arrow--m-right--TranslateY)) rotate(var(--pf-c-tooltip__arrow--m-right--Rotate));
19585
19573
  }
19586
19574
 
19575
+ .pf-c-tooltip.pf-m-left-top .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-top .pf-c-tooltip__arrow {
19576
+ top: var(--pf-c-tooltip__arrow--Height);
19577
+ }
19578
+
19579
+ .pf-c-tooltip.pf-m-left-bottom .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-right-bottom .pf-c-tooltip__arrow {
19580
+ top: auto;
19581
+ bottom: 0;
19582
+ }
19583
+
19584
+ .pf-c-tooltip.pf-m-top-left .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-left .pf-c-tooltip__arrow {
19585
+ left: var(--pf-c-tooltip__arrow--Width);
19586
+ }
19587
+
19588
+ .pf-c-tooltip.pf-m-top-right .pf-c-tooltip__arrow, .pf-c-tooltip.pf-m-bottom-right .pf-c-tooltip__arrow {
19589
+ right: 0;
19590
+ left: auto;
19591
+ }
19592
+
19587
19593
  .pf-c-tooltip__content {
19588
19594
  position: relative;
19589
19595
  padding: var(--pf-c-tooltip__content--PaddingTop) var(--pf-c-tooltip__content--PaddingRight) var(--pf-c-tooltip__content--PaddingBottom) var(--pf-c-tooltip__content--PaddingLeft);
@@ -20712,6 +20718,7 @@ svg.pf-c-spinner.pf-m-xl {
20712
20718
  }
20713
20719
 
20714
20720
  .pf-c-text-input-group {
20721
+ --pf-c-text-input-group--BackgroundColor: var(--pf-global--BackgroundColor--100);
20715
20722
  --pf-c-text-input-group__text--before--BorderWidth: var(--pf-global--BorderWidth--sm);
20716
20723
  --pf-c-text-input-group__text--before--BorderColor: var(--pf-global--BorderColor--300);
20717
20724
  --pf-c-text-input-group__text--after--BorderBottomWidth: var(--pf-global--BorderWidth--sm);
@@ -20736,14 +20743,27 @@ svg.pf-c-spinner.pf-m-xl {
20736
20743
  --pf-c-text-input-group__utilities--child--MarginLeft: var(--pf-global--spacer--xs);
20737
20744
  --pf-c-text-input-group__utilities--c-button--PaddingRight: var(--pf-global--spacer--xs);
20738
20745
  --pf-c-text-input-group__utilities--c-button--PaddingLeft: var(--pf-global--spacer--xs);
20746
+ --pf-c-text-input-group--m-disabled--Color: var(--pf-global--disabled-color--100);
20747
+ --pf-c-text-input-group--m-disabled--BackgroundColor: var(--pf-global--disabled-color--300);
20739
20748
  position: relative;
20740
20749
  display: flex;
20750
+ color: var(--pf-c-text-input-group--Color, inherit);
20751
+ background-color: var(--pf-c-text-input-group--BackgroundColor);
20741
20752
  }
20742
20753
 
20743
20754
  .pf-c-text-input-group:hover {
20744
20755
  --pf-c-text-input-group__text--after--BorderBottomColor: var(--pf-c-text-input-group--hover__text--after--BorderBottomColor);
20745
20756
  }
20746
20757
 
20758
+ .pf-c-text-input-group.pf-m-disabled {
20759
+ --pf-c-text-input-group__text--before--BorderWidth: 0;
20760
+ --pf-c-text-input-group__text--after--BorderBottomWidth: 0;
20761
+ --pf-c-text-input-group--Color: var(--pf-c-text-input-group--m-disabled--Color);
20762
+ --pf-c-text-input-group__icon--Color: var(--pf-c-text-input-group--m-disabled--Color);
20763
+ --pf-c-text-input-group--BackgroundColor: var(--pf-c-text-input-group--m-disabled--BackgroundColor);
20764
+ pointer-events: none;
20765
+ }
20766
+
20747
20767
  .pf-c-text-input-group__main {
20748
20768
  display: flex;
20749
20769
  flex: 1;