@patternfly/quickstarts 6.1.0-prerelease.1 → 6.1.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.
@@ -163,6 +163,10 @@
163
163
  border: var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth) !important;
164
164
  }
165
165
 
166
+ .pfext-quick-start-footer {
167
+ padding-top: var(--pf-t--global--spacer--md);
168
+ }
169
+
166
170
  .pfext-quick-start-task {
167
171
  flex: 1 1 0;
168
172
  overflow: auto;
@@ -171,10 +175,6 @@
171
175
  margin-block-end: var(--pf-v6-c-content--MarginBlockEnd);
172
176
  }
173
177
 
174
- .pfext-quick-start-footer {
175
- padding-top: var(--pf-t--global--spacer--md);
176
- }
177
-
178
178
  button.pf-v6-c-wizard__nav-link {
179
179
  margin-bottom: var(--pf-t--global--spacer--md);
180
180
  }
@@ -1 +1 @@
1
- .pfext-quick-start-panel{--pf-v6-c-drawer__panel--PaddingBlockStart:0}.pfext-popover__base ul{list-style-type:var(--pf-t--global--list-style)}.pfext-markdown-view .h1,.pfext-markdown-view .h2,.pfext-markdown-view .h3,.pfext-markdown-view .h4,.pfext-markdown-view .h5,.pfext-markdown-view .h6,.pfext-markdown-view h1,.pfext-markdown-view h2,.pfext-markdown-view h3,.pfext-markdown-view h4,.pfext-markdown-view h5,.pfext-markdown-view h6{font-family:var(--pf-t--global--font--family--heading);font-weight:var(--pf-t--global--font--weight--heading);line-height:1.1;color:inherit}.pfext-markdown-view .h1,.pfext-markdown-view .h2,.pfext-markdown-view .h3,.pfext-markdown-view h1,.pfext-markdown-view h2,.pfext-markdown-view h3{margin-top:23px;margin-bottom:11.5px}.pfext-markdown-view .h4,.pfext-markdown-view .h5,.pfext-markdown-view .h6,.pfext-markdown-view h4,.pfext-markdown-view h5,.pfext-markdown-view h6{margin-top:11.5px;margin-bottom:11.5px}.pfext-markdown-view .h1,.pfext-markdown-view h1{font-size:var(--pf-t--global--font--size--heading--h1)}.pfext-markdown-view .h2,.pfext-markdown-view h2{font-size:var(--pf-t--global--font--size--heading--h2)}.pfext-markdown-view .h3,.pfext-markdown-view h3{font-size:var(--pf-t--global--font--size--heading--h3)}.pfext-markdown-view .h4,.pfext-markdown-view h4{font-size:var(--pf-t--global--font--size--heading--h4)}.pfext-markdown-view .h5,.pfext-markdown-view h5{font-size:var(--pf-t--global--font--size--heading--h5)}.pfext-markdown-view .h6,.pfext-markdown-view h6{font-size:var(--pf-t--global--font--size--heading--h6)}.pfext-markdown-view p{margin:0 0 11.5px}.pfext-markdown-view ol,.pfext-markdown-view ul{margin-top:0;margin-bottom:11.5px}.pfext-markdown-view ol ol,.pfext-markdown-view ol ul,.pfext-markdown-view ul ol,.pfext-markdown-view ul ul{margin-bottom:0}.pfext-markdown-view dl{margin-top:0;margin-bottom:23px}.pfext-markdown-view dd,.pfext-markdown-view dt{line-height:1.66666667}.pfext-markdown-view dt{font-weight:700}.pfext-markdown-view dd{margin-left:0}.pfext-markdown-view blockquote{padding:11.5px 23px;margin:0 0 23px;font-size:17.5px;border-left:5px solid #f1f1f1}.pfext-markdown-view blockquote ol:last-child,.pfext-markdown-view blockquote p:last-child,.pfext-markdown-view blockquote ul:last-child{margin-bottom:0}.pfext-markdown-view code,.pfext-markdown-view pre{font-family:Menlo,Monaco,Consolas,monospace}.pfext-markdown-view code{padding:2px 4px;font-size:90%;color:#004368;background-color:#def3ff;border-radius:1px}.pfext-markdown-view pre{display:block;padding:11px;margin:0 0 11.5px;font-size:13px;line-height:1.66666667;color:#363636;word-break:break-all;word-wrap:break-word;background-color:#fafafa;border:1px solid #ccc;border-radius:1px}.pfext-markdown-view pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pfext-markdown-view table{background-color:transparent}.pfext-markdown-view table col[class*=col-]{position:static;display:table-column;float:none}.pfext-markdown-view table td[class*=col-],.pfext-markdown-view table th[class*=col-]{position:static;display:table-cell;float:none}.pfext-markdown-view caption{padding-top:10px;padding-bottom:10px;color:#9c9c9c;text-align:left}.pfext-markdown-view th{text-align:left}.pfext-quick-start-panel-content{background-color:var(--pf-t--global--color--brand--default);color:var(--pf-t--global--text--color--inverse);padding:var(--pf-t--global--spacer--md) var(--pf-t--global--spacer--lg)}.pfext-quick-start-panel-content__body{display:flex;flex-direction:column}.pfext-quick-start-panel-content__close-button button.pf-v6-c-button{--pf-v6-c-button--Color:var(--pf-t--global--text--color--inverse)}.pf-v6-theme-dark .pfext-catalog-item-icon__img{filter:brightness(1.5) invert(1) hue-rotate(180deg) saturate(4)}.pf-v6-c-card__header-main .pf-v6-c-icon__content{display:contents}.pf-v6-c-card.pf-m-clickable::before,.pf-v6-c-card.pf-m-selectable::before{border:var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth)!important}.pfext-quick-start-task{flex:1 1 0;overflow:auto}.pfext-quick-start-task .pf-v6-c-accordion,.pfext-quick-start-task .pf-v6-c-alert,.pfext-quick-start-task .pf-v6-c-code-block{margin-block-end:var(--pf-v6-c-content--MarginBlockEnd)}.pfext-quick-start-footer{padding-top:var(--pf-t--global--spacer--md)}button.pf-v6-c-wizard__nav-link{margin-bottom:var(--pf-t--global--spacer--md)}button.pf-v6-c-wizard__nav-link.pf-m-current{--pf-v6-c-wizard__nav-link-main--BackgroundColor:transparent}button.pf-v6-c-wizard__nav-link::before{background-color:var(--pf-v6-c-wizard__nav-link--m-current--before--BackgroundColor);color:var(--pf-v6-c-wizard__nav-link--m-current--before--Color);min-width:var(--pf-v6-c-wizard__nav-link--before--Width)}.pfext-quick-start-task-header button::before{content:none}.pfext-quick-start-task-header__title{font-family:var(--pf-t--global--font--family--body);font-weight:var(---pf-t--global--font--weight--body--bold);font-size:var(--pf-t--global--font--size--body--lg)}.pfext-quick-start-task-header__subtitle{font-size:var(--pf-t--global--font--size--body--default);color:var(--pf-t--global--text--color--subtle);font-weight:var(--pf-t--global--font--weight--body)}.pfext-quick-start-task-header__tryagain{display:block;font-size:var(--pf-t--global--font--size--body--default);color:var(--pf-t--global--text--color--subtle);font-weight:var(--pf-t--global--font--weight--body)}.pf-v6-c-clipboard-copy{--pf-v6-c-clipboard-copy__toggle-icon--Transition:.2s ease-in 0s;--pf-v6-c-clipboard-copy--m-expanded__toggle-icon--Rotate:90deg;--pf-v6-c-clipboard-copy__expandable-content--MarginBlockStart:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy__expandable-content--PaddingBlockStart:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--PaddingInlineEnd:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--PaddingBlockEnd:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--PaddingInlineStart:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--BackgroundColor:var(--pf-t--global--background--color--primary--default);--pf-v6-c-clipboard-copy__expandable-content--BorderBlockStartWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderInlineEndWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderBlockEndWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderInlineStartWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderColor:var(--pf-t--global--border--color--default);--pf-v6-c-clipboard-copy__expandable-content--BorderRadius:var(--pf-t--global--border--radius--small);--pf-v6-c-clipboard-copy__expandable-content--OutlineOffset:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy__group--Gap:var(--pf-t--global--spacer--gap--control-to-control--default);--pf-v6-c-clipboard-copy--m-inline--PaddingInlineStart:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy--m-inline--PaddingInlineEnd:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy--m-inline--BackgroundColor:var(--pf-t--global--background--color--secondary--default);--pf-v6-c-clipboard-copy__actions--Gap:var(--pf-t--global--spacer--gap--action-to-action--plain);--pf-v6-c-clipboard-copy__actions--MarginInlineStart:var(--pf-t--global--spacer--gap--text-to-element--compact);--pf-v6-c-clipboard-copy__actions-item--button--Color:var(--pf-t--global--icon--color--subtle);--pf-v6-c-clipboard-copy__actions-item--button--hover--Color:var(--pf-t--global--icon--color--regular);--pf-v6-c-clipboard-copy__text--m-code--FontFamily:var(--pf-t--global--font--family--mono);--pf-v6-c-clipboard-copy__text--m-code--FontSize:var(--pf-t--global--font--size--body--default)}.pf-v6-c-clipboard-copy.pf-m-inline{display:inline;padding-inline-start:var(--pf-v6-c-clipboard-copy--m-inline--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-clipboard-copy--m-inline--PaddingInlineEnd);white-space:nowrap;background-color:var(--pf-v6-c-clipboard-copy--m-inline--BackgroundColor)}.pf-v6-c-clipboard-copy.pf-m-inline.pf-m-block{display:block}.pf-v6-c-clipboard-copy__text{word-break:break-word;white-space:normal}.pf-v6-c-clipboard-copy__actions{display:inline-flex;gap:var(--pf-v6-c-clipboard-copy__actions--Gap);margin-inline-start:var(--pf-v6-c-clipboard-copy__actions--MarginInlineStart)}.pf-v6-c-clipboard-copy__actions-item .pf-v6-c-button.pf-m-plain{--pf-v6-c-button--m-plain__icon--Color:var(--pf-v6-c-clipboard-copy__actions-item--button--Color);--pf-v6-c-button--m-plain--hover__icon--Color:var(--pf-v6-c-clipboard-copy__actions-item--button--hover--Color)}.pf-v6-c-code-block{--pf-v6-c-code-block--BackgroundColor:var(--pf-t--global--background--color--secondary--default);--pf-v6-c-code-block--BorderRadius:var(--pf-t--global--border--radius--medium);--pf-v6-c-code-block__header--BorderBlockEndWidth:var(--pf-t--global--border--width--divider--default);--pf-v6-c-code-block__header--BorderBlockEndColor:var(--pf-t--global--border--color--default);--pf-v6-c-code-block__header--PaddingBlockStart:var(--pf-t--global--spacer--xs);--pf-v6-c-code-block__header--PaddingBlockEnd:var(--pf-t--global--spacer--xs);--pf-v6-c-code-block__header--PaddingInlineEnd:var(--pf-t--global--spacer--sm);--pf-v6-c-code-block__header--PaddingInlineStart:var(--pf-t--global--spacer--sm);--pf-v6-c-code-block__content--PaddingBlockStart:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__content--PaddingInlineEnd:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__content--PaddingBlockEnd:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__content--PaddingInlineStart:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__pre--FontFamily:var(--pf-t--global--font--family--mono);--pf-v6-c-code-block__pre--FontSize:var(--pf-t--global--font--size--xs)}.pf-v6-c-code-block{background-color:var(--pf-v6-c-code-block--BackgroundColor);border-radius:var(--pf-v6-c-code-block--BorderRadius)}.pf-v6-c-code-block__header{display:flex;padding-block-start:var(--pf-v6-c-code-block__header--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-block__header--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-block__header--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-block__header--PaddingInlineEnd);border-block-end:var(--pf-v6-c-code-block__header--BorderBlockEndWidth) solid var(--pf-v6-c-code-block__header--BorderBlockEndColor)}.pf-v6-c-code-block__actions{display:flex;margin-inline-start:auto}.pf-v6-c-code-block__content{padding-block-start:var(--pf-v6-c-code-block__content--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-block__content--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-block__content--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-block__content--PaddingInlineEnd)}.pf-v6-c-code-block__pre{font-family:var(--pf-v6-c-code-block__pre--FontFamily);font-size:var(--pf-v6-c-code-block__pre--FontSize);overflow-wrap:break-word;white-space:pre-wrap}.pf-v6-c-code-block__code{font-family:var(--pf-v6-c-code-block__code--FontFamily,inherit)}
1
+ .pfext-quick-start-panel{--pf-v6-c-drawer__panel--PaddingBlockStart:0}.pfext-popover__base ul{list-style-type:var(--pf-t--global--list-style)}.pfext-markdown-view .h1,.pfext-markdown-view .h2,.pfext-markdown-view .h3,.pfext-markdown-view .h4,.pfext-markdown-view .h5,.pfext-markdown-view .h6,.pfext-markdown-view h1,.pfext-markdown-view h2,.pfext-markdown-view h3,.pfext-markdown-view h4,.pfext-markdown-view h5,.pfext-markdown-view h6{font-family:var(--pf-t--global--font--family--heading);font-weight:var(--pf-t--global--font--weight--heading);line-height:1.1;color:inherit}.pfext-markdown-view .h1,.pfext-markdown-view .h2,.pfext-markdown-view .h3,.pfext-markdown-view h1,.pfext-markdown-view h2,.pfext-markdown-view h3{margin-top:23px;margin-bottom:11.5px}.pfext-markdown-view .h4,.pfext-markdown-view .h5,.pfext-markdown-view .h6,.pfext-markdown-view h4,.pfext-markdown-view h5,.pfext-markdown-view h6{margin-top:11.5px;margin-bottom:11.5px}.pfext-markdown-view .h1,.pfext-markdown-view h1{font-size:var(--pf-t--global--font--size--heading--h1)}.pfext-markdown-view .h2,.pfext-markdown-view h2{font-size:var(--pf-t--global--font--size--heading--h2)}.pfext-markdown-view .h3,.pfext-markdown-view h3{font-size:var(--pf-t--global--font--size--heading--h3)}.pfext-markdown-view .h4,.pfext-markdown-view h4{font-size:var(--pf-t--global--font--size--heading--h4)}.pfext-markdown-view .h5,.pfext-markdown-view h5{font-size:var(--pf-t--global--font--size--heading--h5)}.pfext-markdown-view .h6,.pfext-markdown-view h6{font-size:var(--pf-t--global--font--size--heading--h6)}.pfext-markdown-view p{margin:0 0 11.5px}.pfext-markdown-view ol,.pfext-markdown-view ul{margin-top:0;margin-bottom:11.5px}.pfext-markdown-view ol ol,.pfext-markdown-view ol ul,.pfext-markdown-view ul ol,.pfext-markdown-view ul ul{margin-bottom:0}.pfext-markdown-view dl{margin-top:0;margin-bottom:23px}.pfext-markdown-view dd,.pfext-markdown-view dt{line-height:1.66666667}.pfext-markdown-view dt{font-weight:700}.pfext-markdown-view dd{margin-left:0}.pfext-markdown-view blockquote{padding:11.5px 23px;margin:0 0 23px;font-size:17.5px;border-left:5px solid #f1f1f1}.pfext-markdown-view blockquote ol:last-child,.pfext-markdown-view blockquote p:last-child,.pfext-markdown-view blockquote ul:last-child{margin-bottom:0}.pfext-markdown-view code,.pfext-markdown-view pre{font-family:Menlo,Monaco,Consolas,monospace}.pfext-markdown-view code{padding:2px 4px;font-size:90%;color:#004368;background-color:#def3ff;border-radius:1px}.pfext-markdown-view pre{display:block;padding:11px;margin:0 0 11.5px;font-size:13px;line-height:1.66666667;color:#363636;word-break:break-all;word-wrap:break-word;background-color:#fafafa;border:1px solid #ccc;border-radius:1px}.pfext-markdown-view pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pfext-markdown-view table{background-color:transparent}.pfext-markdown-view table col[class*=col-]{position:static;display:table-column;float:none}.pfext-markdown-view table td[class*=col-],.pfext-markdown-view table th[class*=col-]{position:static;display:table-cell;float:none}.pfext-markdown-view caption{padding-top:10px;padding-bottom:10px;color:#9c9c9c;text-align:left}.pfext-markdown-view th{text-align:left}.pfext-quick-start-panel-content{background-color:var(--pf-t--global--color--brand--default);color:var(--pf-t--global--text--color--inverse);padding:var(--pf-t--global--spacer--md) var(--pf-t--global--spacer--lg)}.pfext-quick-start-panel-content__body{display:flex;flex-direction:column}.pfext-quick-start-panel-content__close-button button.pf-v6-c-button{--pf-v6-c-button--Color:var(--pf-t--global--text--color--inverse)}.pf-v6-theme-dark .pfext-catalog-item-icon__img{filter:brightness(1.5) invert(1) hue-rotate(180deg) saturate(4)}.pf-v6-c-card__header-main .pf-v6-c-icon__content{display:contents}.pf-v6-c-card.pf-m-clickable::before,.pf-v6-c-card.pf-m-selectable::before{border:var(--pf-v6-c-card--BorderColor) var(--pf-v6-c-card--BorderStyle) var(--pf-v6-c-card--BorderWidth)!important}.pfext-quick-start-footer{padding-top:var(--pf-t--global--spacer--md)}.pfext-quick-start-task{flex:1 1 0;overflow:auto}.pfext-quick-start-task .pf-v6-c-accordion,.pfext-quick-start-task .pf-v6-c-alert,.pfext-quick-start-task .pf-v6-c-code-block{margin-block-end:var(--pf-v6-c-content--MarginBlockEnd)}button.pf-v6-c-wizard__nav-link{margin-bottom:var(--pf-t--global--spacer--md)}button.pf-v6-c-wizard__nav-link.pf-m-current{--pf-v6-c-wizard__nav-link-main--BackgroundColor:transparent}button.pf-v6-c-wizard__nav-link::before{background-color:var(--pf-v6-c-wizard__nav-link--m-current--before--BackgroundColor);color:var(--pf-v6-c-wizard__nav-link--m-current--before--Color);min-width:var(--pf-v6-c-wizard__nav-link--before--Width)}.pfext-quick-start-task-header button::before{content:none}.pfext-quick-start-task-header__title{font-family:var(--pf-t--global--font--family--body);font-weight:var(---pf-t--global--font--weight--body--bold);font-size:var(--pf-t--global--font--size--body--lg)}.pfext-quick-start-task-header__subtitle{font-size:var(--pf-t--global--font--size--body--default);color:var(--pf-t--global--text--color--subtle);font-weight:var(--pf-t--global--font--weight--body)}.pfext-quick-start-task-header__tryagain{display:block;font-size:var(--pf-t--global--font--size--body--default);color:var(--pf-t--global--text--color--subtle);font-weight:var(--pf-t--global--font--weight--body)}.pf-v6-c-clipboard-copy{--pf-v6-c-clipboard-copy__toggle-icon--Transition:.2s ease-in 0s;--pf-v6-c-clipboard-copy--m-expanded__toggle-icon--Rotate:90deg;--pf-v6-c-clipboard-copy__expandable-content--MarginBlockStart:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy__expandable-content--PaddingBlockStart:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--PaddingInlineEnd:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--PaddingBlockEnd:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--PaddingInlineStart:var(--pf-t--global--spacer--md);--pf-v6-c-clipboard-copy__expandable-content--BackgroundColor:var(--pf-t--global--background--color--primary--default);--pf-v6-c-clipboard-copy__expandable-content--BorderBlockStartWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderInlineEndWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderBlockEndWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderInlineStartWidth:var(--pf-t--global--border--width--control--default);--pf-v6-c-clipboard-copy__expandable-content--BorderColor:var(--pf-t--global--border--color--default);--pf-v6-c-clipboard-copy__expandable-content--BorderRadius:var(--pf-t--global--border--radius--small);--pf-v6-c-clipboard-copy__expandable-content--OutlineOffset:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy__group--Gap:var(--pf-t--global--spacer--gap--control-to-control--default);--pf-v6-c-clipboard-copy--m-inline--PaddingInlineStart:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy--m-inline--PaddingInlineEnd:var(--pf-t--global--spacer--xs);--pf-v6-c-clipboard-copy--m-inline--BackgroundColor:var(--pf-t--global--background--color--secondary--default);--pf-v6-c-clipboard-copy__actions--Gap:var(--pf-t--global--spacer--gap--action-to-action--plain);--pf-v6-c-clipboard-copy__actions--MarginInlineStart:var(--pf-t--global--spacer--gap--text-to-element--compact);--pf-v6-c-clipboard-copy__actions-item--button--Color:var(--pf-t--global--icon--color--subtle);--pf-v6-c-clipboard-copy__actions-item--button--hover--Color:var(--pf-t--global--icon--color--regular);--pf-v6-c-clipboard-copy__text--m-code--FontFamily:var(--pf-t--global--font--family--mono);--pf-v6-c-clipboard-copy__text--m-code--FontSize:var(--pf-t--global--font--size--body--default)}.pf-v6-c-clipboard-copy.pf-m-inline{display:inline;padding-inline-start:var(--pf-v6-c-clipboard-copy--m-inline--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-clipboard-copy--m-inline--PaddingInlineEnd);white-space:nowrap;background-color:var(--pf-v6-c-clipboard-copy--m-inline--BackgroundColor)}.pf-v6-c-clipboard-copy.pf-m-inline.pf-m-block{display:block}.pf-v6-c-clipboard-copy__text{word-break:break-word;white-space:normal}.pf-v6-c-clipboard-copy__actions{display:inline-flex;gap:var(--pf-v6-c-clipboard-copy__actions--Gap);margin-inline-start:var(--pf-v6-c-clipboard-copy__actions--MarginInlineStart)}.pf-v6-c-clipboard-copy__actions-item .pf-v6-c-button.pf-m-plain{--pf-v6-c-button--m-plain__icon--Color:var(--pf-v6-c-clipboard-copy__actions-item--button--Color);--pf-v6-c-button--m-plain--hover__icon--Color:var(--pf-v6-c-clipboard-copy__actions-item--button--hover--Color)}.pf-v6-c-code-block{--pf-v6-c-code-block--BackgroundColor:var(--pf-t--global--background--color--secondary--default);--pf-v6-c-code-block--BorderRadius:var(--pf-t--global--border--radius--medium);--pf-v6-c-code-block__header--BorderBlockEndWidth:var(--pf-t--global--border--width--divider--default);--pf-v6-c-code-block__header--BorderBlockEndColor:var(--pf-t--global--border--color--default);--pf-v6-c-code-block__header--PaddingBlockStart:var(--pf-t--global--spacer--xs);--pf-v6-c-code-block__header--PaddingBlockEnd:var(--pf-t--global--spacer--xs);--pf-v6-c-code-block__header--PaddingInlineEnd:var(--pf-t--global--spacer--sm);--pf-v6-c-code-block__header--PaddingInlineStart:var(--pf-t--global--spacer--sm);--pf-v6-c-code-block__content--PaddingBlockStart:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__content--PaddingInlineEnd:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__content--PaddingBlockEnd:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__content--PaddingInlineStart:var(--pf-t--global--spacer--md);--pf-v6-c-code-block__pre--FontFamily:var(--pf-t--global--font--family--mono);--pf-v6-c-code-block__pre--FontSize:var(--pf-t--global--font--size--xs)}.pf-v6-c-code-block{background-color:var(--pf-v6-c-code-block--BackgroundColor);border-radius:var(--pf-v6-c-code-block--BorderRadius)}.pf-v6-c-code-block__header{display:flex;padding-block-start:var(--pf-v6-c-code-block__header--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-block__header--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-block__header--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-block__header--PaddingInlineEnd);border-block-end:var(--pf-v6-c-code-block__header--BorderBlockEndWidth) solid var(--pf-v6-c-code-block__header--BorderBlockEndColor)}.pf-v6-c-code-block__actions{display:flex;margin-inline-start:auto}.pf-v6-c-code-block__content{padding-block-start:var(--pf-v6-c-code-block__content--PaddingBlockStart);padding-block-end:var(--pf-v6-c-code-block__content--PaddingBlockEnd);padding-inline-start:var(--pf-v6-c-code-block__content--PaddingInlineStart);padding-inline-end:var(--pf-v6-c-code-block__content--PaddingInlineEnd)}.pf-v6-c-code-block__pre{font-family:var(--pf-v6-c-code-block__pre--FontFamily);font-size:var(--pf-v6-c-code-block__pre--FontSize);overflow-wrap:break-word;white-space:pre-wrap}.pf-v6-c-code-block__code{font-family:var(--pf-v6-c-code-block__code--FontFamily,inherit)}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patternfly/quickstarts",
3
- "version": "6.1.0-prerelease.1",
3
+ "version": "6.1.0-prerelease.3",
4
4
  "description": "PatternFly quick starts",
5
5
  "files": [
6
6
  "src",
@@ -0,0 +1,142 @@
1
+ import * as React from 'react';
2
+ import {
3
+ QuickStartContext,
4
+ QuickStartContextValues,
5
+ useValuesForQuickStartContext,
6
+ } from './utils/quick-start-context';
7
+ import QuickStartDrawer from './QuickStartDrawer';
8
+ import { QuickStart, AllQuickStartStates } from './utils/quick-start-types';
9
+
10
+ export interface QuickStartContainerProps extends React.HTMLProps<HTMLDivElement> {
11
+ /** array of quick starts */
12
+ quickStarts: QuickStart[];
13
+ /** id of the currently active quick start */
14
+ activeQuickStartID: string;
15
+ /** setter for the active quick starts */
16
+ setActiveQuickStartID: React.Dispatch<React.SetStateAction<string>>;
17
+ /** quick starts state object */
18
+ allQuickStartStates: AllQuickStartStates;
19
+ /** setter for the quick starts state object */
20
+ setAllQuickStartStates: React.Dispatch<React.SetStateAction<AllQuickStartStates>>;
21
+ /** content to render within the container */
22
+ children?: React.ReactNode;
23
+ /** element to render the drawer panel into */
24
+ appendTo?: HTMLElement | (() => HTMLElement);
25
+ /** if true, the panel will take up the full browser width */
26
+ fullWidth?: boolean;
27
+ /** callback when an in-progress quick start is closed */
28
+ onCloseInProgress?: any;
29
+ /** callback when a not-in-progress quick start is closed */
30
+ onCloseNotInProgress?: any;
31
+ /** true to show footer buttons in the catalog tiles (default true) */
32
+ showCardFooters?: boolean;
33
+ /** true to use legacy drawer header variant colors */
34
+ useLegacyHeaderColors?: boolean;
35
+ /** text resources object */
36
+ resourceBundle?: any;
37
+ /** language of the current resource bundle
38
+ * Add custom strings: https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/module#localization
39
+ */
40
+ language?: string;
41
+ /** if true, will show a loading spinner on the catalog page (default false) */
42
+ loading?: boolean;
43
+ /** if true, will update the browser URL with ?quickstart={ID} (default true) */
44
+ useQueryParams?: boolean;
45
+ /** if true, the TaskReview component, aka "Check your work", will be shown regardless of task status */
46
+ alwaysShowTaskReview?: boolean;
47
+ /**
48
+ * Additional markdown extensions and renderers to use
49
+ * Example usage: https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/module#markdown-extensions
50
+ */
51
+ markdown?: {
52
+ extensions?: any[];
53
+ renderExtension?: (docContext: Document, rootSelector: string) => React.ReactNode;
54
+ };
55
+ /** additional quick start context props */
56
+ contextProps?: QuickStartContextValues;
57
+ /** Indicates that QuickStart should create and maintain its own drawer. If false, a QuickStartDrawerContent component should be present within the children, replacing the custom Drawer's DrawerContent. */
58
+ isManagedDrawer?: boolean;
59
+ }
60
+
61
+ export const QuickStartContainer: React.FC<QuickStartContainerProps> = ({
62
+ quickStarts,
63
+ children,
64
+ activeQuickStartID,
65
+ allQuickStartStates,
66
+ setActiveQuickStartID,
67
+ setAllQuickStartStates,
68
+ appendTo,
69
+ fullWidth,
70
+ onCloseInProgress,
71
+ onCloseNotInProgress,
72
+ resourceBundle,
73
+ showCardFooters,
74
+ useLegacyHeaderColors,
75
+ language,
76
+ loading = false,
77
+ useQueryParams = true,
78
+ markdown,
79
+ contextProps,
80
+ alwaysShowTaskReview = true,
81
+ isManagedDrawer = true,
82
+ ...props
83
+ }: QuickStartContainerProps) => {
84
+ const valuesForQuickstartContext: QuickStartContextValues = useValuesForQuickStartContext({
85
+ allQuickStarts: quickStarts,
86
+ activeQuickStartID,
87
+ setActiveQuickStartID,
88
+ allQuickStartStates,
89
+ setAllQuickStartStates,
90
+ footer: {
91
+ show: showCardFooters,
92
+ },
93
+ useLegacyHeaderColors,
94
+ language,
95
+ resourceBundle: {
96
+ ...resourceBundle,
97
+ // Start: "Let's go!",
98
+ // Continue: 'Resume',
99
+ // Restart: 'Start over',
100
+ },
101
+ loading,
102
+ useQueryParams,
103
+ markdown,
104
+ alwaysShowTaskReview,
105
+ ...contextProps,
106
+ });
107
+
108
+ React.useEffect(() => {
109
+ if (
110
+ quickStarts &&
111
+ JSON.stringify(quickStarts) !== JSON.stringify(valuesForQuickstartContext.allQuickStarts)
112
+ ) {
113
+ valuesForQuickstartContext.setAllQuickStarts(quickStarts);
114
+ }
115
+ }, [quickStarts, valuesForQuickstartContext]);
116
+
117
+ React.useEffect(() => {
118
+ if (loading !== valuesForQuickstartContext.loading) {
119
+ valuesForQuickstartContext.setLoading(loading);
120
+ }
121
+ }, [loading, valuesForQuickstartContext]);
122
+
123
+ const drawerProps = {
124
+ appendTo,
125
+ fullWidth,
126
+ onCloseInProgress,
127
+ onCloseNotInProgress,
128
+ ...props,
129
+ };
130
+
131
+ return (
132
+ <QuickStartContext.Provider value={valuesForQuickstartContext}>
133
+ {isManagedDrawer ? (
134
+ <QuickStartDrawer {...drawerProps}>{children}</QuickStartDrawer>
135
+ ) : (
136
+ children
137
+ )}
138
+ </QuickStartContext.Provider>
139
+ );
140
+ };
141
+
142
+ export default QuickStartContainer;
@@ -1,142 +1,15 @@
1
1
  import * as React from 'react';
2
2
  import { Drawer, DrawerContent, DrawerContentBody } from '@patternfly/react-core';
3
3
  import QuickStartCloseModal from './QuickStartCloseModal';
4
- import QuickStartPanelContent from './QuickStartPanelContent';
4
+ import QuickStartDrawerContent from './QuickStartDrawerContent';
5
5
  import {
6
6
  getDefaultQuickStartState,
7
7
  QuickStartContext,
8
8
  QuickStartContextValues,
9
- useValuesForQuickStartContext,
10
9
  } from './utils/quick-start-context';
11
10
  import { QUICKSTART_ID_FILTER_KEY } from './utils/const';
12
- import { QuickStart, QuickStartStatus, AllQuickStartStates } from './utils/quick-start-types';
11
+ import { QuickStart, QuickStartStatus } from './utils/quick-start-types';
13
12
  import { getQuickStartByName } from './utils/quick-start-utils';
14
-
15
- export interface QuickStartContainerProps extends React.HTMLProps<HTMLDivElement> {
16
- /** array of quick starts */
17
- quickStarts: QuickStart[];
18
- /** id of the currently active quick start */
19
- activeQuickStartID: string;
20
- /** setter for the active quick starts */
21
- setActiveQuickStartID: React.Dispatch<React.SetStateAction<string>>;
22
- /** quick starts state object */
23
- allQuickStartStates: AllQuickStartStates;
24
- /** setter for the quick starts state object */
25
- setAllQuickStartStates: React.Dispatch<React.SetStateAction<AllQuickStartStates>>;
26
- /** content to render within the container */
27
- children?: React.ReactNode;
28
- /** element to render the drawer panel into */
29
- appendTo?: HTMLElement | (() => HTMLElement);
30
- /** if true, the panel will take up the full browser width */
31
- fullWidth?: boolean;
32
- /** callback when an in-progress quick start is closed */
33
- onCloseInProgress?: any;
34
- /** callback when a not-in-progress quick start is closed */
35
- onCloseNotInProgress?: any;
36
- /** true to show footer buttons in the catalog tiles (default true) */
37
- showCardFooters?: boolean;
38
- /** true to use legacy drawer header variant colors */
39
- useLegacyHeaderColors?: boolean;
40
- /** text resources object */
41
- resourceBundle?: any;
42
- /** language of the current resource bundle
43
- * Add custom strings: https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/module#localization
44
- */
45
- language?: string;
46
- /** if true, will show a loading spinner on the catalog page (default false) */
47
- loading?: boolean;
48
- /** if true, will update the browser URL with ?quickstart={ID} (default true) */
49
- useQueryParams?: boolean;
50
- /** if true, the TaskReview component, aka "Check your work", will be shown regardless of task status */
51
- alwaysShowTaskReview?: boolean;
52
- /**
53
- * Additional markdown extensions and renderers to use
54
- * Example usage: https://github.com/patternfly/patternfly-quickstarts/tree/main/packages/module#markdown-extensions
55
- */
56
- markdown?: {
57
- extensions?: any[];
58
- renderExtension?: (docContext: Document, rootSelector: string) => React.ReactNode;
59
- };
60
- /** additional quick start context props */
61
- contextProps?: QuickStartContextValues;
62
- }
63
-
64
- export const QuickStartContainer: React.FC<QuickStartContainerProps> = ({
65
- quickStarts,
66
- children,
67
- activeQuickStartID,
68
- allQuickStartStates,
69
- setActiveQuickStartID,
70
- setAllQuickStartStates,
71
- appendTo,
72
- fullWidth,
73
- onCloseInProgress,
74
- onCloseNotInProgress,
75
- resourceBundle,
76
- showCardFooters,
77
- useLegacyHeaderColors,
78
- language,
79
- loading = false,
80
- useQueryParams = true,
81
- markdown,
82
- contextProps,
83
- alwaysShowTaskReview = true,
84
- ...props
85
- }: QuickStartContainerProps) => {
86
- const valuesForQuickstartContext: QuickStartContextValues = useValuesForQuickStartContext({
87
- allQuickStarts: quickStarts,
88
- activeQuickStartID,
89
- setActiveQuickStartID,
90
- allQuickStartStates,
91
- setAllQuickStartStates,
92
- footer: {
93
- show: showCardFooters,
94
- },
95
- useLegacyHeaderColors,
96
- language,
97
- resourceBundle: {
98
- ...resourceBundle,
99
- // Start: "Let's go!",
100
- // Continue: 'Resume',
101
- // Restart: 'Start over',
102
- },
103
- loading,
104
- useQueryParams,
105
- markdown,
106
- alwaysShowTaskReview,
107
- ...contextProps,
108
- });
109
-
110
- React.useEffect(() => {
111
- if (
112
- quickStarts &&
113
- JSON.stringify(quickStarts) !== JSON.stringify(valuesForQuickstartContext.allQuickStarts)
114
- ) {
115
- valuesForQuickstartContext.setAllQuickStarts(quickStarts);
116
- }
117
- }, [quickStarts, valuesForQuickstartContext]);
118
-
119
- React.useEffect(() => {
120
- if (loading !== valuesForQuickstartContext.loading) {
121
- valuesForQuickstartContext.setLoading(loading);
122
- }
123
- }, [loading, valuesForQuickstartContext]);
124
-
125
- const drawerProps = {
126
- appendTo,
127
- fullWidth,
128
- onCloseInProgress,
129
- onCloseNotInProgress,
130
- ...props,
131
- };
132
-
133
- return (
134
- <QuickStartContext.Provider value={valuesForQuickstartContext}>
135
- <QuickStartDrawer {...drawerProps}>{children}</QuickStartDrawer>
136
- </QuickStartContext.Provider>
137
- );
138
- };
139
-
140
13
  export interface QuickStartDrawerProps extends React.HTMLProps<HTMLDivElement> {
141
14
  quickStarts?: QuickStart[];
142
15
  children?: React.ReactNode;
@@ -159,7 +32,6 @@ export const QuickStartDrawer: React.FC<QuickStartDrawerProps> = ({
159
32
  activeQuickStartID,
160
33
  setActiveQuickStart,
161
34
  allQuickStarts = [],
162
- activeQuickStartState,
163
35
  allQuickStartStates,
164
36
  setAllQuickStartStates,
165
37
  } = React.useContext<QuickStartContextValues>(QuickStartContext);
@@ -189,9 +61,8 @@ export const QuickStartDrawer: React.FC<QuickStartDrawerProps> = ({
189
61
  }, [activeQuickStartID, allQuickStartStates, setAllQuickStartStates]);
190
62
 
191
63
  const [modalOpen, setModalOpen] = React.useState<boolean>(false);
192
- const activeQuickStartStatus = activeQuickStartState?.status;
193
64
  const onClose = () => setActiveQuickStart('');
194
- const handleClose = () => {
65
+ const handleClose = (activeQuickStartStatus: string | number) => {
195
66
  if (activeQuickStartStatus === QuickStartStatus.IN_PROGRESS) {
196
67
  if (onCloseInProgress) {
197
68
  onCloseInProgress();
@@ -212,14 +83,6 @@ export const QuickStartDrawer: React.FC<QuickStartDrawerProps> = ({
212
83
 
213
84
  const onModalCancel = () => setModalOpen(false);
214
85
 
215
- const fullWidthPanelStyle = fullWidth
216
- ? {
217
- style: {
218
- flex: 1,
219
- },
220
- }
221
- : {};
222
-
223
86
  const fullWidthBodyStyle = fullWidth
224
87
  ? {
225
88
  style: {
@@ -228,27 +91,22 @@ export const QuickStartDrawer: React.FC<QuickStartDrawerProps> = ({
228
91
  }
229
92
  : {};
230
93
 
231
- const panelContent = (
232
- <QuickStartPanelContent
233
- quickStarts={combinedQuickStarts}
234
- handleClose={handleClose}
235
- activeQuickStartID={activeQuickStartID}
236
- appendTo={appendTo}
237
- isResizable={!fullWidth}
238
- {...fullWidthPanelStyle}
239
- />
240
- );
241
-
242
94
  return (
243
95
  <>
244
96
  <Drawer isExpanded={!!activeQuickStartID} isInline {...props}>
245
- {children ? (
246
- <DrawerContent panelContent={panelContent} {...fullWidthBodyStyle}>
247
- <DrawerContentBody>{children}</DrawerContentBody>
248
- </DrawerContent>
249
- ) : (
250
- <div>{panelContent}</div>
251
- )}
97
+ <DrawerContent
98
+ panelContent={
99
+ <QuickStartDrawerContent
100
+ quickStarts={combinedQuickStarts}
101
+ handleDrawerClose={handleClose}
102
+ appendTo={appendTo}
103
+ fullWidth={fullWidth}
104
+ />
105
+ }
106
+ {...fullWidthBodyStyle}
107
+ >
108
+ <DrawerContentBody>{children}</DrawerContentBody>
109
+ </DrawerContent>
252
110
  </Drawer>
253
111
  <QuickStartCloseModal
254
112
  isOpen={modalOpen}
@@ -258,3 +116,5 @@ export const QuickStartDrawer: React.FC<QuickStartDrawerProps> = ({
258
116
  </>
259
117
  );
260
118
  };
119
+
120
+ export default QuickStartDrawer;
@@ -0,0 +1,54 @@
1
+ import * as React from 'react';
2
+ import QuickStartPanelContent from './QuickStartPanelContent';
3
+ import { QuickStartContext, QuickStartContextValues } from './utils/quick-start-context';
4
+ import { QuickStart } from './utils/quick-start-types';
5
+
6
+ export interface QuickStartDrawerContentProps extends React.HTMLProps<HTMLDivElement> {
7
+ quickStarts?: QuickStart[];
8
+ appendTo?: HTMLElement | (() => HTMLElement);
9
+ fullWidth?: boolean;
10
+ onCloseInProgress?: any;
11
+ onCloseNotInProgress?: any;
12
+ handleDrawerClose?: (quickStartStatus: string | number) => void;
13
+ }
14
+
15
+ export const QuickStartDrawerContent: React.FC<QuickStartDrawerContentProps> = ({
16
+ quickStarts = [],
17
+ appendTo,
18
+ fullWidth,
19
+ handleDrawerClose,
20
+ ...props
21
+ }) => {
22
+ const {
23
+ activeQuickStartID,
24
+ allQuickStarts = [],
25
+ activeQuickStartState,
26
+ } = React.useContext<QuickStartContextValues>(QuickStartContext);
27
+ const combinedQuickStarts = allQuickStarts.concat(quickStarts);
28
+
29
+ const handleClose = () => {
30
+ handleDrawerClose && handleDrawerClose(activeQuickStartState?.status);
31
+ };
32
+
33
+ const fullWidthPanelStyle = fullWidth
34
+ ? {
35
+ style: {
36
+ flex: 1,
37
+ },
38
+ }
39
+ : {};
40
+
41
+ return (
42
+ <QuickStartPanelContent
43
+ quickStarts={combinedQuickStarts}
44
+ handleClose={handleClose}
45
+ activeQuickStartID={activeQuickStartID}
46
+ appendTo={appendTo}
47
+ isResizable={!fullWidth}
48
+ {...fullWidthPanelStyle}
49
+ {...props}
50
+ />
51
+ );
52
+ };
53
+
54
+ export default QuickStartDrawerContent;
package/src/index.ts CHANGED
@@ -3,7 +3,10 @@ import './styles/style.scss';
3
3
  export * from './QuickStartCatalogPage';
4
4
  export * from './catalog';
5
5
  export * from './ConsoleInternal/components/utils';
6
+ export * from './QuickStartContainer';
6
7
  export * from './QuickStartDrawer';
8
+ export * from './QuickStartDrawerContent';
9
+ export * from './QuickStartCloseModal';
7
10
  export * from './HelpTopicDrawer';
8
11
  export * from './utils/const';
9
12
  export * from './utils/quick-start-context';