@patternfly/quickstarts 5.4.0-prerelease.4 → 6.0.0-alpha.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 +49 -77
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +48 -78
- package/dist/index.js.map +1 -1
- package/dist/patternfly-global.css +773 -846
- package/dist/patternfly-nested.css +12814 -9632
- package/dist/quickstarts-base.css +128 -757
- package/dist/quickstarts-full.es.js +3217 -2470
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +165 -540
- package/dist/quickstarts-standalone.min.css +8 -4
- package/dist/quickstarts-vendor.css +37 -134
- package/dist/quickstarts.css +165 -891
- package/dist/quickstarts.min.css +1 -1
- package/package.json +20 -20
- package/src/ConsoleInternal/components/_icon-and-text.scss +2 -2
- package/src/ConsoleInternal/components/catalog/_catalog.scss +20 -20
- package/src/ConsoleInternal/components/markdown-view.tsx +2 -2
- package/src/ConsoleInternal/components/utils/_status-box.scss +1 -1
- package/src/ConsoleShared/src/components/layout/PageLayout.scss +10 -10
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +6 -4
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +2 -2
- package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +5 -5
- package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +8 -8
- package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +5 -5
- package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +1 -1
- package/src/ConsoleShared/src/components/spotlight/spotlight.scss +4 -4
- package/src/ConsoleShared/src/components/status/icons.tsx +6 -8
- package/src/HelpTopicDrawer.tsx +1 -1
- package/src/HelpTopicPanelContent.tsx +1 -1
- package/src/QuickStartCatalogPage.tsx +1 -8
- package/src/QuickStartDrawer.scss +1 -1
- package/src/QuickStartDrawer.tsx +1 -1
- package/src/QuickStartMarkdownView.tsx +1 -1
- package/src/QuickStartPanelContent.scss +10 -10
- package/src/QuickStartPanelContent.tsx +1 -1
- package/src/catalog/QuickStartCatalog.scss +1 -1
- package/src/catalog/QuickStartTile.tsx +4 -1
- package/src/catalog/QuickStartTileDescription.scss +4 -4
- package/src/catalog/QuickStartTileHeader.scss +5 -5
- package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +9 -9
- package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +1 -1
- package/src/controller/QuickStartConclusion.tsx +1 -1
- package/src/controller/QuickStartContent.scss +2 -2
- package/src/controller/QuickStartFooter.scss +3 -3
- package/src/controller/QuickStartIntroduction.scss +7 -7
- package/src/controller/QuickStartIntroduction.tsx +1 -1
- package/src/controller/QuickStartTaskHeader.scss +15 -15
- package/src/controller/QuickStartTaskHeader.tsx +17 -17
- package/src/controller/QuickStartTaskHeaderList.scss +1 -1
- package/src/controller/QuickStartTaskHeaderList.tsx +1 -1
- package/src/controller/QuickStartTaskReview.scss +8 -8
- package/src/controller/QuickStartTasks.scss +14 -13
- package/src/styles/_base.scss +3 -6
- package/src/styles/_dark-custom-override.scss +16 -31
- package/src/styles/legacy-bootstrap/_variables.scss +8 -8
- package/src/styles/patternfly-global.scss +8 -8
- package/src/styles/patternfly-nested.scss +5 -5
- package/src/styles/style.scss +6 -6
- package/src/styles/vendor.scss +2 -2
package/dist/index.es.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import React__default, { createContext, useCallback, useEffect, useState } from 'react';
|
|
3
|
-
import { getUniqueId, Card, CardHeader, CardTitle, CardBody, CardFooter, Modal as Modal$1, useIsomorphicLayoutEffect, Tooltip, Alert, CodeBlock, Accordion, AccordionItem, AccordionToggle, AccordionContent, Popover, PopoverPosition, Button, Icon, Text, TextVariants, TextList, TextListItem, Flex, FlexItem, Title, Label, Gallery, GalleryItem, ToolbarItem, SearchInput, Select, SelectList, SelectOption, MenuToggle, Badge, Toolbar, ToolbarContent, EmptyState,
|
|
3
|
+
import { getUniqueId, Card, CardHeader, CardTitle, CardBody, CardFooter, Modal as Modal$1, useIsomorphicLayoutEffect, Tooltip, Alert, CodeBlock, Accordion, AccordionItem, AccordionToggle, AccordionContent, Popover, PopoverPosition, Button, Icon, Text, TextVariants, TextList, TextListItem, Flex, FlexItem, Title, Label, Gallery, GalleryItem, ToolbarItem, SearchInput, Select, SelectList, SelectOption, MenuToggle, Badge, Toolbar, ToolbarContent, EmptyState, EmptyStateBody, EmptyStateFooter, EmptyStateActions, Divider, ModalVariant, WizardNavItem, List, ExpandableSection, ListItem, Radio, DrawerPanelContent, DrawerHead, DrawerActions, DrawerCloseButton, DrawerPanelBody, Drawer, DrawerContent, DrawerContentBody, Stack, StackItem } from '@patternfly/react-core';
|
|
4
4
|
import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
|
|
5
5
|
import { css } from '@patternfly/react-styles';
|
|
6
6
|
import { __rest } from 'tslib';
|
|
@@ -14,11 +14,8 @@ import FireIcon from '@patternfly/react-icons/dist/js/icons/fire-icon';
|
|
|
14
14
|
import { Converter } from 'showdown';
|
|
15
15
|
import SyncAltIcon from '@patternfly/react-icons/dist/js/icons/sync-alt-icon';
|
|
16
16
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
17
|
-
import
|
|
17
|
+
import '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
18
18
|
import InfoCircleIcon from '@patternfly/react-icons/dist/js/icons/info-circle-icon';
|
|
19
|
-
import '@patternfly/react-tokens/dist/esm/global_danger_color_100';
|
|
20
|
-
import '@patternfly/react-tokens/dist/esm/global_palette_blue_300';
|
|
21
|
-
import okColor from '@patternfly/react-tokens/dist/esm/global_palette_green_500';
|
|
22
19
|
import ExternalLinkAltIcon from '@patternfly/react-icons/dist/js/icons/external-link-alt-icon';
|
|
23
20
|
import OutlinedClockIcon from '@patternfly/react-icons/dist/js/icons/outlined-clock-icon';
|
|
24
21
|
import OutlinedBookmarkIcon from '@patternfly/react-icons/dist/js/icons/outlined-bookmark-icon';
|
|
@@ -26,20 +23,17 @@ import ArrowRightIcon from '@patternfly/react-icons/dist/js/icons/arrow-right-ic
|
|
|
26
23
|
import BarsIcon from '@patternfly/react-icons/dist/js/icons/bars-icon';
|
|
27
24
|
|
|
28
25
|
function _extends() {
|
|
29
|
-
_extends = Object.assign
|
|
26
|
+
_extends = Object.assign ? Object.assign.bind() : function (target) {
|
|
30
27
|
for (var i = 1; i < arguments.length; i++) {
|
|
31
28
|
var source = arguments[i];
|
|
32
|
-
|
|
33
29
|
for (var key in source) {
|
|
34
30
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
|
35
31
|
target[key] = source[key];
|
|
36
32
|
}
|
|
37
33
|
}
|
|
38
34
|
}
|
|
39
|
-
|
|
40
35
|
return target;
|
|
41
36
|
};
|
|
42
|
-
|
|
43
37
|
return _extends.apply(this, arguments);
|
|
44
38
|
}
|
|
45
39
|
|
|
@@ -865,8 +859,8 @@ class CatalogTile extends React.Component {
|
|
|
865
859
|
const _a = this.props, { id, className, featured, onClick, href, icon, iconImg, iconAlt, iconClass, badges, title, vendor, description, footer,
|
|
866
860
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
867
861
|
ref, children } = _a, props = __rest(_a, ["id", "className", "featured", "onClick", "href", "icon", "iconImg", "iconAlt", "iconClass", "badges", "title", "vendor", "description", "footer", "ref", "children"]);
|
|
868
|
-
return (React.createElement(Card, Object.assign({ component: href ? 'a' : 'div', id: id || this.generatedId, href: href || '#', className: css('catalog-tile-pf', { featured }, className), isClickable: !!onClick }, props),
|
|
869
|
-
(badges.length > 0 || iconImg || iconClass || icon || onClick) && (React.createElement(CardHeader, { actions: { actions: badges.length > 0 && this.renderBadges(badges) }, selectableActions: onClick && {
|
|
862
|
+
return (React.createElement(Card, Object.assign({ component: href ? 'a' : 'div', id: id || this.generatedId, href: href || '#', className: css('catalog-tile-pf', { featured }, className), variant: featured ? 'secondary' : 'default', isClickable: !!onClick }, props),
|
|
863
|
+
(badges.length > 0 || iconImg || iconClass || icon || onClick) && (React.createElement(CardHeader, { actions: { actions: badges.length > 0 && this.renderBadges(badges), hasNoOffset: true }, selectableActions: onClick && {
|
|
870
864
|
selectableActionId: id + '-input',
|
|
871
865
|
onClickAction: (e) => this.handleClick(e),
|
|
872
866
|
selectableActionAriaLabelledby: id
|
|
@@ -1107,7 +1101,7 @@ const StaticSpotlight = ({ element }) => {
|
|
|
1107
1101
|
}
|
|
1108
1102
|
: {};
|
|
1109
1103
|
return clientRect ? (React.createElement(Portal, null,
|
|
1110
|
-
React.createElement("div", { className: "pf-
|
|
1104
|
+
React.createElement("div", { className: "pf-v6-c-backdrop pfext-spotlight__with-backdrop" },
|
|
1111
1105
|
React.createElement("div", { className: "pfext-spotlight pfext-spotlight__element-highlight-noanimate", style: style })))) : null;
|
|
1112
1106
|
};
|
|
1113
1107
|
|
|
@@ -1230,11 +1224,11 @@ const useInlineCopyClipboardShowdownExtension = () => {
|
|
|
1230
1224
|
if (!group || isNaN(groupId)) {
|
|
1231
1225
|
return text;
|
|
1232
1226
|
}
|
|
1233
|
-
return removeTemplateWhitespace(`<span class="pf-
|
|
1234
|
-
<span class="pf-
|
|
1235
|
-
<span class="pf-
|
|
1236
|
-
<span class="pf-
|
|
1237
|
-
<button class="pf-
|
|
1227
|
+
return removeTemplateWhitespace(`<span class="pf-v6-c-clipboard-copy pf-m-inline">
|
|
1228
|
+
<span class="pf-v6-c-clipboard-copy__text" ${MARKDOWN_SNIPPET_ID}="${groupId}">${group}</span>
|
|
1229
|
+
<span class="pf-v6-c-clipboard-copy__actions">
|
|
1230
|
+
<span class="pf-v6-c-clipboard-copy__actions-item">
|
|
1231
|
+
<button class="pf-v6-c-button pf-m-plain" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
|
|
1238
1232
|
${renderToStaticMarkup(React.createElement(CopyIcon, null))}
|
|
1239
1233
|
</button>
|
|
1240
1234
|
</span>
|
|
@@ -1253,19 +1247,19 @@ const useMultilineCopyClipboardShowdownExtension = () => {
|
|
|
1253
1247
|
if (!group || isNaN(groupId)) {
|
|
1254
1248
|
return text;
|
|
1255
1249
|
}
|
|
1256
|
-
return `<div class="pf-
|
|
1257
|
-
<div class="pf-
|
|
1258
|
-
<div class="pf-
|
|
1259
|
-
<div class="pf-
|
|
1260
|
-
<button class="pf-
|
|
1250
|
+
return `<div class="pf-v6-c-code-block">
|
|
1251
|
+
<div class="pf-v6-c-code-block__header">
|
|
1252
|
+
<div class="pf-v6-c-code-block__actions">
|
|
1253
|
+
<div class="pf-v6-c-code-block__actions-item">
|
|
1254
|
+
<button class="pf-v6-c-button pf-m-plain" type="button" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
|
|
1261
1255
|
${renderToStaticMarkup(React.createElement(CopyIcon, null))}
|
|
1262
1256
|
</button>
|
|
1263
1257
|
</div>
|
|
1264
1258
|
</div>
|
|
1265
1259
|
</div>
|
|
1266
|
-
<div class="pf-
|
|
1267
|
-
<pre class="pf-
|
|
1268
|
-
<code class="pf-
|
|
1260
|
+
<div class="pf-v6-c-code-block__content">
|
|
1261
|
+
<pre class="pf-v6-c-code-block__pre pfext-code-block__pre">
|
|
1262
|
+
<code class="pf-v6-c-code-block__code"
|
|
1269
1263
|
${MARKDOWN_SNIPPET_ID}="${groupId}">${group.trim()}</code>
|
|
1270
1264
|
</pre>
|
|
1271
1265
|
</div>
|
|
@@ -1296,7 +1290,7 @@ const markdownConvert = (markdown, extensions) => {
|
|
|
1296
1290
|
// add PF class to ul and ol lists
|
|
1297
1291
|
if (node.nodeType === 1 &&
|
|
1298
1292
|
(node.nodeName.toLowerCase() === 'ul' || node.nodeName.toLowerCase() === 'ol')) {
|
|
1299
|
-
node.setAttribute('class', 'pf-
|
|
1293
|
+
node.setAttribute('class', 'pf-v6-c-list');
|
|
1300
1294
|
return node;
|
|
1301
1295
|
}
|
|
1302
1296
|
});
|
|
@@ -1407,7 +1401,7 @@ const IFrameMarkdownView = ({ exactHeight, markup, isEmpty, renderExtension, cla
|
|
|
1407
1401
|
body {
|
|
1408
1402
|
background-color: transparent !important;
|
|
1409
1403
|
color: ${isEmpty ? '#999' : '#333'};
|
|
1410
|
-
font-family: var(--pf-
|
|
1404
|
+
font-family: var(--pf-t--global--font--family--body);
|
|
1411
1405
|
min-width: auto !important;
|
|
1412
1406
|
}
|
|
1413
1407
|
table {
|
|
@@ -1453,7 +1447,7 @@ const QuickStartMarkdownView = ({ content, exactHeight, className, }) => {
|
|
|
1453
1447
|
if (!linkLabel || !linkType || !linkId) {
|
|
1454
1448
|
return text;
|
|
1455
1449
|
}
|
|
1456
|
-
return `<button class="pf-
|
|
1450
|
+
return `<button class="pf-v6-c-button pf-m-inline pf-m-link" data-highlight="${linkId}">${linkLabel}</button>`;
|
|
1457
1451
|
},
|
|
1458
1452
|
},
|
|
1459
1453
|
{
|
|
@@ -1529,10 +1523,11 @@ const useAccordionShowdownExtension = () => React.useMemo(() => ({
|
|
|
1529
1523
|
regex: /\[(.+)]{{(accordion) ("(.*?)")}}/g,
|
|
1530
1524
|
replace: (_text, accordionContent, _command, accordionHeading) => {
|
|
1531
1525
|
const accordionId = String(accordionHeading).replace(/\s/g, '-');
|
|
1532
|
-
return removeTemplateWhitespace(renderToStaticMarkup(React.createElement(
|
|
1533
|
-
React.createElement(
|
|
1534
|
-
React.createElement(
|
|
1535
|
-
|
|
1526
|
+
return removeTemplateWhitespace(renderToStaticMarkup(React.createElement(React.Fragment, null,
|
|
1527
|
+
React.createElement(Accordion, { asDefinitionList: true },
|
|
1528
|
+
React.createElement(AccordionItem, { isExpanded: false },
|
|
1529
|
+
React.createElement(AccordionToggle, { id: `${ACCORDION_MARKDOWN_BUTTON_ID}-${accordionId}` }, accordionHeading),
|
|
1530
|
+
React.createElement(AccordionContent, { id: `${ACCORDION_MARKDOWN_CONTENT_ID}-${accordionId}` }, accordionContent))))));
|
|
1536
1531
|
},
|
|
1537
1532
|
}), []);
|
|
1538
1533
|
|
|
@@ -1540,9 +1535,9 @@ const AccordionShowdownHandler = ({ buttonElement, contentElement, }) => {
|
|
|
1540
1535
|
const [expanded, setExpanded] = React.useState(false);
|
|
1541
1536
|
const handleClick = () => {
|
|
1542
1537
|
const expandedModifier = 'pf-m-expanded';
|
|
1543
|
-
buttonElement.className = `pf-
|
|
1538
|
+
buttonElement.className = `pf-v6-c-accordion__toggle ${!expanded ? expandedModifier : ''}`;
|
|
1544
1539
|
contentElement.hidden = expanded;
|
|
1545
|
-
contentElement.className = `pf-
|
|
1540
|
+
contentElement.className = `pf-v6-c-accordion__expanded-content ${!expanded ? expandedModifier : ''}`;
|
|
1546
1541
|
setExpanded(!expanded);
|
|
1547
1542
|
};
|
|
1548
1543
|
useEventListener(buttonElement, 'click', handleClick);
|
|
@@ -1593,8 +1588,8 @@ const GenericStatus = (props) => {
|
|
|
1593
1588
|
return React.Children.toArray(children).length ? (React.createElement(PopoverStatus, Object.assign({ title: popoverTitle || title }, restProps, { statusBody: statusBody }), children)) : (statusBody);
|
|
1594
1589
|
};
|
|
1595
1590
|
|
|
1596
|
-
const GreenCheckCircleIcon = ({ className, title, size }) => (React.createElement(Icon, { size: size },
|
|
1597
|
-
React.createElement(CheckCircleIcon, { "data-test": "success-icon",
|
|
1591
|
+
const GreenCheckCircleIcon = ({ className, title, size }) => (React.createElement(Icon, { size: size, status: "success" },
|
|
1592
|
+
React.createElement(CheckCircleIcon, { "data-test": "success-icon", className: className, title: title })));
|
|
1598
1593
|
|
|
1599
1594
|
const SuccessStatus = (props) => (React.createElement(GenericStatus, Object.assign({}, props, { Icon: GreenCheckCircleIcon, title: props.title || 'Healthy' })));
|
|
1600
1595
|
SuccessStatus.displayName = 'SuccessStatus';
|
|
@@ -1694,10 +1689,11 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
1694
1689
|
const ref = React.useRef(null);
|
|
1695
1690
|
let quickStartIcon;
|
|
1696
1691
|
if (typeof icon === 'object') {
|
|
1697
|
-
quickStartIcon = icon;
|
|
1692
|
+
quickStartIcon = React.createElement(Icon, { size: "xl" }, icon);
|
|
1698
1693
|
}
|
|
1699
1694
|
else {
|
|
1700
|
-
quickStartIcon = (React.createElement(
|
|
1695
|
+
quickStartIcon = (React.createElement(Icon, { size: "xl" },
|
|
1696
|
+
React.createElement(FallbackImg, { className: "pfext-catalog-item-icon__img--large", src: icon, alt: "", fallback: React.createElement(RocketIcon, null) })));
|
|
1701
1697
|
}
|
|
1702
1698
|
const footerComponent = React.useMemo(() => {
|
|
1703
1699
|
if (footer && footer.show === false) {
|
|
@@ -1766,7 +1762,7 @@ const QuickStartCatalogFilterSelect = (_a) => {
|
|
|
1766
1762
|
};
|
|
1767
1763
|
const QuickStartCatalogFilterCount = ({ quickStartsCount }) => {
|
|
1768
1764
|
const { getResource } = React.useContext(QuickStartContext);
|
|
1769
|
-
return (React.createElement(ToolbarItem, { className: "pfext-quick-start-catalog-filter__count", align: { default: '
|
|
1765
|
+
return (React.createElement(ToolbarItem, { className: "pfext-quick-start-catalog-filter__count", align: { default: 'alignEnd' } }, getResource('{{count, number}} item', quickStartsCount).replace('{{count, number}}', quickStartsCount)));
|
|
1770
1766
|
};
|
|
1771
1767
|
const QuickStartCatalogFilterSearchWrapper = ({ onSearchInputChange = () => { } }) => {
|
|
1772
1768
|
const { useQueryParams, filter, setFilter } = React.useContext(QuickStartContext);
|
|
@@ -1865,8 +1861,7 @@ const QuickStartCatalogFilter = (_a) => {
|
|
|
1865
1861
|
|
|
1866
1862
|
const QuickStartCatalogEmptyState = ({ clearFilters }) => {
|
|
1867
1863
|
const { getResource } = React.useContext(QuickStartContext);
|
|
1868
|
-
return (React.createElement(EmptyState, null,
|
|
1869
|
-
React.createElement(EmptyStateHeader, { titleText: React.createElement(React.Fragment, null, getResource('No results found')), icon: React.createElement(EmptyStateIcon, { icon: SearchIcon }), headingLevel: "h4" }),
|
|
1864
|
+
return (React.createElement(EmptyState, { headingLevel: "h4", icon: SearchIcon, titleText: React.createElement(React.Fragment, null, getResource('No results found')) },
|
|
1870
1865
|
React.createElement(EmptyStateBody, null, getResource('No results match the filter criteria. Remove filters or clear all filters to show results.')),
|
|
1871
1866
|
React.createElement(EmptyStateFooter, null,
|
|
1872
1867
|
React.createElement(EmptyStateActions, null,
|
|
@@ -1961,28 +1956,6 @@ const QuickStartCloseModal = ({ isOpen, onConfirm, onCancel, }) => {
|
|
|
1961
1956
|
React.createElement(Button, { variant: "primary", "data-test": "leave button", onClick: onConfirm }, getResource('Leave')))), isFullScreen: true }, getResource('Your progress will be saved.')));
|
|
1962
1957
|
};
|
|
1963
1958
|
|
|
1964
|
-
const TaskIcon = ({ taskIndex, taskStatus }) => {
|
|
1965
|
-
const { getResource } = React.useContext(QuickStartContext);
|
|
1966
|
-
const success = taskStatus === QuickStartTaskStatus.SUCCESS;
|
|
1967
|
-
const failed = taskStatus === QuickStartTaskStatus.FAILED;
|
|
1968
|
-
const classNames = css('pfext-icon-and-text__icon', {
|
|
1969
|
-
'pfext-quick-start-task-header__task-icon-init': !failed && !success,
|
|
1970
|
-
});
|
|
1971
|
-
let content;
|
|
1972
|
-
if (success) {
|
|
1973
|
-
content = (React.createElement(Icon, { size: "md" },
|
|
1974
|
-
React.createElement(CheckCircleIcon, { className: "pfext-quick-start-task-header__task-icon-success" }),
|
|
1975
|
-
' '));
|
|
1976
|
-
}
|
|
1977
|
-
else if (failed) {
|
|
1978
|
-
content = (React.createElement(Icon, { size: "md" },
|
|
1979
|
-
React.createElement(ExclamationCircleIcon, { className: "pfext-quick-start-task-header__task-icon-failed" })));
|
|
1980
|
-
}
|
|
1981
|
-
else {
|
|
1982
|
-
content = getResource('{{taskIndex, number}}', taskIndex).replace('{{taskIndex, number}}', taskIndex);
|
|
1983
|
-
}
|
|
1984
|
-
return React.createElement("span", { className: classNames }, content);
|
|
1985
|
-
};
|
|
1986
1959
|
const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, isActiveTask, onTaskSelect, children, }) => {
|
|
1987
1960
|
const titleRef = React.useRef(null);
|
|
1988
1961
|
const { focusOnQuickStart } = React.useContext(QuickStartContext);
|
|
@@ -1992,7 +1965,7 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
|
|
|
1992
1965
|
titleRef.current.parentNode.focus();
|
|
1993
1966
|
}
|
|
1994
1967
|
}, [focusOnQuickStart, isActiveTask]);
|
|
1995
|
-
|
|
1968
|
+
css('pfext-quick-start-task-header__title', {
|
|
1996
1969
|
'pfext-quick-start-task-header__title-success': taskStatus === QuickStartTaskStatus.SUCCESS,
|
|
1997
1970
|
'pfext-quick-start-task-header__title-failed': taskStatus === (QuickStartTaskStatus.FAILED || QuickStartTaskStatus.VISITED),
|
|
1998
1971
|
});
|
|
@@ -2004,18 +1977,17 @@ const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, is
|
|
|
2004
1977
|
const tryAgain = failedReview && (React.createElement(React.Fragment, null,
|
|
2005
1978
|
React.createElement("div", null),
|
|
2006
1979
|
React.createElement("div", { className: "pfext-quick-start-task-header__tryagain" }, "Try the steps again.")));
|
|
2007
|
-
const content = (React.createElement("div", {
|
|
2008
|
-
React.createElement(
|
|
2009
|
-
React.createElement(Title, { headingLevel: "h3", size: size, className: classNames },
|
|
1980
|
+
const content = (React.createElement("div", { ref: titleRef },
|
|
1981
|
+
React.createElement(Title, { headingLevel: "h3" },
|
|
2010
1982
|
React.createElement("span", { dangerouslySetInnerHTML: { __html: removeParagraphWrap(markdownConvert(title)) } }),
|
|
2011
|
-
isActiveTask && subtitle && (React.createElement("span", {
|
|
1983
|
+
isActiveTask && subtitle && (React.createElement("span", { "data-test-id": "quick-start-task-subtitle" },
|
|
2012
1984
|
' ',
|
|
2013
|
-
subtitle))),
|
|
2014
|
-
|
|
1985
|
+
React.createElement(Text, { component: TextVariants.small }, subtitle))),
|
|
1986
|
+
tryAgain)));
|
|
2015
1987
|
return (React.createElement(WizardNavItem, { content: content, stepIndex: taskIndex, onClick: () => onTaskSelect(taskIndex - 1), component: "button", isCurrent: isActiveTask }, children));
|
|
2016
1988
|
};
|
|
2017
1989
|
|
|
2018
|
-
const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => tasks.length > 0 ? (React.createElement(List, { className: "
|
|
1990
|
+
const QuickStartTaskHeaderList = ({ tasks, allTaskStatuses, onTaskSelect, }) => tasks.length > 0 ? (React.createElement(List, { 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;
|
|
2019
1991
|
|
|
2020
1992
|
const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickStarts, onQuickStartChange, onTaskSelect, }) => {
|
|
2021
1993
|
const hasFailedTask = allTaskStatuses.includes(QuickStartTaskStatus.FAILED);
|
|
@@ -2033,7 +2005,7 @@ const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickSta
|
|
|
2033
2005
|
return (React.createElement(Button, { variant: "link", onClick: () => onQuickStartChange(nextQuickStart.metadata.name), isInline: true, isBlock: true, key: index },
|
|
2034
2006
|
getResource('Start {{nextQSDisplayName}} quick start').replace('{{nextQSDisplayName}}', (_a = nextQuickStart === null || nextQuickStart === void 0 ? void 0 : nextQuickStart.spec) === null || _a === void 0 ? void 0 : _a.displayName),
|
|
2035
2007
|
' ',
|
|
2036
|
-
React.createElement(ArrowRightIcon, { style: { marginLeft: 'var(--pf-
|
|
2008
|
+
React.createElement(ArrowRightIcon, { style: { marginLeft: 'var(--pf-t--global--spacer--xs)', verticalAlign: 'middle' } })));
|
|
2037
2009
|
})));
|
|
2038
2010
|
};
|
|
2039
2011
|
|
|
@@ -2048,7 +2020,7 @@ const QuickStartIntroduction = ({ tasks, introduction, allTaskStatuses, prerequi
|
|
|
2048
2020
|
return (React.createElement(React.Fragment, null,
|
|
2049
2021
|
React.createElement(QuickStartMarkdownView, { content: introduction }),
|
|
2050
2022
|
prereqList,
|
|
2051
|
-
React.createElement("p", { style: { marginBottom: 'var(--pf-
|
|
2023
|
+
React.createElement("p", { style: { marginBottom: 'var(--pf-t--global--spacer--md)' } },
|
|
2052
2024
|
getResource('In this quick start, you will complete {{count, number}} task', tasks.length).replace('{{count, number}}', tasks.length),
|
|
2053
2025
|
":"),
|
|
2054
2026
|
React.createElement(QuickStartTaskHeaderList, { tasks: tasks, allTaskStatuses: allTaskStatuses, onTaskSelect: onTaskSelect })));
|
|
@@ -2235,7 +2207,7 @@ const QuickStartPanelContent = (_a) => {
|
|
|
2235
2207
|
React.createElement("div", { className: headerClasses },
|
|
2236
2208
|
React.createElement(DrawerHead, null,
|
|
2237
2209
|
React.createElement("div", { className: "pfext-quick-start-panel-content__title", tabIndex: -1, ref: titleRef },
|
|
2238
|
-
React.createElement(Title, { headingLevel: "h2", size: "xl", className: "pfext-quick-start-panel-content__name", style: { marginRight: 'var(--pf-
|
|
2210
|
+
React.createElement(Title, { headingLevel: "h2", size: "xl", className: "pfext-quick-start-panel-content__name", style: { marginRight: 'var(--pf-t--global--spacer--md)' } },
|
|
2239
2211
|
React.createElement("span", { dangerouslySetInnerHTML: {
|
|
2240
2212
|
__html: removeParagraphWrap(markdownConvert(quickStart === null || quickStart === void 0 ? void 0 : quickStart.spec.displayName)),
|
|
2241
2213
|
} }),
|
|
@@ -2349,7 +2321,7 @@ const QuickStartDrawer = (_a) => {
|
|
|
2349
2321
|
const panelContent = (React.createElement(QuickStartPanelContent, Object.assign({ quickStarts: combinedQuickStarts, handleClose: handleClose, activeQuickStartID: activeQuickStartID, appendTo: appendTo, isResizable: !fullWidth, headerVariant: useLegacyHeaderColors ? '' : 'blue-white' }, fullWidthPanelStyle)));
|
|
2350
2322
|
return (React.createElement(React.Fragment, null,
|
|
2351
2323
|
React.createElement(Drawer, Object.assign({ isExpanded: !!activeQuickStartID, isInline: true }, props), children ? (React.createElement(DrawerContent, Object.assign({ panelContent: panelContent }, fullWidthBodyStyle),
|
|
2352
|
-
React.createElement(DrawerContentBody, { className: "pfext-quick-start-drawer__body" }, children))) : (React.createElement("div", { className: "pf-
|
|
2324
|
+
React.createElement(DrawerContentBody, { className: "pfext-quick-start-drawer__body" }, children))) : (React.createElement("div", { className: "pf-v6-c-drawer__main" }, panelContent))),
|
|
2353
2325
|
React.createElement(QuickStartCloseModal, { isOpen: modalOpen, onConfirm: onModalConfirm, onCancel: onModalCancel })));
|
|
2354
2326
|
};
|
|
2355
2327
|
|
|
@@ -2417,7 +2389,7 @@ const HelpTopicPanelContent = (_a) => {
|
|
|
2417
2389
|
React.createElement("div", { className: "pfext-quick-start-panel-content__title" },
|
|
2418
2390
|
helpTopicOptions && (React.createElement(Select, { isPlain: true, id: "help-topics-select", selected: activeHelpTopic, isOpen: isHelpTopicMenuOpen, onSelect: onSelectHelpTopic, onOpenChange: (isOpen) => setIsHelpTopicMenuOpen(isOpen), toggle: (toggleRef) => (React.createElement(MenuToggle, { isFullWidth: true, ref: toggleRef, icon: React.createElement(BarsIcon, null), onClick: toggleHelpTopicMenu, isExpanded: isHelpTopicMenuOpen }, activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title)) },
|
|
2419
2391
|
React.createElement(SelectList, null, helpTopicOptions))),
|
|
2420
|
-
React.createElement(Title, { headingLevel: "h1", size: "xl", className: "pfext-quick-start-panel-content__name", style: { marginRight: 'var(--pf-
|
|
2392
|
+
React.createElement(Title, { headingLevel: "h1", size: "xl", className: "pfext-quick-start-panel-content__name", style: { marginRight: 'var(--pf-t--global--spacer--md)' } }, activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title)),
|
|
2421
2393
|
React.createElement(DrawerActions, null,
|
|
2422
2394
|
React.createElement(DrawerCloseButton, { onClick: onClose, className: "pfext-quick-start-panel-content__close-button", "data-testid": "qs-drawer-close" }))),
|
|
2423
2395
|
React.createElement(Divider, null),
|
|
@@ -2453,7 +2425,7 @@ const HelpTopicDrawer = (_a) => {
|
|
|
2453
2425
|
const panelContent = (React.createElement(HelpTopicPanelContent, { activeHelpTopic: activeHelpTopic, filteredHelpTopics: filteredHelpTopics, onClose: onClose }));
|
|
2454
2426
|
return (React.createElement(React.Fragment, null,
|
|
2455
2427
|
React.createElement(Drawer, Object.assign({ isExpanded: !!activeHelpTopic, isInline: true }, props), children ? (React.createElement(DrawerContent, { panelContent: panelContent },
|
|
2456
|
-
React.createElement(DrawerContentBody, { className: "pfext-quick-start-drawer__body" }, children))) : (React.createElement("div", { className: "pf-
|
|
2428
|
+
React.createElement(DrawerContentBody, { className: "pfext-quick-start-drawer__body" }, children))) : (React.createElement("div", { className: "pf-v6-c-drawer__main" }, panelContent)))));
|
|
2457
2429
|
};
|
|
2458
2430
|
|
|
2459
2431
|
const useLocalStorage = (key, initialValue) => {
|