@patternfly/quickstarts 5.3.0-prerelease.1 → 6.0.0-alpha.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/catalog/QuickStartTile.d.ts +0 -3
- package/dist/catalog/QuickStartTileHeader.d.ts +0 -12
- package/dist/catalog/index.d.ts +1 -1
- package/dist/index.es.js +64 -101
- package/dist/index.es.js.map +1 -1
- package/dist/index.js +63 -103
- package/dist/index.js.map +1 -1
- package/dist/patternfly-global.css +773 -846
- package/dist/patternfly-nested.css +12814 -9632
- package/dist/quickstarts-base.css +155 -787
- package/dist/quickstarts-full.es.js +3689 -3599
- package/dist/quickstarts-full.es.js.map +1 -1
- package/dist/quickstarts-standalone.css +165 -546
- package/dist/quickstarts-standalone.min.css +8 -4
- package/dist/quickstarts-vendor.css +37 -134
- package/dist/quickstarts.css +192 -921
- package/dist/quickstarts.min.css +1 -1
- package/package.json +20 -19
- package/src/ConsoleInternal/components/_icon-and-text.scss +2 -2
- package/src/ConsoleInternal/components/catalog/_catalog.scss +20 -20
- package/src/ConsoleInternal/components/markdown-view.tsx +2 -2
- package/src/ConsoleInternal/components/utils/_status-box.scss +1 -1
- package/src/ConsoleShared/src/components/layout/PageLayout.scss +10 -10
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-extension.tsx +6 -4
- package/src/ConsoleShared/src/components/markdown-extensions/accordion-render-extension.tsx +2 -2
- package/src/ConsoleShared/src/components/markdown-extensions/inline-clipboard-extension.tsx +5 -5
- package/src/ConsoleShared/src/components/markdown-extensions/multiline-clipboard-extension.tsx +8 -8
- package/src/ConsoleShared/src/components/markdown-extensions/showdown-extension.scss +5 -5
- package/src/ConsoleShared/src/components/spotlight/StaticSpotlight.tsx +1 -1
- package/src/ConsoleShared/src/components/spotlight/spotlight.scss +4 -4
- package/src/ConsoleShared/src/components/status/icons.tsx +6 -8
- package/src/HelpTopicDrawer.tsx +1 -1
- package/src/HelpTopicPanelContent.tsx +1 -1
- package/src/QuickStartCatalogPage.tsx +1 -8
- package/src/QuickStartController.tsx +1 -1
- package/src/QuickStartDrawer.scss +1 -1
- package/src/QuickStartDrawer.tsx +1 -1
- package/src/QuickStartMarkdownView.tsx +1 -1
- package/src/QuickStartPanelContent.scss +10 -10
- package/src/QuickStartPanelContent.tsx +1 -1
- package/src/catalog/QuickStartCatalog.scss +1 -1
- package/src/catalog/QuickStartTile.tsx +11 -20
- package/src/catalog/QuickStartTileDescription.scss +4 -4
- package/src/catalog/QuickStartTileHeader.scss +5 -9
- package/src/catalog/QuickStartTileHeader.tsx +4 -31
- package/src/catalog/Toolbar/QuickStartCatalogFilter.scss +9 -9
- package/src/catalog/Toolbar/QuickStartCatalogFilterItems.tsx +1 -1
- package/src/catalog/index.ts +1 -1
- package/src/controller/QuickStartConclusion.tsx +1 -1
- package/src/controller/QuickStartContent.scss +2 -2
- package/src/controller/QuickStartFooter.scss +3 -3
- package/src/controller/QuickStartIntroduction.scss +7 -7
- package/src/controller/QuickStartIntroduction.tsx +1 -1
- package/src/controller/QuickStartTaskHeader.scss +15 -15
- package/src/controller/QuickStartTaskHeader.tsx +17 -17
- package/src/controller/QuickStartTaskHeaderList.scss +1 -1
- package/src/controller/QuickStartTaskHeaderList.tsx +1 -1
- package/src/controller/QuickStartTaskReview.scss +8 -8
- package/src/controller/QuickStartTasks.scss +14 -13
- package/src/styles/_base.scss +3 -6
- package/src/styles/_dark-custom-override.scss +16 -31
- package/src/styles/legacy-bootstrap/_variables.scss +8 -8
- package/src/styles/patternfly-global.scss +8 -8
- package/src/styles/patternfly-nested.scss +5 -5
- package/src/styles/style.scss +6 -6
- package/src/styles/vendor.scss +2 -2
|
@@ -127,7 +127,7 @@ const HelpTopicPanelContent: React.FC<HelpTopicPanelContentProps> = ({
|
|
|
127
127
|
headingLevel="h1"
|
|
128
128
|
size="xl"
|
|
129
129
|
className="pfext-quick-start-panel-content__name"
|
|
130
|
-
style={{ marginRight: 'var(--pf-
|
|
130
|
+
style={{ marginRight: 'var(--pf-t--global--spacer--md)' }}
|
|
131
131
|
>
|
|
132
132
|
{activeHelpTopic?.title}
|
|
133
133
|
</Title>
|
|
@@ -4,11 +4,9 @@ import {
|
|
|
4
4
|
Divider,
|
|
5
5
|
EmptyState,
|
|
6
6
|
EmptyStateBody,
|
|
7
|
-
EmptyStateIcon,
|
|
8
7
|
Text,
|
|
9
8
|
EmptyStateFooter,
|
|
10
9
|
EmptyStateActions,
|
|
11
|
-
EmptyStateHeader,
|
|
12
10
|
} from '@patternfly/react-core';
|
|
13
11
|
import SearchIcon from '@patternfly/react-icons/dist/js/icons/search-icon';
|
|
14
12
|
import { EmptyBox, LoadingBox, clearFilterParams } from '@console/internal/components/utils';
|
|
@@ -30,12 +28,7 @@ export interface QuickStartCatalogPageProps {
|
|
|
30
28
|
export const QuickStartCatalogEmptyState = ({ clearFilters }) => {
|
|
31
29
|
const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
32
30
|
return (
|
|
33
|
-
<EmptyState>
|
|
34
|
-
<EmptyStateHeader
|
|
35
|
-
titleText={<>{getResource('No results found')}</>}
|
|
36
|
-
icon={<EmptyStateIcon icon={SearchIcon} />}
|
|
37
|
-
headingLevel="h4"
|
|
38
|
-
/>
|
|
31
|
+
<EmptyState headingLevel="h4" icon={SearchIcon} titleText={<>{getResource('No results found')}</>}>
|
|
39
32
|
<EmptyStateBody>
|
|
40
33
|
{getResource(
|
|
41
34
|
'No results match the filter criteria. Remove filters or clear all filters to show results.',
|
|
@@ -50,7 +50,7 @@ const QuickStartController: React.FC<QuickStartControllerProps> = ({
|
|
|
50
50
|
let activeTaskNumber = 0;
|
|
51
51
|
while (
|
|
52
52
|
activeTaskNumber !== totalTasks &&
|
|
53
|
-
activeQuickStartState[`taskStatus${activeTaskNumber}`]
|
|
53
|
+
activeQuickStartState[`taskStatus${activeTaskNumber}`] !== QuickStartTaskStatus.INIT
|
|
54
54
|
) {
|
|
55
55
|
activeTaskNumber++;
|
|
56
56
|
}
|
package/src/QuickStartDrawer.tsx
CHANGED
|
@@ -252,7 +252,7 @@ export const QuickStartDrawer: React.FC<QuickStartDrawerProps> = ({
|
|
|
252
252
|
</DrawerContentBody>
|
|
253
253
|
</DrawerContent>
|
|
254
254
|
) : (
|
|
255
|
-
<div className="pf-
|
|
255
|
+
<div className="pf-v6-c-drawer__main">{panelContent}</div>
|
|
256
256
|
)}
|
|
257
257
|
</Drawer>
|
|
258
258
|
<QuickStartCloseModal
|
|
@@ -45,7 +45,7 @@ const QuickStartMarkdownView: React.FC<QuickStartMarkdownViewProps> = ({
|
|
|
45
45
|
if (!linkLabel || !linkType || !linkId) {
|
|
46
46
|
return text;
|
|
47
47
|
}
|
|
48
|
-
return `<button class="pf-
|
|
48
|
+
return `<button class="pf-v6-c-button pf-m-inline pf-m-link" data-highlight="${linkId}">${linkLabel}</button>`;
|
|
49
49
|
},
|
|
50
50
|
},
|
|
51
51
|
{
|
|
@@ -3,21 +3,21 @@
|
|
|
3
3
|
position: sticky;
|
|
4
4
|
top: 0px;
|
|
5
5
|
background: inherit;
|
|
6
|
-
z-index: var(--pf-
|
|
6
|
+
z-index: var(--pf-t--global--z-index--xs);
|
|
7
7
|
&__shadow {
|
|
8
|
-
box-shadow: var(--pf-
|
|
8
|
+
box-shadow: var(--pf-t--global--box-shadow--sm--bottom);
|
|
9
9
|
}
|
|
10
10
|
&--blue-white {
|
|
11
|
-
background-color: var(--pf-
|
|
11
|
+
background-color: var(--pf-t--global--color--brand--default);
|
|
12
12
|
.pfext-quick-start-panel-content__title {
|
|
13
|
-
color: var(--pf-
|
|
13
|
+
color: var(--pf-t--global--text--color--on-brand--default);
|
|
14
14
|
}
|
|
15
15
|
.pfext-quick-start-panel-content__duration {
|
|
16
|
-
color: var(--pf-
|
|
16
|
+
color: var(--pf-t--global--text--color--on-brand--default);
|
|
17
17
|
}
|
|
18
18
|
.pfext-quick-start-panel-content__close-button {
|
|
19
19
|
button {
|
|
20
|
-
color: var(--pf-
|
|
20
|
+
color: var(--pf-t--global--text--color--on-brand--default) !important;
|
|
21
21
|
}
|
|
22
22
|
}
|
|
23
23
|
}
|
|
@@ -33,14 +33,14 @@
|
|
|
33
33
|
}
|
|
34
34
|
&__duration {
|
|
35
35
|
display: inline-block;
|
|
36
|
-
font-size: var(--pf-
|
|
37
|
-
font-weight:
|
|
36
|
+
font-size: var(--pf-t--global--font--size--body--default);
|
|
37
|
+
font-weight: var(--pf-t--global--font--weight--body);
|
|
38
38
|
line-height: 1;
|
|
39
|
-
color:
|
|
39
|
+
color: var(--pf-t--global--text--color--subtle);
|
|
40
40
|
}
|
|
41
41
|
&__footer {
|
|
42
42
|
&__shadow {
|
|
43
|
-
box-shadow: var(--pf-
|
|
43
|
+
box-shadow: var(--pf-t--global--box-shadow--sm--top);
|
|
44
44
|
}
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -111,7 +111,7 @@ const QuickStartPanelContent: React.FC<QuickStartPanelContentProps> = ({
|
|
|
111
111
|
headingLevel="h2"
|
|
112
112
|
size="xl"
|
|
113
113
|
className="pfext-quick-start-panel-content__name"
|
|
114
|
-
style={{ marginRight: 'var(--pf-
|
|
114
|
+
style={{ marginRight: 'var(--pf-t--global--spacer--md)' }}
|
|
115
115
|
>
|
|
116
116
|
<span
|
|
117
117
|
dangerouslySetInnerHTML={{
|
|
@@ -8,7 +8,8 @@ import { camelize } from '../utils/quick-start-utils';
|
|
|
8
8
|
import QuickStartTileDescription from './QuickStartTileDescription';
|
|
9
9
|
import QuickStartTileFooter from './QuickStartTileFooter';
|
|
10
10
|
import QuickStartTileFooterExternal from './QuickStartTileFooterExternal';
|
|
11
|
-
import QuickStartTileHeader
|
|
11
|
+
import QuickStartTileHeader from './QuickStartTileHeader';
|
|
12
|
+
import { Icon } from '@patternfly/react-core';
|
|
12
13
|
|
|
13
14
|
import './QuickStartTile.scss';
|
|
14
15
|
|
|
@@ -17,8 +18,6 @@ interface QuickStartTileProps {
|
|
|
17
18
|
status: QuickStartStatus;
|
|
18
19
|
isActive: boolean;
|
|
19
20
|
onClick?: () => void;
|
|
20
|
-
/** Action config for button rendered next to title */
|
|
21
|
-
action?: QuickstartAction;
|
|
22
21
|
}
|
|
23
22
|
|
|
24
23
|
const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
@@ -26,7 +25,6 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
|
26
25
|
status,
|
|
27
26
|
isActive,
|
|
28
27
|
onClick = () => {},
|
|
29
|
-
action,
|
|
30
28
|
}) => {
|
|
31
29
|
const {
|
|
32
30
|
metadata: { name: id },
|
|
@@ -40,15 +38,17 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
|
40
38
|
|
|
41
39
|
let quickStartIcon: React.ReactNode;
|
|
42
40
|
if (typeof icon === 'object') {
|
|
43
|
-
quickStartIcon = icon
|
|
41
|
+
quickStartIcon = <Icon size="xl">{icon}</Icon>
|
|
44
42
|
} else {
|
|
45
43
|
quickStartIcon = (
|
|
44
|
+
<Icon size="xl">
|
|
46
45
|
<FallbackImg
|
|
47
46
|
className="pfext-catalog-item-icon__img--large"
|
|
48
47
|
src={icon as string}
|
|
49
48
|
alt=""
|
|
50
49
|
fallback={<RocketIcon />}
|
|
51
50
|
/>
|
|
51
|
+
</Icon>
|
|
52
52
|
);
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -68,23 +68,17 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
|
68
68
|
e: React.FormEvent<HTMLInputElement> | React.MouseEvent<Element, MouseEvent>,
|
|
69
69
|
) => {
|
|
70
70
|
if (ref.current?.contains(e.target as Node)) {
|
|
71
|
-
if (
|
|
71
|
+
if (link) {
|
|
72
|
+
window.open(link.href);
|
|
73
|
+
} else {
|
|
72
74
|
setActiveQuickStart(id, tasks?.length);
|
|
73
75
|
}
|
|
74
76
|
onClick();
|
|
75
77
|
}
|
|
76
78
|
};
|
|
77
79
|
|
|
78
|
-
const linkProps = link
|
|
79
|
-
? {
|
|
80
|
-
href: link.href,
|
|
81
|
-
target: '_blank',
|
|
82
|
-
rel: 'noreferrer',
|
|
83
|
-
}
|
|
84
|
-
: {};
|
|
85
|
-
|
|
86
80
|
return (
|
|
87
|
-
<div ref={ref}
|
|
81
|
+
<div ref={ref}>
|
|
88
82
|
<CatalogTile
|
|
89
83
|
id={id + '-catalog-tile'}
|
|
90
84
|
style={{
|
|
@@ -101,9 +95,9 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
|
101
95
|
duration={durationMinutes}
|
|
102
96
|
type={type}
|
|
103
97
|
quickStartId={id}
|
|
104
|
-
action={action}
|
|
105
98
|
/>
|
|
106
99
|
}
|
|
100
|
+
onClick={handleClick}
|
|
107
101
|
onKeyDown={(event) => {
|
|
108
102
|
if (event.key === 'Enter' || event.key === ' ') {
|
|
109
103
|
setActiveQuickStart(id, tasks?.length);
|
|
@@ -111,16 +105,13 @@ const QuickStartTile: React.FC<QuickStartTileProps> = ({
|
|
|
111
105
|
}
|
|
112
106
|
}}
|
|
113
107
|
// https://github.com/patternfly/patternfly-react/issues/7039
|
|
114
|
-
{
|
|
108
|
+
href={link?.href}
|
|
115
109
|
data-test={`tile ${id}`}
|
|
116
110
|
description={
|
|
117
111
|
<QuickStartTileDescription description={description} prerequisites={prerequisites} />
|
|
118
112
|
}
|
|
119
113
|
footer={footerComponent}
|
|
120
114
|
tabIndex={0}
|
|
121
|
-
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
122
|
-
// @ts-ignore-next-line
|
|
123
|
-
isSelectableRaised
|
|
124
115
|
/>
|
|
125
116
|
</div>
|
|
126
117
|
);
|
|
@@ -13,12 +13,12 @@
|
|
|
13
13
|
&-prerequisites {
|
|
14
14
|
display: inline-flex;
|
|
15
15
|
&__text {
|
|
16
|
-
margin-right: var(--pf-
|
|
17
|
-
font-size: var(--pf-
|
|
16
|
+
margin-right: var(--pf-t--global--spacer--sm);
|
|
17
|
+
font-size: var(--pf-t--global--font--size--md);
|
|
18
18
|
margin-top: 11.5px;
|
|
19
19
|
margin-bottom: 11.5px;
|
|
20
|
-
font-family: var(--pf-
|
|
21
|
-
font-weight: var(--pf-
|
|
20
|
+
font-family: var(--pf-t--global--font--family--heading);
|
|
21
|
+
font-weight: var(--pf-t--global--font--weight--heading);
|
|
22
22
|
line-height: 1.1;
|
|
23
23
|
}
|
|
24
24
|
|
|
@@ -1,16 +1,12 @@
|
|
|
1
1
|
.pfext-quick-start-tile-header {
|
|
2
2
|
&__status {
|
|
3
|
-
margin: var(--pf-
|
|
3
|
+
margin: var(--pf-t--global--spacer--sm) 0;
|
|
4
4
|
}
|
|
5
5
|
&--margin {
|
|
6
|
-
margin-right: var(--pf-
|
|
7
|
-
margin-bottom: var(--pf-
|
|
6
|
+
margin-right: var(--pf-t--global--spacer--sm);
|
|
7
|
+
margin-bottom: var(--pf-t--global--spacer--sm);
|
|
8
8
|
}
|
|
9
|
-
& .pf-
|
|
10
|
-
margin-right: var(--pf-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
h3 {
|
|
14
|
-
flex: 1;
|
|
9
|
+
& .pf-v6-c-badge:not(:last-of-type) {
|
|
10
|
+
margin-right: var(--pf-t--global--spacer--sm);
|
|
15
11
|
}
|
|
16
12
|
}
|
|
@@ -1,31 +1,18 @@
|
|
|
1
1
|
import './QuickStartTileHeader.scss';
|
|
2
2
|
import * as React from 'react';
|
|
3
|
-
import {
|
|
3
|
+
import { Label, Title } from '@patternfly/react-core';
|
|
4
4
|
import OutlinedClockIcon from '@patternfly/react-icons/dist/js/icons/outlined-clock-icon';
|
|
5
|
-
import OutlinedBookmarkIcon from '@patternfly/react-icons/dist/js/icons/outlined-bookmark-icon';
|
|
6
5
|
import { StatusIcon } from '@console/shared';
|
|
7
6
|
import { QuickStartContext, QuickStartContextValues } from '../utils/quick-start-context';
|
|
8
7
|
import { QuickStartStatus, QuickStartType } from '../utils/quick-start-types';
|
|
9
8
|
import QuickStartMarkdownView from '../QuickStartMarkdownView';
|
|
10
9
|
|
|
11
|
-
export interface QuickstartAction {
|
|
12
|
-
/** Screen reader aria label. */
|
|
13
|
-
'aria-label': string;
|
|
14
|
-
/** Icon to be rendered as a plain button, by default Bookmark outlined will be used. */
|
|
15
|
-
icon?: React.ComponentType<unknown>;
|
|
16
|
-
/** Callback with synthetic event parameter. */
|
|
17
|
-
onClick?: (e: React.SyntheticEvent) => void;
|
|
18
|
-
/** Additional button props to be rendered as extra props. */
|
|
19
|
-
buttonProps?: ButtonProps;
|
|
20
|
-
}
|
|
21
|
-
|
|
22
10
|
interface QuickStartTileHeaderProps {
|
|
23
11
|
status: string;
|
|
24
12
|
duration: number;
|
|
25
13
|
name: string;
|
|
26
14
|
type?: QuickStartType;
|
|
27
15
|
quickStartId?: string;
|
|
28
|
-
action?: QuickstartAction;
|
|
29
16
|
}
|
|
30
17
|
|
|
31
18
|
const statusColorMap = {
|
|
@@ -40,7 +27,6 @@ const QuickStartTileHeader: React.FC<QuickStartTileHeaderProps> = ({
|
|
|
40
27
|
name,
|
|
41
28
|
type,
|
|
42
29
|
quickStartId,
|
|
43
|
-
action,
|
|
44
30
|
}) => {
|
|
45
31
|
const { getResource } = React.useContext<QuickStartContextValues>(QuickStartContext);
|
|
46
32
|
|
|
@@ -50,24 +36,11 @@ const QuickStartTileHeader: React.FC<QuickStartTileHeaderProps> = ({
|
|
|
50
36
|
[QuickStartStatus.NOT_STARTED]: getResource('Not started'),
|
|
51
37
|
};
|
|
52
38
|
|
|
53
|
-
const ActionIcon = action?.icon || OutlinedBookmarkIcon;
|
|
54
|
-
|
|
55
39
|
return (
|
|
56
40
|
<div className="pfext-quick-start-tile-header">
|
|
57
|
-
<
|
|
58
|
-
<
|
|
59
|
-
|
|
60
|
-
</Title>
|
|
61
|
-
{action && (
|
|
62
|
-
<Button
|
|
63
|
-
aria-label={action['aria-label']}
|
|
64
|
-
icon={<ActionIcon />}
|
|
65
|
-
variant="plain"
|
|
66
|
-
onClick={action.onClick}
|
|
67
|
-
{...action.buttonProps}
|
|
68
|
-
/>
|
|
69
|
-
)}
|
|
70
|
-
</Flex>
|
|
41
|
+
<Title headingLevel="h3" data-test="title" id={quickStartId}>
|
|
42
|
+
<QuickStartMarkdownView content={name} />
|
|
43
|
+
</Title>
|
|
71
44
|
<div className="pfext-quick-start-tile-header__status">
|
|
72
45
|
{type && (
|
|
73
46
|
<Label className="pfext-quick-start-tile-header--margin" color={type.color}>
|
|
@@ -5,21 +5,21 @@
|
|
|
5
5
|
}
|
|
6
6
|
|
|
7
7
|
&__count {
|
|
8
|
-
font-weight: var(--pf-
|
|
8
|
+
font-weight: var(--pf-t--global--font--weight--body--bold);
|
|
9
9
|
}
|
|
10
10
|
}
|
|
11
11
|
|
|
12
|
-
.pf-
|
|
13
|
-
--pf-
|
|
14
|
-
--pf-
|
|
15
|
-
--pf-
|
|
12
|
+
.pf-v6-c-toolbar.pf-m-page-insets.pfext-quick-start-catalog-filter__flex {
|
|
13
|
+
--pf-v6-c-toolbar--PaddingBottom: var(--pf-t--global--spacer--sm);
|
|
14
|
+
--pf-v6-c-toolbar--PaddingTop: var(--pf-t--global--spacer--sm);
|
|
15
|
+
--pf-v6-c-toolbar--RowGap: 0;
|
|
16
16
|
font-size: 14px;
|
|
17
17
|
|
|
18
|
-
.pf-
|
|
19
|
-
--pf-
|
|
18
|
+
.pf-v6-c-select {
|
|
19
|
+
--pf-v6-c-select__toggle--FontSize: 14px;
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
.pf-
|
|
23
|
-
--pf-
|
|
22
|
+
.pf-v6-c-check {
|
|
23
|
+
--pf-v6-c-check__label--FontSize: 14px;
|
|
24
24
|
}
|
|
25
25
|
}
|
|
@@ -73,7 +73,7 @@ export const QuickStartCatalogFilterCount = ({ quickStartsCount }) => {
|
|
|
73
73
|
return (
|
|
74
74
|
<ToolbarItem
|
|
75
75
|
className="pfext-quick-start-catalog-filter__count"
|
|
76
|
-
align={{ default: '
|
|
76
|
+
align={{ default: 'alignEnd' }}
|
|
77
77
|
>
|
|
78
78
|
{getResource('{{count, number}} item', quickStartsCount).replace(
|
|
79
79
|
'{{count, number}}',
|
package/src/catalog/index.ts
CHANGED
|
@@ -4,6 +4,6 @@ export { default as QuickStartTile } from './QuickStartTile';
|
|
|
4
4
|
export { default as QuickStartTileDescription } from './QuickStartTileDescription';
|
|
5
5
|
export { default as QuickStartTileFooter } from './QuickStartTileFooter';
|
|
6
6
|
export { default as QuickStartTileFooterExternal } from './QuickStartTileFooterExternal';
|
|
7
|
-
export { default as QuickStartTileHeader
|
|
7
|
+
export { default as QuickStartTileHeader } from './QuickStartTileHeader';
|
|
8
8
|
export * from './Toolbar/QuickStartCatalogFilterItems';
|
|
9
9
|
export * from './Catalog';
|
|
@@ -53,7 +53,7 @@ const QuickStartConclusion: React.FC<QuickStartConclusionProps> = ({
|
|
|
53
53
|
nextQuickStart?.spec?.displayName,
|
|
54
54
|
)}{' '}
|
|
55
55
|
<ArrowRightIcon
|
|
56
|
-
style={{ marginLeft: 'var(--pf-
|
|
56
|
+
style={{ marginLeft: 'var(--pf-t--global--spacer--xs)', verticalAlign: 'middle' }}
|
|
57
57
|
/>
|
|
58
58
|
</Button>
|
|
59
59
|
))}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.pfext-quick-start-content {
|
|
2
2
|
flex: 1 1 0;
|
|
3
3
|
overflow: auto;
|
|
4
|
-
padding: var(--pf-
|
|
4
|
+
padding: var(--pf-t--global--spacer--lg);
|
|
5
5
|
font-size: 16px;
|
|
6
6
|
|
|
7
|
-
.pf-
|
|
7
|
+
.pf-v6-c-alert__description {
|
|
8
8
|
p {
|
|
9
9
|
font-size: 13px;
|
|
10
10
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
.pfext-quick-start-footer {
|
|
2
|
-
background-color: var(--pf-
|
|
2
|
+
background-color: var(--pf-t--global--background--color--primary--default); // this is an example about how we should use PF variables
|
|
3
3
|
flex: 0 0 auto;
|
|
4
|
-
padding: var(--pf-
|
|
4
|
+
padding: var(--pf-t--global--spacer--md) var(--pf-t--global--spacer--lg);
|
|
5
5
|
|
|
6
6
|
&__actionbtn {
|
|
7
|
-
margin-right: var(--pf-
|
|
7
|
+
margin-right: var(--pf-t--global--spacer--md);
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__restartbtn {
|
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
.pfext-quick-start-intro {
|
|
2
2
|
&__prereq {
|
|
3
|
-
margin-bottom: var(--pf-
|
|
4
|
-
.pf-
|
|
5
|
-
margin-top: var(--pf-
|
|
3
|
+
margin-bottom: var(--pf-t--global--spacer--md);
|
|
4
|
+
.pf-v6-c-expandable-section__content {
|
|
5
|
+
margin-top: var(--pf-t--global--spacer--sm);
|
|
6
6
|
}
|
|
7
|
-
.pf-
|
|
7
|
+
.pf-v6-c-expandable-section__toggle {
|
|
8
8
|
padding-top: 0;
|
|
9
9
|
padding-bottom: 0;
|
|
10
10
|
&-text {
|
|
11
|
-
margin-left: var(--pf-
|
|
11
|
+
margin-left: var(--pf-t--global--spacer--sm);
|
|
12
12
|
}
|
|
13
13
|
&-icon {
|
|
14
|
-
color: var(--pf-
|
|
14
|
+
color: var(--pf-v6-c-expandable-section__toggle--Color);
|
|
15
15
|
&:focus, &:hover {
|
|
16
|
-
--pf-
|
|
16
|
+
--pf-v6-c-expandable-section__toggle--Color: var(--pf-v6-c-expandable-section__toggle--focus--Color);
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
}
|
|
@@ -49,7 +49,7 @@ const QuickStartIntroduction: React.FC<QuickStartIntroductionProps> = ({
|
|
|
49
49
|
<>
|
|
50
50
|
<QuickStartMarkdownView content={introduction} />
|
|
51
51
|
{prereqList}
|
|
52
|
-
<p style={{ marginBottom: 'var(--pf-
|
|
52
|
+
<p style={{ marginBottom: 'var(--pf-t--global--spacer--md)' }}>
|
|
53
53
|
{getResource(
|
|
54
54
|
'In this quick start, you will complete {{count, number}} task',
|
|
55
55
|
tasks.length,
|
|
@@ -1,41 +1,41 @@
|
|
|
1
1
|
.pfext-quick-start-task-header {
|
|
2
|
-
margin-bottom: var(--pf-
|
|
2
|
+
margin-bottom: var(--pf-t--global--spacer--sm);
|
|
3
3
|
display: grid;
|
|
4
4
|
grid-template-columns: min-content auto;
|
|
5
|
-
font-size: var(--pf-
|
|
5
|
+
font-size: var(--pf-t--global--font--size--body--default);
|
|
6
6
|
button::before {
|
|
7
7
|
content: none;
|
|
8
8
|
}
|
|
9
9
|
|
|
10
10
|
&__title {
|
|
11
|
-
color: var(--pf-
|
|
12
|
-
margin-right: var(--pf-
|
|
11
|
+
color: var(--pf-t--global--text--color--brand--default) !important;
|
|
12
|
+
margin-right: var(--pf-t--global--spacer--md) !important;
|
|
13
13
|
}
|
|
14
14
|
|
|
15
15
|
&__subtitle {
|
|
16
|
-
font-size: var(--pf-
|
|
17
|
-
color: var(--pf-
|
|
16
|
+
font-size: var(--pf-t--global--font--size--body--sm);
|
|
17
|
+
color: var(--pf-t--global--text--color--subtle) !important;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
&__tryagain {
|
|
21
21
|
display: block;
|
|
22
|
-
font-size: var(--pf-
|
|
23
|
-
color: var(--pf-
|
|
22
|
+
font-size: var(--pf-t--global--font--size--body--default);
|
|
23
|
+
color: var(--pf-t--global--text--color--subtle) !important;
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
&__title-success {
|
|
27
|
-
color: var(--pf-
|
|
27
|
+
color: var(--pf-t--global--text--color--status--success--default) !important;
|
|
28
28
|
}
|
|
29
29
|
|
|
30
30
|
&__title-failed {
|
|
31
|
-
color: var(--pf-
|
|
31
|
+
color: var(--pf-t--global--text--color--status--danger--default) !important;
|
|
32
32
|
}
|
|
33
33
|
|
|
34
34
|
&__task-icon {
|
|
35
35
|
&-init {
|
|
36
|
-
background-color: var(--pf-
|
|
37
|
-
border-radius: var(--pf-
|
|
38
|
-
color: var(--pf-
|
|
36
|
+
background-color: var(--pf-t--global--color--brand--default);
|
|
37
|
+
border-radius: var(--pf-t--global--border--radius--large);
|
|
38
|
+
color: var(--pf-t--global--text--color--on-brand--default);
|
|
39
39
|
display: inline-flex;
|
|
40
40
|
justify-content: center;
|
|
41
41
|
height: 1.5em;
|
|
@@ -48,11 +48,11 @@
|
|
|
48
48
|
}
|
|
49
49
|
|
|
50
50
|
&-success {
|
|
51
|
-
color: var(--pf-
|
|
51
|
+
color: var(--pf-t--global--text--color--status--success--default) !important;
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
&-failed {
|
|
55
|
-
color: var(--pf-
|
|
55
|
+
color: var(--pf-t--global--text--color--status--danger--default) !important;
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Icon, Title, WizardNavItem } from '@patternfly/react-core';
|
|
2
|
+
import { Icon, Text, TextVariants, Title, WizardNavItem } from '@patternfly/react-core';
|
|
3
3
|
import CheckCircleIcon from '@patternfly/react-icons/dist/js/icons/check-circle-icon';
|
|
4
4
|
import ExclamationCircleIcon from '@patternfly/react-icons/dist/js/icons/exclamation-circle-icon';
|
|
5
5
|
import { css } from '@patternfly/react-styles';
|
|
@@ -91,22 +91,22 @@ const QuickStartTaskHeader: React.FC<QuickStartTaskHeaderProps> = ({
|
|
|
91
91
|
);
|
|
92
92
|
|
|
93
93
|
const content = (
|
|
94
|
-
<div
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
</div>
|
|
94
|
+
<div ref={titleRef}>
|
|
95
|
+
<Title headingLevel="h3">
|
|
96
|
+
<span dangerouslySetInnerHTML={{ __html: removeParagraphWrap(markdownConvert(title)) }} />
|
|
97
|
+
{isActiveTask && subtitle && (
|
|
98
|
+
<span
|
|
99
|
+
data-test-id="quick-start-task-subtitle"
|
|
100
|
+
>
|
|
101
|
+
{' '}
|
|
102
|
+
<Text component={TextVariants.small}>
|
|
103
|
+
{subtitle}
|
|
104
|
+
</Text>
|
|
105
|
+
</span>
|
|
106
|
+
)}
|
|
107
|
+
{tryAgain}
|
|
108
|
+
</Title>
|
|
109
|
+
</div>
|
|
110
110
|
);
|
|
111
111
|
|
|
112
112
|
return (
|
|
@@ -16,7 +16,7 @@ const QuickStartTaskHeaderList: React.FC<QuickStartTaskHeaderListProps> = ({
|
|
|
16
16
|
allTaskStatuses,
|
|
17
17
|
onTaskSelect,
|
|
18
18
|
}) => tasks.length > 0 ? (
|
|
19
|
-
<List className="
|
|
19
|
+
<List className="pf-v6-c-wizard__nav-list">
|
|
20
20
|
{tasks.map((task, index) => (
|
|
21
21
|
<TaskHeader
|
|
22
22
|
key={task.title}
|