@patternfly/quickstarts 6.5.0-prerelease.3 → 6.5.0-prerelease.4
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 +2 -6
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +2 -6
- package/dist/index.js.map +1 -1
- package/dist/quickstarts-full.es.js +2 -6
- package/dist/quickstarts-full.es.js.map +1 -1
- package/package.json +1 -1
- package/src/catalog/QuickStartTile.tsx +3 -7
- package/src/catalog/__tests__/QuickStartTile.spec.tsx +2 -1
|
@@ -30802,12 +30802,8 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
30802
30802
|
}, [footer, id, link, status, tasks === null || tasks === void 0 ? void 0 : tasks.length]);
|
|
30803
30803
|
const ActionIcon = (action === null || action === void 0 ? void 0 : action.icon) || OutlinedBookmarkIcon;
|
|
30804
30804
|
const additionalAction = action ? (jsxRuntime.jsx(Button, Object.assign({ "aria-label": action['aria-label'], icon: jsxRuntime.jsx(ActionIcon, {}), variant: "plain", onClick: action.onClick }, action.buttonProps))) : undefined;
|
|
30805
|
-
|
|
30806
|
-
|
|
30807
|
-
isSelectable: true,
|
|
30808
|
-
isSelected: true,
|
|
30809
|
-
isClicked: true,
|
|
30810
|
-
}), { children: [jsxRuntime.jsx(CardHeader, Object.assign({}, (action && {
|
|
30805
|
+
const cardClasses = `pfext-catalog-item${isActive ? ' pf-m-current' : ''}`;
|
|
30806
|
+
return (jsxRuntime.jsxs(Card, Object.assign({ id: `${id}-catalog-tile`, style: { height: '100%' }, "data-testid": `qs-card-${camelize(displayName)}`, className: cardClasses }, { children: [jsxRuntime.jsx(CardHeader, Object.assign({}, (action && {
|
|
30811
30807
|
actions: { actions: additionalAction },
|
|
30812
30808
|
}), { children: quickStartIcon })), jsxRuntime.jsx(CardTitle, { children: jsxRuntime.jsx(QuickStartTileHeader, { name: displayName, onSelect: onSelect, quickStartId: id }) }), jsxRuntime.jsx(CardBody, { children: jsxRuntime.jsxs(Stack, Object.assign({ hasGutter: true }, { children: [jsxRuntime.jsxs(Flex, Object.assign({ spaceItems: { default: 'spaceItemsSm' } }, { children: [type && jsxRuntime.jsx(Label, Object.assign({ color: type.color }, { children: type.text })), durationMinutes && (jsxRuntime.jsx(Label, Object.assign({ variant: "outline", "data-test": "duration", icon: jsxRuntime.jsx(OutlinedClockIcon, {}) }, { children: getResource('{{duration, number}} minutes', durationMinutes).replace('{{duration, number}}', durationMinutes) }))), status !== QuickStartStatus.NOT_STARTED && (jsxRuntime.jsx(Label, Object.assign({ variant: "outline", color: statusColorMap[status], icon: jsxRuntime.jsx(StatusIcon, { status: status }), "data-test": "status" }, { children: statusLocaleMap[status] })))] })), jsxRuntime.jsx(QuickStartTileDescription, { description: description, prerequisites: prerequisites })] })) }), jsxRuntime.jsx(CardFooter, { children: footerComponent })] })));
|
|
30813
30809
|
};
|