@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.
Files changed (134) hide show
  1. package/generated/docs/components_components-alert-docs.md +496 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3429 -0
  3. package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +39 -14
  4. package/generated/docs/{components-badge-docs.md → components_components-badge-docs.md} +222 -30
  5. package/generated/docs/components_components-button-docs.md +2078 -0
  6. package/generated/docs/components_components-button-recipes-docs.md +37 -0
  7. package/generated/docs/components_components-buttongroup-docs.md +1045 -0
  8. package/generated/docs/components_components-card-docs.md +2290 -0
  9. package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +132 -15
  10. package/generated/docs/components_components-checkbox-docs.md +1040 -0
  11. package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1001 -82
  12. package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +102 -12
  13. package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
  14. package/generated/docs/components_components-combobox-docs.md +3735 -0
  15. package/generated/docs/{components-container-docs.md → components_components-container-docs.md} +61 -24
  16. package/generated/docs/{components-divider-docs.md → components_components-divider-docs.md} +83 -24
  17. package/generated/docs/{components-expander-docs.md → components_components-expander-docs.md} +266 -33
  18. package/generated/docs/components_components-field-docs.md +1369 -0
  19. package/generated/docs/components_components-filter-docs.md +4080 -0
  20. package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1556 -360
  21. package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +277 -60
  22. package/generated/docs/{components-hide-docs.md → components_components-hide-docs.md} +195 -124
  23. package/generated/docs/components_components-icon-docs.md +1337 -0
  24. package/generated/docs/{components-inline-docs.md → components_components-inline-docs.md} +462 -42
  25. package/generated/docs/components_components-input-docs.md +1468 -0
  26. package/generated/docs/components_components-input-recipes-docs.md +367 -0
  27. package/generated/docs/components_components-inputcurrency-docs.md +432 -0
  28. package/generated/docs/{components-inputcurrency-recipes-docs.md → components_components-inputcurrency-recipes-docs.md} +113 -17
  29. package/generated/docs/components_components-label-docs.md +323 -0
  30. package/generated/docs/components_components-menu-docs.md +2345 -0
  31. package/generated/docs/components_components-menu-menuitem-docs.md +633 -0
  32. package/generated/docs/{components-modal-docs.md → components_components-modal-docs.md} +1640 -231
  33. package/generated/docs/components_components-navbar-docs.md +1847 -0
  34. package/generated/docs/{components-navbar-recipes-docs.md → components_components-navbar-recipes-docs.md} +721 -40
  35. package/generated/docs/{components-panel-docs.md → components_components-panel-docs.md} +754 -57
  36. package/generated/docs/components_components-placeholder-docs.md +92 -0
  37. package/generated/docs/components_components-popover-docs.md +1643 -0
  38. package/generated/docs/components_components-popover-recipes-docs.md +491 -0
  39. package/generated/docs/components_components-progress-docs.md +115 -0
  40. package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +42 -33
  41. package/generated/docs/components_components-radio-docs.md +491 -0
  42. package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +927 -75
  43. package/generated/docs/components_components-readonly-docs.md +263 -0
  44. package/generated/docs/components_components-richselect-docs.md +6521 -0
  45. package/generated/docs/{components-row-docs.md → components_components-row-docs.md} +353 -43
  46. package/generated/docs/{components-select-docs.md → components_components-select-docs.md} +719 -61
  47. package/generated/docs/components_components-skeleton-docs.md +480 -0
  48. package/generated/docs/{components-skeleton-recipes-docs.md → components_components-skeleton-recipes-docs.md} +51 -11
  49. package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
  50. package/generated/docs/components_components-slideout-docs.md +2293 -0
  51. package/generated/docs/components_components-slider-docs.md +1276 -0
  52. package/generated/docs/components_components-spinner-docs.md +82 -0
  53. package/generated/docs/{components-stack-docs.md → components_components-stack-docs.md} +223 -40
  54. package/generated/docs/components_components-table-docs.md +3658 -0
  55. package/generated/docs/components_components-tabset-docs.md +772 -0
  56. package/generated/docs/components_components-tabset-tab-docs.md +262 -0
  57. package/generated/docs/components_components-tag-docs.md +257 -0
  58. package/generated/docs/{components-text-docs.md → components_components-text-docs.md} +491 -51
  59. package/generated/docs/{components-toaster-docs.md → components_components-toaster-docs.md} +187 -85
  60. package/generated/docs/components_components-toaster-toast-docs.md +634 -0
  61. package/generated/docs/components_components-toggle-docs.md +461 -0
  62. package/generated/docs/{components-tooltip-docs.md → components_components-tooltip-docs.md} +286 -41
  63. package/generated/docs/{components-validationmessage-docs.md → components_components-validationmessage-docs.md} +230 -61
  64. package/generated/docs/components_contact-us-docs.md +12 -0
  65. package/generated/docs/{foundations-accessibility-docs.md → components_foundations-accessibility-docs.md} +11 -21
  66. package/generated/docs/{foundations-colours-docs.md → components_foundations-colour-030-colours.md} +8 -15
  67. package/generated/docs/{foundations-consistency-docs.md → components_foundations-consistency-docs.md} +12 -20
  68. package/generated/docs/{foundations-content-docs.md → components_foundations-content-docs.md} +6 -11
  69. package/generated/docs/components_foundations-introduction-docs.md +15 -0
  70. package/generated/docs/{foundations-principles-docs.md → components_foundations-principles-docs.md} +14 -24
  71. package/generated/docs/components_foundations-typography-docs.md +608 -0
  72. package/generated/docs/{foundations-user-experience-docs.md → components_foundations-user-experience-docs.md} +16 -26
  73. package/generated/docs/{foundations-visual-design-docs.md → components_foundations-visual-design-docs.md} +10 -17
  74. package/generated/docs/{frequently-asked-questions-docs.md → components_frequently-asked-questions-docs.md} +14 -23
  75. package/generated/docs/components_get-started-develop-docs.md +84 -0
  76. package/generated/docs/components_get-started-using-storybook-docs.md +55 -0
  77. package/generated/docs/components_introduction-docs.md +15 -0
  78. package/generated/docs/{patterns-loading-docs.md → components_patterns-loading-docs.md} +798 -153
  79. package/generated/docs/components_resources-changelog-docs.md +4 -0
  80. package/generated/docs/{resources-code-katas-docs.md → components_resources-code-katas-docs.md} +5 -9
  81. package/generated/docs/{resources-migration-guides-from-v4-to-v5-docs.md → components_resources-migration-guides-from-v4-to-v5-docs.md} +54 -239
  82. package/generated/docs/components_sandbox-docs.md +4 -0
  83. package/generated/docs/{versions-docs.md → components_versions-docs.md} +5 -8
  84. package/generated/docs/guidelines.md +484 -200
  85. package/generated/docs/introduction-docs.md +19 -30
  86. package/package.json +41 -45
  87. package/generated/docs/components-alert-docs.md +0 -130
  88. package/generated/docs/components-autocomplete-docs.md +0 -754
  89. package/generated/docs/components-button-docs.md +0 -362
  90. package/generated/docs/components-button-recipes-docs.md +0 -76
  91. package/generated/docs/components-buttongroup-docs.md +0 -310
  92. package/generated/docs/components-card-docs.md +0 -494
  93. package/generated/docs/components-checkbox-docs.md +0 -193
  94. package/generated/docs/components-combobox-docs.md +0 -1016
  95. package/generated/docs/components-field-docs.md +0 -675
  96. package/generated/docs/components-filter-docs.md +0 -1109
  97. package/generated/docs/components-icon-docs.md +0 -553
  98. package/generated/docs/components-input-docs.md +0 -335
  99. package/generated/docs/components-input-recipes-docs.md +0 -140
  100. package/generated/docs/components-inputcurrency-docs.md +0 -157
  101. package/generated/docs/components-label-docs.md +0 -135
  102. package/generated/docs/components-menu-docs.md +0 -704
  103. package/generated/docs/components-menu-menuitem-docs.md +0 -193
  104. package/generated/docs/components-navbar-docs.md +0 -291
  105. package/generated/docs/components-placeholder-docs.md +0 -27
  106. package/generated/docs/components-popover-docs.md +0 -464
  107. package/generated/docs/components-popover-recipes-docs.md +0 -245
  108. package/generated/docs/components-progress-docs.md +0 -104
  109. package/generated/docs/components-radio-docs.md +0 -107
  110. package/generated/docs/components-readonly-docs.md +0 -89
  111. package/generated/docs/components-richselect-docs.md +0 -2433
  112. package/generated/docs/components-skeleton-docs.md +0 -214
  113. package/generated/docs/components-slideout-docs.md +0 -538
  114. package/generated/docs/components-slider-docs.md +0 -346
  115. package/generated/docs/components-spinner-docs.md +0 -59
  116. package/generated/docs/components-table-ag-grid-docs.md +0 -1074
  117. package/generated/docs/components-table-docs.md +0 -1305
  118. package/generated/docs/components-tabset-docs.md +0 -341
  119. package/generated/docs/components-tabset-tab-docs.md +0 -86
  120. package/generated/docs/components-tag-docs.md +0 -115
  121. package/generated/docs/components-toaster-toast-docs.md +0 -157
  122. package/generated/docs/components-toggle-docs.md +0 -158
  123. package/generated/docs/contact-us-docs.md +0 -27
  124. package/generated/docs/extensions-editor-docs.md +0 -288
  125. package/generated/docs/extensions-editor-recipes-docs.md +0 -39
  126. package/generated/docs/foundations-introduction-docs.md +0 -17
  127. package/generated/docs/foundations-typography-docs.md +0 -191
  128. package/generated/docs/get-started-develop-docs.md +0 -209
  129. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  130. package/generated/docs/resources-changelog-docs.md +0 -6
  131. package/generated/docs/themes-available-themes-docs.md +0 -66
  132. package/generated/docs/themes-introduction-docs.md +0 -121
  133. package/generated/docs/themes-tokens-docs.md +0 -1200
  134. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -0,0 +1,491 @@
1
+ Recipes
2
+ =======
3
+
4
+ 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
+ [](./iframe.html?id=components-popover-recipes--with-menu)
13
+
14
+ role=menu
15
+
16
+ ### Application menu behaviour
17
+
18
+ * Once activated, focus is set to the first menu item
19
+ * Menu items can be navigated using the `up` and `down` arrow keys
20
+ * Popover will close when:
21
+ * the `esc` key is pressed
22
+ * the `tab` key is pressed (focus moves to the focusable element in the DOM)
23
+ * a menu item is clicked
24
+
25
+ role=list
26
+
27
+ ### Navigation/list menu behaviour
28
+
29
+ * Once activated, focus is set to the popover panel
30
+ * Menu items can be navigated using the `tab` key
31
+ * Popover will close when:
32
+ * the `esc` key is pressed
33
+ * the popover panel loses focus
34
+
35
+ role=listbox
36
+
37
+ Multi-select
38
+
39
+ ### Listbox menu behaviour
40
+
41
+ * Once activated, focus is set to the first menu item
42
+ * Menu items can be navigated using arrow keys
43
+ * Popover will close when:
44
+ * the `esc` key is pressed
45
+ * the `tab` key is pressed (focus moves to the next focusable element in the DOM)
46
+ * a menu item is clicked (except when a listbox menu is in `multiSelect` mode)
47
+ * When user presses the `up` key when the first item is focused
48
+
49
+ role=nav
50
+
51
+ ### Navigation/list menu behaviour
52
+
53
+ * Once activated, focus is set to the popover panel
54
+ * Menu items can be navigated using the `tab` key
55
+ * Popover will close when:
56
+ * the `esc` key is pressed
57
+ * the popover panel loses focus
58
+
59
+ Hide codedrawOpen in CodeSandbox
60
+
61
+ {
62
+ args: {
63
+ menuChildren: 'selectable'
64
+ },
65
+ argTypes: {
66
+ ...disableArgTypes(\['activator', 'children', 'role', 'type'\])
67
+ },
68
+ render: ({
69
+ menuChildren,
70
+ ...args
71
+ }) \=> {
72
+ const \[multiSelect, setMultiSelect\] \= useState(false);
73
+ return <IressContainer className\="iress-u-stack iress--gutter--md"\>
74
+ {MENU\_ROLES.map(role \=> <IressRow gutter\={IressRow.Gutter.Lg} key\={role} verticalAlign\={IressRow.VerticalAlign.Middle}\>
75
+ <IressCol span\={IressCol.Span.Two}\>
76
+ <IressPopover {...args} activator\={<IressButton fluid\>role={role}</IressButton\>} container\={document.body} type\={role \=== 'listbox' || role \=== 'menu' ? role : undefined}\>
77
+ <IressMenu role\={role} defaultSelected\={3} multiSelect\={multiSelect && role \=== 'listbox'}\>
78
+ {menuChildren}
79
+ </IressMenu\>
80
+ </IressPopover\>
81
+ </IressCol\>
82
+ <IressCol\>
83
+ <MenuInPopoverRoleDescription role\={role}\>
84
+ {role \=== 'listbox' && <IressToggle className\="iress-mb--md" checked\={multiSelect} onChange\={() \=> setMultiSelect(!multiSelect)}\>
85
+ Multi-select </IressToggle\>}
86
+ </MenuInPopoverRoleDescription\>
87
+ </IressCol\>
88
+ </IressRow\>)}
89
+ </IressContainer\>;
90
+ }
91
+ }
92
+
93
+ ```
94
+
95
+ #### Props
96
+
97
+ | Name | Description | Default | Control |
98
+ | --- | --- | --- | --- |
99
+ | activator\* |
100
+ Content for an activator element, usually an `IressButton`.
101
+
102
+ PopoverActivatorProps\['children'\]
103
+
104
+ | \- | \- |
105
+ | align |
106
+
107
+ Sets the alignment of the popover relative to the activator element.
108
+
109
+ union
110
+
111
+
112
+
113
+ |
114
+
115
+ 'auto'
116
+
117
+ | Set object |
118
+ | children |
119
+
120
+ The content to render within the popover.
121
+
122
+ ReactReactNode
123
+
124
+
125
+
126
+ | \- | \- |
127
+ | container |
128
+
129
+ The container element to render the popover into. By default, the popover will render where its parent is rendered.
130
+
131
+ **Note:** If the `container` doesn’t exist when the popover is mounted, ensure you pass an element directly (not a ref) and specify null as the default value before it is set. This lets it wait for the root to be available. For example, if you reference the parent element of a popover.
132
+
133
+ FloatingUIContainer
134
+
135
+
136
+
137
+ | \- | Set object |
138
+ | contentClassName |
139
+
140
+ Class name of the popover content
141
+
142
+ string
143
+
144
+
145
+
146
+ | \- | Set string |
147
+ | defaultShow |
148
+
149
+ When set to `true` the popover will be visible by default. Use for uncontrolled popovers.
150
+
151
+ boolean
152
+
153
+
154
+
155
+ | \- | Set boolean |
156
+ | disabledAutoToggle |
157
+
158
+ When set to `true`, popover toggling can only be done through the toggle method on the `ref`.
159
+
160
+ boolean
161
+
162
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use a controlled `show` prop instead.</td></tr></tbody></table>
163
+
164
+ | \- | Set boolean |
165
+ | displayMode |
166
+
167
+ Sets the display mode of popover.
168
+
169
+ union
170
+
171
+
172
+
173
+ |
174
+
175
+ 'overlay'
176
+
177
+ | Set object |
178
+ | focusStartIndex |
179
+
180
+ Which index to start the focus on when the popover is opened. Only works with `type` listbox and menu. Note: The index must exist in the list of items, otherwise it will not work.
181
+
182
+ number
183
+
184
+
185
+
186
+ | \- | Set number |
187
+ | matchActivatorWidth |
188
+
189
+ Sets the popover to match the width of the activator. Note: This only works when `displayMode="overlay"`.
190
+
191
+ boolean
192
+
193
+
194
+
195
+ | \- | Set boolean |
196
+ | menuChildren |
197
+
198
+ string
199
+
200
+
201
+
202
+ | \- | menuChildrenChoose option...nonebasiccomplexnavigationheadingsdividersslotsextraInformationselectable |
203
+ | onActivated |
204
+
205
+ Is called when popover is activated.
206
+
207
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
208
+
209
+ | \- | \- |
210
+ | onDeactivated |
211
+
212
+ Is called when popover is deactivated.
213
+
214
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
215
+
216
+ | \- | \- |
217
+ | onNavigate |
218
+
219
+ Is called when registered popover items are navigated using arrow keys. Only works with `type` listbox and menu.
220
+
221
+ (activeIndex: number | null) => void
222
+
223
+ | \- | \- |
224
+ | role |
225
+
226
+ \-
227
+
228
+ | \- | \- |
229
+ | show |
230
+
231
+ When set to `true` the modal will be visible. Use for controlled popovers.
232
+
233
+ boolean
234
+
235
+
236
+
237
+ | \- | Set boolean |
238
+ | type |
239
+
240
+ Describes the type of content contained in the popover.
241
+
242
+ union
243
+
244
+
245
+
246
+ | \- | \- |
247
+ | virtualFocus |
248
+
249
+ Whether the focus is virtual (using `aria-activedescendant`). Use this if you need focus to remain on the reference element (such as an input), but allow arrow keys to navigate items. Note: This is only applicable when type is set to: `listbox` or `menu`, and only works out of the box with `IressMenu` and its subcomponents.
250
+
251
+ boolean
252
+
253
+
254
+
255
+ | \- | Set boolean |
256
+ | width |
257
+
258
+ Sets the width of the popover
259
+
260
+ string
261
+
262
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: use the `--iress-max-width` design token instead.</td></tr></tbody></table>
263
+
264
+ | \- | Set string |
265
+
266
+ Focusable children
267
+ ------------------
268
+
269
+ 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.
270
+
271
+ The `usePopoverItem` hook will automatically handle the focus management for you. It has two optional arguments:
272
+
273
+ * 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.
274
+ * 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.
275
+
276
+ The `usePopoverItem` hook returns an object with the following properties:
277
+
278
+ * `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.
279
+ * `...popoverItemProps`: The rest of the props that you should spread on the focusable element to make it focusable.
280
+
281
+ [](./iframe.html?id=components-popover-recipes--focusable-children)
282
+
283
+ Toggle
284
+
285
+ Hide codedrawOpen in CodeSandbox
286
+
287
+ import { useState } from 'react';
288
+ import {
289
+ ButtonCssClass,
290
+ IressButton,
291
+ IressPopover,
292
+ usePopoverItem,
293
+ } from '@/main';
294
+ const CountButton \= () \=> {
295
+ const \[count, setCount\] \= useState(0);
296
+ const { isActiveInPopover, ...popoverItemProps } \= usePopoverItem('Count', {
297
+ onKeyDown: (e) \=> {
298
+ if (e.key \=== '+') {
299
+ setCount(count + 1);
300
+ }
301
+ },
302
+ });
303
+ const className \= isActiveInPopover ? ButtonCssClass.Active : '';
304
+ return (
305
+ <IressButton
306
+ {...popoverItemProps}
307
+ className\={className}
308
+ mode\="tertiary"
309
+ fluid
310
+ \>
311
+ Increase count using the + key: {count}
312
+ </IressButton\>
313
+ );
314
+ };
315
+ export const UsePopoverExample \= () \=> (
316
+ <IressPopover
317
+ activator\={<IressButton\>Toggle</IressButton\>}
318
+ container\={document.body}
319
+ type\="listbox"
320
+ virtualFocus
321
+ \>
322
+ <CountButton />
323
+ <CountButton />
324
+ </IressPopover\>
325
+ );
326
+
327
+ ```
328
+
329
+ #### Props
330
+
331
+ | Name | Description | Default | Control |
332
+ | --- | --- | --- | --- |
333
+ | activator\* |
334
+ Content for an activator element, usually an `IressButton`.
335
+
336
+ PopoverActivatorProps\['children'\]
337
+
338
+ | \- | Set object |
339
+ | align |
340
+
341
+ Sets the alignment of the popover relative to the activator element.
342
+
343
+ union
344
+
345
+
346
+
347
+ |
348
+
349
+ 'auto'
350
+
351
+ | Set object |
352
+ | children |
353
+
354
+ The content to render within the popover.
355
+
356
+ ReactReactNode
357
+
358
+
359
+
360
+ | \- | \- |
361
+ | container |
362
+
363
+ The container element to render the popover into. By default, the popover will render where its parent is rendered.
364
+
365
+ **Note:** If the `container` doesn’t exist when the popover is mounted, ensure you pass an element directly (not a ref) and specify null as the default value before it is set. This lets it wait for the root to be available. For example, if you reference the parent element of a popover.
366
+
367
+ FloatingUIContainer
368
+
369
+
370
+
371
+ | \- | Set object |
372
+ | contentClassName |
373
+
374
+ Class name of the popover content
375
+
376
+ string
377
+
378
+
379
+
380
+ | \- | Set string |
381
+ | defaultShow |
382
+
383
+ When set to `true` the popover will be visible by default. Use for uncontrolled popovers.
384
+
385
+ boolean
386
+
387
+
388
+
389
+ | \- | Set boolean |
390
+ | disabledAutoToggle |
391
+
392
+ When set to `true`, popover toggling can only be done through the toggle method on the `ref`.
393
+
394
+ boolean
395
+
396
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use a controlled `show` prop instead.</td></tr></tbody></table>
397
+
398
+ | \- | Set boolean |
399
+ | displayMode |
400
+
401
+ Sets the display mode of popover.
402
+
403
+ union
404
+
405
+
406
+
407
+ |
408
+
409
+ 'overlay'
410
+
411
+ | Set object |
412
+ | focusStartIndex |
413
+
414
+ Which index to start the focus on when the popover is opened. Only works with `type` listbox and menu. Note: The index must exist in the list of items, otherwise it will not work.
415
+
416
+ number
417
+
418
+
419
+
420
+ | \- | Set number |
421
+ | matchActivatorWidth |
422
+
423
+ Sets the popover to match the width of the activator. Note: This only works when `displayMode="overlay"`.
424
+
425
+ boolean
426
+
427
+
428
+
429
+ | \- | Set boolean |
430
+ | menuChildren |
431
+
432
+ \-
433
+
434
+ | \- | menuChildrenChoose option...nonebasiccomplexnavigationheadingsdividersslotsextraInformationselectable |
435
+ | onActivated |
436
+
437
+ Is called when popover is activated.
438
+
439
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
440
+
441
+ | \- | \- |
442
+ | onDeactivated |
443
+
444
+ Is called when popover is deactivated.
445
+
446
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
447
+
448
+ | \- | \- |
449
+ | onNavigate |
450
+
451
+ Is called when registered popover items are navigated using arrow keys. Only works with `type` listbox and menu.
452
+
453
+ (activeIndex: number | null) => void
454
+
455
+ | \- | \- |
456
+ | show |
457
+
458
+ When set to `true` the modal will be visible. Use for controlled popovers.
459
+
460
+ boolean
461
+
462
+
463
+
464
+ | \- | Set boolean |
465
+ | type |
466
+
467
+ Describes the type of content contained in the popover.
468
+
469
+ union
470
+
471
+
472
+
473
+ | \- | Set object |
474
+ | virtualFocus |
475
+
476
+ Whether the focus is virtual (using `aria-activedescendant`). Use this if you need focus to remain on the reference element (such as an input), but allow arrow keys to navigate items. Note: This is only applicable when type is set to: `listbox` or `menu`, and only works out of the box with `IressMenu` and its subcomponents.
477
+
478
+ boolean
479
+
480
+
481
+
482
+ | \- | Set boolean |
483
+ | width |
484
+
485
+ Sets the width of the popover
486
+
487
+ string
488
+
489
+ <table class="css-ymgjf7"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: use the `--iress-max-width` design token instead.</td></tr></tbody></table>
490
+
491
+ | \- | Set string |
@@ -0,0 +1,115 @@
1
+ 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
+ [](./iframe.html?id=components-progress--default)
10
+
11
+ Hide codedrawOpen in CodeSandbox
12
+
13
+ {
14
+ args: {
15
+ min: 10,
16
+ max: 30,
17
+ value: 20
18
+ }
19
+ }
20
+
21
+ ```
22
+
23
+ Props
24
+ -----
25
+
26
+ | Name | Description | Default | Control |
27
+ | --- | --- | --- | --- |
28
+ | max |
29
+ The maximum value of the progress indicator.
30
+
31
+ number
32
+
33
+
34
+
35
+ |
36
+
37
+ 100
38
+
39
+ | |
40
+ | min |
41
+
42
+ The minimum value of the progress indicator.
43
+
44
+ number
45
+
46
+
47
+
48
+ |
49
+
50
+ 0
51
+
52
+ | |
53
+ | sectionTitle |
54
+
55
+ The text that is announced by the screen reader. Should contain a description of the section the progress is being measured for. You can use {{current}} and {{max}} as string replacers for the current value and maximum value respectively..
56
+
57
+ string
58
+
59
+
60
+
61
+ | 'Progress is {{current}} of {{max}}' | Set string |
62
+ | value |
63
+
64
+ The current value of the progress indicator.
65
+
66
+ number
67
+
68
+
69
+
70
+ |
71
+
72
+ 0
73
+
74
+ | |
75
+
76
+ Usage
77
+ -----
78
+
79
+ 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).
80
+
81
+ ### Calculation to convert value in to width
82
+
83
+ The following calculation is used to derive the width percentage:
84
+
85
+ Math.round(
86
+ ((this.value - this.min) / (this.max - this.min)) \* 100,
87
+ )
88
+
89
+ ```
90
+
91
+ This caters for those scenarios where the `min` or `max` values change.
92
+
93
+ ### Boundary limits
94
+
95
+ 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:
96
+
97
+ * If the `value` is less than the `min` prop, it is reset to the `min` prop;
98
+ * If the `value` is more than the `max` prop, it is reset to the `max` prop;
99
+
100
+ ### Section Title
101
+
102
+ 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.
103
+
104
+ ### Use of tokens
105
+
106
+ The message supports the use of two tokens within the announcement, which are replaced when the component is rendered. They are:
107
+
108
+ * `{{current}}` - replaced with the `value`;
109
+ * `{{max}}` - replaced with the maximum limit;
110
+
111
+ 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:
112
+
113
+ Step 6 of 10
114
+
115
+ ```
@@ -1,16 +1,16 @@
1
- [](#provider)Provider
2
- =====================
1
+ Provider
2
+ ========
3
3
 
4
4
  Overview
5
5
  --------
6
6
 
7
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
8
 
9
- Show modalShow slideoutShow toast
9
+ [](./iframe.html?id=components-provider--provider)
10
10
 
11
- Hide code
11
+ Show modalShow slideoutShow toast
12
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; }
13
+ Hide codedrawOpen in CodeSandbox
14
14
 
15
15
  import {
16
16
  IressButton,
@@ -23,7 +23,7 @@ import {
23
23
  useModal,
24
24
  useSlideout,
25
25
  useToaster,
26
- } from '@iress-oss/ids-components';
26
+ } from '@/main';
27
27
  const Page \= () \=> {
28
28
  const { showModal } \= useModal();
29
29
  const { showSlideout } \= useSlideout();
@@ -59,10 +59,42 @@ export const AppWithProvider \= () \=> (
59
59
  </IressProvider\>
60
60
  );
61
61
 
62
- Copy
62
+ ```
63
+
64
+ Props
65
+ -----
66
+
67
+ | Name | Description | Default | Control |
68
+ | --- | --- | --- | --- |
69
+ | children |
70
+ The contents of your application, and/or the components which will be calling slideouts, modals and toasts.
71
+
72
+ ReactNode
73
+
74
+
75
+
76
+ | \- | \- |
77
+ | container |
78
+
79
+ Container to render modal, slideouts and toasts into. If not provided, will render into the body of the document.
80
+
81
+ FloatingUIContainer
82
+
63
83
 
64
- [](#usage)Usage
65
- ---------------
84
+
85
+ | \- | \- |
86
+ | noIcons |
87
+
88
+ If you don't want to load the Iress Icon CSS from the CDN, set this to true.
89
+
90
+ boolean
91
+
92
+
93
+
94
+ | \- | \- |
95
+
96
+ Usage
97
+ -----
66
98
 
67
99
  The design system provider automates some set-up tasks for you, including:
68
100
 
@@ -71,23 +103,6 @@ The design system provider automates some set-up tasks for you, including:
71
103
 
72
104
  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.
73
105
 
74
- \[data-radix-scroll-area-viewport\] {
75
- scrollbar-width: none;
76
- -ms-overflow-style: none;
77
- -webkit-overflow-scrolling: touch;
78
- }
79
- \[data-radix-scroll-area-viewport\]::-webkit-scrollbar {
80
- display: none;
81
- }
82
- :where(\[data-radix-scroll-area-viewport\]) {
83
- display: flex;
84
- flex-direction: column;
85
- align-items: stretch;
86
- }
87
- :where(\[data-radix-scroll-area-content\]) {
88
- flex-grow: 1;
89
- }
90
-
91
106
  import { IressProvider } from '@iress-oss/ids-components';
92
107
  ReactDOM.createRoot(document.getElementById('root')!).render(
93
108
  <IressProvider\>
@@ -96,10 +111,4 @@ ReactDOM.createRoot(document.getElementById('root')!).render(
96
111
  </IressProvider\>,
97
112
  );
98
113
 
99
- Copy
100
-
101
- On this page
102
-
103
- * [Overview](#overview)
104
- * [Props](#props)
105
- * [Usage](#usage)
114
+ ```