@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.
Files changed (99) hide show
  1. package/generated/docs/components_components-alert-docs.md +1054 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3304 -0
  3. package/generated/docs/components_components-autocomplete-recipes-docs.md +98 -0
  4. package/generated/docs/components_components-badge-docs.md +312 -0
  5. package/generated/docs/components_components-button-docs.md +2339 -0
  6. package/generated/docs/components_components-buttongroup-docs.md +980 -0
  7. package/generated/docs/components_components-card-docs.md +1970 -0
  8. package/generated/docs/components_components-checkbox-docs.md +1083 -0
  9. package/generated/docs/components_components-checkboxgroup-docs.md +1597 -0
  10. package/generated/docs/components_components-checkboxgroup-recipes-docs.md +209 -0
  11. package/generated/docs/components_components-col-docs.md +755 -0
  12. package/generated/docs/components_components-container-docs.md +172 -0
  13. package/generated/docs/components_components-divider-docs.md +235 -0
  14. package/generated/docs/components_components-expander-docs.md +428 -0
  15. package/generated/docs/components_components-field-docs.md +3345 -0
  16. package/generated/docs/components_components-filter-docs.md +4091 -0
  17. package/generated/docs/components_components-hide-docs.md +450 -0
  18. package/generated/docs/components_components-icon-docs.md +1017 -0
  19. package/generated/docs/components_components-image-docs.md +168 -0
  20. package/generated/docs/components_components-inline-docs.md +1962 -0
  21. package/generated/docs/components_components-input-docs.md +1388 -0
  22. package/generated/docs/components_components-input-recipes-docs.md +349 -0
  23. package/generated/docs/components_components-inputcurrency-docs.md +636 -0
  24. package/generated/docs/components_components-inputcurrency-recipes-docs.md +208 -0
  25. package/generated/docs/components_components-introduction-docs.md +448 -0
  26. package/generated/docs/components_components-label-docs.md +229 -0
  27. package/generated/docs/components_components-link-docs.md +454 -0
  28. package/generated/docs/components_components-menu-docs.md +2219 -0
  29. package/generated/docs/components_components-menu-menuitem-docs.md +1455 -0
  30. package/generated/docs/components_components-modal-docs.md +2002 -0
  31. package/generated/docs/components_components-panel-docs.md +342 -0
  32. package/generated/docs/components_components-placeholder-docs.md +98 -0
  33. package/generated/docs/components_components-popover-docs.md +1631 -0
  34. package/generated/docs/components_components-popover-recipes-docs.md +537 -0
  35. package/generated/docs/components_components-progress-docs.md +128 -0
  36. package/generated/docs/components_components-provider-docs.md +123 -0
  37. package/generated/docs/components_components-radio-docs.md +499 -0
  38. package/generated/docs/components_components-radiogroup-docs.md +1573 -0
  39. package/generated/docs/components_components-readonly-docs.md +277 -0
  40. package/generated/docs/components_components-richselect-docs.md +6101 -0
  41. package/generated/docs/components_components-row-docs.md +2172 -0
  42. package/generated/docs/components_components-select-docs.md +1110 -0
  43. package/generated/docs/components_components-skeleton-docs.md +467 -0
  44. package/generated/docs/components_components-skeleton-recipes-docs.md +110 -0
  45. package/generated/docs/components_components-skiplink-docs.md +220 -0
  46. package/generated/docs/components_components-slideout-docs.md +1910 -0
  47. package/generated/docs/components_components-slider-docs.md +1284 -0
  48. package/generated/docs/components_components-spinner-docs.md +90 -0
  49. package/generated/docs/components_components-stack-docs.md +730 -0
  50. package/generated/docs/components_components-table-docs.md +4038 -0
  51. package/generated/docs/components_components-tabset-docs.md +955 -0
  52. package/generated/docs/components_components-tabset-tab-docs.md +342 -0
  53. package/generated/docs/components_components-tag-docs.md +410 -0
  54. package/generated/docs/components_components-text-docs.md +593 -0
  55. package/generated/docs/components_components-toaster-docs.md +451 -0
  56. package/generated/docs/components_components-toggle-docs.md +513 -0
  57. package/generated/docs/components_components-tooltip-docs.md +564 -0
  58. package/generated/docs/components_components-validationmessage-docs.md +608 -0
  59. package/generated/docs/components_contact-us-docs.md +9 -0
  60. package/generated/docs/components_foundations-accessibility-docs.md +33 -0
  61. package/generated/docs/components_foundations-consistency-docs.md +44 -0
  62. package/generated/docs/components_foundations-content-docs.md +18 -0
  63. package/generated/docs/components_foundations-introduction-docs.md +17 -0
  64. package/generated/docs/components_foundations-principles-docs.md +60 -0
  65. package/generated/docs/components_foundations-responsive-layout-docs.md +2692 -0
  66. package/generated/docs/components_foundations-user-experience-docs.md +53 -0
  67. package/generated/docs/components_foundations-visual-design-docs.md +39 -0
  68. package/generated/docs/components_foundations-z-index-stacking-docs.md +288 -0
  69. package/generated/docs/components_frequently-asked-questions-docs.md +44 -0
  70. package/generated/docs/components_get-started-develop-docs.md +47 -0
  71. package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
  72. package/generated/docs/components_introduction-docs.md +85 -0
  73. package/generated/docs/components_patterns-form-docs.md +2469 -0
  74. package/generated/docs/components_patterns-form-recipes-docs.md +1597 -0
  75. package/generated/docs/components_patterns-introduction-docs.md +31 -0
  76. package/generated/docs/components_patterns-loading-docs.md +1908 -0
  77. package/generated/docs/components_patterns-shadow-docs.md +195 -0
  78. package/generated/docs/components_resources-code-katas-docs.md +25 -0
  79. package/generated/docs/components_resources-introduction-docs.md +28 -0
  80. package/generated/docs/components_resources-mcp-server-docs.md +23 -0
  81. package/generated/docs/components_resources-migration-guides-from-v4-to-v5-docs.md +142 -0
  82. package/generated/docs/components_styling-props-colour-docs.md +91 -0
  83. package/generated/docs/components_styling-props-elevation-docs.md +69 -0
  84. package/generated/docs/components_styling-props-radius-docs.md +63 -0
  85. package/generated/docs/components_styling-props-reference-docs.md +160 -0
  86. package/generated/docs/components_styling-props-screen-readers-docs.md +66 -0
  87. package/generated/docs/components_styling-props-sizing-docs.md +217 -0
  88. package/generated/docs/components_styling-props-spacing-docs.md +545 -0
  89. package/generated/docs/components_styling-props-typography-docs.md +66 -0
  90. package/generated/docs/components_versions-docs.md +14 -0
  91. package/generated/docs/guidelines.md +3083 -0
  92. package/generated/docs/introduction-docs.md +37 -0
  93. package/generated/docs/tokens_colour-docs.md +479 -0
  94. package/generated/docs/tokens_elevation-docs.md +39 -0
  95. package/generated/docs/tokens_introduction-docs.md +150 -0
  96. package/generated/docs/tokens_radius-docs.md +67 -0
  97. package/generated/docs/tokens_spacing-docs.md +87 -0
  98. package/generated/docs/tokens_typography-docs.md +305 -0
  99. package/package.json +2 -2
@@ -0,0 +1,123 @@
1
+ Provider
2
+ ========
3
+
4
+ Overview
5
+ --------
6
+
7
+ Provider is a component that sets up the Iress Design System for your application. It ensures that the design system is correctly configured and ready to use.
8
+
9
+ [](./iframe.html?id=components-provider--provider)
10
+
11
+ Show modalShow slideoutShow toast
12
+
13
+ ```
14
+
15
+ import {
16
+ IressButton,
17
+ IressInline,
18
+ IressModal,
19
+ IressPanel,
20
+ IressProvider,
21
+ IressSlideout,
22
+ IressText,
23
+ useModal,
24
+ useSlideout,
25
+ useToaster,
26
+ } from '@iress-oss/ids-components';
27
+ const Page \= () \=> {
28
+ const { showModal } \= useModal();
29
+ const { showSlideout } \= useSlideout();
30
+ const toaster \= useToaster();
31
+ return (
32
+ <IressPanel
33
+ bg\="alt"
34
+ style\={{
35
+ height: '300px',
36
+ }}
37
+ \>
38
+ <IressInline gap\="md"\>
39
+ <IressButton onClick\={() \=> showModal('test-modal')}\>
40
+ Show modal </IressButton\>
41
+ <IressModal id\="test-modal"\>
42
+ <IressText\>Some modal content</IressText\>
43
+ </IressModal\>
44
+ <IressButton onClick\={() \=> showSlideout('test-slideout')}\>
45
+ Show slideout </IressButton\>
46
+ <IressSlideout id\="test-slideout"\>
47
+ <IressText\>Some slideout content</IressText\>
48
+ </IressSlideout\>
49
+ <IressButton
50
+ onClick\={() \=> toaster.success({ content: 'A toast message' })}
51
+ \>
52
+ Show toast </IressButton\>
53
+ </IressInline\>
54
+ </IressPanel\>
55
+ );
56
+ };
57
+ export const AppWithProvider \= () \=> (
58
+ <IressProvider\>
59
+ <Page />
60
+ </IressProvider\>
61
+ );
62
+
63
+ ```
64
+
65
+ Props
66
+ -----
67
+
68
+ | Name | Description | Default | Control |
69
+ | --- | --- | --- | --- |
70
+ | children |
71
+ The contents of your application, and/or the components which will be calling slideouts, modals and toasts.
72
+
73
+ ReactNode
74
+
75
+
76
+
77
+ | \- | \- |
78
+ | container |
79
+
80
+ The container element to render the slideout into. By default, the slideout will render at the end of the document body.
81
+
82
+ FloatingUIContainer
83
+
84
+
85
+
86
+ | \- | \- |
87
+ | noDefaultFont |
88
+
89
+ If you don't want to load the default Iress font from the CDN, set this to true.
90
+
91
+ boolean
92
+
93
+
94
+
95
+ | \- | \- |
96
+ | noIcons |
97
+
98
+ If you don't want to load the Iress Icon CSS from the CDN, set this to true.
99
+
100
+ boolean
101
+
102
+
103
+
104
+ | \- | \- |
105
+
106
+ Usage
107
+ -----
108
+
109
+ The design system provider automates some set-up tasks for you, including:
110
+
111
+ * Adding the icon fonts and CSS variables to the document head
112
+ * Consistent container handling for providers, if you need the modals, slideouts and toasts rendered in a specific area (common with micro frontends)
113
+
114
+ In most cases, you should wrap the entire application with the `IressProvider` component. This will ensure that the design system is set up correctly and consistently across the application.
115
+
116
+ import { IressProvider } from '@iress-oss/ids-components';
117
+ ReactDOM.createRoot(document.getElementById('root')!).render(
118
+ <IressProvider\>
119
+ <App />
120
+ </IressProvider\>,
121
+ );
122
+
123
+ ```
@@ -0,0 +1,499 @@
1
+ Radio
2
+ =====
3
+
4
+ Overview
5
+ --------
6
+
7
+ A radio is a single option presented with a radio button. It is used to select a single option from multiple options. It is typically used in an `IressRadioGroup`.
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-radio--default)
18
+
19
+ Radio button
20
+
21
+ ```
22
+
23
+ <IressRadio\>
24
+ Radio button
25
+ </IressRadio\>
26
+
27
+ ```
28
+
29
+ Props
30
+ -----
31
+
32
+ | Name | Description | Default | Control |
33
+ | --- | --- | --- | --- |
34
+ | checked |
35
+ Sets the checked state of the radio. If it is within a radio group, it will be overridden by the radio group's value and whether it matches this radio's value.
36
+
37
+ boolean
38
+
39
+
40
+
41
+ | \- | Set boolean |
42
+ | children |
43
+
44
+ Label of the radio
45
+
46
+ ReactNode
47
+
48
+
49
+
50
+ | \- |
51
+
52
+ "Radio button"
53
+
54
+ |
55
+ | hiddenControl |
56
+
57
+ Sets whether the control is hidden. If it is within a radio group, it will be overridden with the radio group's hiddenControl setting.
58
+
59
+ boolean
60
+
61
+
62
+
63
+ | \- | Set boolean |
64
+ | name |
65
+
66
+ Sets the name attribute on the radio input. If it is within a radio group, it will be overridden with the radio group's name.
67
+
68
+ string
69
+
70
+
71
+
72
+ | \- | Set string |
73
+ | onChange |
74
+
75
+ Handles the onChange event of the radio input. If you pass in a non-string value, you can access it using the second parameter of the function.
76
+
77
+ (e: ChangeEvent<HTMLInputElement>, value?: T) => void
78
+
79
+ | \- | \- |
80
+ | required |
81
+
82
+ If `true`, the radio is a required field and will be validated as such. If it is within a radio group, it will be overridden with the radio group's required state.
83
+
84
+ boolean
85
+
86
+
87
+
88
+ | \- | Set boolean |
89
+ | touch |
90
+
91
+ Add the button-like border and padding to radio when `touch` is true.
92
+
93
+ boolean
94
+
95
+
96
+
97
+ | \- | Set boolean |
98
+ | value |
99
+
100
+ The value which is submitted with the form data when this radio button is checked. To set this radio as checked by default, use the `checked` property.
101
+
102
+ T
103
+
104
+
105
+
106
+ | \- | Set object |
107
+
108
+ Examples
109
+ --------
110
+
111
+ ### Checked
112
+
113
+ You can set the radio to `checked` by default. This is useful when you want to pre-select an option.
114
+
115
+ **Note:** If you are using an `IressRadioGroup`, you should use the `value` prop on the `IressRadioGroup` to set the checked state of its `<IressRadio />` children, as the `checked` prop will be ignored.
116
+
117
+ [](./iframe.html?id=components-radio--checked)
118
+
119
+ Checked radio button
120
+
121
+ ```
122
+
123
+ <IressRadio checked\>
124
+ Checked radio button
125
+ </IressRadio\>
126
+
127
+ ```
128
+
129
+ #### Props
130
+
131
+ | Name | Description | Default | Control |
132
+ | --- | --- | --- | --- |
133
+ | checked |
134
+ Sets the checked state of the radio. If it is within a radio group, it will be overridden by the radio group's value and whether it matches this radio's value.
135
+
136
+ boolean
137
+
138
+
139
+
140
+ | \- | FalseTrue |
141
+ | children |
142
+
143
+ Label of the radio
144
+
145
+ ReactNode
146
+
147
+
148
+
149
+ | \- |
150
+
151
+ "Checked radio button"
152
+
153
+ |
154
+ | hiddenControl |
155
+
156
+ Sets whether the control is hidden. If it is within a radio group, it will be overridden with the radio group's hiddenControl setting.
157
+
158
+ boolean
159
+
160
+
161
+
162
+ | \- | Set boolean |
163
+ | name |
164
+
165
+ Sets the name attribute on the radio input. If it is within a radio group, it will be overridden with the radio group's name.
166
+
167
+ string
168
+
169
+
170
+
171
+ | \- | Set string |
172
+ | onChange |
173
+
174
+ Handles the onChange event of the radio input. If you pass in a non-string value, you can access it using the second parameter of the function.
175
+
176
+ (e: ChangeEvent<HTMLInputElement>, value?: T) => void
177
+
178
+ | \- | \- |
179
+ | required |
180
+
181
+ If `true`, the radio is a required field and will be validated as such. If it is within a radio group, it will be overridden with the radio group's required state.
182
+
183
+ boolean
184
+
185
+
186
+
187
+ | \- | Set boolean |
188
+ | touch |
189
+
190
+ Add the button-like border and padding to radio when `touch` is true.
191
+
192
+ boolean
193
+
194
+
195
+
196
+ | \- | Set boolean |
197
+ | value |
198
+
199
+ The value which is submitted with the form data when this radio button is checked. To set this radio as checked by default, use the `checked` property.
200
+
201
+ T
202
+
203
+
204
+
205
+ | \- | Set object |
206
+
207
+ ### Hidden control
208
+
209
+ You can hide the radio button and use a custom UI to display the content. Even though the radio button is hidden, it still acts like a radio.
210
+
211
+ [](./iframe.html?id=components-radio--hidden-control)
212
+
213
+ Hidden radio button
214
+
215
+ ```
216
+
217
+ <IressRadio hiddenControl\>
218
+ <IressPanel bg\="transparent"\>
219
+ Hidden radio button </IressPanel\>
220
+ </IressRadio\>
221
+
222
+ ```
223
+
224
+ #### Props
225
+
226
+ | Name | Description | Default | Control |
227
+ | --- | --- | --- | --- |
228
+ | checked |
229
+ Sets the checked state of the radio. If it is within a radio group, it will be overridden by the radio group's value and whether it matches this radio's value.
230
+
231
+ boolean
232
+
233
+
234
+
235
+ | \- | Set boolean |
236
+ | children |
237
+
238
+ Label of the radio
239
+
240
+ ReactNode
241
+
242
+
243
+
244
+ | \- | \- |
245
+ | hiddenControl |
246
+
247
+ Sets whether the control is hidden. If it is within a radio group, it will be overridden with the radio group's hiddenControl setting.
248
+
249
+ boolean
250
+
251
+
252
+
253
+ | \- | FalseTrue |
254
+ | name |
255
+
256
+ Sets the name attribute on the radio input. If it is within a radio group, it will be overridden with the radio group's name.
257
+
258
+ string
259
+
260
+
261
+
262
+ | \- | Set string |
263
+ | onChange |
264
+
265
+ Handles the onChange event of the radio input. If you pass in a non-string value, you can access it using the second parameter of the function.
266
+
267
+ (e: ChangeEvent<HTMLInputElement>, value?: T) => void
268
+
269
+ | \- | \- |
270
+ | required |
271
+
272
+ If `true`, the radio is a required field and will be validated as such. If it is within a radio group, it will be overridden with the radio group's required state.
273
+
274
+ boolean
275
+
276
+
277
+
278
+ | \- | Set boolean |
279
+ | touch |
280
+
281
+ Add the button-like border and padding to radio when `touch` is true.
282
+
283
+ boolean
284
+
285
+
286
+
287
+ | \- | Set boolean |
288
+ | value |
289
+
290
+ The value which is submitted with the form data when this radio button is checked. To set this radio as checked by default, use the `checked` property.
291
+
292
+ T
293
+
294
+
295
+
296
+ | \- | Set object |
297
+
298
+ ### Read only
299
+
300
+ The `readOnly` prop changes how the radio is rendered. It will only render if the radio is checked (alongside a hidden input that contains the `value` if it was set), otherwise it not be rendered.
301
+
302
+ It is understandable that this may not be the desired behavior for all use cases. If you need a radio that is not editable, but still visible, simply do not set the `readOnly` prop and set the `checked` prop instead.
303
+
304
+ [](./iframe.html?id=components-radio--read-only)
305
+
306
+ Radio button
307
+
308
+ ```
309
+
310
+ <IressStack gap\="sm"\>
311
+ <IressRadio
312
+ defaultChecked
313
+ readOnly
314
+ \>
315
+ Radio button </IressRadio\>
316
+ <IressRadio readOnly\>
317
+ Radio button </IressRadio\>
318
+ </IressStack\>
319
+
320
+ ```
321
+
322
+ #### Props
323
+
324
+ | Name | Description | Default | Control |
325
+ | --- | --- | --- | --- |
326
+ | checked |
327
+ Sets the checked state of the radio. If it is within a radio group, it will be overridden by the radio group's value and whether it matches this radio's value.
328
+
329
+ boolean
330
+
331
+
332
+
333
+ | \- | Set boolean |
334
+ | children |
335
+
336
+ Label of the radio
337
+
338
+ ReactNode
339
+
340
+
341
+
342
+ | \- |
343
+
344
+ "Radio button"
345
+
346
+ |
347
+ | hiddenControl |
348
+
349
+ Sets whether the control is hidden. If it is within a radio group, it will be overridden with the radio group's hiddenControl setting.
350
+
351
+ boolean
352
+
353
+
354
+
355
+ | \- | Set boolean |
356
+ | name |
357
+
358
+ Sets the name attribute on the radio input. If it is within a radio group, it will be overridden with the radio group's name.
359
+
360
+ string
361
+
362
+
363
+
364
+ | \- | Set string |
365
+ | onChange |
366
+
367
+ Handles the onChange event of the radio input. If you pass in a non-string value, you can access it using the second parameter of the function.
368
+
369
+ (e: ChangeEvent<HTMLInputElement>, value?: T) => void
370
+
371
+ | \- | \- |
372
+ | readOnly |
373
+
374
+ boolean
375
+
376
+
377
+
378
+ | \- | FalseTrue |
379
+ | required |
380
+
381
+ If `true`, the radio is a required field and will be validated as such. If it is within a radio group, it will be overridden with the radio group's required state.
382
+
383
+ boolean
384
+
385
+
386
+
387
+ | \- | Set boolean |
388
+ | touch |
389
+
390
+ Add the button-like border and padding to radio when `touch` is true.
391
+
392
+ boolean
393
+
394
+
395
+
396
+ | \- | Set boolean |
397
+ | value |
398
+
399
+ The value which is submitted with the form data when this radio button is checked. To set this radio as checked by default, use the `checked` property.
400
+
401
+ T
402
+
403
+
404
+
405
+ | \- | Set object |
406
+
407
+ ### Touch
408
+
409
+ The `touch` prop adds the button-like border and padding to radio.
410
+
411
+ [](./iframe.html?id=components-radio--touch)
412
+
413
+ Radio button
414
+
415
+ ```
416
+
417
+ <IressRadio touch\>
418
+ Radio button
419
+ </IressRadio\>
420
+
421
+ ```
422
+
423
+ #### Props
424
+
425
+ | Name | Description | Default | Control |
426
+ | --- | --- | --- | --- |
427
+ | checked |
428
+ Sets the checked state of the radio. If it is within a radio group, it will be overridden by the radio group's value and whether it matches this radio's value.
429
+
430
+ boolean
431
+
432
+
433
+
434
+ | \- | Set boolean |
435
+ | children |
436
+
437
+ Label of the radio
438
+
439
+ ReactNode
440
+
441
+
442
+
443
+ | \- |
444
+
445
+ "Radio button"
446
+
447
+ |
448
+ | hiddenControl |
449
+
450
+ Sets whether the control is hidden. If it is within a radio group, it will be overridden with the radio group's hiddenControl setting.
451
+
452
+ boolean
453
+
454
+
455
+
456
+ | \- | Set boolean |
457
+ | name |
458
+
459
+ Sets the name attribute on the radio input. If it is within a radio group, it will be overridden with the radio group's name.
460
+
461
+ string
462
+
463
+
464
+
465
+ | \- | Set string |
466
+ | onChange |
467
+
468
+ Handles the onChange event of the radio input. If you pass in a non-string value, you can access it using the second parameter of the function.
469
+
470
+ (e: ChangeEvent<HTMLInputElement>, value?: T) => void
471
+
472
+ | \- | \- |
473
+ | required |
474
+
475
+ If `true`, the radio is a required field and will be validated as such. If it is within a radio group, it will be overridden with the radio group's required state.
476
+
477
+ boolean
478
+
479
+
480
+
481
+ | \- | Set boolean |
482
+ | touch |
483
+
484
+ Add the button-like border and padding to radio when `touch` is true.
485
+
486
+ boolean
487
+
488
+
489
+
490
+ | \- | FalseTrue |
491
+ | value |
492
+
493
+ The value which is submitted with the form data when this radio button is checked. To set this radio as checked by default, use the `checked` property.
494
+
495
+ T
496
+
497
+
498
+
499
+ | \- | Set object |