@patternfly/quickstarts 6.0.0-alpha.6 → 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.
- package/dist/index.es.js +7 -10
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +7 -10
- package/dist/index.js.map +1 -1
- package/dist/patternfly-docs/quick-starts/design-guidelines/design-guidelines.md +122 -50
- package/dist/patternfly-global.css +1499 -5
- package/dist/patternfly-nested.css +622 -2413
- package/dist/quickstarts-full.es.js +371 -399
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +5 -5
- package/dist/quickstarts-standalone.min.css +2 -6
- package/dist/quickstarts-vendor.css +44 -0
- package/dist/quickstarts.css +45 -1
- package/dist/quickstarts.min.css +1 -1
- package/package.json +11 -11
- package/src/catalog/QuickStartCatalog.tsx +1 -1
- package/src/catalog/QuickStartTile.tsx +3 -8
- package/src/catalog/QuickStartTileHeader.tsx +9 -13
- package/src/catalog/__tests__/QuickStartTile.spec.tsx +0 -1
- package/src/controller/QuickStartFooter.tsx +1 -0
- package/src/controller/QuickStartTaskHeaderList.tsx +2 -2
- package/src/controller/QuickStartTasks.tsx +1 -1
package/dist/index.js
CHANGED
|
@@ -1618,12 +1618,9 @@ 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
|
-
|
|
1623
|
-
React__namespace.createElement(reactCore.
|
|
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 }, name))));
|
|
1627
1624
|
|
|
1628
1625
|
const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, action, }) => {
|
|
1629
1626
|
const { metadata: { name: id }, spec: { icon, tasks, displayName, description, durationMinutes, prerequisites, link, type }, } = quickStart;
|
|
@@ -1690,7 +1687,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
1690
1687
|
const QuickStartCatalog = ({ quickStarts }) => {
|
|
1691
1688
|
const { activeQuickStartID, allQuickStartStates } = React__namespace.useContext(QuickStartContext);
|
|
1692
1689
|
return (React__namespace.createElement("div", null,
|
|
1693
|
-
React__namespace.createElement(reactCore.Gallery, { hasGutter: true }, quickStarts.map((quickStart, index) => {
|
|
1690
|
+
React__namespace.createElement(reactCore.Gallery, { hasGutter: true, className: "pfext-quick-start-catalog__gallery" }, quickStarts.map((quickStart, index) => {
|
|
1694
1691
|
const { metadata: { name: id }, } = quickStart;
|
|
1695
1692
|
return (React__namespace.createElement(QuickStartTile, { key: index, quickStart: quickStart, isActive: id === activeQuickStartID, status: getQuickStartStatus(allQuickStartStates, id) }));
|
|
1696
1693
|
}))));
|
|
@@ -1939,7 +1936,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
|
|
|
1939
1936
|
return (React__namespace.createElement(reactCore.WizardNavItem, { content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask, status: status }, children));
|
|
1940
1937
|
};
|
|
1941
1938
|
|
|
1942
|
-
const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React__namespace.createElement("
|
|
1939
|
+
const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => (tasks === null || tasks === void 0 ? void 0 : tasks.length) > 0 ? (React__namespace.createElement("ul", { className: "pf-v6-c-wizard 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
1940
|
|
|
1944
1941
|
const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickStarts, onQuickStartChange, onTaskSelect, }) => {
|
|
1945
1942
|
const hasFailedTask = allTaskStatuses.includes(exports.QuickStartTaskStatus.FAILED);
|
|
@@ -1999,7 +1996,7 @@ const QuickStartTaskReview = ({ review, taskStatus, onTaskReview, }) => {
|
|
|
1999
1996
|
|
|
2000
1997
|
const QuickStartTasks = ({ tasks, taskNumber, allTaskStatuses, onTaskReview, onTaskSelect, }) => {
|
|
2001
1998
|
const { getResource, alwaysShowTaskReview } = React__namespace.useContext(QuickStartContext);
|
|
2002
|
-
return (React__namespace.createElement("div", { className: "pf-v6-c-wizard__nav-list", style: { padding: '0 0 0 0' } },
|
|
1999
|
+
return (React__namespace.createElement("div", { className: "pf-v6-c-wizard pf-v6-c-wizard__nav-list", style: { padding: '0 0 0 0' } },
|
|
2003
2000
|
React__namespace.createElement("ul", null, tasks
|
|
2004
2001
|
.filter((_, index) => allTaskStatuses[index] !== exports.QuickStartTaskStatus.INIT)
|
|
2005
2002
|
.map((task, index) => {
|
|
@@ -2055,7 +2052,7 @@ const QuickStartFooter = ({ status, taskNumber, totalTasks, onNext, onBack, quic
|
|
|
2055
2052
|
}
|
|
2056
2053
|
return PrimaryButtonText.CONTINUE;
|
|
2057
2054
|
}, [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]);
|
|
2055
|
+
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
2056
|
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
2057
|
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
2058
|
return (React__namespace.createElement("div", { className: reactStyles.css('pfext-quick-start-footer', className) },
|