@patternfly/quickstarts 6.0.0 → 6.1.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.es.js.map +1 -1
- package/dist/index.js +33 -35
- package/dist/index.js.map +1 -1
- package/dist/quickstarts-base.css +4 -4
- package/dist/quickstarts-full.es.js +165 -101
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts.css +4 -4
- package/dist/quickstarts.min.css +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -36,14 +36,12 @@ function _interopNamespace(e) {
|
|
|
36
36
|
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
37
37
|
Object.defineProperty(n, k, d.get ? d : {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () {
|
|
40
|
-
return e[k];
|
|
41
|
-
}
|
|
39
|
+
get: function () { return e[k]; }
|
|
42
40
|
});
|
|
43
41
|
}
|
|
44
42
|
});
|
|
45
43
|
}
|
|
46
|
-
n[
|
|
44
|
+
n["default"] = e;
|
|
47
45
|
return Object.freeze(n);
|
|
48
46
|
}
|
|
49
47
|
|
|
@@ -636,27 +634,27 @@ const useValuesForQuickStartContext = (value = {}) => {
|
|
|
636
634
|
var _a, _b;
|
|
637
635
|
const combinedValue = Object.assign(Object.assign({}, QuickStartContextDefaults), value);
|
|
638
636
|
const { activeQuickStartID, setActiveQuickStartID, setAllQuickStartStates, useQueryParams, allQuickStartStates, allQuickStarts = [], footer, useLegacyHeaderColors, markdown, } = combinedValue;
|
|
639
|
-
const [quickStarts, setQuickStarts] = React__default[
|
|
640
|
-
const [resourceBundle, setResourceBundle] = React__default[
|
|
641
|
-
const [language, setLanguage] = React__default[
|
|
637
|
+
const [quickStarts, setQuickStarts] = React__default["default"].useState(combinedValue.allQuickStarts || []);
|
|
638
|
+
const [resourceBundle, setResourceBundle] = React__default["default"].useState(Object.assign(Object.assign({}, en), combinedValue.resourceBundle));
|
|
639
|
+
const [language, setLanguage] = React__default["default"].useState(combinedValue.language);
|
|
642
640
|
const changeResourceBundle = (bundle, lng) => {
|
|
643
641
|
lng && setLanguage(lng);
|
|
644
642
|
setResourceBundle(Object.assign(Object.assign({}, en), bundle));
|
|
645
643
|
};
|
|
646
644
|
const findResource = React.useCallback((resource, count) => getResource(resource, count !== undefined ? { count } : null, resourceBundle, language), [resourceBundle, language]);
|
|
647
|
-
const [loading, setLoading] = React__default[
|
|
648
|
-
const [alwaysShowTaskReview, setAlwaysShowTaskReview] = React__default[
|
|
645
|
+
const [loading, setLoading] = React__default["default"].useState(combinedValue.loading);
|
|
646
|
+
const [alwaysShowTaskReview, setAlwaysShowTaskReview] = React__default["default"].useState(combinedValue.alwaysShowTaskReview);
|
|
649
647
|
const initialSearchParams = new URLSearchParams(window.location.search);
|
|
650
648
|
const initialSearchQuery = initialSearchParams.get(QUICKSTART_SEARCH_FILTER_KEY) || '';
|
|
651
649
|
const initialStatusFilters = ((_a = initialSearchParams.get(QUICKSTART_STATUS_FILTER_KEY)) === null || _a === void 0 ? void 0 : _a.split(',')) || [];
|
|
652
650
|
const quickStartStatusCount = getQuickStartStatusCount(allQuickStartStates, allQuickStarts);
|
|
653
|
-
const [statusTypes, setStatusTypes] = React__default[
|
|
651
|
+
const [statusTypes, setStatusTypes] = React__default["default"].useState({
|
|
654
652
|
[exports.QuickStartStatus.COMPLETE]: findResource('Complete ({{statusCount, number}})').replace('{{statusCount, number}}', quickStartStatusCount[exports.QuickStartStatus.COMPLETE]),
|
|
655
653
|
[exports.QuickStartStatus.IN_PROGRESS]: findResource('In progress ({{statusCount, number}})').replace('{{statusCount, number}}', quickStartStatusCount[exports.QuickStartStatus.IN_PROGRESS]),
|
|
656
654
|
[exports.QuickStartStatus.NOT_STARTED]: findResource('Not started ({{statusCount, number}})').replace('{{statusCount, number}}', quickStartStatusCount[exports.QuickStartStatus.NOT_STARTED]),
|
|
657
655
|
});
|
|
658
|
-
const [statusFilters, setStatusFilters] = React__default[
|
|
659
|
-
const [filterKeyword, setFilterKeyword] = React__default[
|
|
656
|
+
const [statusFilters, setStatusFilters] = React__default["default"].useState(initialStatusFilters);
|
|
657
|
+
const [filterKeyword, setFilterKeyword] = React__default["default"].useState(initialSearchQuery);
|
|
660
658
|
const setFilter = (type, val) => {
|
|
661
659
|
if (type === 'keyword') {
|
|
662
660
|
setFilterKeyword(val);
|
|
@@ -665,7 +663,7 @@ const useValuesForQuickStartContext = (value = {}) => {
|
|
|
665
663
|
setStatusFilters(val);
|
|
666
664
|
}
|
|
667
665
|
};
|
|
668
|
-
React__default[
|
|
666
|
+
React__default["default"].useEffect(() => {
|
|
669
667
|
const updatedQuickStartStatusCount = getQuickStartStatusCount(allQuickStartStates, quickStarts);
|
|
670
668
|
setStatusTypes({
|
|
671
669
|
[exports.QuickStartStatus.COMPLETE]: findResource('Complete ({{statusCount, number}})').replace('{{statusCount, number}}', updatedQuickStartStatusCount[exports.QuickStartStatus.COMPLETE]),
|
|
@@ -837,7 +835,7 @@ const useValuesForQuickStartContext = (value = {}) => {
|
|
|
837
835
|
setAlwaysShowTaskReview,
|
|
838
836
|
};
|
|
839
837
|
};
|
|
840
|
-
const QuickStartContextProvider = ({ children, value }) => (React__default[
|
|
838
|
+
const QuickStartContextProvider = ({ children, value }) => (React__default["default"].createElement(QuickStartContext.Provider, { value: useValuesForQuickStartContext(value) }, children));
|
|
841
839
|
|
|
842
840
|
const Box = ({ children, className }) => (React__namespace.createElement("div", { className: reactStyles.css('pfext-status-box', className) }, children));
|
|
843
841
|
const Loading = ({ className }) => (React__namespace.createElement("div", { className: reactStyles.css('pfext-m-loader', className) },
|
|
@@ -1171,7 +1169,7 @@ const useInlineCopyClipboardShowdownExtension = () => {
|
|
|
1171
1169
|
<span class="pf-v6-c-clipboard-copy__actions">
|
|
1172
1170
|
<span class="pf-v6-c-clipboard-copy__actions-item">
|
|
1173
1171
|
<button class="pf-v6-c-button pf-m-plain" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
|
|
1174
|
-
${server.renderToStaticMarkup(React__namespace.createElement(CopyIcon__default[
|
|
1172
|
+
${server.renderToStaticMarkup(React__namespace.createElement(CopyIcon__default["default"], null))}
|
|
1175
1173
|
</button>
|
|
1176
1174
|
</span>
|
|
1177
1175
|
</span>
|
|
@@ -1195,7 +1193,7 @@ const useMultilineCopyClipboardShowdownExtension = () => {
|
|
|
1195
1193
|
<div class="pf-v6-c-code-block__actions">
|
|
1196
1194
|
<div class="pf-v6-c-code-block__actions-item">
|
|
1197
1195
|
<button class="pf-v6-c-button pf-m-plain" type="button" aria-label="${getResource('Copy to clipboard')}" ${MARKDOWN_COPY_BUTTON_ID}="${groupId}">
|
|
1198
|
-
${server.renderToStaticMarkup(React__namespace.createElement(CopyIcon__default[
|
|
1196
|
+
${server.renderToStaticMarkup(React__namespace.createElement(CopyIcon__default["default"], null))}
|
|
1199
1197
|
</button>
|
|
1200
1198
|
</div>
|
|
1201
1199
|
</div>
|
|
@@ -1446,9 +1444,9 @@ var AdmonitionType;
|
|
|
1446
1444
|
})(AdmonitionType || (AdmonitionType = {}));
|
|
1447
1445
|
const admonitionToAlertVariantMap = {
|
|
1448
1446
|
[AdmonitionType.NOTE]: { variant: 'info' },
|
|
1449
|
-
[AdmonitionType.TIP]: { variant: 'custom', customIcon: React__namespace.createElement(LightbulbIcon__default[
|
|
1447
|
+
[AdmonitionType.TIP]: { variant: 'custom', customIcon: React__namespace.createElement(LightbulbIcon__default["default"], null) },
|
|
1450
1448
|
[AdmonitionType.IMPORTANT]: { variant: 'danger' },
|
|
1451
|
-
[AdmonitionType.CAUTION]: { variant: 'warning', customIcon: React__namespace.createElement(FireIcon__default[
|
|
1449
|
+
[AdmonitionType.CAUTION]: { variant: 'warning', customIcon: React__namespace.createElement(FireIcon__default["default"], null) },
|
|
1452
1450
|
[AdmonitionType.WARNING]: { variant: 'warning' },
|
|
1453
1451
|
};
|
|
1454
1452
|
const useAdmonitionShowdownExtension = () =>
|
|
@@ -1551,7 +1549,7 @@ const GenericStatus = (props) => {
|
|
|
1551
1549
|
};
|
|
1552
1550
|
|
|
1553
1551
|
const GreenCheckCircleIcon = ({ className, title, size }) => (React__namespace.createElement(reactCore.Icon, { size: size, status: "success" },
|
|
1554
|
-
React__namespace.createElement(CheckCircleIcon__default[
|
|
1552
|
+
React__namespace.createElement(CheckCircleIcon__default["default"], { "data-test": "success-icon", className: className, title: title })));
|
|
1555
1553
|
|
|
1556
1554
|
const SuccessStatus = (props) => (React__namespace.createElement(GenericStatus, Object.assign({}, props, { Icon: GreenCheckCircleIcon, title: props.title || 'Healthy' })));
|
|
1557
1555
|
SuccessStatus.displayName = 'SuccessStatus';
|
|
@@ -1560,7 +1558,7 @@ const Status = ({ status, title, iconOnly, noTooltip, className, }) => {
|
|
|
1560
1558
|
const statusProps = { title: title || status, iconOnly, noTooltip, className };
|
|
1561
1559
|
switch (status) {
|
|
1562
1560
|
case 'In Progress':
|
|
1563
|
-
return React__namespace.createElement(StatusIconAndText, Object.assign({}, statusProps, { icon: React__namespace.createElement(SyncAltIcon__default[
|
|
1561
|
+
return React__namespace.createElement(StatusIconAndText, Object.assign({}, statusProps, { icon: React__namespace.createElement(SyncAltIcon__default["default"], null) }));
|
|
1564
1562
|
case 'Complete':
|
|
1565
1563
|
return React__namespace.createElement(SuccessStatus, Object.assign({}, statusProps));
|
|
1566
1564
|
default:
|
|
@@ -1583,7 +1581,7 @@ const QuickStartTileDescription = ({ description, prerequisites, }) => {
|
|
|
1583
1581
|
e.preventDefault();
|
|
1584
1582
|
e.stopPropagation();
|
|
1585
1583
|
}, "aria-label": getResource('Show prerequisites') },
|
|
1586
|
-
React__namespace.createElement(InfoCircleIcon__default[
|
|
1584
|
+
React__namespace.createElement(InfoCircleIcon__default["default"], null)),
|
|
1587
1585
|
React__namespace.createElement(reactCore.Popover, { "aria-label": getResource('Prerequisites'), headerContent: getResource('Prerequisites'), triggerRef: buttonRef, bodyContent: React__namespace.createElement("div", null,
|
|
1588
1586
|
React__namespace.createElement("ul", { "aria-label": getResource('Prerequisites') }, prereqs.map((prerequisite, index) => (
|
|
1589
1587
|
// eslint-disable-next-line react/no-array-index-key
|
|
@@ -1615,7 +1613,7 @@ const QuickStartTileFooterExternal = ({ link, quickStartId, }) => {
|
|
|
1615
1613
|
const { href, text } = link;
|
|
1616
1614
|
return (React__namespace.createElement(reactCore.Flex, { justifyContent: { default: 'justifyContentSpaceBetween' } },
|
|
1617
1615
|
React__namespace.createElement(reactCore.FlexItem, null,
|
|
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[
|
|
1616
|
+
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
1617
|
};
|
|
1620
1618
|
|
|
1621
1619
|
const QuickStartTileHeader = ({ name, quickStartId, onSelect, }) => (React__namespace.createElement(reactCore.Flex, { flexWrap: { default: 'nowrap' } },
|
|
@@ -1641,7 +1639,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
1641
1639
|
}
|
|
1642
1640
|
else {
|
|
1643
1641
|
quickStartIcon = (React__namespace.createElement(reactCore.Icon, { size: "2xl" },
|
|
1644
|
-
React__namespace.createElement(FallbackImg, { src: icon, alt: "", className: "pfext-catalog-item-icon__img", fallback: React__namespace.createElement(RocketIcon__default[
|
|
1642
|
+
React__namespace.createElement(FallbackImg, { src: icon, alt: "", className: "pfext-catalog-item-icon__img", fallback: React__namespace.createElement(RocketIcon__default["default"], null) })));
|
|
1645
1643
|
}
|
|
1646
1644
|
const onSelect = () => {
|
|
1647
1645
|
if (!link) {
|
|
@@ -1661,7 +1659,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
1661
1659
|
}
|
|
1662
1660
|
return (React__namespace.createElement(QuickStartTileFooter, { quickStartId: id, status: status, totalTasks: tasks === null || tasks === void 0 ? void 0 : tasks.length, onClickContinue: onSelect }));
|
|
1663
1661
|
}, [footer, id, link, status, tasks === null || tasks === void 0 ? void 0 : tasks.length]);
|
|
1664
|
-
const ActionIcon = (action === null || action === void 0 ? void 0 : action.icon) || OutlinedBookmarkIcon__default[
|
|
1662
|
+
const ActionIcon = (action === null || action === void 0 ? void 0 : action.icon) || OutlinedBookmarkIcon__default["default"];
|
|
1665
1663
|
const additionalAction = action ? (React__namespace.createElement(reactCore.Button, Object.assign({ "aria-label": action['aria-label'], icon: React__namespace.createElement(ActionIcon, null), variant: "plain", onClick: action.onClick }, action.buttonProps))) : undefined;
|
|
1666
1664
|
return (React__namespace.createElement(reactCore.Card, Object.assign({ id: `${id}-catalog-tile`, style: { height: '100%' }, "data-testid": `qs-card-${camelize(displayName)}` }, (isActive && {
|
|
1667
1665
|
isClickable: true,
|
|
@@ -1678,7 +1676,7 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
1678
1676
|
React__namespace.createElement(reactCore.Stack, { hasGutter: true },
|
|
1679
1677
|
React__namespace.createElement(reactCore.Flex, { spaceItems: { default: 'spaceItemsSm' } },
|
|
1680
1678
|
type && React__namespace.createElement(reactCore.Label, { color: type.color }, type.text),
|
|
1681
|
-
durationMinutes && (React__namespace.createElement(reactCore.Label, { variant: "outline", "data-test": "duration", icon: React__namespace.createElement(OutlinedClockIcon__default[
|
|
1679
|
+
durationMinutes && (React__namespace.createElement(reactCore.Label, { variant: "outline", "data-test": "duration", icon: React__namespace.createElement(OutlinedClockIcon__default["default"], null) }, getResource('{{duration, number}} minutes', durationMinutes).replace('{{duration, number}}', durationMinutes))),
|
|
1682
1680
|
status !== exports.QuickStartStatus.NOT_STARTED && (React__namespace.createElement(reactCore.Label, { variant: "outline", color: statusColorMap[status], icon: React__namespace.createElement(StatusIcon, { status: status }), "data-test": "status" }, statusLocaleMap[status]))),
|
|
1683
1681
|
React__namespace.createElement(QuickStartTileDescription, { description: description, prerequisites: prerequisites }))),
|
|
1684
1682
|
React__namespace.createElement(reactCore.CardFooter, null, footerComponent)));
|
|
@@ -1810,7 +1808,7 @@ const QuickStartCatalogFilter = (_a) => {
|
|
|
1810
1808
|
|
|
1811
1809
|
const QuickStartCatalogEmptyState = ({ clearFilters }) => {
|
|
1812
1810
|
const { getResource } = React__namespace.useContext(QuickStartContext);
|
|
1813
|
-
return (React__namespace.createElement(reactCore.EmptyState, { headingLevel: "h4", icon: SearchIcon__default[
|
|
1811
|
+
return (React__namespace.createElement(reactCore.EmptyState, { headingLevel: "h4", icon: SearchIcon__default["default"], titleText: React__namespace.createElement(React__namespace.Fragment, null, getResource('No results found')) },
|
|
1814
1812
|
React__namespace.createElement(reactCore.EmptyStateBody, null, getResource('No results match the filter criteria. Remove filters or clear all filters to show results.')),
|
|
1815
1813
|
React__namespace.createElement(reactCore.EmptyStateFooter, null,
|
|
1816
1814
|
React__namespace.createElement(reactCore.EmptyStateActions, null,
|
|
@@ -1951,7 +1949,7 @@ const QuickStartConclusion = ({ tasks, conclusion, allTaskStatuses, nextQuickSta
|
|
|
1951
1949
|
nextQuickStarts.length > 0 &&
|
|
1952
1950
|
nextQuickStarts.map((nextQuickStart, index) => {
|
|
1953
1951
|
var _a;
|
|
1954
|
-
return (React__namespace.createElement(reactCore.Button, { variant: "link", onClick: () => onQuickStartChange(nextQuickStart.metadata.name), isInline: true, icon: React__namespace.createElement(ArrowRightIcon__default[
|
|
1952
|
+
return (React__namespace.createElement(reactCore.Button, { variant: "link", onClick: () => onQuickStartChange(nextQuickStart.metadata.name), isInline: true, icon: React__namespace.createElement(ArrowRightIcon__default["default"], null), iconPosition: "end", isBlock: true, key: index, style: { marginTop: 'var(--pf-t--global--spacer--md' } }, 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)));
|
|
1955
1953
|
})));
|
|
1956
1954
|
};
|
|
1957
1955
|
|
|
@@ -2270,14 +2268,14 @@ const HelpTopicContextDefaults = {
|
|
|
2270
2268
|
setFilteredHelpTopics: () => { },
|
|
2271
2269
|
loading: false,
|
|
2272
2270
|
};
|
|
2273
|
-
const HelpTopicContext = React__default[
|
|
2271
|
+
const HelpTopicContext = React__default["default"].createContext(HelpTopicContextDefaults);
|
|
2274
2272
|
const useValuesForHelpTopicContext = (value = {}) => {
|
|
2275
2273
|
const combinedValue = Object.assign(Object.assign({}, HelpTopicContextDefaults), value);
|
|
2276
|
-
const [loading, setLoading] = React__default[
|
|
2274
|
+
const [loading, setLoading] = React__default["default"].useState(combinedValue.loading);
|
|
2277
2275
|
// eslint-disable-next-line no-unused-vars, @typescript-eslint/no-unused-vars
|
|
2278
|
-
const [helpTopics, setHelpTopics] = React__default[
|
|
2279
|
-
const [activeHelpTopic, setActiveHelpTopic] = React__default[
|
|
2280
|
-
const setActiveHelpTopicByName = React__default[
|
|
2276
|
+
const [helpTopics, setHelpTopics] = React__default["default"].useState(combinedValue.helpTopics || []);
|
|
2277
|
+
const [activeHelpTopic, setActiveHelpTopic] = React__default["default"].useState(combinedValue.activeHelpTopic || null);
|
|
2278
|
+
const setActiveHelpTopicByName = React__default["default"].useCallback((helpTopicName) => {
|
|
2281
2279
|
const topic = helpTopics.find((t) => t.name === helpTopicName);
|
|
2282
2280
|
if (!helpTopicName) {
|
|
2283
2281
|
setActiveHelpTopic(null);
|
|
@@ -2285,7 +2283,7 @@ const useValuesForHelpTopicContext = (value = {}) => {
|
|
|
2285
2283
|
}
|
|
2286
2284
|
setActiveHelpTopic(topic);
|
|
2287
2285
|
}, [helpTopics]);
|
|
2288
|
-
const [filteredHelpTopics, setFilteredHelpTopics] = React__default[
|
|
2286
|
+
const [filteredHelpTopics, setFilteredHelpTopics] = React__default["default"].useState(combinedValue.filteredHelpTopics || []);
|
|
2289
2287
|
return {
|
|
2290
2288
|
helpTopics,
|
|
2291
2289
|
setHelpTopics,
|
|
@@ -2318,12 +2316,12 @@ const HelpTopicPanelContent = (_a) => {
|
|
|
2318
2316
|
paddingContainer(React__namespace.createElement(QuickStartMarkdownView, { content: activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.content })),
|
|
2319
2317
|
!!((_b = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _b === void 0 ? void 0 : _b.length) && React__namespace.createElement(reactCore.Divider, null),
|
|
2320
2318
|
paddingContainer(React__namespace.createElement(reactCore.Stack, { hasGutter: true }, (_c = activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.links) === null || _c === void 0 ? void 0 : _c.map(({ href, text, newTab, isExternal }, index) => (React__namespace.createElement(reactCore.StackItem, { key: index },
|
|
2321
|
-
React__namespace.createElement(reactCore.Button, { component: "a", href: href, target: newTab ? '_blank' : '', rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: isExternal ? React__namespace.createElement(ExternalLinkAltIcon__default[
|
|
2319
|
+
React__namespace.createElement(reactCore.Button, { component: "a", href: href, target: newTab ? '_blank' : '', rel: "noopener noreferrer", variant: "link", "aria-label": `Open documentation in new window`, isInline: true, icon: isExternal ? React__namespace.createElement(ExternalLinkAltIcon__default["default"], null) : null, iconPosition: "right", style: { fontSize: 'inherit' } }, text || href))))))));
|
|
2322
2320
|
const content = (React__namespace.createElement(reactCore.DrawerPanelContent, Object.assign({ isResizable: isResizable }, props),
|
|
2323
2321
|
React__namespace.createElement("div", null,
|
|
2324
2322
|
React__namespace.createElement(reactCore.DrawerHead, null,
|
|
2325
2323
|
React__namespace.createElement("div", null,
|
|
2326
|
-
helpTopicOptions && (React__namespace.createElement(reactCore.Select, { isPlain: true, id: "help-topics-select", selected: activeHelpTopic, isOpen: isHelpTopicMenuOpen, onSelect: onSelectHelpTopic, onOpenChange: (isOpen) => setIsHelpTopicMenuOpen(isOpen), toggle: (toggleRef) => (React__namespace.createElement(reactCore.MenuToggle, { isFullWidth: true, ref: toggleRef, icon: React__namespace.createElement(BarsIcon__default[
|
|
2324
|
+
helpTopicOptions && (React__namespace.createElement(reactCore.Select, { isPlain: true, id: "help-topics-select", selected: activeHelpTopic, isOpen: isHelpTopicMenuOpen, onSelect: onSelectHelpTopic, onOpenChange: (isOpen) => setIsHelpTopicMenuOpen(isOpen), toggle: (toggleRef) => (React__namespace.createElement(reactCore.MenuToggle, { isFullWidth: true, ref: toggleRef, icon: React__namespace.createElement(BarsIcon__default["default"], null), onClick: toggleHelpTopicMenu, isExpanded: isHelpTopicMenuOpen }, activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title)) },
|
|
2327
2325
|
React__namespace.createElement(reactCore.SelectList, null, helpTopicOptions))),
|
|
2328
2326
|
React__namespace.createElement(reactCore.Title, { headingLevel: "h1", size: "xl", style: { marginRight: 'var(--pf-t--global--spacer--md)' } }, activeHelpTopic === null || activeHelpTopic === void 0 ? void 0 : activeHelpTopic.title)),
|
|
2329
2327
|
React__namespace.createElement(reactCore.DrawerActions, null,
|