@patternfly/quickstarts 5.2.0-prerelease.3 → 5.3.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 +16 -12
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +16 -12
- package/dist/index.js.map +1 -1
- package/dist/quickstarts-base.css +84 -81
- package/dist/quickstarts-full.es.js +16 -12
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +6 -0
- package/dist/quickstarts-standalone.min.css +1 -1
- package/dist/quickstarts.css +84 -81
- package/dist/quickstarts.min.css +1 -1
- package/package.json +1 -1
- package/src/catalog/QuickStartTile.tsx +14 -6
- package/src/catalog/QuickStartTileHeader.scss +4 -0
- package/src/catalog/QuickStartTileHeader.tsx +11 -9
|
@@ -818,28 +818,6 @@
|
|
|
818
818
|
display: inherit !important;
|
|
819
819
|
}
|
|
820
820
|
|
|
821
|
-
.pfext-quick-start-tile {
|
|
822
|
-
height: 100%;
|
|
823
|
-
}
|
|
824
|
-
.pfext-quick-start-tile .catalog-tile-pf-description .has-footer {
|
|
825
|
-
display: block;
|
|
826
|
-
-webkit-line-clamp: unset;
|
|
827
|
-
}
|
|
828
|
-
.pfext-quick-start-tile .catalog-tile-pf-icon {
|
|
829
|
-
display: flex;
|
|
830
|
-
}
|
|
831
|
-
|
|
832
|
-
.pfext-quick-start-tile-header__status {
|
|
833
|
-
margin: var(--pf-v5-global--spacer--sm) 0;
|
|
834
|
-
}
|
|
835
|
-
.pfext-quick-start-tile-header--margin {
|
|
836
|
-
margin-right: var(--pf-v5-global--spacer--sm);
|
|
837
|
-
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
838
|
-
}
|
|
839
|
-
.pfext-quick-start-tile-header .pf-v5-c-badge:not(:last-of-type) {
|
|
840
|
-
margin-right: var(--pf-v5-global--spacer--sm);
|
|
841
|
-
}
|
|
842
|
-
|
|
843
821
|
.pfext-quick-start-tile-description {
|
|
844
822
|
display: -webkit-box;
|
|
845
823
|
overflow: hidden;
|
|
@@ -865,22 +843,29 @@
|
|
|
865
843
|
padding-left: 20px;
|
|
866
844
|
}
|
|
867
845
|
|
|
868
|
-
.pfext-
|
|
869
|
-
|
|
846
|
+
.pfext-quick-start-tile-header__status {
|
|
847
|
+
margin: var(--pf-v5-global--spacer--sm) 0;
|
|
870
848
|
}
|
|
871
|
-
.pfext-
|
|
872
|
-
|
|
873
|
-
margin-bottom:
|
|
874
|
-
overflow-x: auto;
|
|
849
|
+
.pfext-quick-start-tile-header--margin {
|
|
850
|
+
margin-right: var(--pf-v5-global--spacer--sm);
|
|
851
|
+
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
875
852
|
}
|
|
876
|
-
.pfext-
|
|
877
|
-
|
|
878
|
-
border-bottom: 1px solid #ededed;
|
|
879
|
-
padding: 10px;
|
|
880
|
-
vertical-align: top;
|
|
853
|
+
.pfext-quick-start-tile-header .pf-v5-c-badge:not(:last-of-type) {
|
|
854
|
+
margin-right: var(--pf-v5-global--spacer--sm);
|
|
881
855
|
}
|
|
882
|
-
.pfext-
|
|
883
|
-
|
|
856
|
+
.pfext-quick-start-tile-header h3 {
|
|
857
|
+
flex: 1;
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
.pfext-quick-start-tile {
|
|
861
|
+
height: 100%;
|
|
862
|
+
}
|
|
863
|
+
.pfext-quick-start-tile .catalog-tile-pf-description .has-footer {
|
|
864
|
+
display: block;
|
|
865
|
+
-webkit-line-clamp: unset;
|
|
866
|
+
}
|
|
867
|
+
.pfext-quick-start-tile .catalog-tile-pf-icon {
|
|
868
|
+
display: flex;
|
|
884
869
|
}
|
|
885
870
|
|
|
886
871
|
.pfext-quick-start-catalog-filter__input {
|
|
@@ -904,6 +889,24 @@
|
|
|
904
889
|
--pf-v5-c-check__label--FontSize: 14px;
|
|
905
890
|
}
|
|
906
891
|
|
|
892
|
+
.pfext-markdown-view.is-empty {
|
|
893
|
+
color: #999;
|
|
894
|
+
}
|
|
895
|
+
.pfext-markdown-view table {
|
|
896
|
+
display: block;
|
|
897
|
+
margin-bottom: 11.5px;
|
|
898
|
+
overflow-x: auto;
|
|
899
|
+
}
|
|
900
|
+
.pfext-markdown-view td,
|
|
901
|
+
.pfext-markdown-view th {
|
|
902
|
+
border-bottom: 1px solid #ededed;
|
|
903
|
+
padding: 10px;
|
|
904
|
+
vertical-align: top;
|
|
905
|
+
}
|
|
906
|
+
.pfext-markdown-view th {
|
|
907
|
+
padding-top: 0;
|
|
908
|
+
}
|
|
909
|
+
|
|
907
910
|
.pfext-quick-start-footer {
|
|
908
911
|
background-color: var(--pf-v5-global--BackgroundColor--100);
|
|
909
912
|
flex: 0 0 auto;
|
|
@@ -1027,6 +1030,48 @@
|
|
|
1027
1030
|
left: 2px;
|
|
1028
1031
|
}
|
|
1029
1032
|
|
|
1033
|
+
.pfext-quick-start-task-review-alert {
|
|
1034
|
+
margin: var(--pf-v5-global--spacer--lg) 0;
|
|
1035
|
+
}
|
|
1036
|
+
|
|
1037
|
+
.pfext-quick-start-task-review {
|
|
1038
|
+
font-size: var(--pf-v5-global--FontSize--md);
|
|
1039
|
+
line-height: var(--pf-v5-global--FontSize--xl);
|
|
1040
|
+
font-family: var(--pf-v5-global--FontFamily--heading--sans-serif);
|
|
1041
|
+
}
|
|
1042
|
+
.pfext-quick-start-task-review__actions {
|
|
1043
|
+
display: flex;
|
|
1044
|
+
align-items: flex-start;
|
|
1045
|
+
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
1046
|
+
}
|
|
1047
|
+
.pfext-quick-start-task-review__actions input[type=radio] {
|
|
1048
|
+
margin-top: 0;
|
|
1049
|
+
margin-right: 0;
|
|
1050
|
+
}
|
|
1051
|
+
.pfext-quick-start-task-review__radio {
|
|
1052
|
+
margin-right: var(--pf-v5-global--spacer--xl) !important;
|
|
1053
|
+
}
|
|
1054
|
+
.pfext-quick-start-task-review--success {
|
|
1055
|
+
color: var(--pf-v5-global--success-color--100) !important;
|
|
1056
|
+
}
|
|
1057
|
+
.pfext-quick-start-task-review--failed {
|
|
1058
|
+
color: var(--pf-chart-global--danger--Color--100);
|
|
1059
|
+
}
|
|
1060
|
+
|
|
1061
|
+
.pfext-quick-start-task-header__list {
|
|
1062
|
+
padding: 0 !important;
|
|
1063
|
+
}
|
|
1064
|
+
.pfext-quick-start-task-header__list button::before {
|
|
1065
|
+
content: none;
|
|
1066
|
+
}
|
|
1067
|
+
.pfext-quick-start-task-header__list li {
|
|
1068
|
+
list-style-type: none;
|
|
1069
|
+
display: flex;
|
|
1070
|
+
flex-wrap: wrap;
|
|
1071
|
+
align-items: center;
|
|
1072
|
+
margin-bottom: var(--pf-v5-global--spacer--xs);
|
|
1073
|
+
}
|
|
1074
|
+
|
|
1030
1075
|
.pfext-quick-start-task-header {
|
|
1031
1076
|
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
1032
1077
|
display: grid;
|
|
@@ -1074,52 +1119,6 @@
|
|
|
1074
1119
|
color: var(--pf-v5-global--danger-color--100) !important;
|
|
1075
1120
|
}
|
|
1076
1121
|
|
|
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
|
-
.pfext-quick-start-task-review-alert {
|
|
1092
|
-
margin: var(--pf-v5-global--spacer--lg) 0;
|
|
1093
|
-
}
|
|
1094
|
-
|
|
1095
|
-
.pfext-quick-start-task-review {
|
|
1096
|
-
font-size: var(--pf-v5-global--FontSize--md);
|
|
1097
|
-
line-height: var(--pf-v5-global--FontSize--xl);
|
|
1098
|
-
font-family: var(--pf-v5-global--FontFamily--heading--sans-serif);
|
|
1099
|
-
}
|
|
1100
|
-
.pfext-quick-start-task-review__actions {
|
|
1101
|
-
display: flex;
|
|
1102
|
-
align-items: flex-start;
|
|
1103
|
-
margin-bottom: var(--pf-v5-global--spacer--sm);
|
|
1104
|
-
}
|
|
1105
|
-
.pfext-quick-start-task-review__actions input[type=radio] {
|
|
1106
|
-
margin-top: 0;
|
|
1107
|
-
margin-right: 0;
|
|
1108
|
-
}
|
|
1109
|
-
.pfext-quick-start-task-review__radio {
|
|
1110
|
-
margin-right: var(--pf-v5-global--spacer--xl) !important;
|
|
1111
|
-
}
|
|
1112
|
-
.pfext-quick-start-task-review--success {
|
|
1113
|
-
color: var(--pf-v5-global--success-color--100) !important;
|
|
1114
|
-
}
|
|
1115
|
-
.pfext-quick-start-task-review--failed {
|
|
1116
|
-
color: var(--pf-chart-global--danger--Color--100);
|
|
1117
|
-
}
|
|
1118
|
-
|
|
1119
|
-
.pfext-modal {
|
|
1120
|
-
position: absolute !important;
|
|
1121
|
-
}
|
|
1122
|
-
|
|
1123
1122
|
.pfext-markdown-view .pfext-code-block__pre {
|
|
1124
1123
|
/* override the styles applied by showdown while parsing <pre /> */
|
|
1125
1124
|
display: flex;
|
|
@@ -1154,6 +1153,10 @@
|
|
|
1154
1153
|
word-break: break-word;
|
|
1155
1154
|
}
|
|
1156
1155
|
|
|
1156
|
+
.pfext-modal {
|
|
1157
|
+
position: absolute !important;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1157
1160
|
@keyframes pfext-spotlight-expand {
|
|
1158
1161
|
0% {
|
|
1159
1162
|
outline-offset: -4px;
|
|
@@ -30913,10 +30913,10 @@ const QuickStartTileHeader = ({ status, duration, name, type, quickStartId, acti
|
|
|
30913
30913
|
};
|
|
30914
30914
|
const ActionIcon = (action === null || action === void 0 ? void 0 : action.icon) || OutlinedBookmarkIcon;
|
|
30915
30915
|
return (React.createElement("div", { className: "pfext-quick-start-tile-header" },
|
|
30916
|
-
React.createElement(Flex, {
|
|
30916
|
+
React.createElement(Flex, { flexWrap: { default: 'nowrap' } },
|
|
30917
30917
|
React.createElement(Title, { headingLevel: "h3", "data-test": "title", id: quickStartId },
|
|
30918
30918
|
React.createElement(QuickStartMarkdownView, { content: name })),
|
|
30919
|
-
action && React.createElement(Button, Object.assign({ "aria-label": action['aria-label'], icon: React.createElement(ActionIcon, null), variant:
|
|
30919
|
+
action && (React.createElement(Button, Object.assign({ "aria-label": action['aria-label'], icon: React.createElement(ActionIcon, null), variant: "plain", onClick: action.onClick }, action.buttonProps)))),
|
|
30920
30920
|
React.createElement("div", { className: "pfext-quick-start-tile-header__status" },
|
|
30921
30921
|
type && (React.createElement(Label, { className: "pfext-quick-start-tile-header--margin", color: type.color }, type.text)),
|
|
30922
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))),
|
|
@@ -30924,8 +30924,7 @@ const QuickStartTileHeader = ({ status, duration, name, type, quickStartId, acti
|
|
|
30924
30924
|
};
|
|
30925
30925
|
|
|
30926
30926
|
const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, action, }) => {
|
|
30927
|
-
const { metadata: { name
|
|
30928
|
-
const id = metaId || name;
|
|
30927
|
+
const { metadata: { name: id }, spec: { icon, tasks, displayName, description, durationMinutes, prerequisites, link, type }, } = quickStart;
|
|
30929
30928
|
const { setActiveQuickStart, footer } = React.useContext(QuickStartContext);
|
|
30930
30929
|
const ref = React.useRef(null);
|
|
30931
30930
|
let quickStartIcon;
|
|
@@ -30947,26 +30946,31 @@ const QuickStartTile = ({ quickStart, status, isActive, onClick = () => { }, act
|
|
|
30947
30946
|
const handleClick = (e) => {
|
|
30948
30947
|
var _a;
|
|
30949
30948
|
if ((_a = ref.current) === null || _a === void 0 ? void 0 : _a.contains(e.target)) {
|
|
30950
|
-
if (link) {
|
|
30951
|
-
window.open(link.href);
|
|
30952
|
-
}
|
|
30953
|
-
else {
|
|
30949
|
+
if (!link) {
|
|
30954
30950
|
setActiveQuickStart(id, tasks === null || tasks === void 0 ? void 0 : tasks.length);
|
|
30955
30951
|
}
|
|
30956
30952
|
onClick();
|
|
30957
30953
|
}
|
|
30958
30954
|
};
|
|
30955
|
+
const linkProps = link
|
|
30956
|
+
? {
|
|
30957
|
+
href: link.href,
|
|
30958
|
+
target: '_blank',
|
|
30959
|
+
rel: 'noreferrer',
|
|
30960
|
+
}
|
|
30961
|
+
: {};
|
|
30959
30962
|
return (React.createElement("div", { ref: ref, onClick: handleClick },
|
|
30960
|
-
React.createElement(CatalogTile, { id: id + '-catalog-tile', style: {
|
|
30963
|
+
React.createElement(CatalogTile, Object.assign({ id: id + '-catalog-tile', style: {
|
|
30961
30964
|
cursor: 'pointer',
|
|
30962
30965
|
}, 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) => {
|
|
30963
30966
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
30964
30967
|
setActiveQuickStart(id, tasks === null || tasks === void 0 ? void 0 : tasks.length);
|
|
30965
30968
|
onClick();
|
|
30966
30969
|
}
|
|
30967
|
-
},
|
|
30968
|
-
//
|
|
30969
|
-
|
|
30970
|
+
} }, linkProps, { "data-test": `tile ${id}`, description: React.createElement(QuickStartTileDescription, { description: description, prerequisites: prerequisites }), footer: footerComponent, tabIndex: 0,
|
|
30971
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
30972
|
+
// @ts-ignore-next-line
|
|
30973
|
+
isSelectableRaised: true }))));
|
|
30970
30974
|
};
|
|
30971
30975
|
|
|
30972
30976
|
const QuickStartCatalog = ({ quickStarts }) => {
|