@patternfly/quickstarts 6.0.0-alpha.6 → 6.0.0-prerelease.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.
package/dist/index.js CHANGED
@@ -1618,12 +1618,10 @@ const QuickStartTileFooterExternal = ({ link, quickStartId, }) => {
1618
1618
  React__namespace.createElement(reactCore.Button, { component: "a", href: href, target: "_blank", rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: React__namespace.createElement(ExternalLinkAltIcon__default['default'], null), iconPosition: "right", id: quickStartId, "aria-labelledby": `${quickStartId}-external ${quickStartId}` }, text || href))));
1619
1619
  };
1620
1620
 
1621
- const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => {
1622
- return (React__namespace.createElement(reactCore.Flex, { flexWrap: { default: 'nowrap' } },
1623
- React__namespace.createElement(reactCore.Title, { headingLevel: "h3", "data-test": "title", id: quickStartId },
1624
- React__namespace.createElement(reactCore.Button, { variant: "link", isInline: true, onClick: onSelect },
1625
- React__namespace.createElement(QuickStartMarkdownView, { content: name })))));
1626
- };
1621
+ const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => (React__namespace.createElement(reactCore.Flex, { flexWrap: { default: 'nowrap' } },
1622
+ React__namespace.createElement(reactCore.Title, { headingLevel: "h3", "data-test": "title", id: quickStartId },
1623
+ React__namespace.createElement(reactCore.Button, { variant: "link", isInline: true, onClick: onSelect },
1624
+ React__namespace.createElement(QuickStartMarkdownView, { content: name })))));
1627
1625
 
1628
1626
  const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, action, }) => {
1629
1627
  const { metadata: { name: id }, spec: { icon, tasks, displayName, description, durationMinutes, prerequisites, link, type }, } = quickStart;
@@ -1690,7 +1688,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
1690
1688
  const QuickStartCatalog = ({ quickStarts }) => {
1691
1689
  const { activeQuickStartID, allQuickStartStates } = React__namespace.useContext(QuickStartContext);
1692
1690
  return (React__namespace.createElement("div", null,
1693
- React__namespace.createElement(reactCore.Gallery, { hasGutter: true }, quickStarts.map((quickStart, index) => {
1691
+ React__namespace.createElement(reactCore.Gallery, { hasGutter: true, className: "pfext-quick-start-catalog__gallery" }, quickStarts.map((quickStart, index) => {
1694
1692
  const { metadata: { name: id }, } = quickStart;
1695
1693
  return (React__namespace.createElement(QuickStartTile, { key: index, quickStart: quickStart, isActive: id === activeQuickStartID, status: getQuickStartStatus(allQuickStartStates, id) }));
1696
1694
  }))));
@@ -1939,7 +1937,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
1939
1937
  return (React__namespace.createElement(reactCore.WizardNavItem, { content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask, status: status }, children));
1940
1938
  };
1941
1939
 
1942
- const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React__namespace.createElement("div", { className: "pf-v6-c-wizard__nav-list" }, tasks.map((task, index) => (React__namespace.createElement(QuickStartTaskHeader, { key: task.title, title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }))))) : null;
1940
+ const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React__namespace.createElement("ul", { className: "pf-v6-c-wizard__nav-list" }, tasks.map((task, index) => (React__namespace.createElement(QuickStartTaskHeader, { key: task.title, title: task.title, taskIndex: index + 1, size: "md", taskStatus: allTaskStatuses[index], onTaskSelect: onTaskSelect }))))) : null;
1943
1941
 
1944
1942
  const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickStarts, onQuickStartChange, onTaskSelect, }) => {
1945
1943
  const hasFailedTask = allTaskStatuses.includes(exports.QuickStartTaskStatus.FAILED);
@@ -2055,7 +2053,7 @@ const QuickStartFooter = ({ status, taskNumber, totalTasks, onNext, onBack, quic
2055
2053
  }
2056
2054
  return PrimaryButtonText.CONTINUE;
2057
2055
  }, [taskNumber, totalTasks, PrimaryButtonText, status]);
2058
- const getPrimaryButton = React__namespace.useMemo(() => (React__namespace.createElement(reactCore.Button, { variant: "primary", onClick: onNext, "data-testid": `qs-drawer-${camelize(getPrimaryButtonText)}`, "data-test": `${getPrimaryButtonText} button` }, getPrimaryButtonText)), [getPrimaryButtonText, onNext]);
2056
+ const getPrimaryButton = React__namespace.useMemo(() => (React__namespace.createElement(reactCore.Button, { variant: "primary", className: "pfext-quick-start-footer__actionbtn", onClick: onNext, "data-testid": `qs-drawer-${camelize(getPrimaryButtonText)}`, "data-test": `${getPrimaryButtonText} button` }, getPrimaryButtonText)), [getPrimaryButtonText, onNext]);
2059
2057
  const getSecondaryButton = React__namespace.useMemo(() => taskNumber === -1 && status !== exports.QuickStartStatus.NOT_STARTED ? (React__namespace.createElement(reactCore.Button, { variant: "secondary", onClick: onRestart, "data-testid": "qs-drawer-restart" }, SecondaryButtonText.RESTART)) : (taskNumber > -1 && (React__namespace.createElement(reactCore.Button, { variant: "secondary", onClick: onBack, "data-testid": "qs-drawer-back" }, SecondaryButtonText.BACK))), [onRestart, onBack, SecondaryButtonText, status, taskNumber]);
2060
2058
  const getSideNoteAction = React__namespace.useMemo(() => taskNumber !== -1 && (React__namespace.createElement(reactCore.Button, { variant: "link", onClick: onRestart, "data-testid": "qs-drawer-side-note-action" }, SecondaryButtonText.RESTART)), [taskNumber, onRestart, SecondaryButtonText.RESTART]);
2061
2059
  return (React__namespace.createElement("div", { className: reactStyles.css('pfext-quick-start-footer', className) },