@iress-oss/ids-mcp-server 5.15.0 → 6.0.0-alpha.1
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/package.json +28 -46
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- package/generated/docs/components-autocomplete-recipes-docs.md +0 -104
- package/generated/docs/components-badge-docs.md +0 -148
- package/generated/docs/components-button-docs.md +0 -362
- package/generated/docs/components-button-recipes-docs.md +0 -76
- package/generated/docs/components-buttongroup-docs.md +0 -310
- package/generated/docs/components-card-docs.md +0 -494
- package/generated/docs/components-card-recipes-docs.md +0 -89
- package/generated/docs/components-checkbox-docs.md +0 -193
- package/generated/docs/components-checkboxgroup-docs.md +0 -692
- package/generated/docs/components-checkboxgroup-recipes-docs.md +0 -119
- package/generated/docs/components-col-docs.md +0 -466
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-container-docs.md +0 -91
- package/generated/docs/components-divider-docs.md +0 -176
- package/generated/docs/components-expander-docs.md +0 -215
- package/generated/docs/components-field-docs.md +0 -675
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-form-docs.md +0 -2410
- package/generated/docs/components-form-recipes-docs.md +0 -886
- package/generated/docs/components-hide-docs.md +0 -265
- package/generated/docs/components-icon-docs.md +0 -553
- package/generated/docs/components-inline-docs.md +0 -868
- package/generated/docs/components-input-docs.md +0 -335
- package/generated/docs/components-input-recipes-docs.md +0 -140
- package/generated/docs/components-inputcurrency-docs.md +0 -157
- package/generated/docs/components-inputcurrency-recipes-docs.md +0 -116
- package/generated/docs/components-label-docs.md +0 -135
- package/generated/docs/components-menu-docs.md +0 -704
- package/generated/docs/components-menu-menuitem-docs.md +0 -193
- package/generated/docs/components-modal-docs.md +0 -587
- package/generated/docs/components-navbar-docs.md +0 -291
- package/generated/docs/components-navbar-recipes-docs.md +0 -413
- package/generated/docs/components-panel-docs.md +0 -380
- package/generated/docs/components-placeholder-docs.md +0 -27
- package/generated/docs/components-popover-docs.md +0 -464
- package/generated/docs/components-popover-recipes-docs.md +0 -245
- package/generated/docs/components-progress-docs.md +0 -104
- package/generated/docs/components-provider-docs.md +0 -105
- package/generated/docs/components-radio-docs.md +0 -107
- package/generated/docs/components-radiogroup-docs.md +0 -683
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-row-docs.md +0 -877
- package/generated/docs/components-select-docs.md +0 -456
- package/generated/docs/components-skeleton-docs.md +0 -214
- package/generated/docs/components-skeleton-recipes-docs.md +0 -76
- package/generated/docs/components-skiplink-docs.md +0 -66
- package/generated/docs/components-slideout-docs.md +0 -538
- package/generated/docs/components-slider-docs.md +0 -346
- package/generated/docs/components-spinner-docs.md +0 -59
- package/generated/docs/components-stack-docs.md +0 -265
- package/generated/docs/components-table-ag-grid-docs.md +0 -1074
- package/generated/docs/components-table-docs.md +0 -1305
- package/generated/docs/components-tabset-docs.md +0 -341
- package/generated/docs/components-tabset-tab-docs.md +0 -86
- package/generated/docs/components-tag-docs.md +0 -115
- package/generated/docs/components-text-docs.md +0 -394
- package/generated/docs/components-toaster-docs.md +0 -345
- package/generated/docs/components-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- package/generated/docs/components-tooltip-docs.md +0 -311
- package/generated/docs/components-validationmessage-docs.md +0 -241
- package/generated/docs/contact-us-docs.md +0 -27
- package/generated/docs/extensions-editor-docs.md +0 -288
- package/generated/docs/extensions-editor-recipes-docs.md +0 -39
- package/generated/docs/foundations-accessibility-docs.md +0 -62
- package/generated/docs/foundations-colours-docs.md +0 -257
- package/generated/docs/foundations-consistency-docs.md +0 -52
- package/generated/docs/foundations-content-docs.md +0 -23
- package/generated/docs/foundations-introduction-docs.md +0 -17
- package/generated/docs/foundations-principles-docs.md +0 -70
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/foundations-user-experience-docs.md +0 -63
- package/generated/docs/foundations-visual-design-docs.md +0 -46
- package/generated/docs/frequently-asked-questions-docs.md +0 -53
- package/generated/docs/get-started-develop-docs.md +0 -209
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/guidelines.md +0 -812
- package/generated/docs/introduction-docs.md +0 -43
- package/generated/docs/patterns-loading-docs.md +0 -1304
- package/generated/docs/resources-changelog-docs.md +0 -6
- package/generated/docs/resources-code-katas-docs.md +0 -29
- package/generated/docs/resources-migration-guides-from-v4-to-v5-docs.md +0 -437
- package/generated/docs/themes-available-themes-docs.md +0 -66
- package/generated/docs/themes-introduction-docs.md +0 -121
- package/generated/docs/themes-tokens-docs.md +0 -1200
- package/generated/docs/versions-docs.md +0 -17
- /package/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
[](#container)Container
|
|
2
|
-
=======================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
`IressContainer` provides a means to center and horizontally pad your site’s contents.
|
|
8
|
-
|
|
9
|
-
IressContainer improves the scannability and visual hierarchy of a user interface by snapping the layout to fixed max widths at different breakpoints.
|
|
10
|
-
|
|
11
|
-
Try resizing the screen to see the difference.
|
|
12
|
-
|
|
13
|
-
Your screen size is showing the container for the **xl** breakpoint.
|
|
14
|
-
|
|
15
|
-
* Screen width range: 1200px - 1499px
|
|
16
|
-
* Max width: 1160px
|
|
17
|
-
|
|
18
|
-
Hide code
|
|
19
|
-
|
|
20
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
21
|
-
|
|
22
|
-
<IressContainer\>
|
|
23
|
-
<p\>
|
|
24
|
-
IressContainer improves the scannability and visual hierarchy of a user interface by snapping the layout to fixed max widths at different breakpoints. </p\>
|
|
25
|
-
<p\>
|
|
26
|
-
Try resizing the screen to see the difference. </p\>
|
|
27
|
-
<IressPanel\>
|
|
28
|
-
<CurrentBreakpoint renderLabel\="container" />
|
|
29
|
-
</IressPanel\>
|
|
30
|
-
</IressContainer\>
|
|
31
|
-
|
|
32
|
-
Copy
|
|
33
|
-
|
|
34
|
-
[](#behaviour)Behaviour
|
|
35
|
-
-----------------------
|
|
36
|
-
|
|
37
|
-
The `IressContainer` snaps to fixed max widths at different breakpoints. Those max widths are as follows:
|
|
38
|
-
|
|
39
|
-
Container breakpoints
|
|
40
|
-
| Breakpoint | Screen Widths | Max Width |
|
|
41
|
-
| --- | --- | --- |
|
|
42
|
-
| xs | 0 - 575px | 100% |
|
|
43
|
-
| sm | 576px - 767px | 520px |
|
|
44
|
-
| md | 768px - 1023px | 740px |
|
|
45
|
-
| lg | 1024px - 1199px | 960px |
|
|
46
|
-
| xl | 1200px - 1499px | 1160px |
|
|
47
|
-
| xxl | 1500px and above | 1160px |
|
|
48
|
-
|
|
49
|
-
[](#examples)Examples
|
|
50
|
-
---------------------
|
|
51
|
-
|
|
52
|
-
### [](#fluid)Fluid
|
|
53
|
-
|
|
54
|
-
If you want the `IressContainer` to fill its containing element, you can set the `fluid` prop. Resize the example below to see how the IressContainer is 100% for all screen sizes.
|
|
55
|
-
|
|
56
|
-
IressContainer improves the scannability and visual hierarchy of a user interface by snapping the layout to fixed max widths at different breakpoints.
|
|
57
|
-
|
|
58
|
-
When the `fluid` prop is enabled, the container will span the full width of its containing element. Try resizing the screen to see how the IressContainer is 100% for all screen sizes.
|
|
59
|
-
|
|
60
|
-
Your screen size is showing the container for the **xl** breakpoint.
|
|
61
|
-
|
|
62
|
-
* Screen width range: 1200px - 1499px
|
|
63
|
-
* Max width: 100%
|
|
64
|
-
|
|
65
|
-
Hide code
|
|
66
|
-
|
|
67
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
68
|
-
|
|
69
|
-
<IressContainer fluid\>
|
|
70
|
-
<p\>
|
|
71
|
-
IressContainer improves the scannability and visual hierarchy of a user interface by snapping the layout to fixed max widths at different breakpoints. </p\>
|
|
72
|
-
<p\>
|
|
73
|
-
When the{' '}
|
|
74
|
-
<code\>
|
|
75
|
-
fluid </code\>
|
|
76
|
-
{' '}prop is enabled, the container will span the full width of its containing element. Try resizing the screen to see how the IressContainer is 100% for all screen sizes.
|
|
77
|
-
</p\>
|
|
78
|
-
<IressPanel\>
|
|
79
|
-
<CurrentBreakpoint renderLabel\="container-fluid" />
|
|
80
|
-
</IressPanel\>
|
|
81
|
-
</IressContainer\>
|
|
82
|
-
|
|
83
|
-
Copy
|
|
84
|
-
|
|
85
|
-
On this page
|
|
86
|
-
|
|
87
|
-
* [Overview](#overview)
|
|
88
|
-
* [Props](#props)
|
|
89
|
-
* [Behaviour](#behaviour)
|
|
90
|
-
* [Examples](#examples)
|
|
91
|
-
* [Fluid](#fluid)
|
|
@@ -1,176 +0,0 @@
|
|
|
1
|
-
[](#divider)Divider
|
|
2
|
-
===================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
A divider is a UI element that separates content in lists and layouts.
|
|
8
|
-
|
|
9
|
-
* * *
|
|
10
|
-
|
|
11
|
-
Hide code
|
|
12
|
-
|
|
13
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
14
|
-
|
|
15
|
-
<IressDivider />
|
|
16
|
-
|
|
17
|
-
Copy
|
|
18
|
-
|
|
19
|
-
[](#examples)Examples
|
|
20
|
-
---------------------
|
|
21
|
-
|
|
22
|
-
### [](#vertical-divider)Vertical divider
|
|
23
|
-
|
|
24
|
-
Use the `vertical` prop to change the divider from horizontal to vertical.
|
|
25
|
-
|
|
26
|
-
Separate
|
|
27
|
-
|
|
28
|
-
* * *
|
|
29
|
-
|
|
30
|
-
this
|
|
31
|
-
|
|
32
|
-
Hide code
|
|
33
|
-
|
|
34
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
35
|
-
|
|
36
|
-
<IressInline
|
|
37
|
-
gutter\="md"
|
|
38
|
-
verticalAlign\="middle"
|
|
39
|
-
\>
|
|
40
|
-
<IressText\>
|
|
41
|
-
Separate </IressText\>
|
|
42
|
-
<IressDivider vertical />
|
|
43
|
-
<IressText\>
|
|
44
|
-
this </IressText\>
|
|
45
|
-
</IressInline\>
|
|
46
|
-
|
|
47
|
-
Copy
|
|
48
|
-
|
|
49
|
-
### [](#gutter)Gutter
|
|
50
|
-
|
|
51
|
-
You can customise the gutter by using the `gutter` prop. By default, the divider uses the theme's default spacing as the gutter.
|
|
52
|
-
|
|
53
|
-
none
|
|
54
|
-
----
|
|
55
|
-
|
|
56
|
-
Separate
|
|
57
|
-
|
|
58
|
-
* * *
|
|
59
|
-
|
|
60
|
-
this
|
|
61
|
-
|
|
62
|
-
xs
|
|
63
|
-
--
|
|
64
|
-
|
|
65
|
-
Separate
|
|
66
|
-
|
|
67
|
-
* * *
|
|
68
|
-
|
|
69
|
-
this
|
|
70
|
-
|
|
71
|
-
sm
|
|
72
|
-
--
|
|
73
|
-
|
|
74
|
-
Separate
|
|
75
|
-
|
|
76
|
-
* * *
|
|
77
|
-
|
|
78
|
-
this
|
|
79
|
-
|
|
80
|
-
md
|
|
81
|
-
--
|
|
82
|
-
|
|
83
|
-
Separate
|
|
84
|
-
|
|
85
|
-
* * *
|
|
86
|
-
|
|
87
|
-
this
|
|
88
|
-
|
|
89
|
-
lg
|
|
90
|
-
--
|
|
91
|
-
|
|
92
|
-
Separate
|
|
93
|
-
|
|
94
|
-
* * *
|
|
95
|
-
|
|
96
|
-
this
|
|
97
|
-
|
|
98
|
-
xl
|
|
99
|
-
--
|
|
100
|
-
|
|
101
|
-
Separate
|
|
102
|
-
|
|
103
|
-
* * *
|
|
104
|
-
|
|
105
|
-
this
|
|
106
|
-
|
|
107
|
-
Hide code
|
|
108
|
-
|
|
109
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
110
|
-
|
|
111
|
-
<IressInline gutter\="md"\>
|
|
112
|
-
<IressPanel\>
|
|
113
|
-
<IressText element\="h2"\>
|
|
114
|
-
none </IressText\>
|
|
115
|
-
<IressText\>
|
|
116
|
-
Separate </IressText\>
|
|
117
|
-
<IressDivider gutter\="none" />
|
|
118
|
-
<IressText\>
|
|
119
|
-
this </IressText\>
|
|
120
|
-
</IressPanel\>
|
|
121
|
-
<IressPanel\>
|
|
122
|
-
<IressText element\="h2"\>
|
|
123
|
-
xs </IressText\>
|
|
124
|
-
<IressText\>
|
|
125
|
-
Separate </IressText\>
|
|
126
|
-
<IressDivider gutter\="xs" />
|
|
127
|
-
<IressText\>
|
|
128
|
-
this </IressText\>
|
|
129
|
-
</IressPanel\>
|
|
130
|
-
<IressPanel\>
|
|
131
|
-
<IressText element\="h2"\>
|
|
132
|
-
sm </IressText\>
|
|
133
|
-
<IressText\>
|
|
134
|
-
Separate </IressText\>
|
|
135
|
-
<IressDivider gutter\="sm" />
|
|
136
|
-
<IressText\>
|
|
137
|
-
this </IressText\>
|
|
138
|
-
</IressPanel\>
|
|
139
|
-
<IressPanel\>
|
|
140
|
-
<IressText element\="h2"\>
|
|
141
|
-
md </IressText\>
|
|
142
|
-
<IressText\>
|
|
143
|
-
Separate </IressText\>
|
|
144
|
-
<IressDivider gutter\="md" />
|
|
145
|
-
<IressText\>
|
|
146
|
-
this </IressText\>
|
|
147
|
-
</IressPanel\>
|
|
148
|
-
<IressPanel\>
|
|
149
|
-
<IressText element\="h2"\>
|
|
150
|
-
lg </IressText\>
|
|
151
|
-
<IressText\>
|
|
152
|
-
Separate </IressText\>
|
|
153
|
-
<IressDivider gutter\="lg" />
|
|
154
|
-
<IressText\>
|
|
155
|
-
this </IressText\>
|
|
156
|
-
</IressPanel\>
|
|
157
|
-
<IressPanel\>
|
|
158
|
-
<IressText element\="h2"\>
|
|
159
|
-
xl </IressText\>
|
|
160
|
-
<IressText\>
|
|
161
|
-
Separate </IressText\>
|
|
162
|
-
<IressDivider gutter\="xl" />
|
|
163
|
-
<IressText\>
|
|
164
|
-
this </IressText\>
|
|
165
|
-
</IressPanel\>
|
|
166
|
-
</IressInline\>
|
|
167
|
-
|
|
168
|
-
Copy
|
|
169
|
-
|
|
170
|
-
On this page
|
|
171
|
-
|
|
172
|
-
* [Overview](#overview)
|
|
173
|
-
* [Props](#props)
|
|
174
|
-
* [Examples](#examples)
|
|
175
|
-
* [Vertical divider](#vertical-divider)
|
|
176
|
-
* [Gutter](#gutter)
|
|
@@ -1,215 +0,0 @@
|
|
|
1
|
-
[](#expander)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
|
-
Expander activator
|
|
10
|
-
|
|
11
|
-
Expander content will go here (it is unformatted by default, use IressText to format the text)
|
|
12
|
-
|
|
13
|
-
Hide code
|
|
14
|
-
|
|
15
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
16
|
-
|
|
17
|
-
<IressExpander activator\="Expander activator"\>
|
|
18
|
-
Expander content will go here (it is unformatted by default, use IressText to format the text)
|
|
19
|
-
</IressExpander\>
|
|
20
|
-
|
|
21
|
-
Copy
|
|
22
|
-
|
|
23
|
-
[](#accessibility)Accessibility
|
|
24
|
-
-------------------------------
|
|
25
|
-
|
|
26
|
-
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/).
|
|
27
|
-
|
|
28
|
-
[](#examples)Examples
|
|
29
|
-
---------------------
|
|
30
|
-
|
|
31
|
-
### [](#mode)Mode
|
|
32
|
-
|
|
33
|
-
Expander has a `mode` prop which can be used to change how the expander is displayed. There are 3 modes `section` (default), `heading` and `link`.
|
|
34
|
-
|
|
35
|
-
section mode
|
|
36
|
-
------------
|
|
37
|
-
|
|
38
|
-
### Expander activator
|
|
39
|
-
|
|
40
|
-
Okay, so 9:00 you are strolling through the parking lot, you see us struggling in the car, you walk up, you open the door and you say, your line, George.
|
|
41
|
-
|
|
42
|
-
heading mode
|
|
43
|
-
------------
|
|
44
|
-
|
|
45
|
-
### Expander activator
|
|
46
|
-
|
|
47
|
-
Okay, so 9:00 you are strolling through the parking lot, you see us struggling in the car, you walk up, you open the door and you say, your line, George.
|
|
48
|
-
|
|
49
|
-
link mode
|
|
50
|
-
---------
|
|
51
|
-
|
|
52
|
-
### Expander activator
|
|
53
|
-
|
|
54
|
-
Okay, so 9:00 you are strolling through the parking lot, you see us struggling in the car, you walk up, you open the door and you say, your line, George.
|
|
55
|
-
|
|
56
|
-
Hide code
|
|
57
|
-
|
|
58
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
59
|
-
|
|
60
|
-
<div className\="iress-u-stack iress--gutter--md"\>
|
|
61
|
-
<div\>
|
|
62
|
-
<IressText element\="h2"\>
|
|
63
|
-
section mode </IressText\>
|
|
64
|
-
<div className\="iress-u-inline iress--gutter--md"\>
|
|
65
|
-
<IressExpander
|
|
66
|
-
activator\={<div\><IressText element\="h3"\>Expander activator</IressText\></div\>}
|
|
67
|
-
mode\="section"
|
|
68
|
-
\>
|
|
69
|
-
<IressRow
|
|
70
|
-
gutter\="md"
|
|
71
|
-
verticalAlign\="stretch"
|
|
72
|
-
\>
|
|
73
|
-
<IressCol
|
|
74
|
-
data-testid\="security-infra"
|
|
75
|
-
span\={{
|
|
76
|
-
sm: 6
|
|
77
|
-
}}
|
|
78
|
-
\>
|
|
79
|
-
<IressText\>
|
|
80
|
-
Okay, so 9:00 you are strolling through the parking lot, you see us struggling in the car, you walk up, you open the door and you say, your line, George. </IressText\>
|
|
81
|
-
</IressCol\>
|
|
82
|
-
</IressRow\>
|
|
83
|
-
</IressExpander\>
|
|
84
|
-
</div\>
|
|
85
|
-
</div\>
|
|
86
|
-
<div\>
|
|
87
|
-
<IressText element\="h2"\>
|
|
88
|
-
heading mode </IressText\>
|
|
89
|
-
<div className\="iress-u-inline iress--gutter--md"\>
|
|
90
|
-
<IressExpander
|
|
91
|
-
activator\={<div\><IressText element\="h3"\>Expander activator</IressText\></div\>}
|
|
92
|
-
mode\="heading"
|
|
93
|
-
\>
|
|
94
|
-
<IressRow
|
|
95
|
-
gutter\="md"
|
|
96
|
-
verticalAlign\="stretch"
|
|
97
|
-
\>
|
|
98
|
-
<IressCol
|
|
99
|
-
data-testid\="security-infra"
|
|
100
|
-
span\={{
|
|
101
|
-
sm: 6
|
|
102
|
-
}}
|
|
103
|
-
\>
|
|
104
|
-
<IressText\>
|
|
105
|
-
Okay, so 9:00 you are strolling through the parking lot, you see us struggling in the car, you walk up, you open the door and you say, your line, George. </IressText\>
|
|
106
|
-
</IressCol\>
|
|
107
|
-
</IressRow\>
|
|
108
|
-
</IressExpander\>
|
|
109
|
-
</div\>
|
|
110
|
-
</div\>
|
|
111
|
-
<div\>
|
|
112
|
-
<IressText element\="h2"\>
|
|
113
|
-
link mode </IressText\>
|
|
114
|
-
<div className\="iress-u-inline iress--gutter--md"\>
|
|
115
|
-
<IressExpander
|
|
116
|
-
activator\={<div\><IressText element\="h3"\>Expander activator</IressText\></div\>}
|
|
117
|
-
mode\="link"
|
|
118
|
-
\>
|
|
119
|
-
<IressRow
|
|
120
|
-
gutter\="md"
|
|
121
|
-
verticalAlign\="stretch"
|
|
122
|
-
\>
|
|
123
|
-
<IressCol
|
|
124
|
-
data-testid\="security-infra"
|
|
125
|
-
span\={{
|
|
126
|
-
sm: 6
|
|
127
|
-
}}
|
|
128
|
-
\>
|
|
129
|
-
<IressText\>
|
|
130
|
-
Okay, so 9:00 you are strolling through the parking lot, you see us struggling in the car, you walk up, you open the door and you say, your line, George. </IressText\>
|
|
131
|
-
</IressCol\>
|
|
132
|
-
</IressRow\>
|
|
133
|
-
</IressExpander\>
|
|
134
|
-
</div\>
|
|
135
|
-
</div\>
|
|
136
|
-
</div\>
|
|
137
|
-
|
|
138
|
-
Copy
|
|
139
|
-
|
|
140
|
-
### [](#open)Open
|
|
141
|
-
|
|
142
|
-
The `open` prop can be used to control the open state of the expander as can be seen below.
|
|
143
|
-
|
|
144
|
-
Expander activator
|
|
145
|
-
|
|
146
|
-
Expander content will go here (it is unformatted by default, use IressText to format the text)
|
|
147
|
-
|
|
148
|
-
Hide code
|
|
149
|
-
|
|
150
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
151
|
-
|
|
152
|
-
<IressExpander
|
|
153
|
-
activator\="Expander activator"
|
|
154
|
-
mode\="heading"
|
|
155
|
-
open
|
|
156
|
-
\>
|
|
157
|
-
Expander content will go here (it is unformatted by default, use IressText to format the text)
|
|
158
|
-
</IressExpander\>
|
|
159
|
-
|
|
160
|
-
Copy
|
|
161
|
-
|
|
162
|
-
### [](#multiple-expanders-accordion)Multiple expanders (accordion)
|
|
163
|
-
|
|
164
|
-
You can use multiple expanders to create an accordion, where al expander closes when another is opened.
|
|
165
|
-
|
|
166
|
-
top
|
|
167
|
-
|
|
168
|
-
Top
|
|
169
|
-
===
|
|
170
|
-
|
|
171
|
-
bottom
|
|
172
|
-
|
|
173
|
-
Bottom
|
|
174
|
-
------
|
|
175
|
-
|
|
176
|
-
Hide code
|
|
177
|
-
|
|
178
|
-
\[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
|
|
179
|
-
|
|
180
|
-
export const MultipleExpander \= () \=> {
|
|
181
|
-
const \[openActivator, setOpenActivator\] \= useState('');
|
|
182
|
-
const handleChange \= (newOpenActivator: string, open?: boolean) \=> {
|
|
183
|
-
setOpenActivator(open ? newOpenActivator : '');
|
|
184
|
-
};
|
|
185
|
-
return (
|
|
186
|
-
<div\>
|
|
187
|
-
<IressExpander
|
|
188
|
-
activator\="top"
|
|
189
|
-
open\={openActivator \=== 'top'}
|
|
190
|
-
onChange\={({ open }) \=> handleChange('top', open)}
|
|
191
|
-
\>
|
|
192
|
-
<h1\>Top</h1\>
|
|
193
|
-
</IressExpander\>
|
|
194
|
-
<IressExpander
|
|
195
|
-
activator\="bottom"
|
|
196
|
-
open\={openActivator \=== 'bottom'}
|
|
197
|
-
onChange\={({ open }) \=> handleChange('bottom', open)}
|
|
198
|
-
\>
|
|
199
|
-
<h2\>Bottom</h2\>
|
|
200
|
-
</IressExpander\>
|
|
201
|
-
</div\>
|
|
202
|
-
);
|
|
203
|
-
};
|
|
204
|
-
|
|
205
|
-
Copy
|
|
206
|
-
|
|
207
|
-
On this page
|
|
208
|
-
|
|
209
|
-
* [Overview](#overview)
|
|
210
|
-
* [Props](#props)
|
|
211
|
-
* [Accessibility](#accessibility)
|
|
212
|
-
* [Examples](#examples)
|
|
213
|
-
* [Mode](#mode)
|
|
214
|
-
* [Open](#open)
|
|
215
|
-
* [Multiple expanders (accordion)](#multiple-expanders-accordion)
|