@patternfly/quickstarts 5.3.0-prerelease.1 → 5.4.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.
@@ -811,6 +811,17 @@
811
811
  box-shadow: var(--pf-v5-global--BoxShadow--sm-top);
812
812
  }
813
813
 
814
+ .pfext-quick-start-tile {
815
+ height: 100%;
816
+ }
817
+ .pfext-quick-start-tile .catalog-tile-pf-description .has-footer {
818
+ display: block;
819
+ -webkit-line-clamp: unset;
820
+ }
821
+ .pfext-quick-start-tile .catalog-tile-pf-icon {
822
+ display: flex;
823
+ }
824
+
814
825
  .pfext-quick-start-catalog__gallery {
815
826
  --pf-v5-l-gallery--GridTemplateColumns: repeat(auto-fill, 300px) !important;
816
827
  }
@@ -857,15 +868,22 @@
857
868
  flex: 1;
858
869
  }
859
870
 
860
- .pfext-quick-start-tile {
861
- height: 100%;
871
+ .pfext-markdown-view.is-empty {
872
+ color: #999;
862
873
  }
863
- .pfext-quick-start-tile .catalog-tile-pf-description .has-footer {
874
+ .pfext-markdown-view table {
864
875
  display: block;
865
- -webkit-line-clamp: unset;
876
+ margin-bottom: 11.5px;
877
+ overflow-x: auto;
866
878
  }
867
- .pfext-quick-start-tile .catalog-tile-pf-icon {
868
- display: flex;
879
+ .pfext-markdown-view td,
880
+ .pfext-markdown-view th {
881
+ border-bottom: 1px solid #ededed;
882
+ padding: 10px;
883
+ vertical-align: top;
884
+ }
885
+ .pfext-markdown-view th {
886
+ padding-top: 0;
869
887
  }
870
888
 
871
889
  .pfext-quick-start-catalog-filter__input {
@@ -889,22 +907,14 @@
889
907
  --pf-v5-c-check__label--FontSize: 14px;
890
908
  }
891
909
 
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;
910
+ .pfext-quick-start-content {
911
+ flex: 1 1 0;
912
+ overflow: auto;
913
+ padding: var(--pf-v5-global--spacer--lg);
914
+ font-size: 16px;
905
915
  }
906
- .pfext-markdown-view th {
907
- padding-top: 0;
916
+ .pfext-quick-start-content .pf-v5-c-alert__description p {
917
+ font-size: 13px;
908
918
  }
909
919
 
910
920
  .pfext-quick-start-footer {
@@ -919,16 +929,6 @@
919
929
  float: right;
920
930
  }
921
931
 
922
- .pfext-quick-start-content {
923
- flex: 1 1 0;
924
- overflow: auto;
925
- padding: var(--pf-v5-global--spacer--lg);
926
- font-size: 16px;
927
- }
928
- .pfext-quick-start-content .pf-v5-c-alert__description p {
929
- font-size: 13px;
930
- }
931
-
932
932
  .pfext-quick-start-tasks__list button::before {
933
933
  content: none;
934
934
  }
@@ -1030,6 +1030,20 @@
1030
1030
  left: 2px;
1031
1031
  }
1032
1032
 
1033
+ .pfext-quick-start-task-header__list {
1034
+ padding: 0 !important;
1035
+ }
1036
+ .pfext-quick-start-task-header__list button::before {
1037
+ content: none;
1038
+ }
1039
+ .pfext-quick-start-task-header__list li {
1040
+ list-style-type: none;
1041
+ display: flex;
1042
+ flex-wrap: wrap;
1043
+ align-items: center;
1044
+ margin-bottom: var(--pf-v5-global--spacer--xs);
1045
+ }
1046
+
1033
1047
  .pfext-quick-start-task-review-alert {
1034
1048
  margin: var(--pf-v5-global--spacer--lg) 0;
1035
1049
  }
@@ -1058,20 +1072,6 @@
1058
1072
  color: var(--pf-chart-global--danger--Color--100);
1059
1073
  }
1060
1074
 
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
-
1075
1075
  .pfext-quick-start-task-header {
1076
1076
  margin-bottom: var(--pf-v5-global--spacer--sm);
1077
1077
  display: grid;
@@ -1119,6 +1119,10 @@
1119
1119
  color: var(--pf-v5-global--danger-color--100) !important;
1120
1120
  }
1121
1121
 
1122
+ .pfext-modal {
1123
+ position: absolute !important;
1124
+ }
1125
+
1122
1126
  .pfext-markdown-view .pfext-code-block__pre {
1123
1127
  /* override the styles applied by showdown while parsing <pre /> */
1124
1128
  display: flex;
@@ -1153,10 +1157,6 @@
1153
1157
  word-break: break-word;
1154
1158
  }
1155
1159
 
1156
- .pfext-modal {
1157
- position: absolute !important;
1158
- }
1159
-
1160
1160
  @keyframes pfext-spotlight-expand {
1161
1161
  0% {
1162
1162
  outline-offset: -4px;
@@ -10209,6 +10209,7 @@ const QuickStartContextDefaults = {
10209
10209
  markdown: null,
10210
10210
  loading: false,
10211
10211
  alwaysShowTaskReview: true,
10212
+ focusOnQuickStart: true,
10212
10213
  };
10213
10214
  const QuickStartContext = createContext(QuickStartContextDefaults);
10214
10215
  const getResource = (resource, options, resourceBundle, lng) => {
@@ -31236,12 +31237,13 @@ const TaskIcon = ({ taskIndex, taskStatus }) => {
31236
31237
  };
31237
31238
  const QuickStartTaskHeader = ({ title, taskIndex, subtitle, taskStatus, size, isActiveTask, onTaskSelect, children, }) => {
31238
31239
  const titleRef = React.useRef(null);
31240
+ const { focusOnQuickStart } = React.useContext(QuickStartContext);
31239
31241
  React.useEffect(() => {
31240
- if (isActiveTask) {
31242
+ if (focusOnQuickStart && isActiveTask) {
31241
31243
  // Focus the WizardNavItem button element that contains the title
31242
31244
  titleRef.current.parentNode.focus();
31243
31245
  }
31244
- }, [isActiveTask]);
31246
+ }, [focusOnQuickStart, isActiveTask]);
31245
31247
  const classNames = css('pfext-quick-start-task-header__title', {
31246
31248
  'pfext-quick-start-task-header__title-success': taskStatus === QuickStartTaskStatus.SUCCESS,
31247
31249
  'pfext-quick-start-task-header__title-failed': taskStatus === (QuickStartTaskStatus.FAILED || QuickStartTaskStatus.VISITED),
@@ -31452,7 +31454,7 @@ const useScrollTopOnTaskNumberChange = (node, taskNumber) => {
31452
31454
  const QuickStartPanelContent = (_a) => {
31453
31455
  var { quickStarts = [], handleClose, activeQuickStartID, appendTo, isResizable = true, showClose = true, headerVariant = '' } = _a, props = __rest(_a, ["quickStarts", "handleClose", "activeQuickStartID", "appendTo", "isResizable", "showClose", "headerVariant"]);
31454
31456
  const titleRef = React.useRef(null);
31455
- const { getResource, activeQuickStartState } = React.useContext(QuickStartContext);
31457
+ const { getResource, activeQuickStartState, focusOnQuickStart } = React.useContext(QuickStartContext);
31456
31458
  const [contentRef, setContentRef] = React.useState();
31457
31459
  const shadows = useScrollShadows(contentRef);
31458
31460
  const quickStart = quickStarts.find((qs) => qs.metadata.name === activeQuickStartID);
@@ -31477,10 +31479,10 @@ const QuickStartPanelContent = (_a) => {
31477
31479
  return Number.parseInt(taskNumber) + 1;
31478
31480
  };
31479
31481
  React.useEffect(() => {
31480
- if (quickStart) {
31482
+ if (focusOnQuickStart && quickStart) {
31481
31483
  titleRef.current.focus();
31482
31484
  }
31483
- }, [quickStart]);
31485
+ }, [focusOnQuickStart, quickStart]);
31484
31486
  const content = quickStart ? (React.createElement(DrawerPanelContent, Object.assign({ isResizable: isResizable, className: "pfext-quick-start__base", "data-testid": `qs-drawer-${camelize(quickStart.spec.displayName)}`, "data-qs": `qs-step-${getStep()}`, "data-test": "quickstart drawer" }, props),
31485
31487
  React.createElement("div", { className: headerClasses },
31486
31488
  React.createElement(DrawerHead, null,