@iress-oss/ids-mcp-server 5.15.0 → 5.20.2
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 +496 -0
- package/generated/docs/components_components-autocomplete-docs.md +3429 -0
- package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +39 -14
- package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
- package/generated/docs/components_components-button-docs.md +2078 -0
- package/generated/docs/components_components-button-recipes-docs.md +37 -0
- package/generated/docs/components_components-buttongroup-docs.md +1045 -0
- package/generated/docs/components_components-card-docs.md +2290 -0
- package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +132 -15
- package/generated/docs/components_components-checkbox-docs.md +1040 -0
- package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1001 -82
- package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +102 -12
- package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
- package/generated/docs/components_components-combobox-docs.md +3735 -0
- package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
- package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
- package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +266 -33
- package/generated/docs/components_components-field-docs.md +1369 -0
- package/generated/docs/components_components-filter-docs.md +4080 -0
- package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1556 -360
- package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +277 -60
- package/generated/docs/{components-hide-docs.md → components_components-hide-docs.md} +195 -124
- package/generated/docs/components_components-icon-docs.md +1337 -0
- package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
- package/generated/docs/components_components-input-docs.md +1468 -0
- package/generated/docs/components_components-input-recipes-docs.md +367 -0
- package/generated/docs/components_components-inputcurrency-docs.md +432 -0
- package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +113 -17
- package/generated/docs/components_components-label-docs.md +323 -0
- package/generated/docs/components_components-menu-docs.md +2345 -0
- package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
- package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1640 -231
- package/generated/docs/components_components-navbar-docs.md +1847 -0
- package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +721 -40
- package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
- package/generated/docs/components_components-placeholder-docs.md +92 -0
- package/generated/docs/components_components-popover-docs.md +1643 -0
- package/generated/docs/components_components-popover-recipes-docs.md +491 -0
- package/generated/docs/components_components-progress-docs.md +115 -0
- package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +42 -33
- package/generated/docs/components_components-radio-docs.md +491 -0
- package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +927 -75
- package/generated/docs/components_components-readonly-docs.md +263 -0
- package/generated/docs/components_components-richselect-docs.md +6521 -0
- package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
- package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
- package/generated/docs/components_components-skeleton-docs.md +480 -0
- package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +51 -11
- package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
- package/generated/docs/components_components-slideout-docs.md +2293 -0
- package/generated/docs/components_components-slider-docs.md +1276 -0
- package/generated/docs/components_components-spinner-docs.md +82 -0
- package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
- package/generated/docs/components_components-table-docs.md +3658 -0
- package/generated/docs/components_components-tabset-docs.md +772 -0
- package/generated/docs/components_components-tabset-tab-docs.md +262 -0
- package/generated/docs/components_components-tag-docs.md +257 -0
- package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
- package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +187 -85
- package/generated/docs/components_components-toaster-toast-docs.md +634 -0
- package/generated/docs/components_components-toggle-docs.md +461 -0
- package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
- package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
- package/generated/docs/components_contact-us-docs.md +12 -0
- package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
- package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
- package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
- package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
- package/generated/docs/components_foundations-introduction-docs.md +15 -0
- package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
- package/generated/docs/components_foundations-typography-docs.md +608 -0
- package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
- package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
- package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
- package/generated/docs/components_get-started-develop-docs.md +84 -0
- package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
- package/generated/docs/components_introduction-docs.md +15 -0
- package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +798 -153
- package/generated/docs/components_resources-changelog-docs.md +4 -0
- package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
- package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
- package/generated/docs/components_sandbox-docs.md +4 -0
- package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
- package/generated/docs/guidelines.md +484 -200
- package/generated/docs/introduction-docs.md +19 -30
- package/package.json +41 -45
- package/generated/docs/components-alert-docs.md +0 -130
- package/generated/docs/components-autocomplete-docs.md +0 -754
- 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-checkbox-docs.md +0 -193
- package/generated/docs/components-combobox-docs.md +0 -1016
- package/generated/docs/components-field-docs.md +0 -675
- package/generated/docs/components-filter-docs.md +0 -1109
- package/generated/docs/components-icon-docs.md +0 -553
- 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-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-navbar-docs.md +0 -291
- 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-radio-docs.md +0 -107
- package/generated/docs/components-readonly-docs.md +0 -89
- package/generated/docs/components-richselect-docs.md +0 -2433
- package/generated/docs/components-skeleton-docs.md +0 -214
- 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-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-toaster-toast-docs.md +0 -157
- package/generated/docs/components-toggle-docs.md +0 -158
- 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-introduction-docs.md +0 -17
- package/generated/docs/foundations-typography-docs.md +0 -191
- package/generated/docs/get-started-develop-docs.md +0 -209
- package/generated/docs/get-started-using-storybook-docs.md +0 -68
- package/generated/docs/resources-changelog-docs.md +0 -6
- 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/{LICENSE.txt → LICENSE} +0 -0
|
@@ -1,245 +0,0 @@
|
|
|
1
|
-
[](#recipes)Recipes
|
|
2
|
-
===================
|
|
3
|
-
|
|
4
|
-
[](#with-iressmenu)With `IressMenu`
|
|
5
|
-
-----------------------------------
|
|
6
|
-
|
|
7
|
-
When an `IressMenu` is used inside `IressPopover`, it adds some additional functionality to the popover, including:
|
|
8
|
-
|
|
9
|
-
* `IressPopover` will automatically close the popover when a menu item is clicked.
|
|
10
|
-
* `IressMenu` will automatically focus the first menu item when the popover is opened.
|
|
11
|
-
|
|
12
|
-
role=menu
|
|
13
|
-
|
|
14
|
-
### Application menu behaviour
|
|
15
|
-
|
|
16
|
-
* Once activated, focus is set to the first menu item
|
|
17
|
-
* Menu items can be navigated using the `up` and `down` arrow keys
|
|
18
|
-
* Popover will close when:
|
|
19
|
-
* the `esc` key is pressed
|
|
20
|
-
* the `tab` key is pressed (focus moves to the focusable element in the DOM)
|
|
21
|
-
* a menu item is clicked
|
|
22
|
-
|
|
23
|
-
role=list
|
|
24
|
-
|
|
25
|
-
### Navigation/list menu behaviour
|
|
26
|
-
|
|
27
|
-
* Once activated, focus is set to the popover panel
|
|
28
|
-
* Menu items can be navigated using the `tab` key
|
|
29
|
-
* Popover will close when:
|
|
30
|
-
* the `esc` key is pressed
|
|
31
|
-
* the popover panel loses focus
|
|
32
|
-
|
|
33
|
-
role=listbox
|
|
34
|
-
|
|
35
|
-
Multi-select
|
|
36
|
-
|
|
37
|
-
### Listbox menu behaviour
|
|
38
|
-
|
|
39
|
-
* Once activated, focus is set to the first menu item
|
|
40
|
-
* Menu items can be navigated using arrow keys
|
|
41
|
-
* Popover will close when:
|
|
42
|
-
* the `esc` key is pressed
|
|
43
|
-
* the `tab` key is pressed (focus moves to the next focusable element in the DOM)
|
|
44
|
-
* a menu item is clicked (except when a listbox menu is in `multiSelect` mode)
|
|
45
|
-
* When user presses the `up` key when the first item is focused
|
|
46
|
-
|
|
47
|
-
role=nav
|
|
48
|
-
|
|
49
|
-
### Navigation/list menu behaviour
|
|
50
|
-
|
|
51
|
-
* Once activated, focus is set to the popover panel
|
|
52
|
-
* Menu items can be navigated using the `tab` key
|
|
53
|
-
* Popover will close when:
|
|
54
|
-
* the `esc` key is pressed
|
|
55
|
-
* the popover panel loses focus
|
|
56
|
-
|
|
57
|
-
Hide code
|
|
58
|
-
|
|
59
|
-
\[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; }
|
|
60
|
-
|
|
61
|
-
<IressContainer className\="iress-u-stack iress--gutter--md"\>
|
|
62
|
-
<IressRow
|
|
63
|
-
gutter\="lg"
|
|
64
|
-
verticalAlign\="middle"
|
|
65
|
-
\>
|
|
66
|
-
<IressCol span\="2"\>
|
|
67
|
-
<IressPopover
|
|
68
|
-
activator\={<IressButton fluid\>role=menu</IressButton\>}
|
|
69
|
-
container\={document.body}
|
|
70
|
-
type\="menu"
|
|
71
|
-
\>
|
|
72
|
-
<IressMenu
|
|
73
|
-
defaultSelected\={3}
|
|
74
|
-
role\="menu"
|
|
75
|
-
\>
|
|
76
|
-
<IressMenuItem value\={0}\>
|
|
77
|
-
New task </IressMenuItem\>
|
|
78
|
-
<IressMenuItem value\={1}\>
|
|
79
|
-
Send prospect welcome pack </IressMenuItem\>
|
|
80
|
-
<IressMenuItem value\={2}\>
|
|
81
|
-
Book in Discovery meeting </IressMenuItem\>
|
|
82
|
-
<IressMenuItem value\={3}\>
|
|
83
|
-
Prospect proceeding </IressMenuItem\>
|
|
84
|
-
</IressMenu\>
|
|
85
|
-
</IressPopover\>
|
|
86
|
-
</IressCol\>
|
|
87
|
-
<IressCol\>
|
|
88
|
-
<MenuInPopoverRoleDescription role\="menu" />
|
|
89
|
-
</IressCol\>
|
|
90
|
-
</IressRow\>
|
|
91
|
-
<IressRow
|
|
92
|
-
gutter\="lg"
|
|
93
|
-
verticalAlign\="middle"
|
|
94
|
-
\>
|
|
95
|
-
<IressCol span\="2"\>
|
|
96
|
-
<IressPopover
|
|
97
|
-
activator\={<IressButton fluid\>role=list</IressButton\>}
|
|
98
|
-
container\={document.body}
|
|
99
|
-
\>
|
|
100
|
-
<IressMenu
|
|
101
|
-
defaultSelected\={3}
|
|
102
|
-
role\="list"
|
|
103
|
-
\>
|
|
104
|
-
<IressMenuItem value\={0}\>
|
|
105
|
-
New task </IressMenuItem\>
|
|
106
|
-
<IressMenuItem value\={1}\>
|
|
107
|
-
Send prospect welcome pack </IressMenuItem\>
|
|
108
|
-
<IressMenuItem value\={2}\>
|
|
109
|
-
Book in Discovery meeting </IressMenuItem\>
|
|
110
|
-
<IressMenuItem value\={3}\>
|
|
111
|
-
Prospect proceeding </IressMenuItem\>
|
|
112
|
-
</IressMenu\>
|
|
113
|
-
</IressPopover\>
|
|
114
|
-
</IressCol\>
|
|
115
|
-
<IressCol\>
|
|
116
|
-
<MenuInPopoverRoleDescription role\="list" />
|
|
117
|
-
</IressCol\>
|
|
118
|
-
</IressRow\>
|
|
119
|
-
<IressRow
|
|
120
|
-
gutter\="lg"
|
|
121
|
-
verticalAlign\="middle"
|
|
122
|
-
\>
|
|
123
|
-
<IressCol span\="2"\>
|
|
124
|
-
<IressPopover
|
|
125
|
-
activator\={<IressButton fluid\>role=listbox</IressButton\>}
|
|
126
|
-
container\={document.body}
|
|
127
|
-
type\="listbox"
|
|
128
|
-
\>
|
|
129
|
-
<IressMenu
|
|
130
|
-
defaultSelected\={3}
|
|
131
|
-
role\="listbox"
|
|
132
|
-
\>
|
|
133
|
-
<IressMenuItem value\={0}\>
|
|
134
|
-
New task </IressMenuItem\>
|
|
135
|
-
<IressMenuItem value\={1}\>
|
|
136
|
-
Send prospect welcome pack </IressMenuItem\>
|
|
137
|
-
<IressMenuItem value\={2}\>
|
|
138
|
-
Book in Discovery meeting </IressMenuItem\>
|
|
139
|
-
<IressMenuItem value\={3}\>
|
|
140
|
-
Prospect proceeding </IressMenuItem\>
|
|
141
|
-
</IressMenu\>
|
|
142
|
-
</IressPopover\>
|
|
143
|
-
</IressCol\>
|
|
144
|
-
<IressCol\>
|
|
145
|
-
<MenuInPopoverRoleDescription role\="listbox"\>
|
|
146
|
-
<IressToggle
|
|
147
|
-
className\="iress-mb--md"
|
|
148
|
-
onChange\={() \=> {}}
|
|
149
|
-
\>
|
|
150
|
-
Multi-select </IressToggle\>
|
|
151
|
-
</MenuInPopoverRoleDescription\>
|
|
152
|
-
</IressCol\>
|
|
153
|
-
</IressRow\>
|
|
154
|
-
<IressRow
|
|
155
|
-
gutter\="lg"
|
|
156
|
-
verticalAlign\="middle"
|
|
157
|
-
\>
|
|
158
|
-
<IressCol span\="2"\>
|
|
159
|
-
<IressPopover
|
|
160
|
-
activator\={<IressButton fluid\>role=nav</IressButton\>}
|
|
161
|
-
container\={document.body}
|
|
162
|
-
\>
|
|
163
|
-
<IressMenu
|
|
164
|
-
defaultSelected\={3}
|
|
165
|
-
role\="nav"
|
|
166
|
-
\>
|
|
167
|
-
<IressMenuItem value\={0}\>
|
|
168
|
-
New task </IressMenuItem\>
|
|
169
|
-
<IressMenuItem value\={1}\>
|
|
170
|
-
Send prospect welcome pack </IressMenuItem\>
|
|
171
|
-
<IressMenuItem value\={2}\>
|
|
172
|
-
Book in Discovery meeting </IressMenuItem\>
|
|
173
|
-
<IressMenuItem value\={3}\>
|
|
174
|
-
Prospect proceeding </IressMenuItem\>
|
|
175
|
-
</IressMenu\>
|
|
176
|
-
</IressPopover\>
|
|
177
|
-
</IressCol\>
|
|
178
|
-
<IressCol\>
|
|
179
|
-
<MenuInPopoverRoleDescription role\="nav" />
|
|
180
|
-
</IressCol\>
|
|
181
|
-
</IressRow\>
|
|
182
|
-
</IressContainer\>
|
|
183
|
-
|
|
184
|
-
Copy
|
|
185
|
-
|
|
186
|
-
[](#focusable-children)Focusable children
|
|
187
|
-
-----------------------------------------
|
|
188
|
-
|
|
189
|
-
If you are using the `listbox` or `menu` type popovers, you will notice that focusable children (with the exception of `IressMenuItem`) are not automatically focusable with the arrow keys. To make them focusable, you will need to embed the focusable children using the `usePopoverItem` hook.
|
|
190
|
-
|
|
191
|
-
The `usePopoverItem` hook will automatically handle the focus management for you. It has two optional arguments:
|
|
192
|
-
|
|
193
|
-
* The first argument is the typeahead label of the item you are registering. This will allow it to have a keyboard shortcut to focus the item.
|
|
194
|
-
* The second argument is a virtual node, which is used in `virtualFocus` enabled popovers and `IressInputPopover`, to mimic the `onKeyDown` and `onBlur` events of the original element when the item is virtually focused using `aria-activedescendant`. If not provided, nothing will happen when the element is virtually focused.
|
|
195
|
-
|
|
196
|
-
The `usePopoverItem` hook returns an object with the following properties:
|
|
197
|
-
|
|
198
|
-
* `isActiveInPopover`: A boolean that indicates if the item is currently focused in the popover. This can be used to style the item differently when it is focused.
|
|
199
|
-
* `...popoverItemProps`: The rest of the props that you should spread on the focusable element to make it focusable.
|
|
200
|
-
|
|
201
|
-
Toggle
|
|
202
|
-
|
|
203
|
-
Hide code
|
|
204
|
-
|
|
205
|
-
\[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; }
|
|
206
|
-
|
|
207
|
-
const CountButton \= () \=> {
|
|
208
|
-
const \[count, setCount\] \= useState(0);
|
|
209
|
-
const { isActiveInPopover, ...popoverItemProps } \= usePopoverItem('Count', {
|
|
210
|
-
onKeyDown: (e) \=> {
|
|
211
|
-
if (e.key \=== '+') {
|
|
212
|
-
setCount(count + 1);
|
|
213
|
-
}
|
|
214
|
-
},
|
|
215
|
-
});
|
|
216
|
-
const className \= isActiveInPopover ? ButtonCssClass.Active : '';
|
|
217
|
-
return (
|
|
218
|
-
<IressButton
|
|
219
|
-
{...popoverItemProps}
|
|
220
|
-
className\={className}
|
|
221
|
-
mode\="tertiary"
|
|
222
|
-
fluid
|
|
223
|
-
\>
|
|
224
|
-
Increase count using the + key: {count}
|
|
225
|
-
</IressButton\>
|
|
226
|
-
);
|
|
227
|
-
};
|
|
228
|
-
export const UsePopoverExample \= () \=> (
|
|
229
|
-
<IressPopover
|
|
230
|
-
activator\={<IressButton\>Toggle</IressButton\>}
|
|
231
|
-
container\={document.body}
|
|
232
|
-
type\="listbox"
|
|
233
|
-
virtualFocus
|
|
234
|
-
\>
|
|
235
|
-
<CountButton />
|
|
236
|
-
<CountButton />
|
|
237
|
-
</IressPopover\>
|
|
238
|
-
);
|
|
239
|
-
|
|
240
|
-
Copy
|
|
241
|
-
|
|
242
|
-
On this page
|
|
243
|
-
|
|
244
|
-
* [With IressMenu](#with-iressmenu)
|
|
245
|
-
* [Focusable children](#focusable-children)
|
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
[](#progress)Progress
|
|
2
|
-
=====================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
A progress component is used to indicate to a user the completion of a set of tasks or a process.
|
|
8
|
-
|
|
9
|
-
Hide code
|
|
10
|
-
|
|
11
|
-
\[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; }
|
|
12
|
-
|
|
13
|
-
<IressProgress
|
|
14
|
-
max\={30}
|
|
15
|
-
min\={10}
|
|
16
|
-
value\={20}
|
|
17
|
-
/>
|
|
18
|
-
|
|
19
|
-
Copy
|
|
20
|
-
|
|
21
|
-
[](#usage)Usage
|
|
22
|
-
---------------
|
|
23
|
-
|
|
24
|
-
Progress shows how far through a task or operation you are in a graphical way. The simplest way to use it to set the `value` to specify how much of the task the user has completed, relative to the `max` value (which defaults to 100).
|
|
25
|
-
|
|
26
|
-
### [](#calculation-to-convert-value-in-to-width)Calculation to convert value in to width
|
|
27
|
-
|
|
28
|
-
The following calculation is used to derive the width percentage:
|
|
29
|
-
|
|
30
|
-
\[data-radix-scroll-area-viewport\] {
|
|
31
|
-
scrollbar-width: none;
|
|
32
|
-
-ms-overflow-style: none;
|
|
33
|
-
-webkit-overflow-scrolling: touch;
|
|
34
|
-
}
|
|
35
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
36
|
-
display: none;
|
|
37
|
-
}
|
|
38
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
39
|
-
display: flex;
|
|
40
|
-
flex-direction: column;
|
|
41
|
-
align-items: stretch;
|
|
42
|
-
}
|
|
43
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
44
|
-
flex-grow: 1;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
Math.round(
|
|
48
|
-
((this.value - this.min) / (this.max - this.min)) \* 100,
|
|
49
|
-
)
|
|
50
|
-
|
|
51
|
-
Copy
|
|
52
|
-
|
|
53
|
-
This caters for those scenarios where the `min` or `max` values change.
|
|
54
|
-
|
|
55
|
-
### [](#boundary-limits)Boundary limits
|
|
56
|
-
|
|
57
|
-
There is a danger that the value can exceed the boundaries set in the `min` and `max` values, and cause the percentage width of the bar to overflow the indicator. To prevent this the following rules are applied:
|
|
58
|
-
|
|
59
|
-
* If the `value` is less than the `min` prop, it is reset to the `min` prop;
|
|
60
|
-
* If the `value` is more than the `max` prop, it is reset to the `max` prop;
|
|
61
|
-
|
|
62
|
-
### [](#section-title)Section Title
|
|
63
|
-
|
|
64
|
-
The `section-title` prop is used by assistive technologies and allows you to tailor the message announced when the progress component is selected. This could be to add extra context about where the user is in a process or section with a multi-part form.
|
|
65
|
-
|
|
66
|
-
### [](#use-of-tokens)Use of tokens
|
|
67
|
-
|
|
68
|
-
The message supports the use of two tokens within the announcement, which are replaced when the component is rendered. They are:
|
|
69
|
-
|
|
70
|
-
* `{{current}}` - replaced with the `value`;
|
|
71
|
-
* `{{max}}` - replaced with the maximum limit;
|
|
72
|
-
|
|
73
|
-
For example, if the component has been implemented with a max of 10, a value of 6 has been set, and the default section title, the screen reader will announce:
|
|
74
|
-
|
|
75
|
-
\[data-radix-scroll-area-viewport\] {
|
|
76
|
-
scrollbar-width: none;
|
|
77
|
-
-ms-overflow-style: none;
|
|
78
|
-
-webkit-overflow-scrolling: touch;
|
|
79
|
-
}
|
|
80
|
-
\[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
|
|
81
|
-
display: none;
|
|
82
|
-
}
|
|
83
|
-
:where(\[data-radix-scroll-area-viewport\]) {
|
|
84
|
-
display: flex;
|
|
85
|
-
flex-direction: column;
|
|
86
|
-
align-items: stretch;
|
|
87
|
-
}
|
|
88
|
-
:where(\[data-radix-scroll-area-content\]) {
|
|
89
|
-
flex-grow: 1;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
Step 6 of 10
|
|
93
|
-
|
|
94
|
-
Copy
|
|
95
|
-
|
|
96
|
-
On this page
|
|
97
|
-
|
|
98
|
-
* [Overview](#overview)
|
|
99
|
-
* [Props](#props)
|
|
100
|
-
* [Usage](#usage)
|
|
101
|
-
* [Calculation to convert value in to width](#calculation-to-convert-value-in-to-width)
|
|
102
|
-
* [Boundary limits](#boundary-limits)
|
|
103
|
-
* [Section Title](#section-title)
|
|
104
|
-
* [Use of tokens](#use-of-tokens)
|
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
[](#radio)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
|
-
Radio button
|
|
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
|
-
<IressRadio\>
|
|
16
|
-
Radio button
|
|
17
|
-
</IressRadio\>
|
|
18
|
-
|
|
19
|
-
Copy
|
|
20
|
-
|
|
21
|
-
[](#examples)Examples
|
|
22
|
-
---------------------
|
|
23
|
-
|
|
24
|
-
### [](#checked)Checked
|
|
25
|
-
|
|
26
|
-
You can set the radio to `checked` by default. This is useful when you want to pre-select an option.
|
|
27
|
-
|
|
28
|
-
**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.
|
|
29
|
-
|
|
30
|
-
Checked radio button
|
|
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
|
-
<IressRadio checked\>
|
|
37
|
-
Checked radio button
|
|
38
|
-
</IressRadio\>
|
|
39
|
-
|
|
40
|
-
Copy
|
|
41
|
-
|
|
42
|
-
### [](#hidden-control)Hidden control
|
|
43
|
-
|
|
44
|
-
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.
|
|
45
|
-
|
|
46
|
-
Hidden radio button
|
|
47
|
-
|
|
48
|
-
Hide code
|
|
49
|
-
|
|
50
|
-
\[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; }
|
|
51
|
-
|
|
52
|
-
<IressRadio hiddenControl\>
|
|
53
|
-
<IressPanel\>
|
|
54
|
-
Hidden radio button </IressPanel\>
|
|
55
|
-
</IressRadio\>
|
|
56
|
-
|
|
57
|
-
Copy
|
|
58
|
-
|
|
59
|
-
### [](#readonly)Readonly
|
|
60
|
-
|
|
61
|
-
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.
|
|
62
|
-
|
|
63
|
-
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.
|
|
64
|
-
|
|
65
|
-
Radio button
|
|
66
|
-
|
|
67
|
-
Hide code
|
|
68
|
-
|
|
69
|
-
\[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; }
|
|
70
|
-
|
|
71
|
-
<IressStack gutter\="sm"\>
|
|
72
|
-
<IressRadio
|
|
73
|
-
defaultChecked
|
|
74
|
-
readOnly
|
|
75
|
-
\>
|
|
76
|
-
Radio button </IressRadio\>
|
|
77
|
-
<IressRadio readOnly\>
|
|
78
|
-
Radio button </IressRadio\>
|
|
79
|
-
</IressStack\>
|
|
80
|
-
|
|
81
|
-
Copy
|
|
82
|
-
|
|
83
|
-
### [](#touch)Touch
|
|
84
|
-
|
|
85
|
-
The `touch` prop adds the button-like border and padding to radio.
|
|
86
|
-
|
|
87
|
-
Radio button
|
|
88
|
-
|
|
89
|
-
Hide code
|
|
90
|
-
|
|
91
|
-
\[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; }
|
|
92
|
-
|
|
93
|
-
<IressRadio touch\>
|
|
94
|
-
Radio button
|
|
95
|
-
</IressRadio\>
|
|
96
|
-
|
|
97
|
-
Copy
|
|
98
|
-
|
|
99
|
-
On this page
|
|
100
|
-
|
|
101
|
-
* [Overview](#overview)
|
|
102
|
-
* [Props](#props)
|
|
103
|
-
* [Examples](#examples)
|
|
104
|
-
* [Checked](#checked)
|
|
105
|
-
* [Hidden control](#hidden-control)
|
|
106
|
-
* [Readonly](#readonly)
|
|
107
|
-
* [Touch](#touch)
|
|
@@ -1,89 +0,0 @@
|
|
|
1
|
-
[](#readonly)Readonly
|
|
2
|
-
=====================
|
|
3
|
-
|
|
4
|
-
Overview
|
|
5
|
-
--------
|
|
6
|
-
|
|
7
|
-
Readonly displays a value that cannot be edited by the user. It renders a hidden input field to ensure the value is submitted with the form.
|
|
8
|
-
|
|
9
|
-
AU
|
|
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
|
-
<IressReadonly
|
|
16
|
-
append\=""
|
|
17
|
-
prepend\=""
|
|
18
|
-
value\="AU"
|
|
19
|
-
/>
|
|
20
|
-
|
|
21
|
-
Copy
|
|
22
|
-
|
|
23
|
-
[](#examples)Examples
|
|
24
|
-
---------------------
|
|
25
|
-
|
|
26
|
-
### [](#rich-content)Rich Content
|
|
27
|
-
|
|
28
|
-
You can pass in stylised content that represents the value by using the `children` prop. If no `children` is provided, it will display the `value` directly.
|
|
29
|
-
|
|
30
|
-
Australia
|
|
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
|
-
<IressReadonly
|
|
37
|
-
append\=""
|
|
38
|
-
prepend\=""
|
|
39
|
-
value\="AU"
|
|
40
|
-
\>
|
|
41
|
-
<IressInline
|
|
42
|
-
gutter\="sm"
|
|
43
|
-
verticalAlign\="middle"
|
|
44
|
-
\>
|
|
45
|
-
<IressIcon name\="flag" />
|
|
46
|
-
{' '}Australia
|
|
47
|
-
</IressInline\>
|
|
48
|
-
</IressReadonly\>
|
|
49
|
-
|
|
50
|
-
Copy
|
|
51
|
-
|
|
52
|
-
### [](#inline)Inline
|
|
53
|
-
|
|
54
|
-
You can make the prepend/append element closer to the input content using the `inline` prop.
|
|
55
|
-
|
|
56
|
-
Prepend
|
|
57
|
-
|
|
58
|
-
Australia
|
|
59
|
-
|
|
60
|
-
Append
|
|
61
|
-
|
|
62
|
-
Hide code
|
|
63
|
-
|
|
64
|
-
\[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; }
|
|
65
|
-
|
|
66
|
-
<IressReadonly
|
|
67
|
-
append\={<IressText mode\="muted"\>Append</IressText\>}
|
|
68
|
-
inline
|
|
69
|
-
prepend\={<IressText mode\="muted"\>Prepend</IressText\>}
|
|
70
|
-
value\="AU"
|
|
71
|
-
\>
|
|
72
|
-
<IressInline
|
|
73
|
-
gutter\="sm"
|
|
74
|
-
verticalAlign\="middle"
|
|
75
|
-
\>
|
|
76
|
-
<IressIcon name\="flag" />
|
|
77
|
-
{' '}Australia
|
|
78
|
-
</IressInline\>
|
|
79
|
-
</IressReadonly\>
|
|
80
|
-
|
|
81
|
-
Copy
|
|
82
|
-
|
|
83
|
-
On this page
|
|
84
|
-
|
|
85
|
-
* [Overview](#overview)
|
|
86
|
-
* [Props](#props)
|
|
87
|
-
* [Examples](#examples)
|
|
88
|
-
* [Rich Content](#rich-content)
|
|
89
|
-
* [Inline](#inline)
|