@@ -31,13 +31,13 @@ export default {
31
31
iconName : {
32
32
name : "Icon" ,
33
33
type : { name : "string" , required : true } ,
34
- defaultValue : "Info " ,
34
+ defaultValue : "InfoCircle " ,
35
35
table : {
36
36
type : { summary : "string" } ,
37
37
category : "Component" ,
38
38
defaultValue : { summary : "Info" } ,
39
39
} ,
40
- options : [ "Info " , "Help " ] ,
40
+ options : [ "InfoCircle " , "HelpCircle " ] ,
41
41
control : "select" ,
42
42
} ,
43
43
iconSet : { table : { disable : true } } ,
@@ -76,13 +76,43 @@ export default {
76
76
] ,
77
77
control : "select" ,
78
78
} ,
79
- link : { table : { disable : true } } ,
79
+ link : {
80
+ name : "Display link" ,
81
+ type : { name : "boolean" , required : false } ,
82
+ defaultValue : false ,
83
+ table : {
84
+ summary : "boolean" ,
85
+ category : "Component" ,
86
+ defaultValue : { summary : false }
87
+ }
88
+ } ,
89
+ linkText : {
90
+ name : "Link text" ,
91
+ type : { name : "string" , required : true } ,
92
+ table : {
93
+ type : { summary : "string" } ,
94
+ category : "Content" ,
95
+ } ,
96
+ if : { arg : "link" , truthy : true } ,
97
+ } ,
98
+ linkTarget : {
99
+ name : "Link target" ,
100
+ type : { name : "string" , required : true } ,
101
+ table : {
102
+ type : { summary : "string" } ,
103
+ category : "Content" ,
104
+ } ,
105
+ if : { arg : "link" , truthy : true } ,
106
+ } ,
80
107
} ,
81
108
args : {
82
109
rootClass : "spectrum-ContextualHelp" ,
83
- iconName : "Info " ,
110
+ iconName : "InfoCircle " ,
84
111
iconSet : "workflow" ,
85
112
popoverPlacement : "bottom-start" ,
113
+ link : false ,
114
+ linkText : "Link text" ,
115
+ linkTarget : "#" ,
86
116
title : "Permission required" ,
87
117
body : "Your admin must grant you permission before you can create a new document. Please contact your admin for more information." ,
88
118
customStyles : { "inline-size" : "275px" } ,
@@ -180,7 +210,7 @@ TopPopover.storyName = "Default - top popover";
180
210
export const HelpDefault = Template . bind ( { } ) ;
181
211
HelpDefault . tags = [ "!dev" ] ;
182
212
HelpDefault . args = {
183
- iconName : "Help " ,
213
+ iconName : "HelpCircle " ,
184
214
title : "Need help?" ,
185
215
} ;
186
216
HelpDefault . parameters = {
@@ -195,7 +225,7 @@ HelpWithLink.args = {
195
225
text : "Learn about permissions" ,
196
226
url : "#" ,
197
227
} ,
198
- iconName : "Help " ,
228
+ iconName : "HelpCircle " ,
199
229
title : "Need help?" ,
200
230
body : "Reach out to your admin for help regarding the document you are trying to create." ,
201
231
} ;
@@ -214,7 +244,7 @@ HelpTopPopover.args = {
214
244
} ,
215
245
title : "Need help?" ,
216
246
body : "Reach out to your admin for help regarding the document you are trying to create." ,
217
- iconName : "Help " ,
247
+ iconName : "HelpCircle " ,
218
248
} ;
219
249
HelpTopPopover . parameters = {
220
250
chromatic : { disableSnapshot : true } ,
@@ -236,7 +266,7 @@ HelpMaxWidthPopover.args = {
236
266
} ,
237
267
title : "Need help?" ,
238
268
body : "Reach out to your admin for help regarding the document you are trying to create." ,
239
- iconName : "Help " ,
269
+ iconName : "HelpCircle " ,
240
270
} ;
241
271
HelpMaxWidthPopover . parameters = {
242
272
chromatic : { disableSnapshot : true } ,
0 commit comments