-
Notifications
You must be signed in to change notification settings - Fork 14
/
WizardUsagePage.tsx
106 lines (103 loc) · 3.2 KB
/
WizardUsagePage.tsx
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
import {
DxcParagraph,
DxcBulletedList,
DxcFlex,
} from "@dxc-technology/halstack-react";
import QuickNavContainer from "@/common/QuickNavContainer";
import QuickNavContainerLayout from "@/common/QuickNavContainerLayout";
import DocFooter from "@/common/DocFooter";
import Example from "@/common/example/Example";
import variants from "./examples/variants";
import validation from "./examples/validation";
import content from "./examples/content";
import description from "./examples/description";
const sections = [
{
title: "Usage",
content: (
<DxcBulletedList>
<DxcBulletedList.Item>
The horizontal/vertical line should not extend to the left of the
first circle or to the right of the last circle.
</DxcBulletedList.Item>
<DxcBulletedList.Item>
Do not overwhelmed the component with too many steps, it won't be a
good idea for the user workflow neither for the display of the
information.
</DxcBulletedList.Item>
</DxcBulletedList>
),
},
{
title: "Variants",
content: (
<>
<DxcParagraph>
The wizard component has two variants: <strong>horizontal</strong> and{" "}
<strong>vertical</strong>.
</DxcParagraph>
<Example example={variants} />
</>
),
},
{
title: "Validation",
content: (
<>
<DxcParagraph>
There could be some scenarios in which the content of a step wants to
be validated while the user is filling the fields with information or
doing relevant actions in every step of the wizard. For that case, a
validation mark can be represented in every step once the user
navigate to the next step in the linear progression. This will
represent the status of the validation respecting the content, with a
success mark or an error mark visible on the step mark.
</DxcParagraph>
<Example example={validation} />
</>
),
},
{
title: "Content",
content: (
<>
<DxcParagraph>
Different variations of the content can be performed in the step:
</DxcParagraph>
<DxcBulletedList>
<DxcBulletedList.Item>Only numbers</DxcBulletedList.Item>
<DxcBulletedList.Item>Only icons</DxcBulletedList.Item>
<DxcBulletedList.Item>
Numbers/icons with step label
</DxcBulletedList.Item>
</DxcBulletedList>
<Example example={content} />
</>
),
},
{
title: "Description",
content: (
<>
<DxcParagraph>
Description can be added to the wizard component step:
</DxcParagraph>
<Example example={description} />
</>
),
},
];
const WizardUsagePage = () => {
return (
<DxcFlex direction="column" gap="4rem">
<QuickNavContainerLayout>
<QuickNavContainer
sections={sections}
startHeadingLevel={2}
></QuickNavContainer>
</QuickNavContainerLayout>
<DocFooter githubLink="https://github.com/dxc-technology/halstack-react/blob/master/website/screens/components/wizard/usage/WizardUsagePage.tsx" />
</DxcFlex>
);
};
export default WizardUsagePage;