@patternfly/quickstarts 6.0.0-prerelease.1 → 6.0.0-prerelease.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -163,6 +163,10 @@
163
163
  border: var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth) !important;
164
164
  }
165
165
 
166
+ .pfext-quick-start-footer {
167
+ padding-top: var(--pf-t--global--spacer--md);
168
+ }
169
+
166
170
  .pfext-quick-start-task {
167
171
  flex: 1 1 0;
168
172
  overflow: auto;
@@ -171,10 +175,6 @@
171
175
  margin-block-end: var(--pf-v6-c-content--MarginBlockEnd);
172
176
  }
173
177
 
174
- .pfext-quick-start-footer {
175
- padding-top: var(--pf-t--global--spacer--md);
176
- }
177
-
178
178
  button.pf-v6-c-wizard__nav-link {
179
179
  margin-bottom: var(--pf-t--global--spacer--md);
180
180
  }
@@ -5706,10 +5706,11 @@ var formStyles = {
5706
5706
  "formControlToggleIcon": "pf-v6-c-form-control__toggle-icon",
5707
5707
  "formControlUtilities": "pf-v6-c-form-control__utilities",
5708
5708
  "modifiers": {
5709
- "readonly": "pf-m-readonly",
5709
+ "textarea": "pf-m-textarea",
5710
5710
  "success": "pf-m-success",
5711
5711
  "warning": "pf-m-warning",
5712
5712
  "error": "pf-m-error",
5713
+ "readonly": "pf-m-readonly",
5713
5714
  "plain": "pf-m-plain",
5714
5715
  "expanded": "pf-m-expanded",
5715
5716
  "disabled": "pf-m-disabled",
@@ -6549,7 +6550,7 @@ const SelectBase = (_a) => {
6549
6550
  var _a;
6550
6551
  const firstElement = (_a = menuRef === null || menuRef === void 0 ? void 0 : menuRef.current) === null || _a === void 0 ? void 0 : _a.querySelector('li button:not(:disabled),li input:not(:disabled)');
6551
6552
  firstElement && firstElement.focus();
6552
- }, 0);
6553
+ }, 10);
6553
6554
  }
6554
6555
  prevIsOpen.current = isOpen;
6555
6556
  // eslint-disable-next-line react-hooks/exhaustive-deps
@@ -6608,6 +6609,7 @@ const SelectOption = React__default.forwardRef((props, ref) => (React__default.c
6608
6609
  SelectOption.displayName = 'SelectOption';
6609
6610
 
6610
6611
  var styles$j = {
6612
+ "avatar": "pf-v6-c-avatar",
6611
6613
  "button": "pf-v6-c-button",
6612
6614
  "check": "pf-v6-c-check",
6613
6615
  "checkInput": "pf-v6-c-check__input",
@@ -6633,9 +6635,10 @@ var styles$j = {
6633
6635
  "danger": "pf-m-danger",
6634
6636
  "placeholder": "pf-m-placeholder",
6635
6637
  "splitButton": "pf-m-split-button",
6636
- "action": "pf-m-action",
6638
+ "standalone": "pf-m-standalone",
6637
6639
  "typeahead": "pf-m-typeahead",
6638
- "text": "pf-m-text"
6640
+ "text": "pf-m-text",
6641
+ "avatar": "pf-m-avatar"
6639
6642
  },
6640
6643
  "textInputGroup": "pf-v6-c-text-input-group"
6641
6644
  };
@@ -6671,7 +6674,7 @@ class MenuToggleBase extends React.Component {
6671
6674
  };
6672
6675
  }
6673
6676
  render() {
6674
- const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, isFullWidth, isPlaceholder, splitButtonOptions, variant, status, statusIcon, innerRef, onClick, 'aria-label': ariaLabel, ouiaId, ouiaSafe, size } = _a, otherProps = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "isFullWidth", "isPlaceholder", "splitButtonOptions", "variant", "status", "statusIcon", "innerRef", "onClick", 'aria-label', "ouiaId", "ouiaSafe", "size"]);
6677
+ const _a = this.props, { children, className, icon, badge, isExpanded, isDisabled, isFullHeight, isFullWidth, isPlaceholder, splitButtonItems, variant, status, statusIcon, innerRef, onClick, 'aria-label': ariaLabel, ouiaId, ouiaSafe, size } = _a, otherProps = __rest$1(_a, ["children", "className", "icon", "badge", "isExpanded", "isDisabled", "isFullHeight", "isFullWidth", "isPlaceholder", "splitButtonItems", "variant", "status", "statusIcon", "innerRef", "onClick", 'aria-label', "ouiaId", "ouiaSafe", "size"]);
6675
6678
  const isPlain = variant === 'plain';
6676
6679
  const isPlainText = variant === 'plainText';
6677
6680
  const isTypeahead = variant === 'typeahead';
@@ -6704,9 +6707,9 @@ class MenuToggleBase extends React.Component {
6704
6707
  if (isTypeahead) {
6705
6708
  return (React.createElement("div", Object.assign({ ref: innerRef, className: css(commonStyles, styles$j.modifiers.typeahead) }, componentProps)));
6706
6709
  }
6707
- if (splitButtonOptions) {
6708
- return (React.createElement("div", { ref: innerRef, className: css(commonStyles, styles$j.modifiers.splitButton, (splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 : splitButtonOptions.variant) === 'action' && styles$j.modifiers.action) }, splitButtonOptions === null || splitButtonOptions === void 0 ? void 0 :
6709
- splitButtonOptions.items,
6710
+ if (splitButtonItems) {
6711
+ return (React.createElement("div", { ref: innerRef, className: css(commonStyles, styles$j.modifiers.splitButton) },
6712
+ splitButtonItems,
6710
6713
  React.createElement("button", Object.assign({ className: css(styles$j.menuToggleButton, children && styles$j.modifiers.text), type: "button", "aria-expanded": isExpanded, "aria-label": ariaLabel, disabled: isDisabled, onClick: onClick }, otherProps, ouiaProps),
6711
6714
  children && React.createElement("span", { className: css(styles$j.menuToggleText) }, children),
6712
6715
  toggleControls)));
@@ -6963,13 +6966,13 @@ const CardHeader = (_a) => {
6963
6966
  const SelectableCardInput = (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.variant) === 'single' ? Radio : Checkbox;
6964
6967
  const getSelectableProps = () => {
6965
6968
  var _a, _b;
6966
- return (Object.assign({ className: 'pf-m-standalone', label: React.createElement(React.Fragment, null), 'aria-label': selectableActions.selectableActionAriaLabel, 'aria-labelledby': selectableActions.selectableActionAriaLabelledby, id: (_a = selectableActions.selectableActionId) !== null && _a !== void 0 ? _a : `card-selectable-${uniqueId}`, name: selectableActions.name, isDisabled: isCardDisabled, onChange: selectableActions.onChange, isChecked: (_b = selectableActions.isChecked) !== null && _b !== void 0 ? _b : isSelected }, selectableActions.selectableActionProps));
6969
+ return (Object.assign({ className: css('pf-m-standalone'), inputClassName: css((selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.isHidden) && 'pf-v6-screen-reader'), label: React.createElement(React.Fragment, null), 'aria-label': selectableActions.selectableActionAriaLabel, 'aria-labelledby': selectableActions.selectableActionAriaLabelledby, id: (_a = selectableActions.selectableActionId) !== null && _a !== void 0 ? _a : `card-selectable-${uniqueId}`, name: selectableActions.name, isDisabled: isCardDisabled, onChange: selectableActions.onChange, isChecked: (_b = selectableActions.isChecked) !== null && _b !== void 0 ? _b : isSelected }, selectableActions.selectableActionProps));
6967
6970
  };
6968
6971
  const isClickableLinkCard = (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.to) !== undefined;
6969
6972
  const ClickableCardComponent = isClickableLinkCard ? 'a' : 'button';
6970
6973
  const getClickableProps = () => {
6971
6974
  const isDisabledLinkCard = isCardDisabled && isClickableLinkCard;
6972
- const baseProps = Object.assign({ className: css('pf-v6-c-card__clickable-action', isDisabledLinkCard && styles$h.modifiers.disabled), id: selectableActions.selectableActionId, 'aria-label': selectableActions.selectableActionAriaLabel, 'aria-labelledby': selectableActions.selectableActionAriaLabelledby }, selectableActions.selectableActionProps);
6975
+ const baseProps = Object.assign({ className: css('pf-v6-c-card__clickable-action', isDisabledLinkCard && styles$h.modifiers.disabled, (selectableActions === null || selectableActions === void 0 ? void 0 : selectableActions.isHidden) && 'pf-v6-screen-reader'), id: selectableActions.selectableActionId, 'aria-label': selectableActions.selectableActionAriaLabel, 'aria-labelledby': selectableActions.selectableActionAriaLabelledby }, selectableActions.selectableActionProps);
6973
6976
  if (isClickableLinkCard) {
6974
6977
  return Object.assign(Object.assign(Object.assign(Object.assign({}, baseProps), { href: selectableActions.to }), (isCardDisabled && { tabIndex: -1, 'aria-disabled': true })), (selectableActions.isExternalLink && { target: '_blank' }));
6975
6978
  }
@@ -7483,9 +7486,9 @@ var styles$d = {
7483
7486
  "modifiers": {
7484
7487
  "panelBottom": "pf-m-panel-bottom",
7485
7488
  "inline": "pf-m-inline",
7489
+ "static": "pf-m-static",
7486
7490
  "noBorder": "pf-m-no-border",
7487
7491
  "resizable": "pf-m-resizable",
7488
- "static": "pf-m-static",
7489
7492
  "panelLeft": "pf-m-panel-left",
7490
7493
  "expanded": "pf-m-expanded",
7491
7494
  "resizing": "pf-m-resizing",
@@ -7525,8 +7528,7 @@ var styles$d = {
7525
7528
  "staticOnXl": "pf-m-static-on-xl",
7526
7529
  "inlineOn_2xl": "pf-m-inline-on-2xl",
7527
7530
  "staticOn_2xl": "pf-m-static-on-2xl"
7528
- },
7529
- "pageMain": "pf-v6-c-page__main"
7531
+ }
7530
7532
  };
7531
7533
 
7532
7534
  var DrawerColorVariant;
@@ -9022,7 +9024,6 @@ PageContext.Consumer;
9022
9024
 
9023
9025
  var styles$5 = {
9024
9026
  "dirRtl": "pf-v6-m-dir-rtl",
9025
- "drawer": "pf-v6-c-drawer",
9026
9027
  "masthead": "pf-v6-c-masthead",
9027
9028
  "modifiers": {
9028
9029
  "expanded": "pf-m-expanded",
@@ -31572,8 +31573,7 @@ const QuickStartTileFooterExternal = ({ link, quickStartId, }) => {
31572
31573
 
31573
31574
  const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => (React.createElement(Flex, { flexWrap: { default: 'nowrap' } },
31574
31575
  React.createElement(Title, { headingLevel: "h3", "data-test": "title", id: quickStartId },
31575
- React.createElement(Button, { variant: "link", isInline: true, onClick: onSelect },
31576
- React.createElement(QuickStartMarkdownView, { content: name })))));
31576
+ React.createElement(Button, { variant: "link", isInline: true, onClick: onSelect }, name))));
31577
31577
 
31578
31578
  var outlinedBookmarkIcon = createCommonjsModule(function (module, exports) {
31579
31579
  exports.__esModule = true;
@@ -31937,7 +31937,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
31937
31937
  return (React.createElement(WizardNavItem, { content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask, status: status }, children));
31938
31938
  };
31939
31939
 
31940
- const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React.createElement("ul", { className: "pf-v6-c-wizard__nav-list" }, tasks.map((task, index) => (React.createElement(QuickStartTaskHeader, { key: task.title, title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }))))) : null;
31940
+ const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React.createElement("ul", { className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list" }, tasks.map((task, index) => (React.createElement(QuickStartTaskHeader, { key: task.title, title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }))))) : null;
31941
31941
 
31942
31942
  const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickStarts, onQuickStartChange, onTaskSelect, }) => {
31943
31943
  const hasFailedTask = allTaskStatuses.includes(QuickStartTaskStatus.FAILED);
@@ -31997,7 +31997,7 @@ const QuickStartTaskReview = ({ review, taskStatus, onTaskReview, }) => {
31997
31997
 
31998
31998
  const QuickStartTasks = ({ tasks, taskNumber, allTaskStatuses, onTaskReview, onTaskSelect, }) => {
31999
31999
  const { getResource, alwaysShowTaskReview } = React.useContext(QuickStartContext);
32000
- return (React.createElement("div", { className: "pf-v6-c-wizard__nav-list", style: { padding: '0 0 0 0' } },
32000
+ return (React.createElement("div", { className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list", style: { padding: '0 0 0 0' } },
32001
32001
  React.createElement("ul", null, tasks
32002
32002
  .filter((_, index) => allTaskStatuses[index] !== QuickStartTaskStatus.INIT)
32003
32003
  .map((task, index) => {