@patternfly/react-core 4.221.16 → 4.222.1

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 (48) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/esm/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  3. package/dist/esm/components/CalendarMonth/CalendarMonth.js +35 -30
  4. package/dist/esm/components/CalendarMonth/CalendarMonth.js.map +1 -1
  5. package/dist/esm/components/Form/FormGroup.d.ts +4 -0
  6. package/dist/esm/components/Form/FormGroup.d.ts.map +1 -1
  7. package/dist/esm/components/Form/FormGroup.js +6 -4
  8. package/dist/esm/components/Form/FormGroup.js.map +1 -1
  9. package/dist/esm/components/Form/FormSection.d.ts.map +1 -1
  10. package/dist/esm/components/Form/FormSection.js +4 -3
  11. package/dist/esm/components/Form/FormSection.js.map +1 -1
  12. package/dist/esm/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  13. package/dist/esm/components/Form/InternalFormFieldGroup.js +1 -1
  14. package/dist/esm/components/Form/InternalFormFieldGroup.js.map +1 -1
  15. package/dist/esm/components/Select/Select.d.ts.map +1 -1
  16. package/dist/esm/components/Select/Select.js +21 -14
  17. package/dist/esm/components/Select/Select.js.map +1 -1
  18. package/dist/js/components/CalendarMonth/CalendarMonth.d.ts.map +1 -1
  19. package/dist/js/components/CalendarMonth/CalendarMonth.js +35 -30
  20. package/dist/js/components/CalendarMonth/CalendarMonth.js.map +1 -1
  21. package/dist/js/components/Form/FormGroup.d.ts +4 -0
  22. package/dist/js/components/Form/FormGroup.d.ts.map +1 -1
  23. package/dist/js/components/Form/FormGroup.js +6 -4
  24. package/dist/js/components/Form/FormGroup.js.map +1 -1
  25. package/dist/js/components/Form/FormSection.d.ts.map +1 -1
  26. package/dist/js/components/Form/FormSection.js +4 -3
  27. package/dist/js/components/Form/FormSection.js.map +1 -1
  28. package/dist/js/components/Form/InternalFormFieldGroup.d.ts.map +1 -1
  29. package/dist/js/components/Form/InternalFormFieldGroup.js +1 -1
  30. package/dist/js/components/Form/InternalFormFieldGroup.js.map +1 -1
  31. package/dist/js/components/Select/Select.d.ts.map +1 -1
  32. package/dist/js/components/Select/Select.js +21 -14
  33. package/dist/js/components/Select/Select.js.map +1 -1
  34. package/dist/umd/react-core.js +308 -308
  35. package/dist/umd/react-core.min.css +69 -69
  36. package/dist/umd/react-core.min.js +4 -4
  37. package/package.json +5 -5
  38. package/src/components/CalendarMonth/CalendarMonth.tsx +57 -51
  39. package/src/components/Form/FormGroup.tsx +17 -3
  40. package/src/components/Form/FormSection.tsx +18 -4
  41. package/src/components/Form/InternalFormFieldGroup.tsx +2 -0
  42. package/src/components/Form/__tests__/FormFieldGroup.test.tsx +23 -1
  43. package/src/components/Form/__tests__/FormGroup.test.tsx +89 -0
  44. package/src/components/Form/__tests__/FormSection.test.tsx +13 -1
  45. package/src/components/Form/__tests__/__snapshots__/FormFieldGroup.test.tsx.snap +4 -0
  46. package/src/components/Form/__tests__/__snapshots__/FormSection.test.tsx.snap +4 -0
  47. package/src/components/Form/examples/Form.md +45 -12
  48. package/src/components/Select/Select.tsx +16 -4
@@ -7527,21 +7527,28 @@
7527
7527
  this.refCollection[this.state.viewMoreNextIndex][0].focus();
7528
7528
  this.setState({ viewMoreNextIndex: -1 });
7529
7529
  }
7530
+ const checkUpdatedChildren = (prevChildren, currChildren) => prevChildren.some((prevChild, index) => {
7531
+ const prevChildProps = prevChild.props;
7532
+ const currChild = currChildren[index];
7533
+ const { props: currChildProps } = currChild;
7534
+ if (prevChildProps && currChildProps) {
7535
+ return (prevChildProps.value !== currChildProps.value ||
7536
+ prevChildProps.label !== currChildProps.label ||
7537
+ prevChildProps.isDisabled !== currChildProps.isDisabled ||
7538
+ prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
7539
+ }
7540
+ else {
7541
+ return prevChild !== currChild;
7542
+ }
7543
+ });
7530
7544
  const hasUpdatedChildren = prevProps.children.length !== this.props.children.length ||
7531
- prevProps.children.some((prevChild, index) => {
7532
- const prevChildProps = prevChild.props;
7533
- const currChild = this.props.children[index];
7534
- const { props: currChildProps } = currChild;
7535
- if (prevChildProps && currChildProps) {
7536
- return (prevChildProps.value !== currChildProps.value ||
7537
- prevChildProps.label !== currChildProps.label ||
7538
- prevChildProps.isDisabled !== currChildProps.isDisabled ||
7539
- prevChildProps.isPlaceholder !== currChildProps.isPlaceholder);
7540
- }
7541
- else {
7542
- return prevChild !== currChild;
7543
- }
7544
- });
7545
+ checkUpdatedChildren(prevProps.children, this.props.children) ||
7546
+ (this.props.isGrouped &&
7547
+ prevProps.children.some((prevChild, index) => prevChild.type === SelectGroup &&
7548
+ prevChild.props.children &&
7549
+ this.props.children[index].props.children &&
7550
+ (prevChild.props.children.length !== this.props.children[index].props.children.length ||
7551
+ checkUpdatedChildren(prevChild.props.children, this.props.children[index].props.children))));
7545
7552
  if (hasUpdatedChildren) {
7546
7553
  this.updateTypeAheadFilteredChildren(prevState.typeaheadInputValue || '', null);
7547
7554
  }
@@ -8374,34 +8381,170 @@
8374
8381
  isFlipEnabled: false
8375
8382
  };
8376
8383
 
8377
- const ArrowLeftIconConfig = {
8378
- name: 'ArrowLeftIcon',
8379
- height: 512,
8380
- width: 448,
8381
- svgPath: 'M257.5 445.1l-22.2 22.2c-9.4 9.4-24.6 9.4-33.9 0L7 273c-9.4-9.4-9.4-24.6 0-33.9L201.4 44.7c9.4-9.4 24.6-9.4 33.9 0l22.2 22.2c9.5 9.5 9.3 25-.4 34.3L136.6 216H424c13.3 0 24 10.7 24 24v32c0 13.3-10.7 24-24 24H136.6l120.5 114.8c9.8 9.3 10 24.8.4 34.3z',
8382
- yOffset: 0,
8383
- xOffset: 0,
8384
+ Promise.resolve().then(function () { return inputGroup; });
8385
+ var styles$V = {
8386
+ "formControl": "pf-c-form-control",
8387
+ "inputGroup": "pf-c-input-group",
8388
+ "inputGroupText": "pf-c-input-group__text",
8389
+ "modifiers": {
8390
+ "plain": "pf-m-plain"
8391
+ },
8392
+ "themeDark": "pf-theme-dark"
8384
8393
  };
8385
8394
 
8386
- const ArrowLeftIcon = createIcon(ArrowLeftIconConfig);
8395
+ class FormSelect extends React__namespace.Component {
8396
+ constructor(props) {
8397
+ super(props);
8398
+ this.handleChange = (event) => {
8399
+ this.props.onChange(event.currentTarget.value, event);
8400
+ };
8401
+ if (!props.id && !props['aria-label']) {
8402
+ // eslint-disable-next-line no-console
8403
+ console.error('FormSelect requires either an id or aria-label to be specified');
8404
+ }
8405
+ this.state = {
8406
+ ouiaStateId: getDefaultOUIAId(FormSelect.displayName, props.validated)
8407
+ };
8408
+ }
8409
+ render() {
8410
+ const _a = this.props, { children, className, value, validated, isDisabled, isRequired, isIconSprite, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["children", "className", "value", "validated", "isDisabled", "isRequired", "isIconSprite", "ouiaId", "ouiaSafe"]);
8411
+ /* find selected option and get placeholder flag */
8412
+ const selectedOption = React__namespace.Children.toArray(children).find((option) => option.props.value === value);
8413
+ const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
8414
+ return (React__namespace.createElement("select", Object.assign({}, props, { className: css(formStyles.formControl, isIconSprite && formStyles.modifiers.iconSprite, className, validated === exports.ValidatedOptions.success && formStyles.modifiers.success, validated === exports.ValidatedOptions.warning && formStyles.modifiers.warning, isSelectedPlaceholder && formStyles.modifiers.placeholder), "aria-invalid": validated === exports.ValidatedOptions.error }, getOUIAProps(FormSelect.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { onChange: this.handleChange, disabled: isDisabled, required: isRequired, value: value }), children));
8415
+ }
8416
+ }
8417
+ FormSelect.displayName = 'FormSelect';
8418
+ FormSelect.defaultProps = {
8419
+ className: '',
8420
+ value: '',
8421
+ validated: 'default',
8422
+ isDisabled: false,
8423
+ isRequired: false,
8424
+ isIconSprite: false,
8425
+ onBlur: () => undefined,
8426
+ onFocus: () => undefined,
8427
+ onChange: () => undefined,
8428
+ ouiaSafe: true
8429
+ };
8387
8430
 
8388
- var ArrowLeftIcon$1 = ArrowLeftIcon;
8431
+ const FormSelectOption = (_a) => {
8432
+ var { className = '', value = '', isDisabled = false, label,
8433
+ // eslint-disable-next-line @typescript-eslint/no-unused-vars
8434
+ isPlaceholder = false } = _a, props = __rest$1(_a, ["className", "value", "isDisabled", "label", "isPlaceholder"]);
8435
+ return (React__namespace.createElement("option", Object.assign({}, props, { className: className, value: value, disabled: isDisabled }), label));
8436
+ };
8437
+ FormSelectOption.displayName = 'FormSelectOption';
8389
8438
 
8390
- const ArrowRightIconConfig = {
8391
- name: 'ArrowRightIcon',
8439
+ const FormSelectOptionGroup = (_a) => {
8440
+ var { children = null, className = '', isDisabled = false, label } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "label"]);
8441
+ return (React__namespace.createElement("optgroup", Object.assign({}, props, { disabled: !!isDisabled, className: className, label: label }), children));
8442
+ };
8443
+ FormSelectOptionGroup.displayName = 'FormSelectOptionGroup';
8444
+
8445
+ const c_form_control_textarea_Height = {
8446
+ "name": "--pf-c-form-control--textarea--Height",
8447
+ "value": "auto",
8448
+ "var": "var(--pf-c-form-control--textarea--Height)"
8449
+ };
8450
+ var heightToken = c_form_control_textarea_Height;
8451
+
8452
+ exports.TextAreResizeOrientation = void 0;
8453
+ (function (TextAreResizeOrientation) {
8454
+ TextAreResizeOrientation["horizontal"] = "horizontal";
8455
+ TextAreResizeOrientation["vertical"] = "vertical";
8456
+ TextAreResizeOrientation["both"] = "both";
8457
+ })(exports.TextAreResizeOrientation || (exports.TextAreResizeOrientation = {}));
8458
+ class TextAreaBase extends React__namespace.Component {
8459
+ constructor(props) {
8460
+ super(props);
8461
+ this.handleChange = (event) => {
8462
+ // https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
8463
+ const field = event.currentTarget;
8464
+ if (this.props.autoResize && canUseDOM) {
8465
+ field.style.setProperty(heightToken.name, 'inherit');
8466
+ const computed = window.getComputedStyle(field);
8467
+ // Calculate the height
8468
+ const height = parseInt(computed.getPropertyValue('border-top-width')) +
8469
+ parseInt(computed.getPropertyValue('padding-top')) +
8470
+ field.scrollHeight +
8471
+ parseInt(computed.getPropertyValue('padding-bottom')) +
8472
+ parseInt(computed.getPropertyValue('border-bottom-width'));
8473
+ field.style.setProperty(heightToken.name, `${height}px`);
8474
+ }
8475
+ if (this.props.onChange) {
8476
+ this.props.onChange(field.value, event);
8477
+ }
8478
+ };
8479
+ if (!props.id && !props['aria-label']) {
8480
+ // eslint-disable-next-line no-console
8481
+ console.error('TextArea: TextArea requires either an id or aria-label to be specified');
8482
+ }
8483
+ }
8484
+ render() {
8485
+ const _a = this.props, { className, value, validated, isRequired, isDisabled, isIconSprite, isReadOnly, resizeOrientation, innerRef, readOnly, disabled,
8486
+ /* eslint-disable @typescript-eslint/no-unused-vars */
8487
+ autoResize, onChange } = _a,
8488
+ /* eslint-enable @typescript-eslint/no-unused-vars */
8489
+ props = __rest$1(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isIconSprite", "isReadOnly", "resizeOrientation", "innerRef", "readOnly", "disabled", "autoResize", "onChange"]);
8490
+ const orientation = `resize${capitalize(resizeOrientation)}`;
8491
+ return (React__namespace.createElement("textarea", Object.assign({ className: css(formStyles.formControl, isIconSprite && formStyles.modifiers.iconSprite, className, resizeOrientation !== exports.TextAreResizeOrientation.both && formStyles.modifiers[orientation], validated === exports.ValidatedOptions.success && formStyles.modifiers.success, validated === exports.ValidatedOptions.warning && formStyles.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === exports.ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef }, props)));
8492
+ }
8493
+ }
8494
+ TextAreaBase.displayName = 'TextArea';
8495
+ TextAreaBase.defaultProps = {
8496
+ innerRef: React__namespace.createRef(),
8497
+ className: '',
8498
+ isRequired: false,
8499
+ isDisabled: false,
8500
+ isIconSprite: false,
8501
+ validated: 'default',
8502
+ resizeOrientation: 'both',
8503
+ 'aria-label': null
8504
+ };
8505
+ const TextArea = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TextAreaBase, Object.assign({}, props, { innerRef: ref }))));
8506
+ TextArea.displayName = 'TextArea';
8507
+
8508
+ const InputGroup = (_a) => {
8509
+ var { className = '', children, innerRef } = _a, props = __rest$1(_a, ["className", "children", "innerRef"]);
8510
+ const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
8511
+ const idItem = React__namespace.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
8512
+ const inputGroupRef = innerRef || React__namespace.useRef(null);
8513
+ return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$V.inputGroup, className) }, props), idItem
8514
+ ? React__namespace.Children.map(children, (child) => formCtrls.includes(child.type.displayName)
8515
+ ? React__namespace.cloneElement(child, { 'aria-describedby': idItem.props.id })
8516
+ : child)
8517
+ : children));
8518
+ };
8519
+ InputGroup.displayName = 'InputGroup';
8520
+
8521
+ exports.InputGroupTextVariant = void 0;
8522
+ (function (InputGroupTextVariant) {
8523
+ InputGroupTextVariant["default"] = "default";
8524
+ InputGroupTextVariant["plain"] = "plain";
8525
+ })(exports.InputGroupTextVariant || (exports.InputGroupTextVariant = {}));
8526
+ const InputGroupText = (_a) => {
8527
+ var { className = '', component = 'span', children, variant = exports.InputGroupTextVariant.default } = _a, props = __rest$1(_a, ["className", "component", "children", "variant"]);
8528
+ const Component = component;
8529
+ return (React__namespace.createElement(Component, Object.assign({ className: css(styles$V.inputGroupText, variant === exports.InputGroupTextVariant.plain && styles$V.modifiers.plain, className) }, props), children));
8530
+ };
8531
+ InputGroupText.displayName = 'InputGroupText';
8532
+
8533
+ const AngleLeftIconConfig = {
8534
+ name: 'AngleLeftIcon',
8392
8535
  height: 512,
8393
- width: 448,
8394
- svgPath: 'M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z',
8536
+ width: 256,
8537
+ svgPath: 'M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z',
8395
8538
  yOffset: 0,
8396
8539
  xOffset: 0,
8397
8540
  };
8398
8541
 
8399
- const ArrowRightIcon = createIcon(ArrowRightIconConfig);
8542
+ const AngleLeftIcon = createIcon(AngleLeftIconConfig);
8400
8543
 
8401
- var ArrowRightIcon$1 = ArrowRightIcon;
8544
+ var AngleLeftIcon$1 = AngleLeftIcon;
8402
8545
 
8403
8546
  Promise.resolve().then(function () { return calendarMonth; });
8404
- var styles$V = {
8547
+ var styles$U = {
8405
8548
  "calendarMonth": "pf-c-calendar-month",
8406
8549
  "calendarMonthCalendar": "pf-c-calendar-month__calendar",
8407
8550
  "calendarMonthDate": "pf-c-calendar-month__date",
@@ -8445,7 +8588,7 @@
8445
8588
  const defaultDate = new Date(year, month);
8446
8589
  const firstDayOfWeek = new Date(defaultDate);
8447
8590
  firstDayOfWeek.setDate(firstDayOfWeek.getDate() - firstDayOfWeek.getDay() + weekStart);
8448
- // We will always show 6 weeks like google calendar
8591
+ // We will show a maximum of 6 weeks like Google calendar
8449
8592
  // Assume we just want the numbers for now...
8450
8593
  const calendarWeeks = [];
8451
8594
  for (let i = 0; i < 6; i++) {
@@ -8459,6 +8602,9 @@
8459
8602
  firstDayOfWeek.setDate(firstDayOfWeek.getDate() + 1);
8460
8603
  }
8461
8604
  calendarWeeks.push(week);
8605
+ if (firstDayOfWeek.getMonth() !== defaultDate.getMonth()) {
8606
+ break;
8607
+ }
8462
8608
  }
8463
8609
  return calendarWeeks;
8464
8610
  };
@@ -8558,50 +8704,51 @@
8558
8704
  const isHoveredDateValid = isValidated(hoveredDate);
8559
8705
  const monthFormatted = monthFormat(focusedDate);
8560
8706
  const yearFormatted = yearFormat(focusedDate);
8561
- return (React__default["default"].createElement("div", Object.assign({ className: css(styles$V.calendarMonth, className) }, props),
8562
- React__default["default"].createElement("div", { className: styles$V.calendarMonthHeader },
8563
- React__default["default"].createElement("div", { className: css(styles$V.calendarMonthHeaderNavControl, styles$V.modifiers.prevMonth) },
8707
+ return (React__default["default"].createElement("div", Object.assign({ className: css(styles$U.calendarMonth, className) }, props),
8708
+ React__default["default"].createElement("div", { className: styles$U.calendarMonthHeader },
8709
+ React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.prevMonth) },
8564
8710
  React__default["default"].createElement(Button, { variant: "plain", "aria-label": prevMonthAriaLabel, onClick: () => onMonthClick(prevMonth) },
8565
- React__default["default"].createElement(ArrowLeftIcon$1, { "aria-hidden": true }))),
8566
- React__default["default"].createElement("div", { className: styles$V.calendarMonthHeaderMonth },
8567
- React__default["default"].createElement("span", { id: hiddenMonthId, hidden: true }, "Month"),
8568
- React__default["default"].createElement(Select
8569
- // Max width with "September"
8570
- , {
8711
+ React__default["default"].createElement(AngleLeftIcon$1, { "aria-hidden": true }))),
8712
+ React__default["default"].createElement(InputGroup, null,
8713
+ React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderMonth },
8714
+ React__default["default"].createElement("span", { id: hiddenMonthId, hidden: true }, "Month"),
8715
+ React__default["default"].createElement(Select
8571
8716
  // Max width with "September"
8572
- width: "140px", "aria-labelledby": hiddenMonthId, isOpen: isSelectOpen, onToggle: () => {
8573
- setIsSelectOpen(!isSelectOpen);
8574
- onSelectToggle(!isSelectOpen);
8575
- }, onSelect: (_ev, monthNum) => {
8576
- // When we put CalendarMonth in a Popover we want the Popover's onDocumentClick
8577
- // to see the SelectOption as a child so it doesn't close the Popover.
8578
- setTimeout(() => {
8579
- setIsSelectOpen(false);
8580
- onSelectToggle(false);
8717
+ , {
8718
+ // Max width with "September"
8719
+ width: "140px", "aria-labelledby": hiddenMonthId, isOpen: isSelectOpen, onToggle: () => {
8720
+ setIsSelectOpen(!isSelectOpen);
8721
+ onSelectToggle(!isSelectOpen);
8722
+ }, onSelect: (_ev, monthNum) => {
8723
+ // When we put CalendarMonth in a Popover we want the Popover's onDocumentClick
8724
+ // to see the SelectOption as a child so it doesn't close the Popover.
8725
+ setTimeout(() => {
8726
+ setIsSelectOpen(false);
8727
+ onSelectToggle(false);
8728
+ const newDate = new Date(focusedDate);
8729
+ newDate.setMonth(Number(monthNum));
8730
+ setFocusedDate(newDate);
8731
+ setHoveredDate(newDate);
8732
+ setShouldFocus(false);
8733
+ }, 0);
8734
+ }, variant: "single", selections: monthFormatted }, longMonths.map((longMonth, index) => (React__default["default"].createElement(SelectOption, { key: index, value: index, isSelected: longMonth === monthFormatted }, longMonth))))),
8735
+ React__default["default"].createElement("div", { className: styles$U.calendarMonthHeaderYear },
8736
+ React__default["default"].createElement(TextInput, { "aria-label": yearInputAriaLabel, type: "number", value: yearFormatted, onChange: year => {
8581
8737
  const newDate = new Date(focusedDate);
8582
- newDate.setMonth(Number(monthNum));
8738
+ newDate.setFullYear(+year);
8583
8739
  setFocusedDate(newDate);
8584
8740
  setHoveredDate(newDate);
8585
8741
  setShouldFocus(false);
8586
- }, 0);
8587
- }, variant: "single", selections: monthFormatted }, longMonths.map((longMonth, index) => (React__default["default"].createElement(SelectOption, { key: index, value: index, isSelected: longMonth === monthFormatted }, longMonth))))),
8588
- React__default["default"].createElement("div", { className: styles$V.calendarMonthHeaderYear },
8589
- React__default["default"].createElement(TextInput, { "aria-label": yearInputAriaLabel, type: "number", value: yearFormatted, onChange: year => {
8590
- const newDate = new Date(focusedDate);
8591
- newDate.setFullYear(+year);
8592
- setFocusedDate(newDate);
8593
- setHoveredDate(newDate);
8594
- setShouldFocus(false);
8595
- } })),
8596
- React__default["default"].createElement("div", { className: css(styles$V.calendarMonthHeaderNavControl, styles$V.modifiers.nextMonth) },
8742
+ } }))),
8743
+ React__default["default"].createElement("div", { className: css(styles$U.calendarMonthHeaderNavControl, styles$U.modifiers.nextMonth) },
8597
8744
  React__default["default"].createElement(Button, { variant: "plain", "aria-label": nextMonthAriaLabel, onClick: () => onMonthClick(nextMonth) },
8598
- React__default["default"].createElement(ArrowRightIcon$1, { "aria-hidden": true })))),
8599
- React__default["default"].createElement("table", { className: styles$V.calendarMonthCalendar },
8600
- React__default["default"].createElement("thead", { className: styles$V.calendarMonthDays },
8601
- React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$V.calendarMonthDay, scope: "col" },
8745
+ React__default["default"].createElement(AngleRightIcon$1, { "aria-hidden": true })))),
8746
+ React__default["default"].createElement("table", { className: styles$U.calendarMonthCalendar },
8747
+ React__default["default"].createElement("thead", { className: styles$U.calendarMonthDays },
8748
+ React__default["default"].createElement("tr", null, calendar[0].map(({ date }, index) => (React__default["default"].createElement("th", { key: index, className: styles$U.calendarMonthDay, scope: "col" },
8602
8749
  React__default["default"].createElement("span", { className: "pf-screen-reader" }, longWeekdayFormat(date)),
8603
8750
  React__default["default"].createElement("span", { "aria-hidden": true }, weekdayFormat(date))))))),
8604
- React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$V.calendarMonthDatesRow }, week.map(({ date, isValid }, index) => {
8751
+ React__default["default"].createElement("tbody", { onKeyDown: onKeyDown }, calendar.map((week, index) => (React__default["default"].createElement("tr", { key: index, className: styles$U.calendarMonthDatesRow }, week.map(({ date, isValid }, index) => {
8605
8752
  const dayFormatted = dayFormat(date);
8606
8753
  const isToday = isSameDate(date, today);
8607
8754
  const isSelected = isValidDate(dateProp) && isSameDate(date, dateProp);
@@ -8622,13 +8769,13 @@
8622
8769
  // Don't handle focused dates before start dates for now.
8623
8770
  // Core would likely need new styles
8624
8771
  }
8625
- return (React__default["default"].createElement("td", { key: index, className: css(styles$V.calendarMonthDatesCell, isAdjacentMonth && styles$V.modifiers.adjacentMonth, isToday && styles$V.modifiers.current, (isSelected || isRangeStart) && styles$V.modifiers.selected, !isValid && styles$V.modifiers.disabled, (isInRange || isRangeStart || isRangeEnd) && styles$V.modifiers.inRange, isRangeStart && styles$V.modifiers.startRange, isRangeEnd && styles$V.modifiers.endRange) },
8626
- React__default["default"].createElement("button", Object.assign({ className: css(styles$V.calendarMonthDate, isRangeEnd && styles$V.modifiers.hover, !isValid && styles$V.modifiers.disabled), type: "button", onClick: () => onChange(date), onMouseOver: () => setHoveredDate(date), tabIndex: isFocused ? 0 : -1, disabled: !isValid, "aria-label": cellAriaLabel ? cellAriaLabel(date) : `${dayFormatted} ${monthFormatted} ${yearFormatted}` }, (isFocused && { ref: focusRef })), dayFormatted)));
8772
+ return (React__default["default"].createElement("td", { key: index, className: css(styles$U.calendarMonthDatesCell, isAdjacentMonth && styles$U.modifiers.adjacentMonth, isToday && styles$U.modifiers.current, (isSelected || isRangeStart) && styles$U.modifiers.selected, !isValid && styles$U.modifiers.disabled, (isInRange || isRangeStart || isRangeEnd) && styles$U.modifiers.inRange, isRangeStart && styles$U.modifiers.startRange, isRangeEnd && styles$U.modifiers.endRange) },
8773
+ React__default["default"].createElement("button", Object.assign({ className: css(styles$U.calendarMonthDate, isRangeEnd && styles$U.modifiers.hover, !isValid && styles$U.modifiers.disabled), type: "button", onClick: () => onChange(date), onMouseOver: () => setHoveredDate(date), tabIndex: isFocused ? 0 : -1, disabled: !isValid, "aria-label": cellAriaLabel ? cellAriaLabel(date) : `${dayFormatted} ${monthFormatted} ${yearFormatted}` }, (isFocused && { ref: focusRef })), dayFormatted)));
8627
8774
  }))))))));
8628
8775
  };
8629
8776
 
8630
8777
  Promise.resolve().then(function () { return card; });
8631
- var styles$U = {
8778
+ var styles$T = {
8632
8779
  "card": "pf-c-card",
8633
8780
  "cardActions": "pf-c-card__actions",
8634
8781
  "cardBody": "pf-c-card__body",
@@ -8679,13 +8826,13 @@
8679
8826
  }
8680
8827
  const getSelectableModifiers = () => {
8681
8828
  if (isDisabledRaised) {
8682
- return css(styles$U.modifiers.nonSelectableRaised);
8829
+ return css(styles$T.modifiers.nonSelectableRaised);
8683
8830
  }
8684
8831
  if (isSelectableRaised) {
8685
- return css(styles$U.modifiers.selectableRaised, isSelected && styles$U.modifiers.selectedRaised);
8832
+ return css(styles$T.modifiers.selectableRaised, isSelected && styles$T.modifiers.selectedRaised);
8686
8833
  }
8687
8834
  if (isSelectable || isHoverable) {
8688
- return css(styles$U.modifiers.selectable, isSelected && styles$U.modifiers.selected);
8835
+ return css(styles$T.modifiers.selectable, isSelected && styles$T.modifiers.selected);
8689
8836
  }
8690
8837
  return '';
8691
8838
  };
@@ -8713,33 +8860,33 @@
8713
8860
  isExpanded
8714
8861
  } },
8715
8862
  hasSelectableInput && (React__namespace.createElement("input", Object.assign({ className: "pf-screen-reader", id: `${id}-input` }, ariaProps, { type: "checkbox", checked: isSelected, onChange: event => onSelectableInputChange(id, event), disabled: isDisabledRaised, tabIndex: -1 }))),
8716
- React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$U.card, isCompact && styles$U.modifiers.compact, isExpanded && styles$U.modifiers.expanded, isFlat && styles$U.modifiers.flat, isRounded && styles$U.modifiers.rounded, isLarge && styles$U.modifiers.displayLg, isFullHeight && styles$U.modifiers.fullHeight, isPlain && styles$U.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
8863
+ React__namespace.createElement(Component, Object.assign({ id: id, className: css(styles$T.card, isCompact && styles$T.modifiers.compact, isExpanded && styles$T.modifiers.expanded, isFlat && styles$T.modifiers.flat, isRounded && styles$T.modifiers.rounded, isLarge && styles$T.modifiers.displayLg, isFullHeight && styles$T.modifiers.fullHeight, isPlain && styles$T.modifiers.plain, getSelectableModifiers(), className), tabIndex: isSelectable || isSelectableRaised ? '0' : undefined }, props, ouiaProps), children)));
8717
8864
  };
8718
8865
  Card.displayName = 'Card';
8719
8866
 
8720
8867
  const CardActions = (_a) => {
8721
8868
  var { children = null, className = '', hasNoOffset = false } = _a, props = __rest$1(_a, ["children", "className", "hasNoOffset"]);
8722
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$U.cardActions, hasNoOffset && styles$U.modifiers.noOffset, className) }, props), children));
8869
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardActions, hasNoOffset && styles$T.modifiers.noOffset, className) }, props), children));
8723
8870
  };
8724
8871
  CardActions.displayName = 'CardActions';
8725
8872
 
8726
8873
  const CardBody = (_a) => {
8727
8874
  var { children = null, className = '', component = 'div', isFilled = true } = _a, props = __rest$1(_a, ["children", "className", "component", "isFilled"]);
8728
8875
  const Component = component;
8729
- return (React__namespace.createElement(Component, Object.assign({ className: css(styles$U.cardBody, !isFilled && styles$U.modifiers.noFill, className) }, props), children));
8876
+ return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardBody, !isFilled && styles$T.modifiers.noFill, className) }, props), children));
8730
8877
  };
8731
8878
  CardBody.displayName = 'CardBody';
8732
8879
 
8733
8880
  const CardExpandableContent = (_a) => {
8734
8881
  var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
8735
- return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$U.cardExpandableContent, className) }, props), children)) : null));
8882
+ return (React__namespace.createElement(CardContext.Consumer, null, ({ isExpanded }) => isExpanded ? (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardExpandableContent, className) }, props), children)) : null));
8736
8883
  };
8737
8884
  CardExpandableContent.displayName = 'CardExpandableContent';
8738
8885
 
8739
8886
  const CardFooter = (_a) => {
8740
8887
  var { children = null, className = '', component = 'div' } = _a, props = __rest$1(_a, ["children", "className", "component"]);
8741
8888
  const Component = component;
8742
- return (React__namespace.createElement(Component, Object.assign({ className: css(styles$U.cardFooter, className) }, props), children));
8889
+ return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardFooter, className) }, props), children));
8743
8890
  };
8744
8891
  CardFooter.displayName = 'CardFooter';
8745
8892
 
@@ -8752,20 +8899,20 @@
8752
8899
  registerTitleId(titleId);
8753
8900
  return () => registerTitleId('');
8754
8901
  }, [registerTitleId, titleId]);
8755
- return (React__namespace.createElement(Component, Object.assign({ className: css(styles$U.cardTitle, className), id: titleId || undefined }, props), children));
8902
+ return (React__namespace.createElement(Component, Object.assign({ className: css(styles$T.cardTitle, className), id: titleId || undefined }, props), children));
8756
8903
  };
8757
8904
  CardTitle.displayName = 'CardTitle';
8758
8905
 
8759
8906
  const CardHeader = (_a) => {
8760
8907
  var { children = null, className = '', id, onExpand, toggleButtonProps, isToggleRightAligned } = _a, props = __rest$1(_a, ["children", "className", "id", "onExpand", "toggleButtonProps", "isToggleRightAligned"]);
8761
8908
  return (React__namespace.createElement(CardContext.Consumer, null, ({ cardId }) => {
8762
- const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$U.cardHeaderToggle) },
8909
+ const cardHeaderToggle = (React__namespace.createElement("div", { className: css(styles$T.cardHeaderToggle) },
8763
8910
  React__namespace.createElement(Button, Object.assign({ variant: "plain", type: "button", onClick: evt => {
8764
8911
  onExpand(evt, cardId);
8765
8912
  } }, toggleButtonProps),
8766
- React__namespace.createElement("span", { className: css(styles$U.cardHeaderToggleIcon) },
8913
+ React__namespace.createElement("span", { className: css(styles$T.cardHeaderToggleIcon) },
8767
8914
  React__namespace.createElement(AngleRightIcon$1, { "aria-hidden": "true" })))));
8768
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$U.cardHeader, isToggleRightAligned && styles$U.modifiers.toggleRight, className), id: id }, props),
8915
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.cardHeader, isToggleRightAligned && styles$T.modifiers.toggleRight, className), id: id }, props),
8769
8916
  onExpand && !isToggleRightAligned && cardHeaderToggle,
8770
8917
  children,
8771
8918
  onExpand && isToggleRightAligned && cardHeaderToggle));
@@ -8827,7 +8974,7 @@
8827
8974
  };
8828
8975
 
8829
8976
  Promise.resolve().then(function () { return clipboardCopy; });
8830
- var styles$T = {
8977
+ var styles$S = {
8831
8978
  "button": "pf-c-button",
8832
8979
  "clipboardCopy": "pf-c-clipboard-copy",
8833
8980
  "clipboardCopyActions": "pf-c-clipboard-copy__actions",
@@ -8846,7 +8993,7 @@
8846
8993
  };
8847
8994
 
8848
8995
  Promise.resolve().then(function () { return popover; });
8849
- var styles$S = {
8996
+ var styles$R = {
8850
8997
  "button": "pf-c-button",
8851
8998
  "modifiers": {
8852
8999
  "noPadding": "pf-m-no-padding",
@@ -8886,25 +9033,25 @@
8886
9033
 
8887
9034
  const PopoverContent = (_a) => {
8888
9035
  var { className = null, children } = _a, props = __rest$1(_a, ["className", "children"]);
8889
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.popoverContent, className) }, props), children));
9036
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverContent, className) }, props), children));
8890
9037
  };
8891
9038
  PopoverContent.displayName = 'PopoverContent';
8892
9039
 
8893
9040
  const PopoverBody = (_a) => {
8894
9041
  var { children, id, className } = _a, props = __rest$1(_a, ["children", "id", "className"]);
8895
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.popoverBody, className), id: id }, props), children));
9042
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverBody, className), id: id }, props), children));
8896
9043
  };
8897
9044
  PopoverBody.displayName = 'PopoverBody';
8898
9045
 
8899
9046
  const PopoverHeaderIcon = (_a) => {
8900
9047
  var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
8901
- return (React__namespace.createElement("span", Object.assign({ className: css(styles$S.popoverTitleIcon, className) }, props), children));
9048
+ return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.popoverTitleIcon, className) }, props), children));
8902
9049
  };
8903
9050
  PopoverHeaderIcon.displayName = 'PopoverHeaderIcon';
8904
9051
 
8905
9052
  const PopoverHeaderText = (_a) => {
8906
9053
  var { children, className } = _a, props = __rest$1(_a, ["children", "className"]);
8907
- return (React__namespace.createElement("span", Object.assign({ className: css(styles$S.popoverTitleText, className) }, props), children));
9054
+ return (React__namespace.createElement("span", Object.assign({ className: css(styles$R.popoverTitleText, className) }, props), children));
8908
9055
  };
8909
9056
  PopoverHeaderText.displayName = 'PopoverHeaderText';
8910
9057
 
@@ -8912,7 +9059,7 @@
8912
9059
  var { children, icon, className, titleHeadingLevel = 'h6', alertSeverityVariant, id, alertSeverityScreenReaderText } = _a, props = __rest$1(_a, ["children", "icon", "className", "titleHeadingLevel", "alertSeverityVariant", "id", "alertSeverityScreenReaderText"]);
8913
9060
  const HeadingLevel = titleHeadingLevel;
8914
9061
  return icon || alertSeverityVariant ? (React__namespace.createElement("header", Object.assign({ className: css('pf-c-popover__header', className), id: id }, props),
8915
- React__namespace.createElement(HeadingLevel, { className: css(styles$S.popoverTitle, icon && styles$S.modifiers.icon) },
9062
+ React__namespace.createElement(HeadingLevel, { className: css(styles$R.popoverTitle, icon && styles$R.modifiers.icon) },
8916
9063
  icon && React__namespace.createElement(PopoverHeaderIcon, null, icon),
8917
9064
  alertSeverityVariant && alertSeverityScreenReaderText && (React__namespace.createElement("span", { className: "pf-u-screen-reader" }, alertSeverityScreenReaderText)),
8918
9065
  React__namespace.createElement(PopoverHeaderText, null, children)))) : (React__namespace.createElement(Title, Object.assign({ headingLevel: titleHeadingLevel, size: exports.TitleSizes.md, id: id, className: className }, props), children));
@@ -8921,7 +9068,7 @@
8921
9068
 
8922
9069
  const PopoverFooter = (_a) => {
8923
9070
  var { children, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
8924
- return (React__namespace.createElement("footer", Object.assign({ className: css(styles$S.popoverFooter, className) }, props), children));
9071
+ return (React__namespace.createElement("footer", Object.assign({ className: css(styles$R.popoverFooter, className) }, props), children));
8925
9072
  };
8926
9073
  PopoverFooter.displayName = 'PopoverFooter';
8927
9074
 
@@ -8942,7 +9089,7 @@
8942
9089
 
8943
9090
  const PopoverArrow = (_a) => {
8944
9091
  var { className = '' } = _a, props = __rest$1(_a, ["className"]);
8945
- return React__namespace.createElement("div", Object.assign({ className: css(styles$S.popoverArrow, className) }, props));
9092
+ return React__namespace.createElement("div", Object.assign({ className: css(styles$R.popoverArrow, className) }, props));
8946
9093
  };
8947
9094
  PopoverArrow.displayName = 'PopoverArrow';
8948
9095
 
@@ -8977,11 +9124,11 @@
8977
9124
  PopoverPosition["rightEnd"] = "right-end";
8978
9125
  })(exports.PopoverPosition || (exports.PopoverPosition = {}));
8979
9126
  const alertStyle = {
8980
- default: styles$S.modifiers.default,
8981
- info: styles$S.modifiers.info,
8982
- success: styles$S.modifiers.success,
8983
- warning: styles$S.modifiers.warning,
8984
- danger: styles$S.modifiers.danger
9127
+ default: styles$R.modifiers.default,
9128
+ info: styles$R.modifiers.info,
9129
+ success: styles$R.modifiers.success,
9130
+ warning: styles$R.modifiers.warning,
9131
+ danger: styles$R.modifiers.danger
8985
9132
  };
8986
9133
  const Popover = (_a) => {
8987
9134
  var { children, position = 'top', enableFlip = true, className = '', isVisible = null, shouldClose = () => null, shouldOpen = () => null, 'aria-label': ariaLabel = '', bodyContent, headerContent = null, headerComponent = 'h6', headerIcon = null, alertSeverityVariant, alertSeverityScreenReaderText, footerContent = null, appendTo = () => document.body, hideOnOutsideClick = true, onHide = () => null, onHidden = () => null, onShow = () => null, onShown = () => null, onMount = () => null, zIndex = 9999, minWidth = popoverMinWidth && popoverMinWidth.value, maxWidth = popoverMaxWidth && popoverMaxWidth.value, closeBtnAriaLabel = 'Close', showClose = true, distance = 25,
@@ -9045,18 +9192,18 @@
9045
9192
  }, 0);
9046
9193
  };
9047
9194
  const positionModifiers = {
9048
- top: styles$S.modifiers.top,
9049
- bottom: styles$S.modifiers.bottom,
9050
- left: styles$S.modifiers.left,
9051
- right: styles$S.modifiers.right,
9052
- 'top-start': styles$S.modifiers.topLeft,
9053
- 'top-end': styles$S.modifiers.topRight,
9054
- 'bottom-start': styles$S.modifiers.bottomLeft,
9055
- 'bottom-end': styles$S.modifiers.bottomRight,
9056
- 'left-start': styles$S.modifiers.leftTop,
9057
- 'left-end': styles$S.modifiers.leftBottom,
9058
- 'right-start': styles$S.modifiers.rightTop,
9059
- 'right-end': styles$S.modifiers.rightBottom
9195
+ top: styles$R.modifiers.top,
9196
+ bottom: styles$R.modifiers.bottom,
9197
+ left: styles$R.modifiers.left,
9198
+ right: styles$R.modifiers.right,
9199
+ 'top-start': styles$R.modifiers.topLeft,
9200
+ 'top-end': styles$R.modifiers.topRight,
9201
+ 'bottom-start': styles$R.modifiers.bottomLeft,
9202
+ 'bottom-end': styles$R.modifiers.bottomRight,
9203
+ 'left-start': styles$R.modifiers.leftTop,
9204
+ 'left-end': styles$R.modifiers.leftBottom,
9205
+ 'right-start': styles$R.modifiers.rightTop,
9206
+ 'right-end': styles$R.modifiers.rightBottom
9060
9207
  };
9061
9208
  const hasCustomMinWidth = minWidth !== popoverMinWidth.value;
9062
9209
  const hasCustomMaxWidth = maxWidth !== popoverMaxWidth.value;
@@ -9133,7 +9280,7 @@
9133
9280
  }
9134
9281
  return node;
9135
9282
  }
9136
- }, preventScrollOnDeactivate: true, className: css(styles$S.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$S.modifiers.noPadding, hasAutoWidth && styles$S.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
9283
+ }, preventScrollOnDeactivate: true, className: css(styles$R.popover, alertSeverityVariant && alertStyle[alertSeverityVariant], hasNoPadding && styles$R.modifiers.noPadding, hasAutoWidth && styles$R.modifiers.widthAuto, className), role: "dialog", "aria-modal": "true", "aria-label": headerContent ? undefined : ariaLabel, "aria-labelledby": headerContent ? `popover-${uniqueId}-header` : undefined, "aria-describedby": `popover-${uniqueId}-body`, onMouseDown: onContentMouseDown, style: {
9137
9284
  minWidth: hasCustomMinWidth ? minWidth : null,
9138
9285
  maxWidth: hasCustomMaxWidth ? maxWidth : null,
9139
9286
  opacity,
@@ -9196,7 +9343,7 @@
9196
9343
  }
9197
9344
  render() {
9198
9345
  const _a = this.props, { className, children, onChange, isReadOnly, isCode } = _a, props = __rest$1(_a, ["className", "children", "onChange", "isReadOnly", "isCode"]);
9199
- return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$T.clipboardCopyExpandableContent, className), onInput: (e) => onChange(e.target.innerText, e), contentEditable: !isReadOnly }, props), isCode ? React__namespace.createElement("pre", null, children) : children));
9346
+ return (React__namespace.createElement("div", Object.assign({ suppressContentEditableWarning: true, className: css(styles$S.clipboardCopyExpandableContent, className), onInput: (e) => onChange(e.target.innerText, e), contentEditable: !isReadOnly }, props), isCode ? React__namespace.createElement("pre", null, children) : children));
9200
9347
  }
9201
9348
  }
9202
9349
  ClipboardCopyExpanded.displayName = 'ClipboardCopyExpanded';
@@ -9256,12 +9403,12 @@
9256
9403
  const textIdPrefix = 'text-input-';
9257
9404
  const toggleIdPrefix = 'toggle-';
9258
9405
  const contentIdPrefix = 'content-';
9259
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$T.clipboardCopy, variant === 'inline-compact' && styles$T.modifiers.inline, isBlock && styles$T.modifiers.block, this.state.expanded && styles$T.modifiers.expanded, className) }, divProps),
9406
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$S.clipboardCopy, variant === 'inline-compact' && styles$S.modifiers.inline, isBlock && styles$S.modifiers.block, this.state.expanded && styles$S.modifiers.expanded, className) }, divProps),
9260
9407
  variant === 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
9261
- !isCode && (React__namespace.createElement("span", { className: css(styles$T.clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),
9262
- isCode && (React__namespace.createElement("code", { className: css(styles$T.clipboardCopyText, styles$T.modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),
9263
- React__namespace.createElement("span", { className: css(styles$T.clipboardCopyActions) },
9264
- React__namespace.createElement("span", { className: css(styles$T.clipboardCopyActionsItem) },
9408
+ !isCode && (React__namespace.createElement("span", { className: css(styles$S.clipboardCopyText), id: `${textIdPrefix}${id}` }, this.state.text)),
9409
+ isCode && (React__namespace.createElement("code", { className: css(styles$S.clipboardCopyText, styles$S.modifiers.code), id: `${textIdPrefix}${id}` }, this.state.text)),
9410
+ React__namespace.createElement("span", { className: css(styles$S.clipboardCopyActions) },
9411
+ React__namespace.createElement("span", { className: css(styles$S.clipboardCopyActionsItem) },
9265
9412
  React__namespace.createElement(ClipboardCopyButton, { variant: "plain", exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
9266
9413
  if (this.timer) {
9267
9414
  window.clearTimeout(this.timer);
@@ -9277,7 +9424,7 @@
9277
9424
  } }, this.state.copied ? clickTip : hoverTip)),
9278
9425
  additionalActions && additionalActions))))),
9279
9426
  variant !== 'inline-compact' && (React__namespace.createElement(GenerateId, { prefix: "" }, id => (React__namespace.createElement(React__namespace.Fragment, null,
9280
- React__namespace.createElement("div", { className: css(styles$T.clipboardCopyGroup) },
9427
+ React__namespace.createElement("div", { className: css(styles$S.clipboardCopyGroup) },
9281
9428
  variant === 'expansion' && (React__namespace.createElement(ClipboardCopyToggle, { isExpanded: this.state.expanded, onClick: this.expandContent, id: `${toggleIdPrefix}${id}`, textId: `${textIdPrefix}${id}`, contentId: `${contentIdPrefix}${id}`, "aria-label": toggleAriaLabel })),
9282
9429
  React__namespace.createElement(TextInput, { isReadOnly: isReadOnly || this.state.expanded, onChange: this.updateText, value: this.state.text, id: `text-input-${id}`, "aria-label": textAriaLabel }),
9283
9430
  React__namespace.createElement(ClipboardCopyButton, { exitDelay: exitDelay, entryDelay: entryDelay, maxWidth: maxWidth, position: position, id: `copy-button-${id}`, textId: `text-input-${id}`, "aria-label": hoverTip, onClick: (event) => {
@@ -9326,12 +9473,12 @@
9326
9473
 
9327
9474
  const ClipboardCopyAction = (_a) => {
9328
9475
  var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
9329
- return (React__namespace.createElement("span", Object.assign({ className: css(styles$T.clipboardCopyActionsItem, className) }, props), children));
9476
+ return (React__namespace.createElement("span", Object.assign({ className: css(styles$S.clipboardCopyActionsItem, className) }, props), children));
9330
9477
  };
9331
9478
  ClipboardCopyAction.displayName = 'ClipboardCopyAction';
9332
9479
 
9333
9480
  Promise.resolve().then(function () { return codeBlock; });
9334
- var styles$R = {
9481
+ var styles$Q = {
9335
9482
  "codeBlock": "pf-c-code-block",
9336
9483
  "codeBlockActions": "pf-c-code-block__actions",
9337
9484
  "codeBlockCode": "pf-c-code-block__code",
@@ -9342,17 +9489,17 @@
9342
9489
 
9343
9490
  const CodeBlock = (_a) => {
9344
9491
  var { children = null, className, actions = null } = _a, props = __rest$1(_a, ["children", "className", "actions"]);
9345
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$R.codeBlock, className) }, props),
9346
- React__namespace.createElement("div", { className: css(styles$R.codeBlockHeader) },
9347
- React__namespace.createElement("div", { className: css(styles$R.codeBlockActions) }, actions && actions)),
9348
- React__namespace.createElement("div", { className: css(styles$R.codeBlockContent) }, children)));
9492
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.codeBlock, className) }, props),
9493
+ React__namespace.createElement("div", { className: css(styles$Q.codeBlockHeader) },
9494
+ React__namespace.createElement("div", { className: css(styles$Q.codeBlockActions) }, actions && actions)),
9495
+ React__namespace.createElement("div", { className: css(styles$Q.codeBlockContent) }, children)));
9349
9496
  };
9350
9497
  CodeBlock.displayName = 'CodeBlock';
9351
9498
 
9352
9499
  const CodeBlockCode = (_a) => {
9353
9500
  var { children = null, className, codeClassName } = _a, props = __rest$1(_a, ["children", "className", "codeClassName"]);
9354
- return (React__namespace.createElement("pre", Object.assign({ className: css(styles$R.codeBlockPre, className) }, props),
9355
- React__namespace.createElement("code", { className: css(styles$R.codeBlockCode, codeClassName) }, children)));
9501
+ return (React__namespace.createElement("pre", Object.assign({ className: css(styles$Q.codeBlockPre, className) }, props),
9502
+ React__namespace.createElement("code", { className: css(styles$Q.codeBlockCode, codeClassName) }, children)));
9356
9503
  };
9357
9504
  CodeBlockCode.displayName = 'CodeBlockCode';
9358
9505
 
@@ -9363,7 +9510,7 @@
9363
9510
  CodeBlockAction.displayName = 'CodeBlockAction';
9364
9511
 
9365
9512
  Promise.resolve().then(function () { return contextSelector; });
9366
- var styles$Q = {
9513
+ var styles$P = {
9367
9514
  "contextSelector": "pf-c-context-selector",
9368
9515
  "contextSelectorMenu": "pf-c-context-selector__menu",
9369
9516
  "contextSelectorMenuFooter": "pf-c-context-selector__menu-footer",
@@ -9450,9 +9597,9 @@
9450
9597
  isActive, onEnter, parentRef } = _a,
9451
9598
  /* eslint-enable @typescript-eslint/no-unused-vars */
9452
9599
  props = __rest$1(_a, ["className", "toggleText", "isOpen", "onToggle", "id", "isPlain", "isText", "isActive", "onEnter", "parentRef"]);
9453
- return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$Q.contextSelectorToggle, isActive && styles$Q.modifiers.active, isPlain && styles$Q.modifiers.plain, isText && styles$Q.modifiers.text, className), type: "button", onClick: event => onToggle(event, !isOpen), "aria-expanded": isOpen, onKeyDown: this.onKeyDown }),
9454
- React__namespace.createElement("span", { className: css(styles$Q.contextSelectorToggleText) }, toggleText),
9455
- React__namespace.createElement("span", { className: css(styles$Q.contextSelectorToggleIcon) },
9600
+ return (React__namespace.createElement("button", Object.assign({}, props, { id: id, ref: this.toggle, className: css(styles$P.contextSelectorToggle, isActive && styles$P.modifiers.active, isPlain && styles$P.modifiers.plain, isText && styles$P.modifiers.text, className), type: "button", onClick: event => onToggle(event, !isOpen), "aria-expanded": isOpen, onKeyDown: this.onKeyDown }),
9601
+ React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleText) }, toggleText),
9602
+ React__namespace.createElement("span", { className: css(styles$P.contextSelectorToggleIcon) },
9456
9603
  React__namespace.createElement(CaretDownIcon$1, { "aria-hidden": true }))));
9457
9604
  }
9458
9605
  }
@@ -9478,7 +9625,7 @@
9478
9625
  this.render = () => {
9479
9626
  // eslint-disable-next-line @typescript-eslint/no-unused-vars
9480
9627
  const _a = this.props, { className, isOpen, children } = _a, props = __rest$1(_a, ["className", "isOpen", "children"]);
9481
- return (React__namespace.createElement("ul", Object.assign({ className: css(styles$Q.contextSelectorMenuList, className), hidden: !isOpen, role: "menu" }, props), this.extendChildren()));
9628
+ return (React__namespace.createElement("ul", Object.assign({ className: css(styles$P.contextSelectorMenuList, className), hidden: !isOpen, role: "menu" }, props), this.extendChildren()));
9482
9629
  };
9483
9630
  }
9484
9631
  extendChildren() {
@@ -9500,155 +9647,6 @@
9500
9647
  onSelect: (event, value) => undefined
9501
9648
  });
9502
9649
 
9503
- Promise.resolve().then(function () { return inputGroup; });
9504
- var styles$P = {
9505
- "formControl": "pf-c-form-control",
9506
- "inputGroup": "pf-c-input-group",
9507
- "inputGroupText": "pf-c-input-group__text",
9508
- "modifiers": {
9509
- "plain": "pf-m-plain"
9510
- },
9511
- "themeDark": "pf-theme-dark"
9512
- };
9513
-
9514
- class FormSelect extends React__namespace.Component {
9515
- constructor(props) {
9516
- super(props);
9517
- this.handleChange = (event) => {
9518
- this.props.onChange(event.currentTarget.value, event);
9519
- };
9520
- if (!props.id && !props['aria-label']) {
9521
- // eslint-disable-next-line no-console
9522
- console.error('FormSelect requires either an id or aria-label to be specified');
9523
- }
9524
- this.state = {
9525
- ouiaStateId: getDefaultOUIAId(FormSelect.displayName, props.validated)
9526
- };
9527
- }
9528
- render() {
9529
- const _a = this.props, { children, className, value, validated, isDisabled, isRequired, isIconSprite, ouiaId, ouiaSafe } = _a, props = __rest$1(_a, ["children", "className", "value", "validated", "isDisabled", "isRequired", "isIconSprite", "ouiaId", "ouiaSafe"]);
9530
- /* find selected option and get placeholder flag */
9531
- const selectedOption = React__namespace.Children.toArray(children).find((option) => option.props.value === value);
9532
- const isSelectedPlaceholder = selectedOption && selectedOption.props.isPlaceholder;
9533
- return (React__namespace.createElement("select", Object.assign({}, props, { className: css(formStyles.formControl, isIconSprite && formStyles.modifiers.iconSprite, className, validated === exports.ValidatedOptions.success && formStyles.modifiers.success, validated === exports.ValidatedOptions.warning && formStyles.modifiers.warning, isSelectedPlaceholder && formStyles.modifiers.placeholder), "aria-invalid": validated === exports.ValidatedOptions.error }, getOUIAProps(FormSelect.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), { onChange: this.handleChange, disabled: isDisabled, required: isRequired, value: value }), children));
9534
- }
9535
- }
9536
- FormSelect.displayName = 'FormSelect';
9537
- FormSelect.defaultProps = {
9538
- className: '',
9539
- value: '',
9540
- validated: 'default',
9541
- isDisabled: false,
9542
- isRequired: false,
9543
- isIconSprite: false,
9544
- onBlur: () => undefined,
9545
- onFocus: () => undefined,
9546
- onChange: () => undefined,
9547
- ouiaSafe: true
9548
- };
9549
-
9550
- const FormSelectOption = (_a) => {
9551
- var { className = '', value = '', isDisabled = false, label,
9552
- // eslint-disable-next-line @typescript-eslint/no-unused-vars
9553
- isPlaceholder = false } = _a, props = __rest$1(_a, ["className", "value", "isDisabled", "label", "isPlaceholder"]);
9554
- return (React__namespace.createElement("option", Object.assign({}, props, { className: className, value: value, disabled: isDisabled }), label));
9555
- };
9556
- FormSelectOption.displayName = 'FormSelectOption';
9557
-
9558
- const FormSelectOptionGroup = (_a) => {
9559
- var { children = null, className = '', isDisabled = false, label } = _a, props = __rest$1(_a, ["children", "className", "isDisabled", "label"]);
9560
- return (React__namespace.createElement("optgroup", Object.assign({}, props, { disabled: !!isDisabled, className: className, label: label }), children));
9561
- };
9562
- FormSelectOptionGroup.displayName = 'FormSelectOptionGroup';
9563
-
9564
- const c_form_control_textarea_Height = {
9565
- "name": "--pf-c-form-control--textarea--Height",
9566
- "value": "auto",
9567
- "var": "var(--pf-c-form-control--textarea--Height)"
9568
- };
9569
- var heightToken = c_form_control_textarea_Height;
9570
-
9571
- exports.TextAreResizeOrientation = void 0;
9572
- (function (TextAreResizeOrientation) {
9573
- TextAreResizeOrientation["horizontal"] = "horizontal";
9574
- TextAreResizeOrientation["vertical"] = "vertical";
9575
- TextAreResizeOrientation["both"] = "both";
9576
- })(exports.TextAreResizeOrientation || (exports.TextAreResizeOrientation = {}));
9577
- class TextAreaBase extends React__namespace.Component {
9578
- constructor(props) {
9579
- super(props);
9580
- this.handleChange = (event) => {
9581
- // https://gomakethings.com/automatically-expand-a-textarea-as-the-user-types-using-vanilla-javascript/
9582
- const field = event.currentTarget;
9583
- if (this.props.autoResize && canUseDOM) {
9584
- field.style.setProperty(heightToken.name, 'inherit');
9585
- const computed = window.getComputedStyle(field);
9586
- // Calculate the height
9587
- const height = parseInt(computed.getPropertyValue('border-top-width')) +
9588
- parseInt(computed.getPropertyValue('padding-top')) +
9589
- field.scrollHeight +
9590
- parseInt(computed.getPropertyValue('padding-bottom')) +
9591
- parseInt(computed.getPropertyValue('border-bottom-width'));
9592
- field.style.setProperty(heightToken.name, `${height}px`);
9593
- }
9594
- if (this.props.onChange) {
9595
- this.props.onChange(field.value, event);
9596
- }
9597
- };
9598
- if (!props.id && !props['aria-label']) {
9599
- // eslint-disable-next-line no-console
9600
- console.error('TextArea: TextArea requires either an id or aria-label to be specified');
9601
- }
9602
- }
9603
- render() {
9604
- const _a = this.props, { className, value, validated, isRequired, isDisabled, isIconSprite, isReadOnly, resizeOrientation, innerRef, readOnly, disabled,
9605
- /* eslint-disable @typescript-eslint/no-unused-vars */
9606
- autoResize, onChange } = _a,
9607
- /* eslint-enable @typescript-eslint/no-unused-vars */
9608
- props = __rest$1(_a, ["className", "value", "validated", "isRequired", "isDisabled", "isIconSprite", "isReadOnly", "resizeOrientation", "innerRef", "readOnly", "disabled", "autoResize", "onChange"]);
9609
- const orientation = `resize${capitalize(resizeOrientation)}`;
9610
- return (React__namespace.createElement("textarea", Object.assign({ className: css(formStyles.formControl, isIconSprite && formStyles.modifiers.iconSprite, className, resizeOrientation !== exports.TextAreResizeOrientation.both && formStyles.modifiers[orientation], validated === exports.ValidatedOptions.success && formStyles.modifiers.success, validated === exports.ValidatedOptions.warning && formStyles.modifiers.warning), onChange: this.handleChange }, (typeof this.props.defaultValue !== 'string' && { value }), { "aria-invalid": validated === exports.ValidatedOptions.error, required: isRequired, disabled: isDisabled || disabled, readOnly: isReadOnly || readOnly, ref: innerRef }, props)));
9611
- }
9612
- }
9613
- TextAreaBase.displayName = 'TextArea';
9614
- TextAreaBase.defaultProps = {
9615
- innerRef: React__namespace.createRef(),
9616
- className: '',
9617
- isRequired: false,
9618
- isDisabled: false,
9619
- isIconSprite: false,
9620
- validated: 'default',
9621
- resizeOrientation: 'both',
9622
- 'aria-label': null
9623
- };
9624
- const TextArea = React__namespace.forwardRef((props, ref) => (React__namespace.createElement(TextAreaBase, Object.assign({}, props, { innerRef: ref }))));
9625
- TextArea.displayName = 'TextArea';
9626
-
9627
- const InputGroup = (_a) => {
9628
- var { className = '', children, innerRef } = _a, props = __rest$1(_a, ["className", "children", "innerRef"]);
9629
- const formCtrls = [FormSelect, TextArea, TextInput].map(comp => comp.displayName);
9630
- const idItem = React__namespace.Children.toArray(children).find((child) => !formCtrls.includes(child.type.displayName) && child.props.id);
9631
- const inputGroupRef = innerRef || React__namespace.useRef(null);
9632
- return (React__namespace.createElement("div", Object.assign({ ref: inputGroupRef, className: css(styles$P.inputGroup, className) }, props), idItem
9633
- ? React__namespace.Children.map(children, (child) => formCtrls.includes(child.type.displayName)
9634
- ? React__namespace.cloneElement(child, { 'aria-describedby': idItem.props.id })
9635
- : child)
9636
- : children));
9637
- };
9638
- InputGroup.displayName = 'InputGroup';
9639
-
9640
- exports.InputGroupTextVariant = void 0;
9641
- (function (InputGroupTextVariant) {
9642
- InputGroupTextVariant["default"] = "default";
9643
- InputGroupTextVariant["plain"] = "plain";
9644
- })(exports.InputGroupTextVariant || (exports.InputGroupTextVariant = {}));
9645
- const InputGroupText = (_a) => {
9646
- var { className = '', component = 'span', children, variant = exports.InputGroupTextVariant.default } = _a, props = __rest$1(_a, ["className", "component", "children", "variant"]);
9647
- const Component = component;
9648
- return (React__namespace.createElement(Component, Object.assign({ className: css(styles$P.inputGroupText, variant === exports.InputGroupTextVariant.plain && styles$P.modifiers.plain, className) }, props), children));
9649
- };
9650
- InputGroupText.displayName = 'InputGroupText';
9651
-
9652
9650
  // seed for the aria-labelledby ID
9653
9651
  let currentId = 0;
9654
9652
  const newId = currentId++;
@@ -9671,8 +9669,8 @@
9671
9669
  const screenReaderLabelId = `pf-context-selector-label-id-${newId}`;
9672
9670
  const searchButtonId = `pf-context-selector-search-button-id-${newId}`;
9673
9671
  const _a = this.props, { children, className, isOpen, isFullHeight, onToggle, onSelect, screenReaderLabel, toggleText, searchButtonAriaLabel, searchInputValue, onSearchInputChange, searchInputPlaceholder, onSearchButtonClick, menuAppendTo, ouiaId, ouiaSafe, isPlain, isText, footer, disableFocusTrap, isFlipEnabled } = _a, props = __rest$1(_a, ["children", "className", "isOpen", "isFullHeight", "onToggle", "onSelect", "screenReaderLabel", "toggleText", "searchButtonAriaLabel", "searchInputValue", "onSearchInputChange", "searchInputPlaceholder", "onSearchButtonClick", "menuAppendTo", "ouiaId", "ouiaSafe", "isPlain", "isText", "footer", "disableFocusTrap", "isFlipEnabled"]);
9674
- const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.contextSelectorMenu) }, (isFlipEnabled && { style: { position: 'revert' } })), isOpen && (React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } } },
9675
- React__namespace.createElement("div", { className: css(styles$Q.contextSelectorMenuSearch) },
9672
+ const menuContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelectorMenu) }, (isFlipEnabled && { style: { position: 'revert' } })), isOpen && (React__namespace.createElement(FocusTrap, { active: !disableFocusTrap, focusTrapOptions: { clickOutsideDeactivates: true, tabbableOptions: { displayCheck: 'none' } } },
9673
+ React__namespace.createElement("div", { className: css(styles$P.contextSelectorMenuSearch) },
9676
9674
  React__namespace.createElement(InputGroup, null,
9677
9675
  React__namespace.createElement(TextInput, { value: searchInputValue, type: "search", placeholder: searchInputPlaceholder, onChange: onSearchInputChange, onKeyPress: this.onEnterPressed, "aria-labelledby": searchButtonId }),
9678
9676
  React__namespace.createElement(Button, { variant: exports.ButtonVariant.control, "aria-label": searchButtonAriaLabel, id: searchButtonId, onClick: onSearchButtonClick },
@@ -9680,8 +9678,8 @@
9680
9678
  React__namespace.createElement(ContextSelectorContext.Provider, { value: { onSelect } },
9681
9679
  React__namespace.createElement(ContextSelectorMenuList, { isOpen: isOpen }, children)),
9682
9680
  footer))));
9683
- const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.contextSelector, isOpen && styles$Q.modifiers.expanded, className), ref: this.popperRef }, props), isOpen && menuContainer));
9684
- const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$Q.contextSelector, isOpen && styles$Q.modifiers.expanded, isFullHeight && styles$Q.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
9681
+ const popperContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelector, isOpen && styles$P.modifiers.expanded, className), ref: this.popperRef }, props), isOpen && menuContainer));
9682
+ const mainContainer = (React__namespace.createElement("div", Object.assign({ className: css(styles$P.contextSelector, isOpen && styles$P.modifiers.expanded, isFullHeight && styles$P.modifiers.fullHeight, className), ref: this.parentRef }, getOUIAProps(ContextSelector.displayName, ouiaId !== undefined ? ouiaId : this.state.ouiaStateId, ouiaSafe), props),
9685
9683
  screenReaderLabel && (React__namespace.createElement("span", { id: screenReaderLabelId, hidden: true }, screenReaderLabel)),
9686
9684
  React__namespace.createElement(ContextSelectorToggle, { onToggle: onToggle, isOpen: isOpen, toggleText: toggleText, id: toggleId, parentRef: menuAppendTo === 'inline' ? this.parentRef : this.popperRef, "aria-labelledby": `${screenReaderLabelId} ${toggleId}`, isPlain: isPlain, isText: isText }),
9687
9685
  isOpen && menuAppendTo === 'inline' && menuContainer));
@@ -9732,7 +9730,7 @@
9732
9730
  const Component = href ? 'a' : 'button';
9733
9731
  const isDisabledLink = href && isDisabled;
9734
9732
  return (React__namespace.createElement(ContextSelectorContext.Consumer, null, ({ onSelect }) => (React__namespace.createElement("li", { role: "none" },
9735
- React__namespace.createElement(Component, Object.assign({ className: css(styles$Q.contextSelectorMenuListItem, isDisabledLink && styles$Q.modifiers.disabled, className), ref: this.ref, onClick: event => {
9733
+ React__namespace.createElement(Component, Object.assign({ className: css(styles$P.contextSelectorMenuListItem, isDisabledLink && styles$P.modifiers.disabled, className), ref: this.ref, onClick: event => {
9736
9734
  if (!isDisabled) {
9737
9735
  onClick(event);
9738
9736
  onSelect(event, children);
@@ -9753,7 +9751,7 @@
9753
9751
 
9754
9752
  const ContextSelectorFooter = (_a) => {
9755
9753
  var { children = null, className = '' } = _a, props = __rest$1(_a, ["children", "className"]);
9756
- return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$Q.contextSelectorMenuFooter, className) }), children));
9754
+ return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$P.contextSelectorMenuFooter, className) }), children));
9757
9755
  };
9758
9756
  ContextSelectorFooter.displayName = 'ContextSelectorFooter';
9759
9757
 
@@ -10900,19 +10898,6 @@
10900
10898
 
10901
10899
  var AngleDoubleLeftIcon$1 = AngleDoubleLeftIcon;
10902
10900
 
10903
- const AngleLeftIconConfig = {
10904
- name: 'AngleLeftIcon',
10905
- height: 512,
10906
- width: 256,
10907
- svgPath: 'M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z',
10908
- yOffset: 0,
10909
- xOffset: 0,
10910
- };
10911
-
10912
- const AngleLeftIcon = createIcon(AngleLeftIconConfig);
10913
-
10914
- var AngleLeftIcon$1 = AngleLeftIcon;
10915
-
10916
10901
  const AngleDoubleRightIconConfig = {
10917
10902
  name: 'AngleDoubleRightIcon',
10918
10903
  height: 512,
@@ -14050,7 +14035,7 @@
14050
14035
  // eslint-disable-next-line no-console
14051
14036
  console.error('FormFieldGroupExpandable:', 'toggleAriaLabel or the titleText prop of FormFieldGroupHeader is required to make the toggle button accessible');
14052
14037
  }
14053
- return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroup, isExpanded && isExpandable && styles$Z.modifiers.expanded, className) }, props),
14038
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formFieldGroup, isExpanded && isExpandable && styles$Z.modifiers.expanded, className), role: "group" }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id}` }), props),
14054
14039
  isExpandable && (React__namespace.createElement(GenerateId, { prefix: "form-field-group-toggle" }, id => (React__namespace.createElement(FormFieldGroupToggle, Object.assign({ onToggle: onToggle, isExpanded: isExpanded, "aria-label": toggleAriaLabel, toggleId: id }, (headerTitleText && { 'aria-labelledby': `${header.props.titleText.id} ${id}` })))))),
14055
14040
  header && header,
14056
14041
  (!isExpandable || (isExpandable && isExpanded)) && (React__namespace.createElement("div", { className: css(styles$Z.formFieldGroupBody) }, children))));
@@ -14082,7 +14067,7 @@
14082
14067
  FormFieldGroupHeader.displayName = 'FormFieldGroupHeader';
14083
14068
 
14084
14069
  const FormGroup = (_a) => {
14085
- var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId } = _a, props = __rest$1(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId"]);
14070
+ var { children = null, className = '', label, labelInfo, labelIcon, isRequired = false, validated = 'default', isInline = false, hasNoPaddingTop = false, isStack = false, helperText, isHelperTextBeforeField = false, helperTextInvalid, helperTextIcon, helperTextInvalidIcon, fieldId, role } = _a, props = __rest$1(_a, ["children", "className", "label", "labelInfo", "labelIcon", "isRequired", "validated", "isInline", "hasNoPaddingTop", "isStack", "helperText", "isHelperTextBeforeField", "helperTextInvalid", "helperTextIcon", "helperTextInvalidIcon", "fieldId", "role"]);
14086
14071
  const validHelperText = typeof helperText !== 'string' ? (helperText) : (React__namespace.createElement("div", { className: css(styles$Z.formHelperText, validated === exports.ValidatedOptions.success && styles$Z.modifiers.success, validated === exports.ValidatedOptions.warning && styles$Z.modifiers.warning), id: `${fieldId}-helper`, "aria-live": "polite" },
14087
14072
  helperTextIcon && React__namespace.createElement("span", { className: css(styles$Z.formHelperTextIcon) }, helperTextIcon),
14088
14073
  helperText));
@@ -14091,16 +14076,18 @@
14091
14076
  helperTextInvalid));
14092
14077
  const showValidHelperTxt = (validationType) => validationType !== exports.ValidatedOptions.error && helperText ? validHelperText : '';
14093
14078
  const helperTextToDisplay = validated === exports.ValidatedOptions.error && helperTextInvalid ? inValidHelperText : showValidHelperTxt(validated);
14079
+ const isGroupOrRadioGroup = role === 'group' || role === 'radiogroup';
14080
+ const LabelComponent = isGroupOrRadioGroup ? 'span' : 'label';
14094
14081
  const labelContent = (React__namespace.createElement(React__namespace.Fragment, null,
14095
- React__namespace.createElement("label", { className: css(styles$Z.formLabel), htmlFor: fieldId },
14082
+ React__namespace.createElement(LabelComponent, Object.assign({ className: css(styles$Z.formLabel) }, (!isGroupOrRadioGroup && { htmlFor: fieldId })),
14096
14083
  React__namespace.createElement("span", { className: css(styles$Z.formLabelText) }, label),
14097
14084
  isRequired && (React__namespace.createElement("span", { className: css(styles$Z.formLabelRequired), "aria-hidden": "true" },
14098
14085
  ' ',
14099
14086
  ASTERISK))),
14100
14087
  ' ',
14101
14088
  React__namespace.isValidElement(labelIcon) && labelIcon));
14102
- return (React__namespace.createElement("div", Object.assign({}, props, { className: css(styles$Z.formGroup, className) }),
14103
- label && (React__namespace.createElement("div", { className: css(styles$Z.formGroupLabel, labelInfo && styles$Z.modifiers.info, hasNoPaddingTop && styles$Z.modifiers.noPaddingTop) },
14089
+ return (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formGroup, className) }, (role && { role }), (isGroupOrRadioGroup && { 'aria-labelledby': `${fieldId}-legend` }), props),
14090
+ label && (React__namespace.createElement("div", Object.assign({ className: css(styles$Z.formGroupLabel, labelInfo && styles$Z.modifiers.info, hasNoPaddingTop && styles$Z.modifiers.noPaddingTop) }, (isGroupOrRadioGroup && { id: `${fieldId}-legend` })),
14104
14091
  labelInfo && (React__namespace.createElement(React__namespace.Fragment, null,
14105
14092
  React__namespace.createElement("div", { className: css(styles$Z.formGroupLabelMain) }, labelContent),
14106
14093
  React__namespace.createElement("div", { className: css(styles$Z.formGroupLabelInfo) }, labelInfo))),
@@ -14123,9 +14110,9 @@
14123
14110
 
14124
14111
  const FormSection = (_a) => {
14125
14112
  var { className = '', children, title = '', titleElement: TitleElement = 'div' } = _a, props = __rest$1(_a, ["className", "children", "title", "titleElement"]);
14126
- return (React__namespace.createElement("section", Object.assign({}, props, { className: css(styles$Z.formSection, className) }),
14127
- title && React__namespace.createElement(TitleElement, { className: css(styles$Z.formSectionTitle, className) }, title),
14128
- children));
14113
+ return (React__namespace.createElement(GenerateId, { prefix: "pf-form-section-title" }, sectionId => (React__namespace.createElement("section", Object.assign({ className: css(styles$Z.formSection, className), role: "group" }, (title && { 'aria-labelledby': sectionId }), props),
14114
+ title && (React__namespace.createElement(TitleElement, { id: sectionId, className: css(styles$Z.formSectionTitle, className) }, title)),
14115
+ children))));
14129
14116
  };
14130
14117
  FormSection.displayName = 'FormSection';
14131
14118
 
@@ -18179,6 +18166,19 @@
18179
18166
  "themeDark": "pf-theme-dark"
18180
18167
  };
18181
18168
 
18169
+ const ArrowRightIconConfig = {
18170
+ name: 'ArrowRightIcon',
18171
+ height: 512,
18172
+ width: 448,
18173
+ svgPath: 'M190.5 66.9l22.2-22.2c9.4-9.4 24.6-9.4 33.9 0L441 239c9.4 9.4 9.4 24.6 0 33.9L246.6 467.3c-9.4 9.4-24.6 9.4-33.9 0l-22.2-22.2c-9.5-9.5-9.3-25 .4-34.3L311.4 296H24c-13.3 0-24-10.7-24-24v-32c0-13.3 10.7-24 24-24h287.4L190.9 101.2c-9.8-9.3-10-24.8-.4-34.3z',
18174
+ yOffset: 0,
18175
+ xOffset: 0,
18176
+ };
18177
+
18178
+ const ArrowRightIcon = createIcon(ArrowRightIconConfig);
18179
+
18180
+ var ArrowRightIcon$1 = ArrowRightIcon;
18181
+
18182
18182
  Promise.resolve().then(function () { return panel; });
18183
18183
  var styles$m = {
18184
18184
  "modifiers": {
@@ -22482,6 +22482,10 @@
22482
22482
  __proto__: null
22483
22483
  });
22484
22484
 
22485
+ var inputGroup = /*#__PURE__*/Object.freeze({
22486
+ __proto__: null
22487
+ });
22488
+
22485
22489
  var calendarMonth = /*#__PURE__*/Object.freeze({
22486
22490
  __proto__: null
22487
22491
  });
@@ -22506,10 +22510,6 @@
22506
22510
  __proto__: null
22507
22511
  });
22508
22512
 
22509
- var inputGroup = /*#__PURE__*/Object.freeze({
22510
- __proto__: null
22511
- });
22512
-
22513
22513
  var dataList = /*#__PURE__*/Object.freeze({
22514
22514
  __proto__: null
22515
22515
  });