@patternfly/react-core 4.220.0 → 4.221.0

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 (52) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/components/InputGroup/InputGroup.d.ts +2 -0
  3. package/dist/esm/components/InputGroup/InputGroup.d.ts.map +1 -1
  4. package/dist/esm/components/InputGroup/InputGroup.js +3 -2
  5. package/dist/esm/components/InputGroup/InputGroup.js.map +1 -1
  6. package/dist/esm/components/SearchInput/AdvancedSearchMenu.d.ts +2 -0
  7. package/dist/esm/components/SearchInput/AdvancedSearchMenu.d.ts.map +1 -1
  8. package/dist/esm/components/SearchInput/AdvancedSearchMenu.js +12 -10
  9. package/dist/esm/components/SearchInput/AdvancedSearchMenu.js.map +1 -1
  10. package/dist/esm/components/SearchInput/SearchInput.d.ts +8 -0
  11. package/dist/esm/components/SearchInput/SearchInput.d.ts.map +1 -1
  12. package/dist/esm/components/SearchInput/SearchInput.js +38 -28
  13. package/dist/esm/components/SearchInput/SearchInput.js.map +1 -1
  14. package/dist/esm/components/TextInputGroup/TextInputGroup.d.ts +2 -0
  15. package/dist/esm/components/TextInputGroup/TextInputGroup.d.ts.map +1 -1
  16. package/dist/esm/components/TextInputGroup/TextInputGroup.js +3 -2
  17. package/dist/esm/components/TextInputGroup/TextInputGroup.js.map +1 -1
  18. package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts +2 -0
  19. package/dist/esm/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  20. package/dist/esm/components/TextInputGroup/TextInputGroupMain.js +3 -2
  21. package/dist/esm/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  22. package/dist/js/components/InputGroup/InputGroup.d.ts +2 -0
  23. package/dist/js/components/InputGroup/InputGroup.d.ts.map +1 -1
  24. package/dist/js/components/InputGroup/InputGroup.js +3 -2
  25. package/dist/js/components/InputGroup/InputGroup.js.map +1 -1
  26. package/dist/js/components/SearchInput/AdvancedSearchMenu.d.ts +2 -0
  27. package/dist/js/components/SearchInput/AdvancedSearchMenu.d.ts.map +1 -1
  28. package/dist/js/components/SearchInput/AdvancedSearchMenu.js +12 -10
  29. package/dist/js/components/SearchInput/AdvancedSearchMenu.js.map +1 -1
  30. package/dist/js/components/SearchInput/SearchInput.d.ts +8 -0
  31. package/dist/js/components/SearchInput/SearchInput.d.ts.map +1 -1
  32. package/dist/js/components/SearchInput/SearchInput.js +38 -28
  33. package/dist/js/components/SearchInput/SearchInput.js.map +1 -1
  34. package/dist/js/components/TextInputGroup/TextInputGroup.d.ts +2 -0
  35. package/dist/js/components/TextInputGroup/TextInputGroup.d.ts.map +1 -1
  36. package/dist/js/components/TextInputGroup/TextInputGroup.js +3 -2
  37. package/dist/js/components/TextInputGroup/TextInputGroup.js.map +1 -1
  38. package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts +2 -0
  39. package/dist/js/components/TextInputGroup/TextInputGroupMain.d.ts.map +1 -1
  40. package/dist/js/components/TextInputGroup/TextInputGroupMain.js +3 -2
  41. package/dist/js/components/TextInputGroup/TextInputGroupMain.js.map +1 -1
  42. package/dist/umd/react-core.js +323 -289
  43. package/dist/umd/react-core.min.js +6 -6
  44. package/package.json +5 -5
  45. package/src/components/InputGroup/InputGroup.tsx +7 -1
  46. package/src/components/SearchInput/AdvancedSearchMenu.tsx +24 -18
  47. package/src/components/SearchInput/SearchInput.tsx +130 -113
  48. package/src/components/SearchInput/__tests__/SearchInput.test.tsx +1 -1
  49. package/src/components/SearchInput/__tests__/__snapshots__/SearchInput.test.tsx.snap +297 -301
  50. package/src/components/SearchInput/examples/SearchInput.md +5 -2
  51. package/src/components/TextInputGroup/TextInputGroup.tsx +18 -7
  52. package/src/components/TextInputGroup/TextInputGroupMain.tsx +5 -0
@@ -123,7 +123,7 @@
123
123
  };
124
124
 
125
125
  /*!
126
- * tabbable 5.3.2
126
+ * tabbable 5.3.3
127
127
  * @license MIT, https://github.com/focus-trap/tabbable/blob/master/LICENSE
128
128
  */
129
129
  var candidateSelectors = ['input', 'select', 'textarea', 'a[href]', 'button', '[tabindex]:not(slot)', 'audio[controls]', 'video[controls]', '[contenteditable]:not([contenteditable="false"])', 'details>summary:first-of-type', 'details'];
@@ -158,6 +158,12 @@
158
158
  * @returns {ShadowRoot|boolean} ShadowRoot if available or boolean indicating if a shadowRoot is attached but not available.
159
159
  */
160
160
 
161
+ /**
162
+ * @callback ShadowRootFilter
163
+ * @param {Element} shadowHostNode the element which contains shadow content
164
+ * @returns {boolean} true if a shadow root could potentially contain valid candidates.
165
+ */
166
+
161
167
  /**
162
168
  * @typedef {Object} CandidatesScope
163
169
  * @property {Element} scope contains inner candidates
@@ -171,6 +177,7 @@
171
177
  * or a boolean stating if it has an undisclosed shadow root
172
178
  * @property {(node: Element) => boolean} filter filter candidates
173
179
  * @property {boolean} flatten if true then result will flatten any CandidatesScope into the returned list
180
+ * @property {ShadowRootFilter} shadowRootFilter filter shadow roots;
174
181
  */
175
182
 
176
183
  /**
@@ -213,8 +220,9 @@
213
220
 
214
221
  var shadowRoot = element.shadowRoot || // check for an undisclosed shadow
215
222
  typeof options.getShadowRoot === 'function' && options.getShadowRoot(element);
223
+ var validShadowRoot = !options.shadowRootFilter || options.shadowRootFilter(element);
216
224
 
217
- if (shadowRoot) {
225
+ if (shadowRoot && validShadowRoot) {
218
226
  // add shadow dom scope IIF a shadow root node was given; otherwise, an undisclosed
219
227
  // shadow exists, so look at light dom children as fallback BUT create a scope for any
220
228
  // child candidates found because they're likely slotted elements (elements that are
@@ -495,6 +503,18 @@
495
503
 
496
504
  return true;
497
505
  };
506
+
507
+ var isValidShadowRootTabbable = function isValidShadowRootTabbable(shadowHostNode) {
508
+ var tabIndex = parseInt(shadowHostNode.getAttribute('tabindex'), 10);
509
+
510
+ if (isNaN(tabIndex) || tabIndex >= 0) {
511
+ return true;
512
+ } // If a custom element has an explicit negative tabindex,
513
+ // browsers will not allow tab targeting said element's children.
514
+
515
+
516
+ return false;
517
+ };
498
518
  /**
499
519
  * @param {Array.<Element|CandidatesScope>} candidates
500
520
  * @returns Element[]
@@ -536,7 +556,8 @@
536
556
  candidates = getCandidatesIteratively([el], options.includeContainer, {
537
557
  filter: isNodeMatchingSelectorTabbable.bind(null, options),
538
558
  flatten: false,
539
- getShadowRoot: options.getShadowRoot
559
+ getShadowRoot: options.getShadowRoot,
560
+ shadowRootFilter: isValidShadowRootTabbable
540
561
  });
541
562
  } else {
542
563
  candidates = getCandidates(el, options.includeContainer, isNodeMatchingSelectorTabbable.bind(null, options));
@@ -9583,10 +9604,11 @@
9583
9604
  TextArea.displayName = 'TextArea';
9584
9605
 
9585
9606
  const InputGroup = (_a) => {
9586
- var { className = '', children } = _a, props = __rest$1(_a, ["className", "children"]);
9607
+ var { className = '', children, innerRef } = _a, props = __rest$1(_a, ["className", "children", "innerRef"]);
9587
9608
  const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
9588
9609
  const idItem = React__namespace.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
9589
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$P.inputGroup, className) }, props), idItem
9610
+ const inputGroupRef = innerRef || React__namespace.useRef(null);
9611
+ return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$P.inputGroup, className) }, props), idItem
9590
9612
  ? React__namespace.Children.map(children, (child) => formCtrls.includes(child.type.displayName)
9591
9613
  ? React__namespace.cloneElement(child, { 'aria-describedby': idItem.props.id })
9592
9614
  : child)
@@ -18093,7 +18115,52 @@
18093
18115
  "searchInputUtilities": "pf-c-search-input__utilities"
18094
18116
  };
18095
18117
 
18096
- const AdvancedSearchMenu = ({ parentRef, parentInputRef, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, getAttrValueMap, onChange, onSearch, onClear, resetButtonLabel = 'Reset', submitSearchButtonLabel = 'Search', isSearchMenuOpen, onToggleAdvancedMenu }) => {
18118
+ Promise.resolve().then(function () { return panel; });
18119
+ var styles$m = {
18120
+ "modifiers": {
18121
+ "bordered": "pf-m-bordered",
18122
+ "raised": "pf-m-raised",
18123
+ "scrollable": "pf-m-scrollable"
18124
+ },
18125
+ "panel": "pf-c-panel",
18126
+ "panelFooter": "pf-c-panel__footer",
18127
+ "panelHeader": "pf-c-panel__header",
18128
+ "panelMain": "pf-c-panel__main",
18129
+ "panelMainBody": "pf-c-panel__main-body"
18130
+ };
18131
+
18132
+ const PanelBase = (_a) => {
18133
+ var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
18134
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.panel, variant === 'raised' && styles$m.modifiers.raised, variant === 'bordered' && styles$m.modifiers.bordered, isScrollable && styles$m.modifiers.scrollable, className), ref: innerRef }, props), children));
18135
+ };
18136
+ const Panel = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
18137
+ Panel.displayName = 'Panel';
18138
+
18139
+ const PanelMain = (_a) => {
18140
+ var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
18141
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.panelMain, className), style: { '--pf-c-panel__main--MaxHeight': maxHeight } }, props), children));
18142
+ };
18143
+ PanelMain.displayName = 'PanelMain';
18144
+
18145
+ const PanelMainBody = (_a) => {
18146
+ var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
18147
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.panelMainBody, className) }, props), children));
18148
+ };
18149
+ PanelMainBody.displayName = 'PanelMainBody';
18150
+
18151
+ const PanelHeader = (_a) => {
18152
+ var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
18153
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.panelHeader, className) }, props), children));
18154
+ };
18155
+ PanelHeader.displayName = 'PanelHeader';
18156
+
18157
+ const PanelFooter = (_a) => {
18158
+ var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
18159
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$m.panelFooter, className) }, props), children));
18160
+ };
18161
+ PanelFooter.displayName = 'PanelFooter';
18162
+
18163
+ const AdvancedSearchMenu = ({ className, parentRef, parentInputRef, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, getAttrValueMap, onChange, onSearch, onClear, resetButtonLabel = 'Reset', submitSearchButtonLabel = 'Search', isSearchMenuOpen, onToggleAdvancedMenu }) => {
18097
18164
  const firstAttrRef = React__namespace.useRef(null);
18098
18165
  const [putFocusBackOnInput, setPutFocusBackOnInput] = React__namespace.useState(false);
18099
18166
  React__namespace.useEffect(() => {
@@ -18189,19 +18256,73 @@
18189
18256
  React__namespace.createElement(TextInput, { type: "text", id: randomId, value: getValue('haswords'), onChange: (value, evt) => handleValueChange('haswords', value, evt) })))));
18190
18257
  return formGroups;
18191
18258
  };
18192
- return isSearchMenuOpen ? (React__namespace.createElement("div", { className: styles$n.searchInputMenu },
18193
- React__namespace.createElement("div", { className: styles$n.searchInputMenuBody },
18194
- React__namespace.createElement(Form, null,
18195
- buildFormGroups(),
18196
- formAdditionalItems ? formAdditionalItems : null,
18197
- React__namespace.createElement(ActionGroup, null,
18198
- React__namespace.createElement(Button, { variant: "primary", type: "submit", onClick: onSearchHandler }, submitSearchButtonLabel),
18199
- !!onClear && (React__namespace.createElement(Button, { variant: "link", type: "reset", onClick: onClear }, resetButtonLabel))))))) : null;
18259
+ return isSearchMenuOpen ? (React__namespace.createElement(Panel, { variant: "raised", className: css(className) },
18260
+ React__namespace.createElement(PanelMain, null,
18261
+ React__namespace.createElement(PanelMainBody, null,
18262
+ React__namespace.createElement(Form, null,
18263
+ buildFormGroups(),
18264
+ formAdditionalItems ? formAdditionalItems : null,
18265
+ React__namespace.createElement(ActionGroup, null,
18266
+ React__namespace.createElement(Button, { variant: "primary", type: "submit", onClick: onSearchHandler, isDisabled: !value }, submitSearchButtonLabel),
18267
+ !!onClear && (React__namespace.createElement(Button, { variant: "link", type: "reset", onClick: onClear }, resetButtonLabel)))))))) : null;
18200
18268
  };
18201
18269
  AdvancedSearchMenu.displayName = 'SearchInput';
18202
18270
 
18271
+ Promise.resolve().then(function () { return textInputGroup; });
18272
+ var styles$l = {
18273
+ "button": "pf-c-button",
18274
+ "chipGroup": "pf-c-chip-group",
18275
+ "chipGroupList": "pf-c-chip-group__list",
18276
+ "modifiers": {
18277
+ "disabled": "pf-m-disabled",
18278
+ "plain": "pf-m-plain",
18279
+ "icon": "pf-m-icon",
18280
+ "hint": "pf-m-hint"
18281
+ },
18282
+ "textInputGroup": "pf-c-text-input-group",
18283
+ "textInputGroupGroup": "pf-c-text-input-group__group",
18284
+ "textInputGroupIcon": "pf-c-text-input-group__icon",
18285
+ "textInputGroupMain": "pf-c-text-input-group__main",
18286
+ "textInputGroupText": "pf-c-text-input-group__text",
18287
+ "textInputGroupTextInput": "pf-c-text-input-group__text-input",
18288
+ "textInputGroupUtilities": "pf-c-text-input-group__utilities"
18289
+ };
18290
+
18291
+ const TextInputGroupContext = React__namespace.createContext({
18292
+ isDisabled: false
18293
+ });
18294
+ const TextInputGroup = (_a) => {
18295
+ var { children, className, isDisabled, innerRef } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "innerRef"]);
18296
+ const textInputGroupRef = innerRef || React__namespace.useRef(null);
18297
+ return (React__namespace.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
18298
+ React__namespace.createElement("div", Object.assign({ ref: textInputGroupRef, className: css(styles$l.textInputGroup, isDisabled && styles$l.modifiers.disabled, className) }, props), children)));
18299
+ };
18300
+ TextInputGroup.displayName = 'TextInputGroup';
18301
+
18302
+ const TextInputGroupMain = (_a) => {
18303
+ var { children, className, icon, type = 'text', hint, onChange = () => undefined, onFocus, onBlur, 'aria-label': ariaLabel = 'Type to filter', value: inputValue, placeholder: inputPlaceHolder, innerRef } = _a, props = __rest$1(_a, ["children", "className", "icon", "type", "hint", "onChange", "onFocus", "onBlur", 'aria-label', "value", "placeholder", "innerRef"]);
18304
+ const { isDisabled } = React__namespace.useContext(TextInputGroupContext);
18305
+ const textInputGroupInputInputRef = innerRef || React__namespace.useRef(null);
18306
+ const handleChange = (event) => {
18307
+ onChange(event.currentTarget.value, event);
18308
+ };
18309
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$l.textInputGroupMain, icon && styles$l.modifiers.icon, className) }, props),
18310
+ children,
18311
+ React__namespace.createElement("span", { className: css(styles$l.textInputGroupText) },
18312
+ hint && (React__namespace.createElement("input", { className: css(styles$l.textInputGroupTextInput, styles$l.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
18313
+ icon && React__namespace.createElement("span", { className: css(styles$l.textInputGroupIcon) }, icon),
18314
+ React__namespace.createElement("input", { ref: textInputGroupInputInputRef, type: type, className: css(styles$l.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder }))));
18315
+ };
18316
+ TextInputGroupMain.displayName = 'TextInputGroupMain';
18317
+
18318
+ const TextInputGroupUtilities = (_a) => {
18319
+ var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
18320
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$l.textInputGroupUtilities, className) }, props), children));
18321
+ };
18322
+ TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
18323
+
18203
18324
  const SearchInputBase = (_a) => {
18204
- var { className, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, placeholder, hint, onChange, onSearch, onClear, onToggleAdvancedSearch, isAdvancedSearchOpen, resultsCount, onNextClick, onPreviousClick, innerRef, 'aria-label': ariaLabel = 'Search input', resetButtonLabel = 'Reset', openMenuButtonAriaLabel = 'Open advanced search', submitSearchButtonLabel = 'Search', isDisabled = false } = _a, props = __rest$1(_a, ["className", "value", "attributes", "formAdditionalItems", "hasWordsAttrLabel", "advancedSearchDelimiter", "placeholder", "hint", "onChange", "onSearch", "onClear", "onToggleAdvancedSearch", "isAdvancedSearchOpen", "resultsCount", "onNextClick", "onPreviousClick", "innerRef", 'aria-label', "resetButtonLabel", "openMenuButtonAriaLabel", "submitSearchButtonLabel", "isDisabled"]);
18325
+ var { className, value = '', attributes = [], formAdditionalItems, hasWordsAttrLabel = 'Has words', advancedSearchDelimiter, placeholder, hint, onChange, onSearch, onClear, onToggleAdvancedSearch, isAdvancedSearchOpen, resultsCount, onNextClick, onPreviousClick, innerRef, 'aria-label': ariaLabel = 'Search input', resetButtonLabel = 'Reset', openMenuButtonAriaLabel = 'Open advanced search', previousNavigationButtonAriaLabel = 'Previous', isPreviousNavigationButtonDisabled = false, isNextNavigationButtonDisabled = false, nextNavigationButtonAriaLabel = 'Next', submitSearchButtonLabel = 'Search', isDisabled = false } = _a, props = __rest$1(_a, ["className", "value", "attributes", "formAdditionalItems", "hasWordsAttrLabel", "advancedSearchDelimiter", "placeholder", "hint", "onChange", "onSearch", "onClear", "onToggleAdvancedSearch", "isAdvancedSearchOpen", "resultsCount", "onNextClick", "onPreviousClick", "innerRef", 'aria-label', "resetButtonLabel", "openMenuButtonAriaLabel", "previousNavigationButtonAriaLabel", "isPreviousNavigationButtonDisabled", "isNextNavigationButtonDisabled", "nextNavigationButtonAriaLabel", "submitSearchButtonLabel", "isDisabled"]);
18205
18326
  const [isSearchMenuOpen, setIsSearchMenuOpen] = React__namespace.useState(false);
18206
18327
  const [searchValue, setSearchValue] = React__namespace.useState(value);
18207
18328
  const searchInputRef = React__namespace.useRef(null);
@@ -18218,11 +18339,11 @@
18218
18339
  React__namespace.useEffect(() => {
18219
18340
  setIsSearchMenuOpen(isAdvancedSearchOpen);
18220
18341
  }, [isAdvancedSearchOpen]);
18221
- const onChangeHandler = (event) => {
18342
+ const onChangeHandler = (value, event) => {
18222
18343
  if (onChange) {
18223
- onChange(event.currentTarget.value, event);
18344
+ onChange(value, event);
18224
18345
  }
18225
- setSearchValue(event.currentTarget.value);
18346
+ setSearchValue(value);
18226
18347
  };
18227
18348
  const onToggle = (e) => {
18228
18349
  const isOpen = !isSearchMenuOpen;
@@ -18267,30 +18388,39 @@
18267
18388
  searchInputInputRef.current.focus();
18268
18389
  }
18269
18390
  };
18270
- return (React__namespace.createElement("div", Object.assign({ className: css(className, styles$n.searchInput), ref: searchInputRef }, props),
18271
- React__namespace.createElement(InputGroup, null,
18272
- React__namespace.createElement("div", { className: css(styles$n.searchInputBar) },
18273
- React__namespace.createElement("span", { className: css(styles$n.searchInputText) },
18274
- React__namespace.createElement("span", { className: css(styles$n.searchInputIcon) },
18275
- React__namespace.createElement(SearchIcon$1, null)),
18276
- hint && (React__namespace.createElement("input", { className: css(styles$n.searchInputTextInput, styles$n.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
18277
- React__namespace.createElement("input", { ref: searchInputInputRef, className: css(styles$n.searchInputTextInput), value: searchValue, placeholder: placeholder, "aria-label": ariaLabel, onKeyDown: onEnter, onChange: onChangeHandler, disabled: isDisabled })),
18278
- value && (React__namespace.createElement("span", { className: css(styles$n.searchInputUtilities) },
18279
- resultsCount && (React__namespace.createElement("span", { className: css(styles$n.searchInputCount) },
18280
- React__namespace.createElement(Badge, { isRead: true }, resultsCount))),
18281
- !!onNextClick && !!onPreviousClick && (React__namespace.createElement("span", { className: css(styles$n.searchInputNav) },
18282
- React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": "Previous", isDisabled: isDisabled, onClick: onPreviousClick },
18283
- React__namespace.createElement(AngleUpIcon$1, null)),
18284
- React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": "Next", isDisabled: isDisabled, onClick: onNextClick },
18285
- React__namespace.createElement(AngleDownIcon$1, null)))),
18286
- !!onClear && (React__namespace.createElement("span", { className: "pf-c-search-input__clear" },
18287
- React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled, "aria-label": resetButtonLabel, onClick: onClearInput },
18288
- React__namespace.createElement(TimesIcon$1, null))))))),
18391
+ const buildSearchTextInputGroup = (_a = {}) => {
18392
+ var searchInputProps = __rest$1(_a, []);
18393
+ return (React__namespace.createElement(TextInputGroup, Object.assign({ isDisabled: isDisabled }, searchInputProps),
18394
+ React__namespace.createElement(TextInputGroupMain, { hint: hint, icon: React__namespace.createElement(SearchIcon$1, null), innerRef: searchInputInputRef, value: searchValue, placeholder: placeholder, "aria-label": ariaLabel, onKeyDown: onEnter, onChange: onChangeHandler }),
18395
+ value && (React__namespace.createElement(TextInputGroupUtilities, null,
18396
+ resultsCount && React__namespace.createElement(Badge, { isRead: true }, resultsCount),
18397
+ !!onNextClick && !!onPreviousClick && (React__namespace.createElement("div", { className: "pf-c-text-input-group__group" },
18398
+ React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": previousNavigationButtonAriaLabel, isDisabled: isDisabled || isPreviousNavigationButtonDisabled, onClick: onPreviousClick },
18399
+ React__namespace.createElement(AngleUpIcon$1, null)),
18400
+ React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, "aria-label": nextNavigationButtonAriaLabel, isDisabled: isDisabled || isNextNavigationButtonDisabled, onClick: onNextClick },
18401
+ React__namespace.createElement(AngleDownIcon$1, null)))),
18402
+ !!onClear && (React__namespace.createElement(Button, { variant: exports.ButtonVariant.plain, isDisabled: isDisabled, "aria-label": resetButtonLabel, onClick: onClearInput },
18403
+ React__namespace.createElement(TimesIcon$1, null)))))));
18404
+ };
18405
+ const buildSearchTextInputGroupWithExtraButtons = (_a = {}) => {
18406
+ var searchInputProps = __rest$1(_a, []);
18407
+ return (React__namespace.createElement(InputGroup, Object.assign({}, searchInputProps),
18408
+ buildSearchTextInputGroup(),
18289
18409
  (attributes.length > 0 || onToggleAdvancedSearch) && (React__namespace.createElement(Button, { className: isSearchMenuOpen && 'pf-m-expanded', variant: exports.ButtonVariant.control, "aria-label": openMenuButtonAriaLabel, onClick: onToggle, isDisabled: isDisabled, "aria-expanded": isSearchMenuOpen },
18290
18410
  React__namespace.createElement(CaretDownIcon$1, null))),
18291
- !!onSearch && (React__namespace.createElement(Button, { type: "submit", variant: exports.ButtonVariant.control, "aria-label": submitSearchButtonLabel, onClick: onSearchHandler, isDisabled: isDisabled },
18292
- React__namespace.createElement(ArrowRightIcon$1, null)))),
18293
- attributes.length > 0 && (React__namespace.createElement(AdvancedSearchMenu, { value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen }))));
18411
+ !!onSearch && (React__namespace.createElement(Button, { type: "submit", variant: exports.ButtonVariant.control, "aria-label": submitSearchButtonLabel, onClick: onSearchHandler, isDisabled: isDisabled || !searchValue },
18412
+ React__namespace.createElement(ArrowRightIcon$1, null)))));
18413
+ };
18414
+ const searchInputProps = Object.assign(Object.assign({}, props), { className: className && css(className), innerRef: searchInputRef });
18415
+ if (!!onSearch || attributes.length > 0 || !!onToggleAdvancedSearch) {
18416
+ if (attributes.length > 0) {
18417
+ return (React__namespace.createElement("div", Object.assign({ className: css(className, styles$n.searchInput), ref: searchInputRef }, props),
18418
+ buildSearchTextInputGroupWithExtraButtons(),
18419
+ React__namespace.createElement(AdvancedSearchMenu, { className: styles$n.searchInputMenu, value: value, parentRef: searchInputRef, parentInputRef: searchInputInputRef, onSearch: onSearch, onClear: onClear, onChange: onChange, onToggleAdvancedMenu: onToggle, resetButtonLabel: resetButtonLabel, submitSearchButtonLabel: submitSearchButtonLabel, attributes: attributes, formAdditionalItems: formAdditionalItems, hasWordsAttrLabel: hasWordsAttrLabel, advancedSearchDelimiter: advancedSearchDelimiter, getAttrValueMap: getAttrValueMap, isSearchMenuOpen: isSearchMenuOpen })));
18420
+ }
18421
+ return buildSearchTextInputGroupWithExtraButtons(Object.assign({}, searchInputProps));
18422
+ }
18423
+ return buildSearchTextInputGroup(searchInputProps);
18294
18424
  };
18295
18425
  SearchInputBase.displayName = 'SearchInputBase';
18296
18426
  const SearchInput = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(SearchInputBase, Object.assign({}, props, { innerRef: ref }))));
@@ -18316,7 +18446,7 @@
18316
18446
  SidebarPanel.displayName = 'SidebarPanel';
18317
18447
 
18318
18448
  Promise.resolve().then(function () { return simpleList; });
18319
- var styles$m = {
18449
+ var styles$k = {
18320
18450
  "modifiers": {
18321
18451
  "current": "pf-m-current"
18322
18452
  },
@@ -18328,8 +18458,8 @@
18328
18458
 
18329
18459
  const SimpleListGroup = (_a) => {
18330
18460
  var { children = null, className = '', title = '', titleClassName = '', id = '' } = _a, props = __rest$1(_a, ["children", "className", "title", "titleClassName", "id"]);
18331
- return (React__namespace.createElement("section", Object.assign({ className: css(styles$m.simpleListSection) }, props),
18332
- React__namespace.createElement("h2", { id: id, className: css(styles$m.simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
18461
+ return (React__namespace.createElement("section", Object.assign({ className: css(styles$k.simpleListSection) }, props),
18462
+ React__namespace.createElement("h2", { id: id, className: css(styles$k.simpleListTitle, titleClassName), "aria-hidden": "true" }, title),
18333
18463
  React__namespace.createElement("ul", { className: css(className), "aria-labelledby": id }, children)));
18334
18464
  };
18335
18465
  SimpleListGroup.displayName = 'SimpleListGroup';
@@ -18359,7 +18489,7 @@
18359
18489
  updateCurrentRef: this.handleCurrentUpdate,
18360
18490
  isControlled
18361
18491
  } },
18362
- React__namespace.createElement("div", Object.assign({ className: css(styles$m.simpleList, className) }, props),
18492
+ React__namespace.createElement("div", Object.assign({ className: css(styles$k.simpleList, className) }, props),
18363
18493
  isGrouped && children,
18364
18494
  !isGrouped && React__namespace.createElement("ul", null, children))));
18365
18495
  }
@@ -18392,7 +18522,7 @@
18392
18522
  href
18393
18523
  };
18394
18524
  return (React__namespace.createElement("li", Object.assign({ className: css(className) }, props),
18395
- React__namespace.createElement(Component, Object.assign({ className: css(styles$m.simpleListItemLink, isCurrentItem && styles$m.modifiers.current, componentClassName), onClick: (evt) => {
18525
+ React__namespace.createElement(Component, Object.assign({ className: css(styles$k.simpleListItemLink, isCurrentItem && styles$k.modifiers.current, componentClassName), onClick: (evt) => {
18396
18526
  onClick(evt);
18397
18527
  updateCurrentRef(this.ref, this.props);
18398
18528
  }, ref: this.ref }, componentProps, additionalComponentProps), children)));
@@ -18413,7 +18543,7 @@
18413
18543
  };
18414
18544
 
18415
18545
  Promise.resolve().then(function () { return skeleton; });
18416
- var styles$l = {
18546
+ var styles$j = {
18417
18547
  "modifiers": {
18418
18548
  "circle": "pf-m-circle",
18419
18549
  "square": "pf-m-square",
@@ -18448,9 +18578,9 @@
18448
18578
  const Skeleton = (_a) => {
18449
18579
  var { className, width, height, fontSize, shape, screenreaderText } = _a, props = __rest$1(_a, ["className", "width", "height", "fontSize", "shape", "screenreaderText"]);
18450
18580
  const fontHeightClassName = fontSize
18451
- ? Object.values(styles$l.modifiers).find(key => key === `pf-m-text-${fontSize}`)
18581
+ ? Object.values(styles$j.modifiers).find(key => key === `pf-m-text-${fontSize}`)
18452
18582
  : undefined;
18453
- return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$l.skeleton, fontSize && fontHeightClassName, shape === 'circle' && styles$l.modifiers.circle, shape === 'square' && styles$l.modifiers.square, className) }, ((width || height) && {
18583
+ return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$j.skeleton, fontSize && fontHeightClassName, shape === 'circle' && styles$j.modifiers.circle, shape === 'square' && styles$j.modifiers.square, className) }, ((width || height) && {
18454
18584
  style: Object.assign({ '--pf-c-skeleton--Width': width ? width : undefined, '--pf-c-skeleton--Height': height ? height : undefined }, props.style)
18455
18585
  })),
18456
18586
  React__namespace.createElement("span", { className: "pf-u-screen-reader" }, screenreaderText)));
@@ -18458,7 +18588,7 @@
18458
18588
  Skeleton.displayName = 'Skeleton';
18459
18589
 
18460
18590
  Promise.resolve().then(function () { return skipToContent; });
18461
- var styles$k = {
18591
+ var styles$i = {
18462
18592
  "skipToContent": "pf-c-skip-to-content"
18463
18593
  };
18464
18594
 
@@ -18475,7 +18605,7 @@
18475
18605
  render() {
18476
18606
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18477
18607
  const _a = this.props, { children, className, href, show, type } = _a, rest = __rest$1(_a, ["children", "className", "href", "show", "type"]);
18478
- return (React__namespace.createElement("a", Object.assign({}, rest, { className: css(buttonStyles.button, buttonStyles.modifiers.primary, styles$k.skipToContent, className), ref: this.componentRef, href: href }), children));
18608
+ return (React__namespace.createElement("a", Object.assign({}, rest, { className: css(buttonStyles.button, buttonStyles.modifiers.primary, styles$i.skipToContent, className), ref: this.componentRef, href: href }), children));
18479
18609
  }
18480
18610
  }
18481
18611
  SkipToContent.displayName = 'SkipToContent';
@@ -18484,7 +18614,7 @@
18484
18614
  };
18485
18615
 
18486
18616
  Promise.resolve().then(function () { return slider; });
18487
- var styles$j = {
18617
+ var styles$h = {
18488
18618
  "formControl": "pf-c-form-control",
18489
18619
  "inputGroup": "pf-c-input-group",
18490
18620
  "inputGroupText": "pf-c-input-group__text",
@@ -18509,9 +18639,9 @@
18509
18639
  const SliderStep = (_a) => {
18510
18640
  var { className, label, value, isTickHidden = false, isLabelHidden = false, isActive = false } = _a, props = __rest$1(_a, ["className", "label", "value", "isTickHidden", "isLabelHidden", "isActive"]);
18511
18641
  const style = { '--pf-c-slider__step--Left': `${value}%` };
18512
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$j.sliderStep, isActive && styles$j.modifiers.active, className), style: style }, props),
18513
- !isTickHidden && React__namespace.createElement("div", { className: css(styles$j.sliderStepTick) }),
18514
- !isLabelHidden && label && React__namespace.createElement("div", { className: css(styles$j.sliderStepLabel) }, label)));
18642
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$h.sliderStep, isActive && styles$h.modifiers.active, className), style: style }, props),
18643
+ !isTickHidden && React__namespace.createElement("div", { className: css(styles$h.sliderStepTick) }),
18644
+ !isLabelHidden && label && React__namespace.createElement("div", { className: css(styles$h.sliderStepLabel) }, label)));
18515
18645
  };
18516
18646
  SliderStep.displayName = 'SliderStep';
18517
18647
 
@@ -18697,7 +18827,7 @@
18697
18827
  }
18698
18828
  };
18699
18829
  const displayInput = () => {
18700
- const textInput = (React__namespace.createElement(TextInput, { className: css(styles$j.formControl), isDisabled: isDisabled, type: "number", value: localInputValue, "aria-label": inputAriaLabel, onKeyDown: handleKeyPressOnInput, onChange: onChangeHandler, onClick: onInputFocus, onFocus: onInputFocus, onBlur: onBlur }));
18830
+ const textInput = (React__namespace.createElement(TextInput, { className: css(styles$h.formControl), isDisabled: isDisabled, type: "number", value: localInputValue, "aria-label": inputAriaLabel, onKeyDown: handleKeyPressOnInput, onChange: onChangeHandler, onClick: onInputFocus, onFocus: onInputFocus, onBlur: onBlur }));
18701
18831
  if (inputLabel) {
18702
18832
  return (React__namespace.createElement(InputGroup, null,
18703
18833
  textInput,
@@ -18723,28 +18853,28 @@
18723
18853
  }
18724
18854
  return builtSteps;
18725
18855
  };
18726
- const thumbComponent = (React__namespace.createElement("div", { className: css(styles$j.sliderThumb), ref: thumbRef, tabIndex: isDisabled ? -1 : 0, role: "slider", "aria-valuemin": customSteps ? customSteps[0].value : min, "aria-valuemax": customSteps ? customSteps[customSteps.length - 1].value : max, "aria-valuenow": localValue, "aria-valuetext": findAriaTextValue(), "aria-label": thumbAriaLabel, "aria-disabled": isDisabled, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, onMouseDown: !isDisabled ? handleMouseDown : null, onTouchStart: !isDisabled ? handleTouchStart : null, onKeyDown: !isDisabled ? handleThumbKeys : null, onClick: !isDisabled ? onThumbClick : null }));
18727
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$j.slider, className, isDisabled && styles$j.modifiers.disabled), style: Object.assign(Object.assign({}, style), inputStyle) }, props),
18728
- leftActions && React__namespace.createElement("div", { className: css(styles$j.sliderActions) }, leftActions),
18729
- React__namespace.createElement("div", { className: css(styles$j.sliderMain) },
18730
- React__namespace.createElement("div", { className: css(styles$j.sliderRail), ref: sliderRailRef, onClick: !isDisabled ? onSliderRailClick : null },
18731
- React__namespace.createElement("div", { className: css(styles$j.sliderRailTrack) })),
18732
- customSteps && (React__namespace.createElement("div", { className: css(styles$j.sliderSteps), "aria-hidden": "true" }, customSteps.map(stepObj => {
18856
+ const thumbComponent = (React__namespace.createElement("div", { className: css(styles$h.sliderThumb), ref: thumbRef, tabIndex: isDisabled ? -1 : 0, role: "slider", "aria-valuemin": customSteps ? customSteps[0].value : min, "aria-valuemax": customSteps ? customSteps[customSteps.length - 1].value : max, "aria-valuenow": localValue, "aria-valuetext": findAriaTextValue(), "aria-label": thumbAriaLabel, "aria-disabled": isDisabled, "aria-describedby": ariaDescribedby, "aria-labelledby": ariaLabelledby, onMouseDown: !isDisabled ? handleMouseDown : null, onTouchStart: !isDisabled ? handleTouchStart : null, onKeyDown: !isDisabled ? handleThumbKeys : null, onClick: !isDisabled ? onThumbClick : null }));
18857
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$h.slider, className, isDisabled && styles$h.modifiers.disabled), style: Object.assign(Object.assign({}, style), inputStyle) }, props),
18858
+ leftActions && React__namespace.createElement("div", { className: css(styles$h.sliderActions) }, leftActions),
18859
+ React__namespace.createElement("div", { className: css(styles$h.sliderMain) },
18860
+ React__namespace.createElement("div", { className: css(styles$h.sliderRail), ref: sliderRailRef, onClick: !isDisabled ? onSliderRailClick : null },
18861
+ React__namespace.createElement("div", { className: css(styles$h.sliderRailTrack) })),
18862
+ customSteps && (React__namespace.createElement("div", { className: css(styles$h.sliderSteps), "aria-hidden": "true" }, customSteps.map(stepObj => {
18733
18863
  const minValue = customSteps[0].value;
18734
18864
  const maxValue = customSteps[customSteps.length - 1].value;
18735
18865
  const stepValue = getStepValue(stepObj.value, minValue, maxValue);
18736
18866
  return (React__namespace.createElement(SliderStep, { key: stepObj.value, value: stepValue, label: stepObj.label, isLabelHidden: stepObj.isLabelHidden, isActive: stepObj.value <= localValue }));
18737
18867
  }))),
18738
- !customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(styles$j.sliderSteps), "aria-hidden": "true" }, buildSteps())),
18868
+ !customSteps && (showTicks || showBoundaries) && (React__namespace.createElement("div", { className: css(styles$h.sliderSteps), "aria-hidden": "true" }, buildSteps())),
18739
18869
  hasTooltipOverThumb ? (React__namespace.createElement(Tooltip, { entryDelay: 0, content: findAriaTextValue() }, thumbComponent)) : (thumbComponent),
18740
- isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(styles$j.sliderValue, styles$j.modifiers.floating) }, displayInput()))),
18741
- isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(styles$j.sliderValue) }, displayInput()),
18742
- rightActions && React__namespace.createElement("div", { className: css(styles$j.sliderActions) }, rightActions)));
18870
+ isInputVisible && inputPosition === 'aboveThumb' && (React__namespace.createElement("div", { className: css(styles$h.sliderValue, styles$h.modifiers.floating) }, displayInput()))),
18871
+ isInputVisible && inputPosition === 'right' && React__namespace.createElement("div", { className: css(styles$h.sliderValue) }, displayInput()),
18872
+ rightActions && React__namespace.createElement("div", { className: css(styles$h.sliderActions) }, rightActions)));
18743
18873
  };
18744
18874
  Slider.displayName = 'Slider';
18745
18875
 
18746
18876
  Promise.resolve().then(function () { return _switch; });
18747
- var styles$i = {
18877
+ var styles$g = {
18748
18878
  "modifiers": {
18749
18879
  "reverse": "pf-m-reverse",
18750
18880
  "off": "pf-m-off",
@@ -18774,14 +18904,14 @@
18774
18904
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
18775
18905
  id, className, label, labelOff, isChecked, defaultChecked, hasCheckIcon, isDisabled, onChange, isReversed, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["id", "className", "label", "labelOff", "isChecked", "defaultChecked", "hasCheckIcon", "isDisabled", "onChange", "isReversed", "ouiaId", "ouiaSafe"]);
18776
18906
  const isAriaLabelledBy = props['aria-label'] === '';
18777
- return (React__namespace.createElement("label", Object.assign({ className: css(styles$i.switch, isReversed && styles$i.modifiers.reverse, className), htmlFor: this.id }, getOUIAProps(Switch.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)),
18778
- React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$i.switchInput), type: "checkbox", onChange: event => onChange(event.target.checked, event) }, ([true, false].includes(defaultChecked) && { defaultChecked }), (![true, false].includes(defaultChecked) && { checked: isChecked }), { disabled: isDisabled, "aria-labelledby": isAriaLabelledBy ? `${this.id}-on` : null }, props)),
18907
+ return (React__namespace.createElement("label", Object.assign({ className: css(styles$g.switch, isReversed && styles$g.modifiers.reverse, className), htmlFor: this.id }, getOUIAProps(Switch.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe)),
18908
+ React__namespace.createElement("input", Object.assign({ id: this.id, className: css(styles$g.switchInput), type: "checkbox", onChange: event => onChange(event.target.checked, event) }, ([true, false].includes(defaultChecked) && { defaultChecked }), (![true, false].includes(defaultChecked) && { checked: isChecked }), { disabled: isDisabled, "aria-labelledby": isAriaLabelledBy ? `${this.id}-on` : null }, props)),
18779
18909
  label !== undefined ? (React__namespace.createElement(React__namespace.Fragment, null,
18780
- React__namespace.createElement("span", { className: css(styles$i.switchToggle) }, hasCheckIcon && (React__namespace.createElement("span", { className: css(styles$i.switchToggleIcon), "aria-hidden": "true" },
18910
+ React__namespace.createElement("span", { className: css(styles$g.switchToggle) }, hasCheckIcon && (React__namespace.createElement("span", { className: css(styles$g.switchToggleIcon), "aria-hidden": "true" },
18781
18911
  React__namespace.createElement(CheckIcon$1, { noVerticalAlign: true })))),
18782
- React__namespace.createElement("span", { className: css(styles$i.switchLabel, styles$i.modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, "aria-hidden": "true" }, label),
18783
- React__namespace.createElement("span", { className: css(styles$i.switchLabel, styles$i.modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, "aria-hidden": "true" }, labelOff !== undefined ? labelOff : label))) : (React__namespace.createElement("span", { className: css(styles$i.switchToggle) },
18784
- React__namespace.createElement("div", { className: css(styles$i.switchToggleIcon), "aria-hidden": "true" },
18912
+ React__namespace.createElement("span", { className: css(styles$g.switchLabel, styles$g.modifiers.on), id: isAriaLabelledBy ? `${this.id}-on` : null, "aria-hidden": "true" }, label),
18913
+ React__namespace.createElement("span", { className: css(styles$g.switchLabel, styles$g.modifiers.off), id: isAriaLabelledBy ? `${this.id}-off` : null, "aria-hidden": "true" }, labelOff !== undefined ? labelOff : label))) : (React__namespace.createElement("span", { className: css(styles$g.switchToggle) },
18914
+ React__namespace.createElement("div", { className: css(styles$g.switchToggleIcon), "aria-hidden": "true" },
18785
18915
  React__namespace.createElement(CheckIcon$1, { noVerticalAlign: true }))))));
18786
18916
  }
18787
18917
  }
@@ -18795,7 +18925,7 @@
18795
18925
  };
18796
18926
 
18797
18927
  Promise.resolve().then(function () { return tabs; });
18798
- var styles$h = {
18928
+ var styles$f = {
18799
18929
  "button": "pf-c-button",
18800
18930
  "modifiers": {
18801
18931
  "fill": "pf-m-fill",
@@ -18917,12 +19047,12 @@
18917
19047
  return null;
18918
19048
  }
18919
19049
  };
18920
- const tabButton = (React__namespace.createElement(TabButton, Object.assign({ parentInnerRef: innerRef, className: css(styles$h.tabsLink, isDisabled && href && styles$h.modifiers.disabled, isAriaDisabled && styles$h.modifiers.ariaDisabled), disabled: isButtonElement ? isDisabled : null, "aria-disabled": isDisabled || isAriaDisabled, tabIndex: getDefaultTabIdx(), onClick: (event) => handleTabClick(event, eventKey, tabContentRef) }, (isAriaDisabled ? preventedEvents : null), { id: `pf-tab-${eventKey}-${childId || uniqueId}`, "aria-controls": ariaControls, tabContentRef: tabContentRef, ouiaId: childOuiaId, href: href, role: "tab", "aria-selected": eventKey === localActiveKey }, props), title));
18921
- return (React__namespace.createElement("li", { className: css(styles$h.tabsItem, eventKey === localActiveKey && styles$h.modifiers.current, handleTabClose && styles$h.modifiers.action, handleTabClose && (isDisabled || isAriaDisabled) && styles$h.modifiers.disabled, childClassName), role: "presentation" },
19050
+ const tabButton = (React__namespace.createElement(TabButton, Object.assign({ parentInnerRef: innerRef, className: css(styles$f.tabsLink, isDisabled && href && styles$f.modifiers.disabled, isAriaDisabled && styles$f.modifiers.ariaDisabled), disabled: isButtonElement ? isDisabled : null, "aria-disabled": isDisabled || isAriaDisabled, tabIndex: getDefaultTabIdx(), onClick: (event) => handleTabClick(event, eventKey, tabContentRef) }, (isAriaDisabled ? preventedEvents : null), { id: `pf-tab-${eventKey}-${childId || uniqueId}`, "aria-controls": ariaControls, tabContentRef: tabContentRef, ouiaId: childOuiaId, href: href, role: "tab", "aria-selected": eventKey === localActiveKey }, props), title));
19051
+ return (React__namespace.createElement("li", { className: css(styles$f.tabsItem, eventKey === localActiveKey && styles$f.modifiers.current, handleTabClose && styles$f.modifiers.action, handleTabClose && (isDisabled || isAriaDisabled) && styles$f.modifiers.disabled, childClassName), role: "presentation" },
18922
19052
  tooltip ? React__namespace.createElement(Tooltip, Object.assign({}, tooltip.props), tabButton) : tabButton,
18923
- handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$h.tabsItemClose) },
19053
+ handleTabClose !== undefined && (React__namespace.createElement("span", { className: css(styles$f.tabsItemClose) },
18924
19054
  React__namespace.createElement(Button, { variant: "plain", "aria-label": closeButtonAriaLabel || 'Close tab', onClick: (event) => handleTabClose(event, eventKey, tabContentRef), isDisabled: isCloseDisabled },
18925
- React__namespace.createElement("span", { className: css(styles$h.tabsItemCloseIcon) },
19055
+ React__namespace.createElement("span", { className: css(styles$f.tabsItemCloseIcon) },
18926
19056
  React__namespace.createElement(TimesIcon$1, null)))))));
18927
19057
  };
18928
19058
  const Tab = React__namespace.forwardRef((props, ref) => React__namespace.createElement(TabBase, Object.assign({ innerRef: ref }, props)));
@@ -18942,7 +19072,7 @@
18942
19072
  var PlusIcon$1 = PlusIcon;
18943
19073
 
18944
19074
  Promise.resolve().then(function () { return tabContent; });
18945
- var styles$g = {
19075
+ var styles$e = {
18946
19076
  "modifiers": {
18947
19077
  "light_300": "pf-m-light-300",
18948
19078
  "padding": "pf-m-padding"
@@ -18953,7 +19083,7 @@
18953
19083
 
18954
19084
  const variantStyle$1 = {
18955
19085
  default: '',
18956
- light300: styles$g.modifiers.light_300
19086
+ light300: styles$e.modifiers.light_300
18957
19087
  };
18958
19088
  const TabContentBase = (_a) => {
18959
19089
  var { id, activeKey, 'aria-label': ariaLabel, child, children, className, eventKey, innerRef, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["id", "activeKey", 'aria-label', "child", "children", "className", "eventKey", "innerRef", "ouiaId", "ouiaSafe"]);
@@ -18980,7 +19110,7 @@
18980
19110
  })(exports.TabsComponent || (exports.TabsComponent = {}));
18981
19111
  const variantStyle = {
18982
19112
  default: '',
18983
- light300: styles$h.modifiers.colorSchemeLight_300
19113
+ light300: styles$f.modifiers.colorSchemeLight_300
18984
19114
  };
18985
19115
  class Tabs extends React__namespace.Component {
18986
19116
  constructor(props) {
@@ -19152,19 +19282,19 @@
19152
19282
  handleTabClick: (...args) => this.handleTabClick(...args),
19153
19283
  handleTabClose: onClose
19154
19284
  } },
19155
- React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$h.tabs, isFilled && styles$h.modifiers.fill, isSecondary && styles$h.modifiers.secondary, isVertical && styles$h.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$h), isVertical && expandable && isExpandedLocal && styles$h.modifiers.expanded, isBox && styles$h.modifiers.box, showScrollButtons && !isVertical && styles$h.modifiers.scrollable, usePageInsets && styles$h.modifiers.pageInsets, !hasBorderBottom && styles$h.modifiers.noBorderBottom, hasSecondaryBorderBottom && styles$h.modifiers.borderBottom, formatBreakpointMods(inset, styles$h), variantStyle[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
19156
- expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$h.tabsToggle) },
19157
- React__namespace.createElement("div", { className: css(styles$h.tabsToggleButton) },
19285
+ React__namespace.createElement(Component, Object.assign({ "aria-label": ariaLabel, className: css(styles$f.tabs, isFilled && styles$f.modifiers.fill, isSecondary && styles$f.modifiers.secondary, isVertical && styles$f.modifiers.vertical, isVertical && expandable && formatBreakpointMods(expandable, styles$f), isVertical && expandable && isExpandedLocal && styles$f.modifiers.expanded, isBox && styles$f.modifiers.box, showScrollButtons && !isVertical && styles$f.modifiers.scrollable, usePageInsets && styles$f.modifiers.pageInsets, !hasBorderBottom && styles$f.modifiers.noBorderBottom, hasSecondaryBorderBottom && styles$f.modifiers.borderBottom, formatBreakpointMods(inset, styles$f), variantStyle[variant], className) }, getOUIAProps(Tabs.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { id: id && id }, props),
19286
+ expandable && isVertical && (React__namespace.createElement(GenerateId, null, randomId => (React__namespace.createElement("div", { className: css(styles$f.tabsToggle) },
19287
+ React__namespace.createElement("div", { className: css(styles$f.tabsToggleButton) },
19158
19288
  React__namespace.createElement(Button, { onClick: () => toggleTabs(!isExpandedLocal), variant: "plain", "aria-label": toggleAriaLabel, "aria-expanded": isExpandedLocal, id: `${randomId}-button`, "aria-labelledby": `${randomId}-text ${randomId}-button` },
19159
- React__namespace.createElement("span", { className: css(styles$h.tabsToggleIcon) },
19289
+ React__namespace.createElement("span", { className: css(styles$f.tabsToggleIcon) },
19160
19290
  React__namespace.createElement(AngleRightIcon$1, { "arian-hidden": "true" })),
19161
19291
  toggleText && (React__namespace.createElement("span", { className: css('pf-c-tabs__toggle-text'), id: `${randomId}-text` }, toggleText)))))))),
19162
- React__namespace.createElement("button", { className: css(styles$h.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
19292
+ React__namespace.createElement("button", { className: css(styles$f.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": leftScrollAriaLabel, onClick: this.scrollLeft, disabled: disableLeftScrollButton, "aria-hidden": disableLeftScrollButton },
19163
19293
  React__namespace.createElement(AngleLeftIcon$1, null)),
19164
- React__namespace.createElement("ul", { className: css(styles$h.tabsList), ref: this.tabList, onScroll: this.handleScrollButtons, role: "tablist" }, filteredChildren),
19165
- React__namespace.createElement("button", { className: css(styles$h.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, "aria-hidden": disableRightScrollButton },
19294
+ React__namespace.createElement("ul", { className: css(styles$f.tabsList), ref: this.tabList, onScroll: this.handleScrollButtons, role: "tablist" }, filteredChildren),
19295
+ React__namespace.createElement("button", { className: css(styles$f.tabsScrollButton, isSecondary && buttonStyles.modifiers.secondary), "aria-label": rightScrollAriaLabel, onClick: this.scrollRight, disabled: disableRightScrollButton, "aria-hidden": disableRightScrollButton },
19166
19296
  React__namespace.createElement(AngleRightIcon$1, null)),
19167
- onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$h.tabsAdd) },
19297
+ onAdd !== undefined && (React__namespace.createElement("span", { className: css(styles$f.tabsAdd) },
19168
19298
  React__namespace.createElement(Button, { variant: "plain", "aria-label": addButtonAriaLabel || 'Add tab', onClick: onAdd },
19169
19299
  React__namespace.createElement(PlusIcon$1, null))))),
19170
19300
  filteredChildren
@@ -19196,24 +19326,24 @@
19196
19326
 
19197
19327
  const TabContentBody = (_a) => {
19198
19328
  var { children, className, hasPadding } = _a, props = __rest$1(_a, ["children", "className", "hasPadding"]);
19199
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$g.tabContentBody, hasPadding && styles$g.modifiers.padding, className) }, props), children));
19329
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$e.tabContentBody, hasPadding && styles$e.modifiers.padding, className) }, props), children));
19200
19330
  };
19201
19331
  TabContentBody.displayName = 'TabContentBody';
19202
19332
 
19203
19333
  const TabTitleText = (_a) => {
19204
19334
  var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
19205
- return (React__namespace.createElement("span", Object.assign({ className: css(styles$h.tabsItemText, className) }, props), children));
19335
+ return (React__namespace.createElement("span", Object.assign({ className: css(styles$f.tabsItemText, className) }, props), children));
19206
19336
  };
19207
19337
  TabTitleText.displayName = 'TabTitleText';
19208
19338
 
19209
19339
  const TabTitleIcon = (_a) => {
19210
19340
  var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
19211
- return (React__namespace.createElement("span", Object.assign({ className: css(styles$h.tabsItemIcon, className) }, props), children));
19341
+ return (React__namespace.createElement("span", Object.assign({ className: css(styles$f.tabsItemIcon, className) }, props), children));
19212
19342
  };
19213
19343
  TabTitleIcon.displayName = 'TabTitleIcon';
19214
19344
 
19215
19345
  Promise.resolve().then(function () { return tile; });
19216
- var styles$f = {
19346
+ var styles$d = {
19217
19347
  "modifiers": {
19218
19348
  "selected": "pf-m-selected",
19219
19349
  "disabled": "pf-m-disabled",
@@ -19229,11 +19359,11 @@
19229
19359
 
19230
19360
  const Tile = (_a) => {
19231
19361
  var { children, title, icon, isStacked, isSelected, isDisabled, isDisplayLarge, className } = _a, props = __rest$1(_a, ["children", "title", "icon", "isStacked", "isSelected", "isDisabled", "isDisplayLarge", "className"]);
19232
- return (React__namespace.createElement("div", Object.assign({ role: "option", "aria-selected": isSelected }, (isDisabled && { 'aria-disabled': isDisabled }), { className: css(styles$f.tile, isSelected && styles$f.modifiers.selected, isDisabled && styles$f.modifiers.disabled, isDisplayLarge && styles$f.modifiers.displayLg, className), tabIndex: 0 }, props),
19233
- React__namespace.createElement("div", { className: css(styles$f.tileHeader, isStacked && styles$f.modifiers.stacked) },
19234
- icon && React__namespace.createElement("div", { className: css(styles$f.tileIcon) }, icon),
19235
- React__namespace.createElement("div", { className: css(styles$f.tileTitle) }, title)),
19236
- children && React__namespace.createElement("div", { className: css(styles$f.tileBody) }, children)));
19362
+ return (React__namespace.createElement("div", Object.assign({ role: "option", "aria-selected": isSelected }, (isDisabled && { 'aria-disabled': isDisabled }), { className: css(styles$d.tile, isSelected && styles$d.modifiers.selected, isDisabled && styles$d.modifiers.disabled, isDisplayLarge && styles$d.modifiers.displayLg, className), tabIndex: 0 }, props),
19363
+ React__namespace.createElement("div", { className: css(styles$d.tileHeader, isStacked && styles$d.modifiers.stacked) },
19364
+ icon && React__namespace.createElement("div", { className: css(styles$d.tileIcon) }, icon),
19365
+ React__namespace.createElement("div", { className: css(styles$d.tileTitle) }, title)),
19366
+ children && React__namespace.createElement("div", { className: css(styles$d.tileBody) }, children)));
19237
19367
  };
19238
19368
  Tile.displayName = 'Tile';
19239
19369
 
@@ -19709,7 +19839,7 @@
19709
19839
  };
19710
19840
 
19711
19841
  Promise.resolve().then(function () { return toggleGroup; });
19712
- var styles$e = {
19842
+ var styles$c = {
19713
19843
  "modifiers": {
19714
19844
  "compact": "pf-m-compact",
19715
19845
  "selected": "pf-m-selected",
@@ -19727,7 +19857,7 @@
19727
19857
  ToggleGroupItemVariant["icon"] = "icon";
19728
19858
  ToggleGroupItemVariant["text"] = "text";
19729
19859
  })(ToggleGroupItemVariant || (ToggleGroupItemVariant = {}));
19730
- const ToggleGroupItemElement = ({ variant, children }) => (React__namespace.createElement("span", { className: css(variant === 'icon' && styles$e.toggleGroupIcon, variant === 'text' && styles$e.toggleGroupText) }, children));
19860
+ const ToggleGroupItemElement = ({ variant, children }) => (React__namespace.createElement("span", { className: css(variant === 'icon' && styles$c.toggleGroupIcon, variant === 'text' && styles$c.toggleGroupText) }, children));
19731
19861
  ToggleGroupItemElement.displayName = 'ToggleGroupItemElement';
19732
19862
 
19733
19863
  const ToggleGroupItem = (_a) => {
@@ -19739,8 +19869,8 @@
19739
19869
  /* eslint-disable no-console */
19740
19870
  console.warn('An accessible aria-label is required when using the toggle group item icon variant.');
19741
19871
  }
19742
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$e.toggleGroupItem, className) }, props),
19743
- React__namespace.createElement("button", Object.assign({ type: "button", className: css(styles$e.toggleGroupButton, isSelected && styles$e.modifiers.selected), "aria-pressed": isSelected, onClick: handleChange }, (ariaLabel && { 'aria-label': ariaLabel }), (isDisabled && { disabled: true }), (buttonId && { id: buttonId })),
19872
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$c.toggleGroupItem, className) }, props),
19873
+ React__namespace.createElement("button", Object.assign({ type: "button", className: css(styles$c.toggleGroupButton, isSelected && styles$c.modifiers.selected), "aria-pressed": isSelected, onClick: handleChange }, (ariaLabel && { 'aria-label': ariaLabel }), (isDisabled && { disabled: true }), (buttonId && { id: buttonId })),
19744
19874
  icon ? React__namespace.createElement(ToggleGroupItemElement, { variant: ToggleGroupItemVariant.icon }, icon) : null,
19745
19875
  text ? React__namespace.createElement(ToggleGroupItemElement, { variant: ToggleGroupItemVariant.text }, text) : null)));
19746
19876
  };
@@ -19754,12 +19884,12 @@
19754
19884
  ? child
19755
19885
  : React__namespace.cloneElement(child, areAllGroupsDisabled ? { isDisabled: true } : {});
19756
19886
  });
19757
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$e.toggleGroup, isCompact && styles$e.modifiers.compact, className), role: "group", "aria-label": ariaLabel }, props), toggleGroupItemList));
19887
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$c.toggleGroup, isCompact && styles$c.modifiers.compact, className), role: "group", "aria-label": ariaLabel }, props), toggleGroupItemList));
19758
19888
  };
19759
19889
  ToggleGroup.displayName = 'ToggleGroup';
19760
19890
 
19761
19891
  Promise.resolve().then(function () { return toolbar; });
19762
- var styles$d = {
19892
+ var styles$b = {
19763
19893
  "button": "pf-c-button",
19764
19894
  "chipGroup": "pf-c-chip-group",
19765
19895
  "divider": "pf-c-divider",
@@ -19955,7 +20085,7 @@
19955
20085
  const ToolbarItem = (_a) => {
19956
20086
  var { className, variant, visibility, visiblity, alignment, spacer, widths, id, children, isAllExpanded } = _a, props = __rest$1(_a, ["className", "variant", "visibility", "visiblity", "alignment", "spacer", "widths", "id", "children", "isAllExpanded"]);
19957
20087
  if (variant === exports.ToolbarItemVariant.separator) {
19958
- return React__namespace.createElement(Divider, Object.assign({ className: css(styles$d.modifiers.vertical, className) }, props));
20088
+ return React__namespace.createElement(Divider, Object.assign({ className: css(styles$b.modifiers.vertical, className) }, props));
19959
20089
  }
19960
20090
  if (visiblity !== undefined) {
19961
20091
  // eslint-disable-next-line no-console
@@ -19966,8 +20096,8 @@
19966
20096
  if (widths) {
19967
20097
  Object.entries(widths || {}).map(([breakpoint, value]) => (widthStyles[`--pf-c-toolbar__item--Width${breakpoint !== 'default' ? `-on-${breakpoint}` : ''}`] = value));
19968
20098
  }
19969
- return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbarItem, variant &&
19970
- styles$d.modifiers[toCamel(variant)], isAllExpanded && styles$d.modifiers.expanded, formatBreakpointMods(visibility || visiblity, styles$d, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$d, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$d, '', getBreakpoint(width)), className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props, (widths && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children))));
20099
+ return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbarItem, variant &&
20100
+ styles$b.modifiers[toCamel(variant)], isAllExpanded && styles$b.modifiers.expanded, formatBreakpointMods(visibility || visiblity, styles$b, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$b, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$b, '', getBreakpoint(width)), className) }, (variant === 'label' && { 'aria-hidden': true }), { id: id }, props, (widths && { style: Object.assign(Object.assign({}, widthStyles), props.style) })), children))));
19971
20101
  };
19972
20102
  ToolbarItem.displayName = 'ToolbarItem';
19973
20103
 
@@ -19985,7 +20115,7 @@
19985
20115
  console.warn('The ToolbarGroup visiblity prop has been deprecated. ' +
19986
20116
  'Please use the correctly spelled visibility prop instead.');
19987
20117
  }
19988
- return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbarGroup, variant && styles$d.modifiers[toCamel(variant)], formatBreakpointMods(visibility || visiblity, styles$d, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$d, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$d, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$d, '', getBreakpoint(width)), className) }, props, { ref: innerRef }), children))));
20118
+ return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbarGroup, variant && styles$b.modifiers[toCamel(variant)], formatBreakpointMods(visibility || visiblity, styles$b, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$b, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$b, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$b, '', getBreakpoint(width)), className) }, props, { ref: innerRef }), children))));
19989
20119
  }
19990
20120
  }
19991
20121
  const ToolbarGroup = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(ToolbarGroupWithRef, Object.assign({}, props, { innerRef: ref }))));
@@ -20004,8 +20134,8 @@
20004
20134
  collapseListedFilters =
20005
20135
  (canUseDOM ? window.innerWidth : 1200) < globalBreakpoints[collapseListedFiltersBreakpoint];
20006
20136
  }
20007
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbarContent, (numberOfFilters === 0 || isExpanded) && styles$d.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: chipGroupContentRef }, props),
20008
- React__namespace.createElement(ToolbarGroup, Object.assign({ className: css(collapseListedFilters && styles$d.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
20137
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbarContent, (numberOfFilters === 0 || isExpanded) && styles$b.modifiers.hidden, className) }, ((numberOfFilters === 0 || isExpanded) && { hidden: true }), { ref: chipGroupContentRef }, props),
20138
+ React__namespace.createElement(ToolbarGroup, Object.assign({ className: css(collapseListedFilters && styles$b.modifiers.hidden) }, (collapseListedFilters && { hidden: true }), (collapseListedFilters && { 'aria-hidden': true }))),
20009
20139
  collapseListedFilters && numberOfFilters > 0 && !isExpanded && (React__namespace.createElement(ToolbarGroup, null,
20010
20140
  React__namespace.createElement(ToolbarItem, null, numberOfFiltersText(numberOfFilters)))),
20011
20141
  showClearFiltersButton && !isExpanded && !customChipGroupContent && (React__namespace.createElement(ToolbarItem, null,
@@ -20061,7 +20191,7 @@
20061
20191
  const isExpanded = isToggleManaged ? isManagedToggleExpanded : isExpandedProp;
20062
20192
  const numberOfFilters = this.getNumberOfFilters();
20063
20193
  const showClearFiltersButton = numberOfFilters > 0;
20064
- return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbar, isFullHeight && styles$d.modifiers.fullHeight, isStatic && styles$d.modifiers.static, usePageInsets && styles$d.modifiers.pageInsets, isSticky && styles$d.modifiers.sticky, formatBreakpointMods(inset, styles$d, '', getBreakpoint(width)), className), id: randomId }, getOUIAProps(Toolbar.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId), props),
20194
+ return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbar, isFullHeight && styles$b.modifiers.fullHeight, isStatic && styles$b.modifiers.static, usePageInsets && styles$b.modifiers.pageInsets, isSticky && styles$b.modifiers.sticky, formatBreakpointMods(inset, styles$b, '', getBreakpoint(width)), className), id: randomId }, getOUIAProps(Toolbar.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId), props),
20065
20195
  React__namespace.createElement(ToolbarContext.Provider, { value: {
20066
20196
  isExpanded,
20067
20197
  toggleIsExpanded: isToggleManaged ? this.toggleIsExpanded : toggleIsExpanded,
@@ -20103,9 +20233,9 @@
20103
20233
  const clearChipGroups = () => {
20104
20234
  clearAllFilters();
20105
20235
  };
20106
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbarExpandableContent, className), ref: expandableContentRef }, props),
20236
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbarExpandableContent, className), ref: expandableContentRef }, props),
20107
20237
  React__namespace.createElement(ToolbarGroup, null),
20108
- numberOfFilters > 0 && (React__namespace.createElement(ToolbarGroup, { className: styles$d.modifiers.chipContainer },
20238
+ numberOfFilters > 0 && (React__namespace.createElement(ToolbarGroup, { className: styles$b.modifiers.chipContainer },
20109
20239
  React__namespace.createElement(ToolbarGroup, { ref: chipContainerRef }),
20110
20240
  showClearFiltersButton && !customChipGroupContent && (React__namespace.createElement(ToolbarItem, null,
20111
20241
  React__namespace.createElement(Button, { variant: "link", onClick: clearChipGroups, isInline: true }, clearFiltersButtonText))),
@@ -20132,7 +20262,7 @@
20132
20262
  console.warn('The ToolbarContent visiblity prop has been deprecated. ' +
20133
20263
  'Please use the correctly spelled visibility prop instead.');
20134
20264
  }
20135
- return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbarContent, formatBreakpointMods(visibility || visiblity, styles$d, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$d, '', getBreakpoint(width)), className) }, props),
20265
+ return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbarContent, formatBreakpointMods(visibility || visiblity, styles$b, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$b, '', getBreakpoint(width)), className) }, props),
20136
20266
  React__namespace.createElement(ToolbarContext.Consumer, null, ({ clearAllFilters: clearAllFiltersContext, clearFiltersButtonText: clearFiltersButtonContext, showClearFiltersButton: showClearFiltersButtonContext, toolbarId: toolbarIdContext }) => {
20137
20267
  const expandableContentId = `${toolbarId ||
20138
20268
  toolbarIdContext}-expandable-content-${ToolbarContent.currentId++}`;
@@ -20141,7 +20271,7 @@
20141
20271
  expandableContentId,
20142
20272
  chipContainerRef: this.chipContainerRef
20143
20273
  } },
20144
- React__namespace.createElement("div", { className: css(styles$d.toolbarContentSection) }, children),
20274
+ React__namespace.createElement("div", { className: css(styles$b.toolbarContentSection) }, children),
20145
20275
  React__namespace.createElement(ToolbarExpandableContent, { id: expandableContentId, isExpanded: isExpanded, expandableContentRef: this.expandableContentRef, chipContainerRef: this.chipContainerRef, clearAllFilters: clearAllFilters || clearAllFiltersContext, showClearFiltersButton: showClearFiltersButton || showClearFiltersButtonContext, clearFiltersButtonText: clearFiltersButtonText || clearFiltersButtonContext })));
20146
20276
  })))));
20147
20277
  }
@@ -20155,7 +20285,7 @@
20155
20285
 
20156
20286
  const ToolbarExpandIconWrapper = (_a) => {
20157
20287
  var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
20158
- return (React__namespace.createElement("span", Object.assign({}, props, { className: css(styles$d.toolbarExpandAllIcon, className) }), children));
20288
+ return (React__namespace.createElement("span", Object.assign({}, props, { className: css(styles$b.toolbarExpandAllIcon, className) }), children));
20159
20289
  };
20160
20290
  ToolbarExpandIconWrapper.displayName = 'ToolbarExpandIconWrapper';
20161
20291
 
@@ -20227,17 +20357,17 @@
20227
20357
  return (React__namespace.createElement(PageContext.Consumer, null, ({ width, getBreakpoint }) => (React__namespace.createElement(ToolbarContext.Consumer, null, ({ isExpanded, toggleIsExpanded }) => (React__namespace.createElement(ToolbarContentContext.Consumer, null, ({ expandableContentRef, expandableContentId }) => {
20228
20358
  if (expandableContentRef.current && expandableContentRef.current.classList) {
20229
20359
  if (isExpanded) {
20230
- expandableContentRef.current.classList.add(styles$d.modifiers.expanded);
20360
+ expandableContentRef.current.classList.add(styles$b.modifiers.expanded);
20231
20361
  }
20232
20362
  else {
20233
- expandableContentRef.current.classList.remove(styles$d.modifiers.expanded);
20363
+ expandableContentRef.current.classList.remove(styles$b.modifiers.expanded);
20234
20364
  }
20235
20365
  }
20236
20366
  const breakpointMod = {};
20237
20367
  breakpointMod[breakpoint] = 'show';
20238
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$d.toolbarGroup, styles$d.modifiers.toggleGroup, variant &&
20239
- styles$d.modifiers[toCamel(variant)], formatBreakpointMods(breakpointMod, styles$d, '', getBreakpoint(width)), formatBreakpointMods(visibility || visiblity, styles$d, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$d, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$d, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$d, '', getBreakpoint(width)), className) }, props),
20240
- React__namespace.createElement("div", { className: css(styles$d.toolbarToggle) },
20368
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$b.toolbarGroup, styles$b.modifiers.toggleGroup, variant &&
20369
+ styles$b.modifiers[toCamel(variant)], formatBreakpointMods(breakpointMod, styles$b, '', getBreakpoint(width)), formatBreakpointMods(visibility || visiblity, styles$b, '', getBreakpoint(width)), formatBreakpointMods(alignment, styles$b, '', getBreakpoint(width)), formatBreakpointMods(spacer, styles$b, '', getBreakpoint(width)), formatBreakpointMods(spaceItems, styles$b, '', getBreakpoint(width)), className) }, props),
20370
+ React__namespace.createElement("div", { className: css(styles$b.toolbarToggle) },
20241
20371
  React__namespace.createElement(Button, Object.assign({ variant: "plain", onClick: toggleIsExpanded, "aria-label": "Show Filters" }, (isExpanded && { 'aria-expanded': true }), { "aria-haspopup": isExpanded && this.isContentPopup(), "aria-controls": expandableContentId }), toggleIcon)),
20242
20372
  isExpanded
20243
20373
  ? ReactDOM__namespace.createPortal(children, expandableContentRef.current.firstElementChild)
@@ -20248,7 +20378,7 @@
20248
20378
  ToolbarToggleGroup.displayName = 'ToolbarToggleGroup';
20249
20379
 
20250
20380
  Promise.resolve().then(function () { return numberInput; });
20251
- var styles$c = {
20381
+ var styles$a = {
20252
20382
  "formControl": "pf-c-form-control",
20253
20383
  "inputGroup": "pf-c-input-group",
20254
20384
  "numberInput": "pf-c-number-input",
@@ -20268,19 +20398,19 @@
20268
20398
  };
20269
20399
  const NumberInput = (_a) => {
20270
20400
  var { value = 0, className, widthChars, isDisabled = false, onMinus = () => { }, onChange, onBlur, onPlus = () => { }, unit, unitPosition = 'after', min, max, inputName, inputAriaLabel = 'Input', minusBtnAriaLabel = 'Minus', plusBtnAriaLabel = 'Plus', inputProps, minusBtnProps, plusBtnProps } = _a, props = __rest$1(_a, ["value", "className", "widthChars", "isDisabled", "onMinus", "onChange", "onBlur", "onPlus", "unit", "unitPosition", "min", "max", "inputName", "inputAriaLabel", "minusBtnAriaLabel", "plusBtnAriaLabel", "inputProps", "minusBtnProps", "plusBtnProps"]);
20271
- const numberInputUnit = React__namespace.createElement("div", { className: css(styles$c.numberInputUnit) }, unit);
20401
+ const numberInputUnit = React__namespace.createElement("div", { className: css(styles$a.numberInputUnit) }, unit);
20272
20402
  const keyDownHandler = inputProps && inputProps.onKeyDown ? inputProps.onKeyDown : defaultKeyDownHandler({ inputName, onMinus, onPlus });
20273
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$c.numberInput, className) }, (widthChars && {
20403
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$a.numberInput, className) }, (widthChars && {
20274
20404
  style: Object.assign({ '--pf-c-number-input--c-form-control--width-chars': widthChars }, props.style)
20275
20405
  }), props),
20276
20406
  unit && unitPosition === 'before' && numberInputUnit,
20277
20407
  React__namespace.createElement(InputGroup, null,
20278
20408
  React__namespace.createElement(Button, Object.assign({ variant: "control", "aria-label": minusBtnAriaLabel, isDisabled: isDisabled || value <= min, onClick: evt => onMinus(evt, inputName) }, minusBtnProps),
20279
- React__namespace.createElement("span", { className: css(styles$c.numberInputIcon) },
20409
+ React__namespace.createElement("span", { className: css(styles$a.numberInputIcon) },
20280
20410
  React__namespace.createElement(MinusIcon$1, { "aria-hidden": "true" }))),
20281
- React__namespace.createElement("input", Object.assign({ className: css(styles$c.formControl), type: "number", value: value, name: inputName, "aria-label": inputAriaLabel }, (isDisabled && { disabled: isDisabled }), (onChange && { onChange }), (onBlur && { onBlur }), (!onChange && { readOnly: true }), inputProps, { onKeyDown: keyDownHandler })),
20411
+ React__namespace.createElement("input", Object.assign({ className: css(styles$a.formControl), type: "number", value: value, name: inputName, "aria-label": inputAriaLabel }, (isDisabled && { disabled: isDisabled }), (onChange && { onChange }), (onBlur && { onBlur }), (!onChange && { readOnly: true }), inputProps, { onKeyDown: keyDownHandler })),
20282
20412
  React__namespace.createElement(Button, Object.assign({ variant: "control", "aria-label": plusBtnAriaLabel, isDisabled: isDisabled || value >= max, onClick: evt => onPlus(evt, inputName) }, plusBtnProps),
20283
- React__namespace.createElement("span", { className: css(styles$c.numberInputIcon) },
20413
+ React__namespace.createElement("span", { className: css(styles$a.numberInputIcon) },
20284
20414
  React__namespace.createElement(PlusIcon$1, { "aria-hidden": "true" })))),
20285
20415
  unit && unitPosition === 'after' && numberInputUnit));
20286
20416
  };
@@ -20297,7 +20427,7 @@
20297
20427
  TreeViewList.displayName = 'TreeViewList';
20298
20428
 
20299
20429
  Promise.resolve().then(function () { return treeView; });
20300
- var styles$b = {
20430
+ var styles$9 = {
20301
20431
  "badge": "pf-c-badge",
20302
20432
  "modifiers": {
20303
20433
  "compact": "pf-m-compact",
@@ -20341,36 +20471,36 @@
20341
20471
  }, [isExpanded, defaultExpanded]);
20342
20472
  const Component = hasCheck ? 'div' : 'button';
20343
20473
  const ToggleComponent = hasCheck ? 'button' : 'div';
20344
- const renderToggle = (randomId) => (React__default["default"].createElement(ToggleComponent, Object.assign({ className: css(styles$b.treeViewNodeToggle), onClick: () => {
20474
+ const renderToggle = (randomId) => (React__default["default"].createElement(ToggleComponent, Object.assign({ className: css(styles$9.treeViewNodeToggle), onClick: () => {
20345
20475
  if (hasCheck) {
20346
20476
  setIsExpanded(!internalIsExpanded);
20347
20477
  }
20348
20478
  } }, (hasCheck && { 'aria-labelledby': `label-${randomId}` }), { tabIndex: -1 }),
20349
- React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeToggleIcon) },
20479
+ React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeToggleIcon) },
20350
20480
  React__default["default"].createElement(AngleRightIcon$1, { "aria-hidden": "true" }))));
20351
- const renderCheck = (randomId) => (React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeCheck) },
20481
+ const renderCheck = (randomId) => (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeCheck) },
20352
20482
  React__default["default"].createElement("input", Object.assign({ type: "checkbox", onChange: (evt) => onCheck && onCheck(evt, itemData, parentItem), onClick: (evt) => evt.stopPropagation(), ref: elem => elem && (elem.indeterminate = checkProps.checked === null) }, checkProps, { checked: checkProps.checked === null ? false : checkProps.checked, id: randomId, tabIndex: -1 }))));
20353
- const iconRendered = (React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeIcon) },
20483
+ const iconRendered = (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeIcon) },
20354
20484
  !internalIsExpanded && icon,
20355
20485
  internalIsExpanded && (expandedIcon || icon)));
20356
20486
  const renderNodeContent = (randomId) => {
20357
20487
  const content = (React__default["default"].createElement(React__default["default"].Fragment, null,
20358
- isCompact && title && React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeTitle) }, title),
20359
- hasCheck ? (React__default["default"].createElement("label", { className: css(styles$b.treeViewNodeText), htmlFor: randomId, id: `label-${randomId}` }, name)) : (React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeText) }, name))));
20360
- return isCompact ? React__default["default"].createElement("div", { className: css(styles$b.treeViewNodeContent) }, content) : content;
20488
+ isCompact && title && React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeTitle) }, title),
20489
+ hasCheck ? (React__default["default"].createElement("label", { className: css(styles$9.treeViewNodeText), htmlFor: randomId, id: `label-${randomId}` }, name)) : (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeText) }, name))));
20490
+ return isCompact ? React__default["default"].createElement("div", { className: css(styles$9.treeViewNodeContent) }, content) : content;
20361
20491
  };
20362
20492
  const badgeRendered = (React__default["default"].createElement(React__default["default"].Fragment, null,
20363
- hasBadge && children && (React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeCount) },
20493
+ hasBadge && children && (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeCount) },
20364
20494
  React__default["default"].createElement(Badge, Object.assign({}, badgeProps), customBadgeContent ? customBadgeContent : children.props.data.length))),
20365
- hasBadge && !children && customBadgeContent !== undefined && (React__default["default"].createElement("span", { className: css(styles$b.treeViewNodeCount) },
20495
+ hasBadge && !children && customBadgeContent !== undefined && (React__default["default"].createElement("span", { className: css(styles$9.treeViewNodeCount) },
20366
20496
  React__default["default"].createElement(Badge, Object.assign({}, badgeProps), customBadgeContent)))));
20367
- return (React__default["default"].createElement("li", Object.assign({ id: id, className: css(styles$b.treeViewListItem, internalIsExpanded && styles$b.modifiers.expanded) }, (internalIsExpanded && { 'aria-expanded': 'true' }), { role: "treeitem", tabIndex: -1 }),
20368
- React__default["default"].createElement("div", { className: css(styles$b.treeViewContent) },
20369
- React__default["default"].createElement(GenerateId, { prefix: "checkbox-id" }, randomId => (React__default["default"].createElement(Component, { className: css(styles$b.treeViewNode, !children &&
20497
+ return (React__default["default"].createElement("li", Object.assign({ id: id, className: css(styles$9.treeViewListItem, internalIsExpanded && styles$9.modifiers.expanded) }, (internalIsExpanded && { 'aria-expanded': 'true' }), { role: "treeitem", tabIndex: -1 }),
20498
+ React__default["default"].createElement("div", { className: css(styles$9.treeViewContent) },
20499
+ React__default["default"].createElement(GenerateId, { prefix: "checkbox-id" }, randomId => (React__default["default"].createElement(Component, { className: css(styles$9.treeViewNode, !children &&
20370
20500
  activeItems &&
20371
20501
  activeItems.length > 0 &&
20372
20502
  activeItems.some(item => compareItems && item && compareItems(item, itemData))
20373
- ? styles$b.modifiers.current
20503
+ ? styles$9.modifiers.current
20374
20504
  : ''), onClick: (evt) => {
20375
20505
  if (!hasCheck) {
20376
20506
  onSelect && onSelect(evt, itemData, parentItem);
@@ -20379,13 +20509,13 @@
20379
20509
  }
20380
20510
  }
20381
20511
  }, tabIndex: -1 },
20382
- React__default["default"].createElement("div", { className: css(styles$b.treeViewNodeContainer) },
20512
+ React__default["default"].createElement("div", { className: css(styles$9.treeViewNodeContainer) },
20383
20513
  children && renderToggle(randomId),
20384
20514
  hasCheck && renderCheck(randomId),
20385
20515
  icon && iconRendered,
20386
20516
  renderNodeContent(randomId),
20387
20517
  badgeRendered)))),
20388
- action && React__default["default"].createElement("div", { className: css(styles$b.treeViewAction) }, action)),
20518
+ action && React__default["default"].createElement("div", { className: css(styles$9.treeViewAction) }, action)),
20389
20519
  internalIsExpanded && children));
20390
20520
  };
20391
20521
  const TreeViewListItem = React__default["default"].memo(TreeViewListItemBase, (prevProps, nextProps) => {
@@ -20519,8 +20649,8 @@
20519
20649
  };
20520
20650
  this.variantStyleModifiers = {
20521
20651
  default: '',
20522
- compact: styles$b.modifiers.compact,
20523
- compactNoBackground: [styles$b.modifiers.compact, styles$b.modifiers.noBackground]
20652
+ compact: styles$9.modifiers.compact,
20653
+ compactNoBackground: [styles$9.modifiers.compact, styles$9.modifiers.noBackground]
20524
20654
  };
20525
20655
  }
20526
20656
  componentDidMount() {
@@ -20549,7 +20679,7 @@
20549
20679
  render() {
20550
20680
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
20551
20681
  const _a = this.props, { children, hasChecks, hasGuides, variant, className } = _a, props = __rest$1(_a, ["children", "hasChecks", "hasGuides", "variant", "className"]);
20552
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$b.treeView, hasGuides && styles$b.modifiers.guides, this.variantStyleModifiers[variant], className), ref: this.treeRef }, props), children));
20682
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$9.treeView, hasGuides && styles$9.modifiers.guides, this.variantStyleModifiers[variant], className), ref: this.treeRef }, props), children));
20553
20683
  }
20554
20684
  }
20555
20685
 
@@ -20567,13 +20697,13 @@
20567
20697
 
20568
20698
  const TreeViewSearch = (_a) => {
20569
20699
  var { className, onSearch, id, name, 'aria-label': ariaLabel } = _a, props = __rest$1(_a, ["className", "onSearch", "id", "name", 'aria-label']);
20570
- return (React__namespace.createElement("div", { className: css(styles$b.treeViewSearch, className) },
20700
+ return (React__namespace.createElement("div", { className: css(styles$9.treeViewSearch, className) },
20571
20701
  React__namespace.createElement("input", Object.assign({ className: css(formStyles.formControl, formStyles.modifiers.search), onChange: onSearch, id: id, name: name, "aria-label": ariaLabel, type: "search" }, props))));
20572
20702
  };
20573
20703
  TreeViewSearch.displayName = 'TreeViewSearch';
20574
20704
 
20575
20705
  Promise.resolve().then(function () { return wizard; });
20576
- var styles$a = {
20706
+ var styles$8 = {
20577
20707
  "button": "pf-c-button",
20578
20708
  "card": "pf-c-card",
20579
20709
  "drawer": "pf-c-drawer",
@@ -20613,17 +20743,17 @@
20613
20743
  "wizardToggleSeparator": "pf-c-wizard__toggle-separator"
20614
20744
  };
20615
20745
 
20616
- const WizardFooterInternal = ({ onNext, onBack, onClose, isValid, firstStep, activeStep, nextButtonText, backButtonText, cancelButtonText }) => (React__namespace.createElement("footer", { className: css(styles$a.wizardFooter) },
20746
+ const WizardFooterInternal = ({ onNext, onBack, onClose, isValid, firstStep, activeStep, nextButtonText, backButtonText, cancelButtonText }) => (React__namespace.createElement("footer", { className: css(styles$8.wizardFooter) },
20617
20747
  React__namespace.createElement(Button, { variant: exports.ButtonVariant.primary, type: "submit", onClick: onNext, isDisabled: !isValid }, nextButtonText),
20618
20748
  !activeStep.hideBackButton && (React__namespace.createElement(Button, { variant: exports.ButtonVariant.secondary, onClick: onBack, isDisabled: firstStep }, backButtonText)),
20619
- !activeStep.hideCancelButton && (React__namespace.createElement("div", { className: styles$a.wizardFooterCancel },
20749
+ !activeStep.hideCancelButton && (React__namespace.createElement("div", { className: styles$8.wizardFooterCancel },
20620
20750
  React__namespace.createElement(Button, { variant: exports.ButtonVariant.link, onClick: onClose }, cancelButtonText)))));
20621
20751
  WizardFooterInternal.displayName = 'WizardFooterInternal';
20622
20752
 
20623
20753
  const WizardBody = ({ children, hasNoBodyPadding = false, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, mainComponent = 'div' }) => {
20624
20754
  const MainComponent = mainComponent;
20625
- return (React__namespace.createElement(MainComponent, { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className: css(styles$a.wizardMain) },
20626
- React__namespace.createElement("div", { className: css(styles$a.wizardMainBody, hasNoBodyPadding && styles$a.modifiers.noPadding) }, children)));
20755
+ return (React__namespace.createElement(MainComponent, { "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy, className: css(styles$8.wizardMain) },
20756
+ React__namespace.createElement("div", { className: css(styles$8.wizardMainBody, hasNoBodyPadding && styles$8.modifiers.noPadding) }, children)));
20627
20757
  };
20628
20758
  WizardBody.displayName = 'WizardBody';
20629
20759
 
@@ -20649,18 +20779,18 @@
20649
20779
  }
20650
20780
  }
20651
20781
  return (React__namespace.createElement(React__namespace.Fragment, null,
20652
- React__namespace.createElement("button", { onClick: () => onNavToggle(!isNavOpen), className: css(styles$a.wizardToggle, isNavOpen && 'pf-m-expanded'), "aria-label": ariaLabel, "aria-expanded": isNavOpen },
20653
- React__namespace.createElement("span", { className: css(styles$a.wizardToggleList) },
20654
- React__namespace.createElement("span", { className: css(styles$a.wizardToggleListItem) },
20655
- React__namespace.createElement("span", { className: css(styles$a.wizardToggleNum) }, activeStepIndex),
20782
+ React__namespace.createElement("button", { onClick: () => onNavToggle(!isNavOpen), className: css(styles$8.wizardToggle, isNavOpen && 'pf-m-expanded'), "aria-label": ariaLabel, "aria-expanded": isNavOpen },
20783
+ React__namespace.createElement("span", { className: css(styles$8.wizardToggleList) },
20784
+ React__namespace.createElement("span", { className: css(styles$8.wizardToggleListItem) },
20785
+ React__namespace.createElement("span", { className: css(styles$8.wizardToggleNum) }, activeStepIndex),
20656
20786
  " ",
20657
20787
  activeStepName,
20658
- activeStepSubName && React__namespace.createElement(AngleRightIcon$1, { className: css(styles$a.wizardToggleSeparator), "aria-hidden": "true" })),
20659
- activeStepSubName && React__namespace.createElement("span", { className: css(styles$a.wizardToggleListItem) }, activeStepSubName)),
20660
- React__namespace.createElement("span", { className: css(styles$a.wizardToggleIcon) },
20788
+ activeStepSubName && React__namespace.createElement(AngleRightIcon$1, { className: css(styles$8.wizardToggleSeparator), "aria-hidden": "true" })),
20789
+ activeStepSubName && React__namespace.createElement("span", { className: css(styles$8.wizardToggleListItem) }, activeStepSubName)),
20790
+ React__namespace.createElement("span", { className: css(styles$8.wizardToggleIcon) },
20661
20791
  React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": "true" }))),
20662
- React__namespace.createElement("div", { className: css(styles$a.wizardOuterWrap) },
20663
- React__namespace.createElement("div", { className: css(styles$a.wizardInnerWrap) },
20792
+ React__namespace.createElement("div", { className: css(styles$8.wizardOuterWrap) },
20793
+ React__namespace.createElement("div", { className: css(styles$8.wizardInnerWrap) },
20664
20794
  nav(isNavOpen),
20665
20795
  React__namespace.createElement(WizardBody, { mainComponent: isInPage ? 'div' : 'main', "aria-label": mainAriaLabel, "aria-labelledby": mainAriaLabelledBy, hasNoBodyPadding: hasNoBodyPadding }, activeStep.component)),
20666
20796
  children)));
@@ -20668,12 +20798,12 @@
20668
20798
  WizardToggle.displayName = 'WizardToggle';
20669
20799
 
20670
20800
  const WizardNav = ({ children, 'aria-label': ariaLabel, 'aria-labelledby': ariaLabelledBy, isOpen = false, returnList = false }) => {
20671
- const innerList = React__namespace.createElement("ol", { className: css(styles$a.wizardNavList) }, children);
20801
+ const innerList = React__namespace.createElement("ol", { className: css(styles$8.wizardNavList) }, children);
20672
20802
  if (returnList) {
20673
20803
  return innerList;
20674
20804
  }
20675
- return (React__namespace.createElement("nav", { className: css(styles$a.wizardNav, isOpen && styles$a.modifiers.expanded), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy },
20676
- React__namespace.createElement("ol", { className: css(styles$a.wizardNavList) }, children)));
20805
+ return (React__namespace.createElement("nav", { className: css(styles$8.wizardNav, isOpen && styles$8.modifiers.expanded), "aria-label": ariaLabel, "aria-labelledby": ariaLabelledBy },
20806
+ React__namespace.createElement("ol", { className: css(styles$8.wizardNavList) }, children)));
20677
20807
  };
20678
20808
  WizardNav.displayName = 'WizardNav';
20679
20809
 
@@ -20695,11 +20825,11 @@
20695
20825
  tabIndex: isDisabled ? -1 : undefined,
20696
20826
  href
20697
20827
  };
20698
- return (React__namespace.createElement("li", { className: css(styles$a.wizardNavItem, isExpandable && styles$a.modifiers.expandable, isExpandable && isExpanded && styles$a.modifiers.expanded) },
20699
- React__namespace.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css(styles$a.wizardNavLink, isCurrent && styles$a.modifiers.current, isDisabled && styles$a.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (React__namespace.createElement(React__namespace.Fragment, null,
20700
- React__namespace.createElement("span", { className: css(styles$a.wizardNavLinkText) }, content),
20701
- React__namespace.createElement("span", { className: css(styles$a.wizardNavLinkToggle) },
20702
- React__namespace.createElement("span", { className: css(styles$a.wizardNavLinkToggleIcon) },
20828
+ return (React__namespace.createElement("li", { className: css(styles$8.wizardNavItem, isExpandable && styles$8.modifiers.expandable, isExpandable && isExpanded && styles$8.modifiers.expanded) },
20829
+ React__namespace.createElement(NavItemComponent, Object.assign({}, rest, (navItemComponent === 'a' ? Object.assign({}, linkProps) : Object.assign({}, btnProps)), (id && { id: id.toString() }), { onClick: () => (isExpandable ? setIsExpanded(!isExpanded || isCurrent) : onNavItemClick(step)), className: css(styles$8.wizardNavLink, isCurrent && styles$8.modifiers.current, isDisabled && styles$8.modifiers.disabled), "aria-disabled": isDisabled ? true : null, "aria-current": isCurrent && !children ? 'step' : false }, (isExpandable && { 'aria-expanded': isExpanded })), isExpandable ? (React__namespace.createElement(React__namespace.Fragment, null,
20830
+ React__namespace.createElement("span", { className: css(styles$8.wizardNavLinkText) }, content),
20831
+ React__namespace.createElement("span", { className: css(styles$8.wizardNavLinkToggle) },
20832
+ React__namespace.createElement("span", { className: css(styles$8.wizardNavLinkToggleIcon) },
20703
20833
  React__namespace.createElement(AngleRightIcon$1, null))))) : (content)),
20704
20834
  children));
20705
20835
  };
@@ -20716,11 +20846,11 @@
20716
20846
  const WizardContextProvider = WizardContext.Provider;
20717
20847
  const WizardContextConsumer = WizardContext.Consumer;
20718
20848
 
20719
- const WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionComponent: Component = 'p', descriptionId }) => (React__namespace.createElement("div", { className: css(styles$a.wizardHeader) },
20720
- !hideClose && (React__namespace.createElement(Button, { variant: "plain", className: css(styles$a.wizardClose), "aria-label": closeButtonAriaLabel, onClick: onClose },
20849
+ const WizardHeader = ({ onClose = () => undefined, title, description, hideClose, closeButtonAriaLabel, titleId, descriptionComponent: Component = 'p', descriptionId }) => (React__namespace.createElement("div", { className: css(styles$8.wizardHeader) },
20850
+ !hideClose && (React__namespace.createElement(Button, { variant: "plain", className: css(styles$8.wizardClose), "aria-label": closeButtonAriaLabel, onClick: onClose },
20721
20851
  React__namespace.createElement(TimesIcon$1, { "aria-hidden": "true" }))),
20722
- React__namespace.createElement(Title, { headingLevel: "h2", size: "3xl", className: css(styles$a.wizardTitle), "aria-label": title, id: titleId }, title || React__namespace.createElement(React__namespace.Fragment, null, "\u00A0")),
20723
- description && (React__namespace.createElement(Component, { className: css(styles$a.wizardDescription), id: descriptionId }, description))));
20852
+ React__namespace.createElement(Title, { headingLevel: "h2", size: "3xl", className: css(styles$8.wizardTitle), "aria-label": title, id: titleId }, title || React__namespace.createElement(React__namespace.Fragment, null, "\u00A0")),
20853
+ description && (React__namespace.createElement(Component, { className: css(styles$8.wizardDescription), id: descriptionId }, description))));
20724
20854
  WizardHeader.displayName = 'WizardHeader';
20725
20855
 
20726
20856
  class Wizard extends React__namespace.Component {
@@ -20947,7 +21077,7 @@
20947
21077
  };
20948
21078
  const divStyles = Object.assign(Object.assign({}, (height ? { height } : {})), (width ? { width } : {}));
20949
21079
  const wizard = (React__namespace.createElement(WizardContextProvider, { value: context },
20950
- React__namespace.createElement("div", Object.assign({}, rest, { className: css(styles$a.wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),
21080
+ React__namespace.createElement("div", Object.assign({}, rest, { className: css(styles$8.wizard, activeStep && activeStep.isFinishedStep && 'pf-m-finished', className), style: Object.keys(divStyles).length ? divStyles : undefined }),
20951
21081
  title && (React__namespace.createElement(WizardHeader, { titleId: this.titleId, descriptionId: this.descriptionId, onClose: onClose, title: title, description: description, descriptionComponent: descriptionComponent, closeButtonAriaLabel: closeButtonAriaLabel, hideClose: hideClose })),
20952
21082
  React__namespace.createElement(WizardToggle, { mainAriaLabel: mainAriaLabel, isInPage: isOpen === undefined, mainAriaLabelledBy: (title || mainAriaLabelledBy) && (mainAriaLabelledBy || this.titleId), isNavOpen: this.state.isNavOpen, onNavToggle: isNavOpen => this.setState({ isNavOpen }), nav: nav, steps: steps, activeStep: activeStep, hasNoBodyPadding: hasNoBodyPadding }, footer || (React__namespace.createElement(WizardFooterInternal, { onNext: this.onNext, onBack: this.onBack, onClose: onClose, isValid: isValid, firstStep: firstStep, activeStep: activeStep, nextButtonText: (activeStep && activeStep.nextButtonText) || nextButtonText, backButtonText: backButtonText, cancelButtonText: cancelButtonText }))))));
20953
21083
  if (isOpen !== undefined) {
@@ -20986,7 +21116,7 @@
20986
21116
  isNavExpandable: false
20987
21117
  };
20988
21118
 
20989
- const WizardFooter = ({ children }) => (React__namespace.createElement("footer", { className: css(styles$a.wizardFooter) }, children));
21119
+ const WizardFooter = ({ children }) => (React__namespace.createElement("footer", { className: css(styles$8.wizardFooter) }, children));
20990
21120
  WizardFooter.displayName = 'WizardFooter';
20991
21121
 
20992
21122
  const DragDropContext = React__namespace.createContext({
@@ -20998,7 +21128,7 @@
20998
21128
  DragDrop.displayName = 'DragDrop';
20999
21129
 
21000
21130
  Promise.resolve().then(function () { return dragDrop; });
21001
- var styles$9 = {
21131
+ var styles$7 = {
21002
21132
  "draggable": "pf-c-draggable",
21003
21133
  "droppable": "pf-c-droppable",
21004
21134
  "modifiers": {
@@ -21047,8 +21177,8 @@
21047
21177
  // Reset per-element state
21048
21178
  function resetDroppableItem(droppableItem) {
21049
21179
  removeBlankDiv(droppableItem.node);
21050
- droppableItem.node.classList.remove(styles$9.modifiers.dragging);
21051
- droppableItem.node.classList.remove(styles$9.modifiers.dragOutside);
21180
+ droppableItem.node.classList.remove(styles$7.modifiers.dragging);
21181
+ droppableItem.node.classList.remove(styles$7.modifiers.dragOutside);
21052
21182
  droppableItem.draggableNodes.forEach((n, i) => {
21053
21183
  n.style.transform = '';
21054
21184
  n.style.transition = '';
@@ -21123,7 +21253,7 @@
21123
21253
  const { node, rect, isDraggingHost, draggableNodes, draggableNodesRects } = droppableItem;
21124
21254
  if (overlaps(ev, rect)) {
21125
21255
  // Add valid dropzone style
21126
- node.classList.remove(styles$9.modifiers.dragOutside);
21256
+ node.classList.remove(styles$7.modifiers.dragOutside);
21127
21257
  hoveringDroppable = node;
21128
21258
  // Check if we need to add a blank div row
21129
21259
  if (node.getAttribute('blankDiv') !== 'true' && !isDraggingHost) {
@@ -21159,8 +21289,8 @@
21159
21289
  }
21160
21290
  else {
21161
21291
  resetDroppableItem(droppableItem);
21162
- node.classList.add(styles$9.modifiers.dragging);
21163
- node.classList.add(styles$9.modifiers.dragOutside);
21292
+ node.classList.add(styles$7.modifiers.dragging);
21293
+ node.classList.add(styles$7.modifiers.dragOutside);
21164
21294
  }
21165
21295
  });
21166
21296
  // Move hovering draggable and style it based on cursor position
@@ -21208,7 +21338,7 @@
21208
21338
  const rect = dragging.getBoundingClientRect();
21209
21339
  const droppableNodes = Array.from(document.querySelectorAll(`[data-pf-droppable="${zone}"]`));
21210
21340
  const droppableItems = droppableNodes.reduce((acc, cur) => {
21211
- cur.classList.add(styles$9.modifiers.dragging);
21341
+ cur.classList.add(styles$7.modifiers.dragging);
21212
21342
  const draggableNodes = Array.from(cur.querySelectorAll(`[data-pf-draggable-zone="${zone}"]`));
21213
21343
  const isDraggingHost = cur.contains(dragging);
21214
21344
  if (isDraggingHost) {
@@ -21244,7 +21374,7 @@
21244
21374
  // Comment out this line to debug while dragging by right clicking
21245
21375
  // document.addEventListener('contextmenu', mouseUpListener);
21246
21376
  };
21247
- const childProps = Object.assign({ 'data-pf-draggable-zone': isDragging ? null : zone, draggable: true, className: css(styles$9.draggable, isDragging && styles$9.modifiers.dragging, !isValidDrag && styles$9.modifiers.dragOutside, className), onDragStart,
21377
+ const childProps = Object.assign({ 'data-pf-draggable-zone': isDragging ? null : zone, draggable: true, className: css(styles$7.draggable, isDragging && styles$7.modifiers.dragging, !isValidDrag && styles$7.modifiers.dragOutside, className), onDragStart,
21248
21378
  onTransitionEnd,
21249
21379
  style }, props);
21250
21380
  return (React__namespace.createElement(React__namespace.Fragment, null,
@@ -21258,108 +21388,12 @@
21258
21388
  const childProps = Object.assign({ 'data-pf-droppable': zone, 'data-pf-droppableid': droppableId,
21259
21389
  // if has no wrapper is set, don't overwrite children className with the className prop
21260
21390
  className: hasNoWrapper && React__namespace.Children.count(children) === 1
21261
- ? css(styles$9.droppable, className, children.props.className)
21262
- : css(styles$9.droppable, className) }, props);
21391
+ ? css(styles$7.droppable, className, children.props.className)
21392
+ : css(styles$7.droppable, className) }, props);
21263
21393
  return (React__namespace.createElement(DroppableContext.Provider, { value: { zone, droppableId } }, hasNoWrapper ? (React__namespace.cloneElement(children, childProps)) : (React__namespace.createElement("div", Object.assign({}, childProps), children))));
21264
21394
  };
21265
21395
  Droppable.displayName = 'Droppable';
21266
21396
 
21267
- Promise.resolve().then(function () { return textInputGroup; });
21268
- var styles$8 = {
21269
- "button": "pf-c-button",
21270
- "chipGroup": "pf-c-chip-group",
21271
- "chipGroupList": "pf-c-chip-group__list",
21272
- "modifiers": {
21273
- "disabled": "pf-m-disabled",
21274
- "plain": "pf-m-plain",
21275
- "icon": "pf-m-icon",
21276
- "hint": "pf-m-hint"
21277
- },
21278
- "textInputGroup": "pf-c-text-input-group",
21279
- "textInputGroupGroup": "pf-c-text-input-group__group",
21280
- "textInputGroupIcon": "pf-c-text-input-group__icon",
21281
- "textInputGroupMain": "pf-c-text-input-group__main",
21282
- "textInputGroupText": "pf-c-text-input-group__text",
21283
- "textInputGroupTextInput": "pf-c-text-input-group__text-input",
21284
- "textInputGroupUtilities": "pf-c-text-input-group__utilities"
21285
- };
21286
-
21287
- const TextInputGroupContext = React__namespace.createContext({
21288
- isDisabled: false
21289
- });
21290
- const TextInputGroup = (_a) => {
21291
- var { children, className, isDisabled } = _a, props = __rest$1(_a, ["children", "className", "isDisabled"]);
21292
- return (React__namespace.createElement(TextInputGroupContext.Provider, { value: { isDisabled } },
21293
- React__namespace.createElement("div", Object.assign({ className: css(styles$8.textInputGroup, isDisabled && styles$8.modifiers.disabled, className) }, props), children)));
21294
- };
21295
- TextInputGroup.displayName = 'TextInputGroup';
21296
-
21297
- const TextInputGroupMain = (_a) => {
21298
- var { children, className, icon, type = 'text', hint, onChange = () => undefined, onFocus, onBlur, 'aria-label': ariaLabel = 'Type to filter', value: inputValue, placeholder: inputPlaceHolder } = _a, props = __rest$1(_a, ["children", "className", "icon", "type", "hint", "onChange", "onFocus", "onBlur", 'aria-label', "value", "placeholder"]);
21299
- const { isDisabled } = React__namespace.useContext(TextInputGroupContext);
21300
- const handleChange = (event) => {
21301
- onChange(event.currentTarget.value, event);
21302
- };
21303
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$8.textInputGroupMain, icon && styles$8.modifiers.icon, className) }, props),
21304
- children,
21305
- React__namespace.createElement("span", { className: css(styles$8.textInputGroupText) },
21306
- hint && (React__namespace.createElement("input", { className: css(styles$8.textInputGroupTextInput, styles$8.modifiers.hint), type: "text", disabled: true, "aria-hidden": "true", value: hint })),
21307
- icon && React__namespace.createElement("span", { className: css(styles$8.textInputGroupIcon) }, icon),
21308
- React__namespace.createElement("input", { type: type, className: css(styles$8.textInputGroupTextInput), "aria-label": ariaLabel, disabled: isDisabled, onChange: handleChange, onFocus: onFocus, onBlur: onBlur, value: inputValue || '', placeholder: inputPlaceHolder }))));
21309
- };
21310
- TextInputGroupMain.displayName = 'TextInputGroupMain';
21311
-
21312
- const TextInputGroupUtilities = (_a) => {
21313
- var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
21314
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$8.textInputGroupUtilities, className) }, props), children));
21315
- };
21316
- TextInputGroupUtilities.displayName = 'TextInputGroupUtilities';
21317
-
21318
- Promise.resolve().then(function () { return panel; });
21319
- var styles$7 = {
21320
- "modifiers": {
21321
- "bordered": "pf-m-bordered",
21322
- "raised": "pf-m-raised",
21323
- "scrollable": "pf-m-scrollable"
21324
- },
21325
- "panel": "pf-c-panel",
21326
- "panelFooter": "pf-c-panel__footer",
21327
- "panelHeader": "pf-c-panel__header",
21328
- "panelMain": "pf-c-panel__main",
21329
- "panelMainBody": "pf-c-panel__main-body"
21330
- };
21331
-
21332
- const PanelBase = (_a) => {
21333
- var { className, children, variant, isScrollable, innerRef } = _a, props = __rest$1(_a, ["className", "children", "variant", "isScrollable", "innerRef"]);
21334
- 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));
21335
- };
21336
- const Panel = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(PanelBase, Object.assign({ innerRef: ref }, props))));
21337
- Panel.displayName = 'Panel';
21338
-
21339
- const PanelMain = (_a) => {
21340
- var { className, children, maxHeight } = _a, props = __rest$1(_a, ["className", "children", "maxHeight"]);
21341
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$7.panelMain, className), style: { '--pf-c-panel__main--MaxHeight': maxHeight } }, props), children));
21342
- };
21343
- PanelMain.displayName = 'PanelMain';
21344
-
21345
- const PanelMainBody = (_a) => {
21346
- var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
21347
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$7.panelMainBody, className) }, props), children));
21348
- };
21349
- PanelMainBody.displayName = 'PanelMainBody';
21350
-
21351
- const PanelHeader = (_a) => {
21352
- var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
21353
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$7.panelHeader, className) }, props), children));
21354
- };
21355
- PanelHeader.displayName = 'PanelHeader';
21356
-
21357
- const PanelFooter = (_a) => {
21358
- var { className, children } = _a, props = __rest$1(_a, ["className", "children"]);
21359
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$7.panelFooter, className) }, props), children));
21360
- };
21361
- PanelFooter.displayName = 'PanelFooter';
21362
-
21363
21397
  Promise.resolve().then(function () { return truncate; });
21364
21398
  var styles$6 = {
21365
21399
  "truncate": "pf-c-truncate",
@@ -22536,6 +22570,14 @@
22536
22570
  __proto__: null
22537
22571
  });
22538
22572
 
22573
+ var panel = /*#__PURE__*/Object.freeze({
22574
+ __proto__: null
22575
+ });
22576
+
22577
+ var textInputGroup = /*#__PURE__*/Object.freeze({
22578
+ __proto__: null
22579
+ });
22580
+
22539
22581
  var simpleList = /*#__PURE__*/Object.freeze({
22540
22582
  __proto__: null
22541
22583
  });
@@ -22592,14 +22634,6 @@
22592
22634
  __proto__: null
22593
22635
  });
22594
22636
 
22595
- var textInputGroup = /*#__PURE__*/Object.freeze({
22596
- __proto__: null
22597
- });
22598
-
22599
- var panel = /*#__PURE__*/Object.freeze({
22600
- __proto__: null
22601
- });
22602
-
22603
22637
  var truncate = /*#__PURE__*/Object.freeze({
22604
22638
  __proto__: null
22605
22639
  });