@patternfly/quickstarts 5.3.0 → 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,13 +811,6 @@
811
811
  box-shadow: var(--pf-v5-global--BoxShadow--sm-top);
812
812
  }
813
813
 
814
- .pfext-quick-start-catalog__gallery {
815
- --pf-v5-l-gallery--GridTemplateColumns: repeat(auto-fill, 300px) !important;
816
- }
817
- .pfext-quick-start-catalog__gallery-item {
818
- display: inherit !important;
819
- }
820
-
821
814
  .pfext-quick-start-tile {
822
815
  height: 100%;
823
816
  }
@@ -829,6 +822,13 @@
829
822
  display: flex;
830
823
  }
831
824
 
825
+ .pfext-quick-start-catalog__gallery {
826
+ --pf-v5-l-gallery--GridTemplateColumns: repeat(auto-fill, 300px) !important;
827
+ }
828
+ .pfext-quick-start-catalog__gallery-item {
829
+ display: inherit !important;
830
+ }
831
+
832
832
  .pfext-quick-start-tile-description {
833
833
  display: -webkit-box;
834
834
  overflow: hidden;
@@ -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,