@@ -7,17 +7,30 @@ const ClickableTemplate = args => {
77 < div >
88 < h5 > Steps indicator are not clickable</ h5 >
99 < sgds-stepper activeStep ="2 ">
10- < sgds-step stepHeader ="Personal Details "> </ sgds-step >
11- < sgds-step stepHeader ="Address "> </ sgds-step >
12- < sgds-step stepHeader ="Review "> </ sgds-step >
10+ < sgds-step stepHeader ="Personal Details ">
11+ < div > Description</ div >
12+ </ sgds-step >
13+ < sgds-step stepHeader ="Address ">
14+ < div > Description</ div >
15+ </ sgds-step >
16+ < sgds-step stepHeader ="Review ">
17+ < div > Description</ div >
18+ </ sgds-step >
1319 </ sgds-stepper >
1420 </ div >
21+ < br />
1522 < div >
1623 < h5 > Steps indicator are clickable</ h5 >
1724 < sgds-stepper activeStep ="2 " clickable >
18- < sgds-step stepHeader ="Personal Details "> </ sgds-step >
19- < sgds-step stepHeader ="Address "> </ sgds-step >
20- < sgds-step stepHeader ="Review "> </ sgds-step >
25+ < sgds-step stepHeader ="Personal Details ">
26+ < div > Description</ div >
27+ </ sgds-step >
28+ < sgds-step stepHeader ="Address ">
29+ < div > Description</ div >
30+ </ sgds-step >
31+ < sgds-step stepHeader ="Review ">
32+ < div > Description</ div >
33+ </ sgds-step >
2134 </ sgds-stepper >
2235 </ div >
2336 </ div >
@@ -26,17 +39,29 @@ const ClickableTemplate = args => {
2639
2740const StepComponentTemplate = ( ) => html `
2841 < sgds-stepper activeStep ="0 ">
29- < sgds-step stepHeader ="Personal Details "> </ sgds-step >
30- < sgds-step stepHeader ="Address "> </ sgds-step >
31- < sgds-step stepHeader ="Review "> </ sgds-step >
42+ < sgds-step stepHeader ="Personal Details ">
43+ < div > Description</ div >
44+ </ sgds-step >
45+ < sgds-step stepHeader ="Address ">
46+ < div > Description</ div >
47+ </ sgds-step >
48+ < sgds-step stepHeader ="Review ">
49+ < div > Description</ div >
50+ </ sgds-step >
3251 </ sgds-stepper >
3352` ;
3453
3554const StepComponentClickableTemplate = ( ) => html `
3655 < sgds-stepper activeStep ="1 " clickable >
37- < sgds-step stepHeader ="Personal Details "> </ sgds-step >
38- < sgds-step stepHeader ="Address "> </ sgds-step >
39- < sgds-step stepHeader ="Review "> </ sgds-step >
56+ < sgds-step stepHeader ="Personal Details ">
57+ < div > Description</ div >
58+ </ sgds-step >
59+ < sgds-step stepHeader ="Address ">
60+ < div > Description</ div >
61+ </ sgds-step >
62+ < sgds-step stepHeader ="Review ">
63+ < div > Description</ div >
64+ </ sgds-step >
4065 </ sgds-stepper >
4166` ;
4267
@@ -72,15 +97,45 @@ export const StepComponentClickable = {
7297 tags : [ "!dev" ]
7398} ;
7499
100+ const StepStatesTemplate = ( ) => html `
101+ < sgds-stepper activeStep ="1 " clickable >
102+ < sgds-step stepHeader ="Personal Details " completed >
103+ < div > Completed step</ div >
104+ </ sgds-step >
105+ < sgds-step stepHeader ="Address " active >
106+ < div > Active step</ div >
107+ </ sgds-step >
108+ < sgds-step stepHeader ="Review " disabled >
109+ < div > Disabled step</ div >
110+ </ sgds-step >
111+ </ sgds-stepper >
112+ ` ;
113+
114+ export const StepStates = {
115+ render : StepStatesTemplate . bind ( { } ) ,
116+ name : "Step States" ,
117+ args : { } ,
118+ parameters : { } ,
119+ tags : [ "!dev" ]
120+ } ;
121+
75122const SlottedClickableTemplate = ( ) => html `
76123 < sgds-stepper activeStep ="1 " clickable >
77124 < sgds-step stepHeader ="Personal Details ">
78- < a href ="# " data-clickable > Learn more</ a >
125+ < div >
126+ Description
127+ < sgds-link size ="sm ">
128+ < a href ="# " data-clickable > Learn more</ a >
129+ </ sgds-link >
130+ </ div >
79131 </ sgds-step >
80132 < sgds-step stepHeader ="Address ">
81- < button data-clickable @click =${ ( ) => alert ( "Button clicked" ) } > Action</ button >
133+ < div > Please fill the form with your current address.</ div >
134+ < sgds-button size ="sm " data-clickable @click =${ ( ) => alert ( "Button clicked" ) } > Action</ sgds-button >
135+ </ sgds-step >
136+ < sgds-step stepHeader ="Review ">
137+ < div > Description</ div >
82138 </ sgds-step >
83- < sgds-step stepHeader ="Review "> </ sgds-step >
84139 </ sgds-stepper >
85140` ;
86141
0 commit comments