@patternfly/quickstarts 5.2.0-prerelease.1 → 5.2.0-prerelease.3
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/catalog/QuickStartTile.d.ts +3 -0
- package/dist/catalog/QuickStartTileHeader.d.ts +12 -0
- package/dist/catalog/index.d.ts +1 -1
- package/dist/index.es.js +12 -7
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +13 -7
- package/dist/index.js.map +1 -1
- package/dist/quickstarts-base.css +40 -40
- package/dist/quickstarts-full.es.js +27 -7
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts.css +40 -40
- package/dist/quickstarts.min.css +1 -1
- package/package.json +1 -1
- package/src/catalog/QuickStartTile.tsx +8 -4
- package/src/catalog/QuickStartTileHeader.tsx +29 -4
- package/src/catalog/index.ts +1 -1
|
@@ -926,36 +926,6 @@
|
|
|
926
926
|
font-size: 13px;
|
|
927
927
|
}
|
|
928
928
|
|
|
929
|
-
.pfext-quick-start-intro__prereq {
|
|
930
|
-
margin-bottom: var(--pf-v5-global--spacer--md);
|
|
931
|
-
}
|
|
932
|
-
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__content {
|
|
933
|
-
margin-top: var(--pf-v5-global--spacer--sm);
|
|
934
|
-
}
|
|
935
|
-
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle {
|
|
936
|
-
padding-top: 0;
|
|
937
|
-
padding-bottom: 0;
|
|
938
|
-
}
|
|
939
|
-
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-text {
|
|
940
|
-
margin-left: var(--pf-v5-global--spacer--sm);
|
|
941
|
-
}
|
|
942
|
-
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-icon {
|
|
943
|
-
color: var(--pf-v5-c-expandable-section__toggle--Color);
|
|
944
|
-
}
|
|
945
|
-
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-icon:focus, .pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-icon:hover {
|
|
946
|
-
--pf-v5-c-expandable-section__toggle--Color: var(--pf-v5-c-expandable-section__toggle--focus--Color);
|
|
947
|
-
}
|
|
948
|
-
.pfext-quick-start-intro__prereq-list {
|
|
949
|
-
padding-left: 20px;
|
|
950
|
-
}
|
|
951
|
-
.pfext-quick-start-intro__prereq-list__item::marker {
|
|
952
|
-
font-size: 0.8rem;
|
|
953
|
-
}
|
|
954
|
-
.pfext-quick-start-intro__prereq-list__item-content {
|
|
955
|
-
position: relative;
|
|
956
|
-
left: 2px;
|
|
957
|
-
}
|
|
958
|
-
|
|
959
929
|
.pfext-quick-start-tasks__list button::before {
|
|
960
930
|
content: none;
|
|
961
931
|
}
|
|
@@ -1027,18 +997,34 @@
|
|
|
1027
997
|
font-size: 14px;
|
|
1028
998
|
}
|
|
1029
999
|
|
|
1030
|
-
.pfext-quick-start-
|
|
1031
|
-
|
|
1000
|
+
.pfext-quick-start-intro__prereq {
|
|
1001
|
+
margin-bottom: var(--pf-v5-global--spacer--md);
|
|
1032
1002
|
}
|
|
1033
|
-
.pfext-quick-start-
|
|
1034
|
-
|
|
1003
|
+
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__content {
|
|
1004
|
+
margin-top: var(--pf-v5-global--spacer--sm);
|
|
1035
1005
|
}
|
|
1036
|
-
.pfext-quick-start-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
margin-
|
|
1006
|
+
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle {
|
|
1007
|
+
padding-top: 0;
|
|
1008
|
+
padding-bottom: 0;
|
|
1009
|
+
}
|
|
1010
|
+
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-text {
|
|
1011
|
+
margin-left: var(--pf-v5-global--spacer--sm);
|
|
1012
|
+
}
|
|
1013
|
+
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-icon {
|
|
1014
|
+
color: var(--pf-v5-c-expandable-section__toggle--Color);
|
|
1015
|
+
}
|
|
1016
|
+
.pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-icon:focus, .pfext-quick-start-intro__prereq .pf-v5-c-expandable-section__toggle-icon:hover {
|
|
1017
|
+
--pf-v5-c-expandable-section__toggle--Color: var(--pf-v5-c-expandable-section__toggle--focus--Color);
|
|
1018
|
+
}
|
|
1019
|
+
.pfext-quick-start-intro__prereq-list {
|
|
1020
|
+
padding-left: 20px;
|
|
1021
|
+
}
|
|
1022
|
+
.pfext-quick-start-intro__prereq-list__item::marker {
|
|
1023
|
+
font-size: 0.8rem;
|
|
1024
|
+
}
|
|
1025
|
+
.pfext-quick-start-intro__prereq-list__item-content {
|
|
1026
|
+
position: relative;
|
|
1027
|
+
left: 2px;
|
|
1042
1028
|
}
|
|
1043
1029
|
|
|
1044
1030
|
.pfext-quick-start-task-header {
|
|
@@ -1088,6 +1074,20 @@
|
|
|
1088
1074
|
color: var(--pf-v5-global--danger-color--100) !important;
|
|
1089
1075
|
}
|
|
1090
1076
|
|
|
1077
|
+
.pfext-quick-start-task-header__list {
|
|
1078
|
+
padding: 0 !important;
|
|
1079
|
+
}
|
|
1080
|
+
.pfext-quick-start-task-header__list button::before {
|
|
1081
|
+
content: none;
|
|
1082
|
+
}
|
|
1083
|
+
.pfext-quick-start-task-header__list li {
|
|
1084
|
+
list-style-type: none;
|
|
1085
|
+
display: flex;
|
|
1086
|
+
flex-wrap: wrap;
|
|
1087
|
+
align-items: center;
|
|
1088
|
+
margin-bottom: var(--pf-v5-global--spacer--xs);
|
|
1089
|
+
}
|
|
1090
|
+
|
|
1091
1091
|
.pfext-quick-start-task-review-alert {
|
|
1092
1092
|
margin: var(--pf-v5-global--spacer--lg) 0;
|
|
1093
1093
|
}
|
|
@@ -30883,29 +30883,49 @@ exports["default"] = exports.OutlinedClockIcon;
|
|
|
30883
30883
|
|
|
30884
30884
|
var OutlinedClockIcon = /*@__PURE__*/getDefaultExportFromCjs(outlinedClockIcon);
|
|
30885
30885
|
|
|
30886
|
+
var outlinedBookmarkIcon = createCommonjsModule(function (module, exports) {
|
|
30887
|
+
exports.__esModule = true;
|
|
30888
|
+
exports.OutlinedBookmarkIconConfig = {
|
|
30889
|
+
name: 'OutlinedBookmarkIcon',
|
|
30890
|
+
height: 512,
|
|
30891
|
+
width: 384,
|
|
30892
|
+
svgPath: 'M336 0H48C21.49 0 0 21.49 0 48v464l192-112 192 112V48c0-26.51-21.49-48-48-48zm0 428.43l-144-84-144 84V54a6 6 0 0 1 6-6h276c3.314 0 6 2.683 6 5.996V428.43z',
|
|
30893
|
+
yOffset: 0,
|
|
30894
|
+
xOffset: 0,
|
|
30895
|
+
};
|
|
30896
|
+
exports.OutlinedBookmarkIcon = createIcon_1.createIcon(exports.OutlinedBookmarkIconConfig);
|
|
30897
|
+
exports["default"] = exports.OutlinedBookmarkIcon;
|
|
30898
|
+
});
|
|
30899
|
+
|
|
30900
|
+
var OutlinedBookmarkIcon = /*@__PURE__*/getDefaultExportFromCjs(outlinedBookmarkIcon);
|
|
30901
|
+
|
|
30886
30902
|
const statusColorMap = {
|
|
30887
30903
|
[QuickStartStatus.COMPLETE]: 'green',
|
|
30888
30904
|
[QuickStartStatus.IN_PROGRESS]: 'purple',
|
|
30889
30905
|
[QuickStartStatus.NOT_STARTED]: 'grey',
|
|
30890
30906
|
};
|
|
30891
|
-
const QuickStartTileHeader = ({ status, duration, name, type, quickStartId, }) => {
|
|
30907
|
+
const QuickStartTileHeader = ({ status, duration, name, type, quickStartId, action, }) => {
|
|
30892
30908
|
const { getResource } = React.useContext(QuickStartContext);
|
|
30893
30909
|
const statusLocaleMap = {
|
|
30894
30910
|
[QuickStartStatus.COMPLETE]: getResource('Complete'),
|
|
30895
30911
|
[QuickStartStatus.IN_PROGRESS]: getResource('In progress'),
|
|
30896
30912
|
[QuickStartStatus.NOT_STARTED]: getResource('Not started'),
|
|
30897
30913
|
};
|
|
30914
|
+
const ActionIcon = (action === null || action === void 0 ? void 0 : action.icon) || OutlinedBookmarkIcon;
|
|
30898
30915
|
return (React.createElement("div", { className: "pfext-quick-start-tile-header" },
|
|
30899
|
-
React.createElement(
|
|
30900
|
-
React.createElement(
|
|
30916
|
+
React.createElement(Flex, { justifyContent: { default: 'justifyContentCenter' }, flexWrap: { default: 'nowrap' } },
|
|
30917
|
+
React.createElement(Title, { headingLevel: "h3", "data-test": "title", id: quickStartId },
|
|
30918
|
+
React.createElement(QuickStartMarkdownView, { content: name })),
|
|
30919
|
+
action && React.createElement(Button, Object.assign({ "aria-label": action['aria-label'], icon: React.createElement(ActionIcon, null), variant: 'plain', onClick: action.onClick }, action.buttonProps))),
|
|
30901
30920
|
React.createElement("div", { className: "pfext-quick-start-tile-header__status" },
|
|
30902
30921
|
type && (React.createElement(Label, { className: "pfext-quick-start-tile-header--margin", color: type.color }, type.text)),
|
|
30903
30922
|
duration && (React.createElement(Label, { variant: "outline", "data-test": "duration", icon: React.createElement(OutlinedClockIcon, null), className: "pfext-quick-start-tile-header--margin" }, getResource('{{duration, number}} minutes', duration).replace('{{duration, number}}', duration))),
|
|
30904
30923
|
status !== QuickStartStatus.NOT_STARTED && (React.createElement(Label, { variant: "outline", color: statusColorMap[status], icon: React.createElement(StatusIcon, { status: status }), "data-test": "status" }, statusLocaleMap[status])))));
|
|
30905
30924
|
};
|
|
30906
30925
|
|
|
30907
|
-
const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, }) => {
|
|
30908
|
-
const { metadata: { name
|
|
30926
|
+
const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, action, }) => {
|
|
30927
|
+
const { metadata: { name, id: metaId }, spec: { icon, tasks, displayName, description, durationMinutes, prerequisites, link, type }, } = quickStart;
|
|
30928
|
+
const id = metaId || name;
|
|
30909
30929
|
const { setActiveQuickStart, footer } = React.useContext(QuickStartContext);
|
|
30910
30930
|
const ref = React.useRef(null);
|
|
30911
30931
|
let quickStartIcon;
|
|
@@ -30936,10 +30956,10 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, })
|
|
|
30936
30956
|
onClick();
|
|
30937
30957
|
}
|
|
30938
30958
|
};
|
|
30939
|
-
return (React.createElement("div", { ref: ref },
|
|
30959
|
+
return (React.createElement("div", { ref: ref, onClick: handleClick },
|
|
30940
30960
|
React.createElement(CatalogTile, { id: id + '-catalog-tile', style: {
|
|
30941
30961
|
cursor: 'pointer',
|
|
30942
|
-
}, icon: quickStartIcon, className: "pfext-quick-start-tile", "data-testid": `qs-card-${camelize(displayName)}`, featured: isActive, title: React.createElement(QuickStartTileHeader, { name: displayName, status: status, duration: durationMinutes, type: type, quickStartId: id
|
|
30962
|
+
}, icon: quickStartIcon, className: "pfext-quick-start-tile", "data-testid": `qs-card-${camelize(displayName)}`, featured: isActive, title: React.createElement(QuickStartTileHeader, { name: displayName, status: status, duration: durationMinutes, type: type, quickStartId: id, action: action }), onKeyDown: (event) => {
|
|
30943
30963
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
30944
30964
|
setActiveQuickStart(id, tasks === null || tasks === void 0 ? void 0 : tasks.length);
|
|
30945
30965
|
onClick();
|