@iress-oss/ids-mcp-server 6.0.0-alpha.1-canary-20251204032753-fe18cab → 6.0.0-alpha.1-canary-20251204040305-3639454
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/generated/docs/components_components-alert-docs.md +1054 -0
- package/generated/docs/components_components-autocomplete-docs.md +3304 -0
- package/generated/docs/components_components-autocomplete-recipes-docs.md +98 -0
- package/generated/docs/components_components-badge-docs.md +312 -0
- package/generated/docs/components_components-button-docs.md +2339 -0
- package/generated/docs/components_components-buttongroup-docs.md +980 -0
- package/generated/docs/components_components-card-docs.md +1970 -0
- package/generated/docs/components_components-checkbox-docs.md +1083 -0
- package/generated/docs/components_components-checkboxgroup-docs.md +1597 -0
- package/generated/docs/components_components-checkboxgroup-recipes-docs.md +209 -0
- package/generated/docs/components_components-col-docs.md +755 -0
- package/generated/docs/components_components-container-docs.md +172 -0
- package/generated/docs/components_components-divider-docs.md +235 -0
- package/generated/docs/components_components-expander-docs.md +428 -0
- package/generated/docs/components_components-field-docs.md +3345 -0
- package/generated/docs/components_components-filter-docs.md +4091 -0
- package/generated/docs/components_components-hide-docs.md +450 -0
- package/generated/docs/components_components-icon-docs.md +1017 -0
- package/generated/docs/components_components-image-docs.md +168 -0
- package/generated/docs/components_components-inline-docs.md +1962 -0
- package/generated/docs/components_components-input-docs.md +1388 -0
- package/generated/docs/components_components-input-recipes-docs.md +349 -0
- package/generated/docs/components_components-inputcurrency-docs.md +636 -0
- package/generated/docs/components_components-inputcurrency-recipes-docs.md +208 -0
- package/generated/docs/components_components-introduction-docs.md +448 -0
- package/generated/docs/components_components-label-docs.md +229 -0
- package/generated/docs/components_components-link-docs.md +454 -0
- package/generated/docs/components_components-menu-docs.md +2219 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +1455 -0
- package/generated/docs/components_components-modal-docs.md +2002 -0
- package/generated/docs/components_components-panel-docs.md +342 -0
- package/generated/docs/components_components-placeholder-docs.md +98 -0
- package/generated/docs/components_components-popover-docs.md +1631 -0
- package/generated/docs/components_components-popover-recipes-docs.md +537 -0
- package/generated/docs/components_components-progress-docs.md +128 -0
- package/generated/docs/components_components-provider-docs.md +123 -0
- package/generated/docs/components_components-radio-docs.md +499 -0
- package/generated/docs/components_components-radiogroup-docs.md +1573 -0
- package/generated/docs/components_components-readonly-docs.md +277 -0
- package/generated/docs/components_components-richselect-docs.md +6101 -0
- package/generated/docs/components_components-row-docs.md +2172 -0
- package/generated/docs/components_components-select-docs.md +1110 -0
- package/generated/docs/components_components-skeleton-docs.md +467 -0
- package/generated/docs/components_components-skeleton-recipes-docs.md +110 -0
- package/generated/docs/components_components-skiplink-docs.md +220 -0
- package/generated/docs/components_components-slideout-docs.md +1910 -0
- package/generated/docs/components_components-slider-docs.md +1284 -0
- package/generated/docs/components_components-spinner-docs.md +90 -0
- package/generated/docs/components_components-stack-docs.md +730 -0
- package/generated/docs/components_components-table-docs.md +4038 -0
- package/generated/docs/components_components-tabset-docs.md +955 -0
- package/generated/docs/components_components-tabset-tab-docs.md +342 -0
- package/generated/docs/components_components-tag-docs.md +410 -0
- package/generated/docs/components_components-text-docs.md +593 -0
- package/generated/docs/components_components-toaster-docs.md +451 -0
- package/generated/docs/components_components-toggle-docs.md +513 -0
- package/generated/docs/components_components-tooltip-docs.md +564 -0
- package/generated/docs/components_components-validationmessage-docs.md +608 -0
- package/generated/docs/components_contact-us-docs.md +9 -0
- package/generated/docs/components_foundations-accessibility-docs.md +33 -0
- package/generated/docs/components_foundations-consistency-docs.md +44 -0
- package/generated/docs/components_foundations-content-docs.md +18 -0
- package/generated/docs/components_foundations-introduction-docs.md +17 -0
- package/generated/docs/components_foundations-principles-docs.md +60 -0
- package/generated/docs/components_foundations-responsive-layout-docs.md +2692 -0
- package/generated/docs/components_foundations-user-experience-docs.md +53 -0
- package/generated/docs/components_foundations-visual-design-docs.md +39 -0
- package/generated/docs/components_foundations-z-index-stacking-docs.md +288 -0
- package/generated/docs/components_frequently-asked-questions-docs.md +44 -0
- package/generated/docs/components_get-started-develop-docs.md +47 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +85 -0
- package/generated/docs/components_patterns-form-docs.md +2469 -0
- package/generated/docs/components_patterns-form-recipes-docs.md +1597 -0
- package/generated/docs/components_patterns-introduction-docs.md +31 -0
- package/generated/docs/components_patterns-loading-docs.md +1908 -0
- package/generated/docs/components_patterns-shadow-docs.md +195 -0
- package/generated/docs/components_resources-code-katas-docs.md +25 -0
- package/generated/docs/components_resources-introduction-docs.md +28 -0
- package/generated/docs/components_resources-mcp-server-docs.md +23 -0
- package/generated/docs/components_resources-migration-guides-from-v4-to-v5-docs.md +142 -0
- package/generated/docs/components_styling-props-colour-docs.md +91 -0
- package/generated/docs/components_styling-props-elevation-docs.md +69 -0
- package/generated/docs/components_styling-props-radius-docs.md +63 -0
- package/generated/docs/components_styling-props-reference-docs.md +160 -0
- package/generated/docs/components_styling-props-screen-readers-docs.md +66 -0
- package/generated/docs/components_styling-props-sizing-docs.md +217 -0
- package/generated/docs/components_styling-props-spacing-docs.md +545 -0
- package/generated/docs/components_styling-props-typography-docs.md +66 -0
- package/generated/docs/components_versions-docs.md +14 -0
- package/generated/docs/guidelines.md +3083 -0
- package/generated/docs/introduction-docs.md +37 -0
- package/generated/docs/tokens_colour-docs.md +479 -0
- package/generated/docs/tokens_elevation-docs.md +39 -0
- package/generated/docs/tokens_introduction-docs.md +150 -0
- package/generated/docs/tokens_radius-docs.md +67 -0
- package/generated/docs/tokens_spacing-docs.md +87 -0
- package/generated/docs/tokens_typography-docs.md +305 -0
- package/package.json +2 -2
|
@@ -0,0 +1,608 @@
|
|
|
1
|
+
Validation message
|
|
2
|
+
==================
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
A validation message is used to inform the user of the status of a form input. If there are multiple messages, they can be combined using the `IressValidationSummary` component.
|
|
8
|
+
|
|
9
|
+
* * *
|
|
10
|
+
|
|
11
|
+
Updated
|
|
12
|
+
|
|
13
|
+
**Recently updated**
|
|
14
|
+
|
|
15
|
+
This component has been recently updated with new props. The props have been marked as beta. Please tell us if there are any issues.
|
|
16
|
+
|
|
17
|
+
[](./iframe.html?id=components-validationmessage--default)
|
|
18
|
+
|
|
19
|
+
Error:
|
|
20
|
+
|
|
21
|
+
Validation message
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<IressValidationMessage\>
|
|
26
|
+
Validation message
|
|
27
|
+
</IressValidationMessage\>
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Props
|
|
32
|
+
-----
|
|
33
|
+
|
|
34
|
+
| Name | Description | Default | Control |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| children |
|
|
37
|
+
Validation content (what went wrong, what went right).
|
|
38
|
+
|
|
39
|
+
ReactNode
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
| \- |
|
|
44
|
+
|
|
45
|
+
"Validation message"
|
|
46
|
+
|
|
47
|
+
|
|
|
48
|
+
| linkToTarget |
|
|
49
|
+
|
|
50
|
+
ID of element the message is describing. If nothing is supplied a link will not render.
|
|
51
|
+
|
|
52
|
+
TLinkToTarget
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
| \- | Set object |
|
|
57
|
+
| onClick |
|
|
58
|
+
|
|
59
|
+
Emitted when the message is clicked.
|
|
60
|
+
|
|
61
|
+
MouseEventHandler
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
| \- | Set object |
|
|
66
|
+
| prefix |
|
|
67
|
+
|
|
68
|
+
Prefix to the validation message. Will be `status` prop if nothing is provided.
|
|
69
|
+
|
|
70
|
+
ReactNode
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
| \- | Set object |
|
|
75
|
+
| status |
|
|
76
|
+
|
|
77
|
+
Whether message is danger, warning, success or info. **Note**: danger is translated to Error when used as the prefix.
|
|
78
|
+
|
|
79
|
+
SystemValidationStatuses
|
|
80
|
+
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
|
|
|
84
|
+
|
|
85
|
+
'danger'
|
|
86
|
+
|
|
87
|
+
| Set object |
|
|
88
|
+
| visiblePrefix |
|
|
89
|
+
|
|
90
|
+
If set to true, the prefix will be visually displayed (default is only available to screen readers)
|
|
91
|
+
|
|
92
|
+
boolean
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
|
|
|
97
|
+
|
|
98
|
+
false
|
|
99
|
+
|
|
100
|
+
| Set boolean |
|
|
101
|
+
|
|
102
|
+
Examples
|
|
103
|
+
--------
|
|
104
|
+
|
|
105
|
+
### Status
|
|
106
|
+
|
|
107
|
+
Validation status is controlled by the status prop. It defaults to `error`.
|
|
108
|
+
|
|
109
|
+
[](./iframe.html?id=components-validationmessage--status)
|
|
110
|
+
|
|
111
|
+
Error:
|
|
112
|
+
|
|
113
|
+
Something is wrong.
|
|
114
|
+
|
|
115
|
+
Info:
|
|
116
|
+
|
|
117
|
+
Something you should know.
|
|
118
|
+
|
|
119
|
+
Success:
|
|
120
|
+
|
|
121
|
+
Something went right.
|
|
122
|
+
|
|
123
|
+
Warning:
|
|
124
|
+
|
|
125
|
+
Something could go wrong.
|
|
126
|
+
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
<IressStack\>
|
|
130
|
+
<IressValidationMessage status\="danger"\>
|
|
131
|
+
Something is wrong. </IressValidationMessage\>
|
|
132
|
+
<IressValidationMessage status\="info"\>
|
|
133
|
+
Something you should know. </IressValidationMessage\>
|
|
134
|
+
<IressValidationMessage status\="success"\>
|
|
135
|
+
Something went right. </IressValidationMessage\>
|
|
136
|
+
<IressValidationMessage status\="warning"\>
|
|
137
|
+
Something could go wrong. </IressValidationMessage\>
|
|
138
|
+
</IressStack\>
|
|
139
|
+
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
#### Props
|
|
143
|
+
|
|
144
|
+
| Name | Description | Default | Control |
|
|
145
|
+
| --- | --- | --- | --- |
|
|
146
|
+
| children |
|
|
147
|
+
Validation content (what went wrong, what went right).
|
|
148
|
+
|
|
149
|
+
ReactNode
|
|
150
|
+
|
|
151
|
+
|
|
152
|
+
|
|
153
|
+
| \- | \- |
|
|
154
|
+
| linkToTarget |
|
|
155
|
+
|
|
156
|
+
ID of element the message is describing. If nothing is supplied a link will not render.
|
|
157
|
+
|
|
158
|
+
TLinkToTarget
|
|
159
|
+
|
|
160
|
+
|
|
161
|
+
|
|
162
|
+
| \- | Set object |
|
|
163
|
+
| onClick |
|
|
164
|
+
|
|
165
|
+
Emitted when the message is clicked.
|
|
166
|
+
|
|
167
|
+
MouseEventHandler
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
|
|
171
|
+
| \- | Set object |
|
|
172
|
+
| prefix |
|
|
173
|
+
|
|
174
|
+
Prefix to the validation message. Will be `status` prop if nothing is provided.
|
|
175
|
+
|
|
176
|
+
ReactNode
|
|
177
|
+
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
| \- | Set object |
|
|
181
|
+
| status |
|
|
182
|
+
|
|
183
|
+
Whether message is danger, warning, success or info. **Note**: danger is translated to Error when used as the prefix.
|
|
184
|
+
|
|
185
|
+
SystemValidationStatuses
|
|
186
|
+
|
|
187
|
+
|
|
188
|
+
|
|
189
|
+
|
|
|
190
|
+
|
|
191
|
+
'danger'
|
|
192
|
+
|
|
193
|
+
| \- |
|
|
194
|
+
| visiblePrefix |
|
|
195
|
+
|
|
196
|
+
If set to true, the prefix will be visually displayed (default is only available to screen readers)
|
|
197
|
+
|
|
198
|
+
boolean
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
|
203
|
+
|
|
204
|
+
false
|
|
205
|
+
|
|
206
|
+
| Set boolean |
|
|
207
|
+
| Show Storybook only itemsStorybook only | Show Storybook only items |
|
|
208
|
+
|
|
209
|
+
### Prefix
|
|
210
|
+
|
|
211
|
+
You can add a prefix to the message. If not provided, it uses the `status` prop to determine the prefix.
|
|
212
|
+
|
|
213
|
+
It is hidden by default, but can be shown by setting the `visiblePrefix` prop to `true`.
|
|
214
|
+
|
|
215
|
+
[](./iframe.html?id=components-validationmessage--prefix)
|
|
216
|
+
|
|
217
|
+
Prefix:
|
|
218
|
+
|
|
219
|
+
Something is wrong.
|
|
220
|
+
|
|
221
|
+
Prefix:
|
|
222
|
+
|
|
223
|
+
Something you should know.
|
|
224
|
+
|
|
225
|
+
Prefix:
|
|
226
|
+
|
|
227
|
+
Something went right.
|
|
228
|
+
|
|
229
|
+
Prefix:
|
|
230
|
+
|
|
231
|
+
Something could go wrong.
|
|
232
|
+
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
<IressStack\>
|
|
236
|
+
<IressValidationMessage
|
|
237
|
+
prefix\="Prefix: "
|
|
238
|
+
status\="danger"
|
|
239
|
+
visiblePrefix
|
|
240
|
+
\>
|
|
241
|
+
Something is wrong. </IressValidationMessage\>
|
|
242
|
+
<IressValidationMessage
|
|
243
|
+
prefix\="Prefix: "
|
|
244
|
+
status\="info"
|
|
245
|
+
visiblePrefix
|
|
246
|
+
\>
|
|
247
|
+
Something you should know. </IressValidationMessage\>
|
|
248
|
+
<IressValidationMessage
|
|
249
|
+
prefix\="Prefix: "
|
|
250
|
+
status\="success"
|
|
251
|
+
visiblePrefix
|
|
252
|
+
\>
|
|
253
|
+
Something went right. </IressValidationMessage\>
|
|
254
|
+
<IressValidationMessage
|
|
255
|
+
prefix\="Prefix: "
|
|
256
|
+
status\="warning"
|
|
257
|
+
visiblePrefix
|
|
258
|
+
\>
|
|
259
|
+
Something could go wrong. </IressValidationMessage\>
|
|
260
|
+
</IressStack\>
|
|
261
|
+
|
|
262
|
+
```
|
|
263
|
+
|
|
264
|
+
#### Props
|
|
265
|
+
|
|
266
|
+
| Name | Description | Default | Control |
|
|
267
|
+
| --- | --- | --- | --- |
|
|
268
|
+
| children |
|
|
269
|
+
Validation content (what went wrong, what went right).
|
|
270
|
+
|
|
271
|
+
ReactNode
|
|
272
|
+
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
| \- | \- |
|
|
276
|
+
| linkToTarget |
|
|
277
|
+
|
|
278
|
+
ID of element the message is describing. If nothing is supplied a link will not render.
|
|
279
|
+
|
|
280
|
+
TLinkToTarget
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
|
|
284
|
+
| \- | Set object |
|
|
285
|
+
| onClick |
|
|
286
|
+
|
|
287
|
+
Emitted when the message is clicked.
|
|
288
|
+
|
|
289
|
+
MouseEventHandler
|
|
290
|
+
|
|
291
|
+
|
|
292
|
+
|
|
293
|
+
| \- | Set object |
|
|
294
|
+
| prefix |
|
|
295
|
+
|
|
296
|
+
Prefix to the validation message. Will be `status` prop if nothing is provided.
|
|
297
|
+
|
|
298
|
+
ReactNode
|
|
299
|
+
|
|
300
|
+
|
|
301
|
+
|
|
302
|
+
| \- |
|
|
303
|
+
|
|
304
|
+
"Prefix: "
|
|
305
|
+
|
|
306
|
+
|
|
|
307
|
+
| status |
|
|
308
|
+
|
|
309
|
+
Whether message is danger, warning, success or info. **Note**: danger is translated to Error when used as the prefix.
|
|
310
|
+
|
|
311
|
+
SystemValidationStatuses
|
|
312
|
+
|
|
313
|
+
|
|
314
|
+
|
|
315
|
+
|
|
|
316
|
+
|
|
317
|
+
'danger'
|
|
318
|
+
|
|
319
|
+
| \- |
|
|
320
|
+
| visiblePrefix |
|
|
321
|
+
|
|
322
|
+
If set to true, the prefix will be visually displayed (default is only available to screen readers)
|
|
323
|
+
|
|
324
|
+
boolean
|
|
325
|
+
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
|
|
|
329
|
+
|
|
330
|
+
false
|
|
331
|
+
|
|
332
|
+
| FalseTrue |
|
|
333
|
+
| Show Storybook only itemsStorybook only | Show Storybook only items |
|
|
334
|
+
|
|
335
|
+
### Link to target
|
|
336
|
+
|
|
337
|
+
You can use the `linkToTarget` prop to link the message to a specific target in the DOM. This is useful to take the user to a specific part of the form when they click on the message.
|
|
338
|
+
|
|
339
|
+
[](./iframe.html?id=components-validationmessage--link-to-target)
|
|
340
|
+
|
|
341
|
+
[
|
|
342
|
+
|
|
343
|
+
Error:
|
|
344
|
+
|
|
345
|
+
Something is wrong.
|
|
346
|
+
|
|
347
|
+
](#input)[
|
|
348
|
+
|
|
349
|
+
Info:
|
|
350
|
+
|
|
351
|
+
Something you should know.
|
|
352
|
+
|
|
353
|
+
](#input)[
|
|
354
|
+
|
|
355
|
+
Success:
|
|
356
|
+
|
|
357
|
+
Something went right.
|
|
358
|
+
|
|
359
|
+
](#input)[
|
|
360
|
+
|
|
361
|
+
Warning:
|
|
362
|
+
|
|
363
|
+
Something could go wrong.
|
|
364
|
+
|
|
365
|
+
](#input)
|
|
366
|
+
|
|
367
|
+
* * *
|
|
368
|
+
|
|
369
|
+
```
|
|
370
|
+
|
|
371
|
+
<IressStack gap\="md"\>
|
|
372
|
+
<IressStack\>
|
|
373
|
+
<IressValidationMessage
|
|
374
|
+
linkToTarget\="input"
|
|
375
|
+
status\="danger"
|
|
376
|
+
\>
|
|
377
|
+
Something is wrong. </IressValidationMessage\>
|
|
378
|
+
<IressValidationMessage
|
|
379
|
+
linkToTarget\="input"
|
|
380
|
+
status\="info"
|
|
381
|
+
\>
|
|
382
|
+
Something you should know. </IressValidationMessage\>
|
|
383
|
+
<IressValidationMessage
|
|
384
|
+
linkToTarget\="input"
|
|
385
|
+
status\="success"
|
|
386
|
+
\>
|
|
387
|
+
Something went right. </IressValidationMessage\>
|
|
388
|
+
<IressValidationMessage
|
|
389
|
+
linkToTarget\="input"
|
|
390
|
+
status\="warning"
|
|
391
|
+
\>
|
|
392
|
+
Something could go wrong. </IressValidationMessage\>
|
|
393
|
+
</IressStack\>
|
|
394
|
+
<IressDivider />
|
|
395
|
+
<IressInput id\="input" />
|
|
396
|
+
</IressStack\>
|
|
397
|
+
|
|
398
|
+
```
|
|
399
|
+
|
|
400
|
+
#### Props
|
|
401
|
+
|
|
402
|
+
| Name | Description | Default | Control |
|
|
403
|
+
| --- | --- | --- | --- |
|
|
404
|
+
| children |
|
|
405
|
+
Validation content (what went wrong, what went right).
|
|
406
|
+
|
|
407
|
+
ReactNode
|
|
408
|
+
|
|
409
|
+
|
|
410
|
+
|
|
411
|
+
| \- | \- |
|
|
412
|
+
| linkToTarget |
|
|
413
|
+
|
|
414
|
+
ID of element the message is describing. If nothing is supplied a link will not render.
|
|
415
|
+
|
|
416
|
+
TLinkToTarget
|
|
417
|
+
|
|
418
|
+
|
|
419
|
+
|
|
420
|
+
| \- |
|
|
421
|
+
|
|
422
|
+
"input"
|
|
423
|
+
|
|
424
|
+
|
|
|
425
|
+
| onClick |
|
|
426
|
+
|
|
427
|
+
Emitted when the message is clicked.
|
|
428
|
+
|
|
429
|
+
MouseEventHandler
|
|
430
|
+
|
|
431
|
+
|
|
432
|
+
|
|
433
|
+
| \- | Set object |
|
|
434
|
+
| prefix |
|
|
435
|
+
|
|
436
|
+
Prefix to the validation message. Will be `status` prop if nothing is provided.
|
|
437
|
+
|
|
438
|
+
ReactNode
|
|
439
|
+
|
|
440
|
+
|
|
441
|
+
|
|
442
|
+
| \- | Set object |
|
|
443
|
+
| status |
|
|
444
|
+
|
|
445
|
+
Whether message is danger, warning, success or info. **Note**: danger is translated to Error when used as the prefix.
|
|
446
|
+
|
|
447
|
+
SystemValidationStatuses
|
|
448
|
+
|
|
449
|
+
|
|
450
|
+
|
|
451
|
+
|
|
|
452
|
+
|
|
453
|
+
'danger'
|
|
454
|
+
|
|
455
|
+
| \- |
|
|
456
|
+
| visiblePrefix |
|
|
457
|
+
|
|
458
|
+
If set to true, the prefix will be visually displayed (default is only available to screen readers)
|
|
459
|
+
|
|
460
|
+
boolean
|
|
461
|
+
|
|
462
|
+
|
|
463
|
+
|
|
464
|
+
|
|
|
465
|
+
|
|
466
|
+
false
|
|
467
|
+
|
|
468
|
+
| Set boolean |
|
|
469
|
+
| Show Storybook only itemsStorybook only | Show Storybook only items |
|
|
470
|
+
|
|
471
|
+
`IressValidationSummary`
|
|
472
|
+
------------------------
|
|
473
|
+
|
|
474
|
+
Messages can be passed programmatically as a `ValidationMessageObj[]` using the `messages` prop of the `IressValidationSummary` component.
|
|
475
|
+
|
|
476
|
+
[](./iframe.html?id=components-validationmessage-validationsummary--validation-summary)
|
|
477
|
+
|
|
478
|
+
* Info:
|
|
479
|
+
|
|
480
|
+
Something you should know.
|
|
481
|
+
|
|
482
|
+
* Error:
|
|
483
|
+
|
|
484
|
+
Something is wrong.
|
|
485
|
+
|
|
486
|
+
* Warning:
|
|
487
|
+
|
|
488
|
+
Something could go wrong.
|
|
489
|
+
|
|
490
|
+
* Success:
|
|
491
|
+
|
|
492
|
+
Something went right.
|
|
493
|
+
|
|
494
|
+
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
<IressValidationSummary
|
|
498
|
+
messages\={\[
|
|
499
|
+
{
|
|
500
|
+
message: 'Something you should know.',
|
|
501
|
+
status: 'info'
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
message: 'Something is wrong.',
|
|
505
|
+
status: 'danger'
|
|
506
|
+
},
|
|
507
|
+
{
|
|
508
|
+
message: 'Something could go wrong.',
|
|
509
|
+
status: 'warning'
|
|
510
|
+
},
|
|
511
|
+
{
|
|
512
|
+
message: 'Something went right.',
|
|
513
|
+
status: 'success'
|
|
514
|
+
}
|
|
515
|
+
\]}
|
|
516
|
+
/>
|
|
517
|
+
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
#### Props
|
|
521
|
+
|
|
522
|
+
| Name | Description | Default | Control |
|
|
523
|
+
| --- | --- | --- | --- |
|
|
524
|
+
| itemStyle |
|
|
525
|
+
Add additional styles to each item in the list.
|
|
526
|
+
|
|
527
|
+
IressCustomiseSlot
|
|
528
|
+
|
|
529
|
+
|
|
530
|
+
|
|
531
|
+
| \- | Set object |
|
|
532
|
+
| linkToTarget |
|
|
533
|
+
|
|
534
|
+
Renders validation messages as links pointing at the field it relates to, specified as a string Only works when used with the `messages` prop.
|
|
535
|
+
|
|
536
|
+
string
|
|
537
|
+
|
|
538
|
+
|
|
539
|
+
|
|
540
|
+
| \- | Set string |
|
|
541
|
+
| messages |
|
|
542
|
+
|
|
543
|
+
ValidationMessage Array containing the `id` of the field and the validation message
|
|
544
|
+
|
|
545
|
+
ValidationMessageObj\[\]
|
|
546
|
+
|
|
547
|
+
| \[\] |
|
|
548
|
+
|
|
549
|
+
RAW
|
|
550
|
+
|
|
551
|
+
* messages :
|
|
552
|
+
|
|
553
|
+
\[
|
|
554
|
+
|
|
555
|
+
* 0 :
|
|
556
|
+
|
|
557
|
+
{...} 2 keys
|
|
558
|
+
|
|
559
|
+
* 1 :
|
|
560
|
+
|
|
561
|
+
{...} 2 keys
|
|
562
|
+
|
|
563
|
+
* 2 :
|
|
564
|
+
|
|
565
|
+
{...} 2 keys
|
|
566
|
+
|
|
567
|
+
* 3 :
|
|
568
|
+
|
|
569
|
+
{...} 2 keys
|
|
570
|
+
|
|
571
|
+
|
|
572
|
+
\]
|
|
573
|
+
|
|
574
|
+
|
|
575
|
+
|
|
576
|
+
|
|
577
|
+
|
|
|
578
|
+
| prefix |
|
|
579
|
+
|
|
580
|
+
Prefix to all validation messages. Will be `status` prop if nothing is provided.
|
|
581
|
+
|
|
582
|
+
ReactNode
|
|
583
|
+
|
|
584
|
+
|
|
585
|
+
|
|
586
|
+
| \- | Set object |
|
|
587
|
+
| status |
|
|
588
|
+
|
|
589
|
+
Status for all child ValidationMessage components
|
|
590
|
+
|
|
591
|
+
SystemValidationStatuses
|
|
592
|
+
|
|
593
|
+
|
|
594
|
+
|
|
595
|
+
|
|
|
596
|
+
|
|
597
|
+
'danger'
|
|
598
|
+
|
|
599
|
+
| Set object |
|
|
600
|
+
| visiblePrefix |
|
|
601
|
+
|
|
602
|
+
If set to true, the prefix will be visually displayed (default is only available to screen readers)
|
|
603
|
+
|
|
604
|
+
boolean
|
|
605
|
+
|
|
606
|
+
|
|
607
|
+
|
|
608
|
+
| \- | Set boolean |
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
Contact us
|
|
2
|
+
==========
|
|
3
|
+
|
|
4
|
+
For support and feature requests, please reach out to us at our Slack channel.
|
|
5
|
+
|
|
6
|
+
Team
|
|
7
|
+
----
|
|
8
|
+
|
|
9
|
+
Front-End Enablement (FEE) are the guys and gals making it happen, and you'll probably see us on Iress support channels. Please contact us if you need help with IDS or have any questions. We are here to help you.
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
Accessibility
|
|
2
|
+
=============
|
|
3
|
+
|
|
4
|
+
Accessibility is everyone's responsibility. It ensures that all users, regardless of their abilities or disabilities, can access and interact with our components effectively. This document outlines the key practices for building accessible components we follow within IDS.
|
|
5
|
+
|
|
6
|
+
Please note: The default behaviour of our components is to be accessible, but it is the responsibility of the product to ensure that they are used correctly in accessibile context, or any modifications made to them do not compromise accessibility.
|
|
7
|
+
|
|
8
|
+
Interaction Patterns
|
|
9
|
+
--------------------
|
|
10
|
+
|
|
11
|
+
### Keyboard Navigation
|
|
12
|
+
|
|
13
|
+
* Support standard keyboard shortcuts (Tab, Arrow keys, Enter, Space, Escape)
|
|
14
|
+
* Implement proper focus order and visual focus indicators
|
|
15
|
+
* Provide keyboard alternatives for mouse-only interactions
|
|
16
|
+
* Follow established ARIA patterns for complex widgets
|
|
17
|
+
|
|
18
|
+
### Touch Interactions
|
|
19
|
+
|
|
20
|
+
* Provide adequate touch target sizes (minimum 44px)
|
|
21
|
+
* Implement touch-friendly spacing between interactive elements
|
|
22
|
+
* Support gesture-based interactions where appropriate
|
|
23
|
+
* Ensure consistent behaviour across device types
|
|
24
|
+
|
|
25
|
+
### Loading and Feedback
|
|
26
|
+
|
|
27
|
+
* Use appropriate loading patterns based on context:
|
|
28
|
+
* **Page**: Full page loading states
|
|
29
|
+
* **Component**: Local loading within sections
|
|
30
|
+
* **Button**: Inline loading for form submissions
|
|
31
|
+
* **Validate**: Server-side validation feedback
|
|
32
|
+
* Provide clear success and error feedback
|
|
33
|
+
* Use progressive enhancement for better perceived performance
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
Using components consistently
|
|
2
|
+
=============================
|
|
3
|
+
|
|
4
|
+
Buttons
|
|
5
|
+
-------
|
|
6
|
+
|
|
7
|
+
* **Primary**: Limit to one per view for main call-to-action
|
|
8
|
+
* **Secondary**: Use for secondary actions
|
|
9
|
+
* **Tertiary**: Extra affordance between secondary actions
|
|
10
|
+
* **Link**: Button styled as link (avoid with icon-only content)
|
|
11
|
+
* **Danger**: Destructive actions requiring extra confirmation
|
|
12
|
+
* **Positive/Negative**: Financial transactions (buy/sell)
|
|
13
|
+
|
|
14
|
+
Forms
|
|
15
|
+
-----
|
|
16
|
+
|
|
17
|
+
* Always use `IressField` wrapper for proper label, hint, and error placement
|
|
18
|
+
* Provide clear validation feedback with appropriate error messages
|
|
19
|
+
* Use consistent input sizing based on expected content length
|
|
20
|
+
* Implement proper form state management and accessibility
|
|
21
|
+
|
|
22
|
+
Navigation
|
|
23
|
+
----------
|
|
24
|
+
|
|
25
|
+
* Use semantic HTML5 navigation elements
|
|
26
|
+
* Provide skip links for keyboard users
|
|
27
|
+
* Implement proper ARIA labelling for navigation sections
|
|
28
|
+
* Ensure consistent navigation patterns across applications
|
|
29
|
+
|
|
30
|
+
Data Display
|
|
31
|
+
------------
|
|
32
|
+
|
|
33
|
+
* Use semantic table structures with proper headers
|
|
34
|
+
* Provide clear visual hierarchy in data presentations
|
|
35
|
+
* Implement consistent sorting and filtering patterns
|
|
36
|
+
* Use appropriate loading states for data-heavy components
|
|
37
|
+
|
|
38
|
+
Modals and Overlays
|
|
39
|
+
-------------------
|
|
40
|
+
|
|
41
|
+
* Reserve modals for critical tasks requiring full attention
|
|
42
|
+
* Provide multiple dismissal methods (backdrop, escape key, close button)
|
|
43
|
+
* Implement proper focus management and restoration
|
|
44
|
+
* Use slideouts for supplementary tasks where underlying content needs visibility
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
Content
|
|
2
|
+
=======
|
|
3
|
+
|
|
4
|
+
Microcopy Guidelines
|
|
5
|
+
--------------------
|
|
6
|
+
|
|
7
|
+
* Use clear, concise language that matches user mental models
|
|
8
|
+
* Provide helpful error messages with actionable guidance
|
|
9
|
+
* Implement consistent tone of voice across all interface text
|
|
10
|
+
* Use progressive disclosure for complex information
|
|
11
|
+
|
|
12
|
+
Iconography
|
|
13
|
+
-----------
|
|
14
|
+
|
|
15
|
+
* Use icons consistently with established meanings
|
|
16
|
+
* Provide screen reader text for meaningful icons
|
|
17
|
+
* Avoid using icons as the sole means of communication
|
|
18
|
+
* Maintain consistent icon sizing and alignment
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
Introduction
|
|
2
|
+
============
|
|
3
|
+
|
|
4
|
+
The IDS and product design team use the foundations to create a consistent user experience across all Iress products. This includes design principles and guidelines that ensure a cohesive look and feel.
|
|
5
|
+
|
|
6
|
+
1. [Principles](/?path=/docs/foundations-principles--docs)
|
|
7
|
+
2. [Accessibility](/?path=/docs/foundations-accessibility--docs)
|
|
8
|
+
3. [Tokens](/?path=/docs/foundations-tokens-introduction--docs)
|
|
9
|
+
4. [Breakpoints](/?path=/docs/foundations-breakpoints--docs)
|
|
10
|
+
5. [Consistency](/?path=/docs/foundations-consistency--docs)
|
|
11
|
+
6. [Grid](/?path=/docs/foundations-grid--docs)
|
|
12
|
+
7. [Content](/?path=/docs/foundations-content--docs)
|
|
13
|
+
8. [User Experience](/?path=/docs/foundations-user-experience--docs)
|
|
14
|
+
9. [Visual Design](/?path=/docs/foundations-visual-design--docs)
|
|
15
|
+
10. [Z-index (stacking)](/?path=/docs/foundations-z-index-stacking--docs)
|
|
16
|
+
|
|
17
|
+
_This document is a living standard. Revisit and revise regularly to reflect evolving needs, technologies, and user expectations._
|