@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,428 @@
|
|
|
1
|
+
Expander
|
|
2
|
+
========
|
|
3
|
+
|
|
4
|
+
Overview
|
|
5
|
+
--------
|
|
6
|
+
|
|
7
|
+
Expanders are commonly used to reveal more information or details about an element or content on a page.
|
|
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-expander--default)
|
|
18
|
+
|
|
19
|
+
Expander activator
|
|
20
|
+
|
|
21
|
+
Expander content will go here
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
<IressExpander activator\="Expander activator"\>
|
|
26
|
+
Expander content will go here
|
|
27
|
+
</IressExpander\>
|
|
28
|
+
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
Props
|
|
32
|
+
-----
|
|
33
|
+
|
|
34
|
+
| Name | Description | Default | Control |
|
|
35
|
+
| --- | --- | --- | --- |
|
|
36
|
+
| activator\* |
|
|
37
|
+
The element used to activate the expandable container.
|
|
38
|
+
|
|
39
|
+
ReactNode
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
| \- |
|
|
44
|
+
|
|
45
|
+
"Expander activator"
|
|
46
|
+
|
|
47
|
+
|
|
|
48
|
+
| activatorStyle |
|
|
49
|
+
|
|
50
|
+
This allows you to customise the content styling specifically, which is the floating element. It accepts an object with any of the styling properties available on `IressCSSProps`, as well as `className` and `style`.
|
|
51
|
+
|
|
52
|
+
IressCustomiseSlot
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
| { } | Set object |
|
|
57
|
+
| children |
|
|
58
|
+
|
|
59
|
+
Contents that will be expanded/collapsed when the expander is activated.
|
|
60
|
+
|
|
61
|
+
ReactNode
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
|
|
65
|
+
| \- |
|
|
66
|
+
|
|
67
|
+
"Expander content will go here"
|
|
68
|
+
|
|
69
|
+
|
|
|
70
|
+
| mode |
|
|
71
|
+
|
|
72
|
+
Controls the display mode of the activator element. Can be Section, Heading or Link.
|
|
73
|
+
|
|
74
|
+
union
|
|
75
|
+
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
|
|
|
79
|
+
|
|
80
|
+
'section'
|
|
81
|
+
|
|
82
|
+
|
|
|
83
|
+
|
|
84
|
+
sectionlink
|
|
85
|
+
|
|
86
|
+
|
|
|
87
|
+
| onChange |
|
|
88
|
+
|
|
89
|
+
Emitted when the open state changes.
|
|
90
|
+
|
|
91
|
+
(newValue: boolean) => void
|
|
92
|
+
|
|
93
|
+
| \- | \- |
|
|
94
|
+
| open |
|
|
95
|
+
|
|
96
|
+
When true the expandable container will be visible and the activator will display as open.
|
|
97
|
+
|
|
98
|
+
boolean
|
|
99
|
+
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
|
|
|
103
|
+
|
|
104
|
+
false
|
|
105
|
+
|
|
106
|
+
| Set boolean |
|
|
107
|
+
|
|
108
|
+
Accessibility
|
|
109
|
+
-------------
|
|
110
|
+
|
|
111
|
+
For Accessibility guidelines refer to [W3 ARIA Patterns Disclosure](https://www.w3.org/WAI/ARIA/apg/patterns/disclosure/), [W3 ARIA Patterns Accordion](https://www.w3.org/WAI/ARIA/apg/patterns/accordion/).
|
|
112
|
+
|
|
113
|
+
Examples
|
|
114
|
+
--------
|
|
115
|
+
|
|
116
|
+
### Mode
|
|
117
|
+
|
|
118
|
+
Expander has a `mode` prop which can be used to change how the expander is displayed. There are two modes `section` (default) and `link`.
|
|
119
|
+
|
|
120
|
+
* `section` mode is used to expand larger sections of rich content, such as a table or a detailed transcript.
|
|
121
|
+
* `link` mode is used to expand a small section of content, usually used to provide additional context (eg. "Learn more" or "See more details").
|
|
122
|
+
|
|
123
|
+
[](./iframe.html?id=components-expander--mode)
|
|
124
|
+
|
|
125
|
+
Section (default)
|
|
126
|
+
-----------------
|
|
127
|
+
|
|
128
|
+
Expander activator
|
|
129
|
+
|
|
130
|
+
Expander content will go here
|
|
131
|
+
|
|
132
|
+
Link
|
|
133
|
+
----
|
|
134
|
+
|
|
135
|
+
Expander activator
|
|
136
|
+
|
|
137
|
+
Expander content will go here
|
|
138
|
+
|
|
139
|
+
```
|
|
140
|
+
|
|
141
|
+
<IressStack gap\="lg"\>
|
|
142
|
+
<IressStack gap\="xs"\>
|
|
143
|
+
<IressText element\="h2"\>
|
|
144
|
+
Section (default) </IressText\>
|
|
145
|
+
<IressExpander
|
|
146
|
+
activator\="Expander activator"
|
|
147
|
+
mode\="section"
|
|
148
|
+
\>
|
|
149
|
+
Expander content will go here </IressExpander\>
|
|
150
|
+
</IressStack\>
|
|
151
|
+
<IressStack gap\="xs"\>
|
|
152
|
+
<IressText element\="h2"\>
|
|
153
|
+
Link </IressText\>
|
|
154
|
+
<IressExpander
|
|
155
|
+
activator\="Expander activator"
|
|
156
|
+
mode\="link"
|
|
157
|
+
\>
|
|
158
|
+
Expander content will go here </IressExpander\>
|
|
159
|
+
</IressStack\>
|
|
160
|
+
</IressStack\>
|
|
161
|
+
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
#### Props
|
|
165
|
+
|
|
166
|
+
| Name | Description | Default | Control |
|
|
167
|
+
| --- | --- | --- | --- |
|
|
168
|
+
| activator\* |
|
|
169
|
+
The element used to activate the expandable container.
|
|
170
|
+
|
|
171
|
+
ReactNode
|
|
172
|
+
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
| \- | \- |
|
|
176
|
+
| activatorStyle |
|
|
177
|
+
|
|
178
|
+
This allows you to customise the content styling specifically, which is the floating element. It accepts an object with any of the styling properties available on `IressCSSProps`, as well as `className` and `style`.
|
|
179
|
+
|
|
180
|
+
IressCustomiseSlot
|
|
181
|
+
|
|
182
|
+
|
|
183
|
+
|
|
184
|
+
| { } | Set object |
|
|
185
|
+
| children |
|
|
186
|
+
|
|
187
|
+
Contents that will be expanded/collapsed when the expander is activated.
|
|
188
|
+
|
|
189
|
+
ReactNode
|
|
190
|
+
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
| \- | \- |
|
|
194
|
+
| mode |
|
|
195
|
+
|
|
196
|
+
Controls the display mode of the activator element. Can be Section, Heading or Link.
|
|
197
|
+
|
|
198
|
+
union
|
|
199
|
+
|
|
200
|
+
|
|
201
|
+
|
|
202
|
+
|
|
|
203
|
+
|
|
204
|
+
'section'
|
|
205
|
+
|
|
206
|
+
| \- |
|
|
207
|
+
| onChange |
|
|
208
|
+
|
|
209
|
+
Emitted when the open state changes.
|
|
210
|
+
|
|
211
|
+
(newValue: boolean) => void
|
|
212
|
+
|
|
213
|
+
| \- | \- |
|
|
214
|
+
| open |
|
|
215
|
+
|
|
216
|
+
When true the expandable container will be visible and the activator will display as open.
|
|
217
|
+
|
|
218
|
+
boolean
|
|
219
|
+
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
|
|
|
223
|
+
|
|
224
|
+
false
|
|
225
|
+
|
|
226
|
+
| Set boolean |
|
|
227
|
+
|
|
228
|
+
### Open
|
|
229
|
+
|
|
230
|
+
The `open` prop can be used to control the open state of the expander as can be seen below.
|
|
231
|
+
|
|
232
|
+
[](./iframe.html?id=components-expander--open)
|
|
233
|
+
|
|
234
|
+
Expander activator
|
|
235
|
+
|
|
236
|
+
Expander content will go here
|
|
237
|
+
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
<IressExpander
|
|
241
|
+
activator\="Expander activator"
|
|
242
|
+
open
|
|
243
|
+
\>
|
|
244
|
+
Expander content will go here
|
|
245
|
+
</IressExpander\>
|
|
246
|
+
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
#### Props
|
|
250
|
+
|
|
251
|
+
| Name | Description | Default | Control |
|
|
252
|
+
| --- | --- | --- | --- |
|
|
253
|
+
| activator\* |
|
|
254
|
+
The element used to activate the expandable container.
|
|
255
|
+
|
|
256
|
+
ReactNode
|
|
257
|
+
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
| \- |
|
|
261
|
+
|
|
262
|
+
"Expander activator"
|
|
263
|
+
|
|
264
|
+
|
|
|
265
|
+
| activatorStyle |
|
|
266
|
+
|
|
267
|
+
This allows you to customise the content styling specifically, which is the floating element. It accepts an object with any of the styling properties available on `IressCSSProps`, as well as `className` and `style`.
|
|
268
|
+
|
|
269
|
+
IressCustomiseSlot
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
|
|
273
|
+
| { } | Set object |
|
|
274
|
+
| children |
|
|
275
|
+
|
|
276
|
+
Contents that will be expanded/collapsed when the expander is activated.
|
|
277
|
+
|
|
278
|
+
ReactNode
|
|
279
|
+
|
|
280
|
+
|
|
281
|
+
|
|
282
|
+
| \- |
|
|
283
|
+
|
|
284
|
+
"Expander content will go here"
|
|
285
|
+
|
|
286
|
+
|
|
|
287
|
+
| mode |
|
|
288
|
+
|
|
289
|
+
Controls the display mode of the activator element. Can be Section, Heading or Link.
|
|
290
|
+
|
|
291
|
+
union
|
|
292
|
+
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
|
|
|
296
|
+
|
|
297
|
+
'section'
|
|
298
|
+
|
|
299
|
+
|
|
|
300
|
+
|
|
301
|
+
sectionlink
|
|
302
|
+
|
|
303
|
+
|
|
|
304
|
+
| onChange |
|
|
305
|
+
|
|
306
|
+
Emitted when the open state changes.
|
|
307
|
+
|
|
308
|
+
(newValue: boolean) => void
|
|
309
|
+
|
|
310
|
+
| \- | \- |
|
|
311
|
+
| open |
|
|
312
|
+
|
|
313
|
+
When true the expandable container will be visible and the activator will display as open.
|
|
314
|
+
|
|
315
|
+
boolean
|
|
316
|
+
|
|
317
|
+
|
|
318
|
+
|
|
319
|
+
|
|
|
320
|
+
|
|
321
|
+
false
|
|
322
|
+
|
|
323
|
+
| FalseTrue |
|
|
324
|
+
|
|
325
|
+
### Multiple expanders (accordion)
|
|
326
|
+
|
|
327
|
+
You can use multiple expanders to create an accordion, where all expander closes when another is opened.
|
|
328
|
+
|
|
329
|
+
[](./iframe.html?id=components-expander--multiple)
|
|
330
|
+
|
|
331
|
+
Top
|
|
332
|
+
|
|
333
|
+
Expander content for the top activator goes here.
|
|
334
|
+
|
|
335
|
+
Bottom
|
|
336
|
+
|
|
337
|
+
Expander content for the bottom activator goes here.
|
|
338
|
+
|
|
339
|
+
```
|
|
340
|
+
|
|
341
|
+
export const MultipleExpander \= () \=> {
|
|
342
|
+
const \[openActivator, setOpenActivator\] \= useState('');
|
|
343
|
+
const handleChange \= (newOpenActivator: string, open?: boolean) \=> {
|
|
344
|
+
setOpenActivator(open ? newOpenActivator : '');
|
|
345
|
+
};
|
|
346
|
+
return (
|
|
347
|
+
<div\>
|
|
348
|
+
<IressExpander
|
|
349
|
+
activator\="Top"
|
|
350
|
+
open\={openActivator \=== 'top'}
|
|
351
|
+
onChange\={(open) \=> handleChange('top', open)}
|
|
352
|
+
\>
|
|
353
|
+
Expander content for the top activator goes here. </IressExpander\>
|
|
354
|
+
<IressExpander
|
|
355
|
+
activator\="Bottom"
|
|
356
|
+
open\={openActivator \=== 'bottom'}
|
|
357
|
+
onChange\={(open) \=> handleChange('bottom', open)}
|
|
358
|
+
\>
|
|
359
|
+
Expander content for the bottom activator goes here. </IressExpander\>
|
|
360
|
+
</div\>
|
|
361
|
+
);
|
|
362
|
+
};
|
|
363
|
+
|
|
364
|
+
```
|
|
365
|
+
|
|
366
|
+
#### Props
|
|
367
|
+
|
|
368
|
+
| Name | Description | Default | Control |
|
|
369
|
+
| --- | --- | --- | --- |
|
|
370
|
+
| activator\* |
|
|
371
|
+
The element used to activate the expandable container.
|
|
372
|
+
|
|
373
|
+
ReactNode
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
|
|
377
|
+
| \- | \- |
|
|
378
|
+
| activatorStyle |
|
|
379
|
+
|
|
380
|
+
This allows you to customise the content styling specifically, which is the floating element. It accepts an object with any of the styling properties available on `IressCSSProps`, as well as `className` and `style`.
|
|
381
|
+
|
|
382
|
+
IressCustomiseSlot
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
| { } | \- |
|
|
387
|
+
| children |
|
|
388
|
+
|
|
389
|
+
Contents that will be expanded/collapsed when the expander is activated.
|
|
390
|
+
|
|
391
|
+
ReactNode
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
|
|
395
|
+
| \- | \- |
|
|
396
|
+
| mode |
|
|
397
|
+
|
|
398
|
+
Controls the display mode of the activator element. Can be Section, Heading or Link.
|
|
399
|
+
|
|
400
|
+
union
|
|
401
|
+
|
|
402
|
+
|
|
403
|
+
|
|
404
|
+
|
|
|
405
|
+
|
|
406
|
+
'section'
|
|
407
|
+
|
|
408
|
+
| \- |
|
|
409
|
+
| onChange |
|
|
410
|
+
|
|
411
|
+
Emitted when the open state changes.
|
|
412
|
+
|
|
413
|
+
(newValue: boolean) => void
|
|
414
|
+
|
|
415
|
+
| \- | \- |
|
|
416
|
+
| open |
|
|
417
|
+
|
|
418
|
+
When true the expandable container will be visible and the activator will display as open.
|
|
419
|
+
|
|
420
|
+
boolean
|
|
421
|
+
|
|
422
|
+
|
|
423
|
+
|
|
424
|
+
|
|
|
425
|
+
|
|
426
|
+
false
|
|
427
|
+
|
|
428
|
+
| \- |
|