@iress-oss/ids-mcp-server 5.15.0 → 5.20.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.
Files changed (132) hide show
  1. package/generated/docs/components_components-alert-docs.md +492 -0
  2. package/generated/docs/components_components-autocomplete-docs.md +3485 -0
  3. package/generated/docs/{components-autocomplete-recipes-docs.md → components_components-autocomplete-recipes-docs.md} +32 -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 +2276 -0
  9. package/generated/docs/{components-card-recipes-docs.md → components_components-card-recipes-docs.md} +131 -14
  10. package/generated/docs/components_components-checkbox-docs.md +1054 -0
  11. package/generated/docs/{components-checkboxgroup-docs.md → components_components-checkboxgroup-docs.md} +1000 -81
  12. package/generated/docs/{components-checkboxgroup-recipes-docs.md → components_components-checkboxgroup-recipes-docs.md} +101 -11
  13. package/generated/docs/{components-col-docs.md → components_components-col-docs.md} +331 -58
  14. package/generated/docs/components_components-combobox-docs.md +3767 -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} +264 -33
  18. package/generated/docs/{components-field-docs.md → components_components-field-docs.md} +814 -120
  19. package/generated/docs/components_components-filter-docs.md +4080 -0
  20. package/generated/docs/{components-form-docs.md → components_components-form-docs.md} +1515 -353
  21. package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +170 -54
  22. package/generated/docs/components_components-hide-docs.md +293 -0
  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} +110 -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} +1625 -232
  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} +697 -39
  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 +1641 -0
  38. package/generated/docs/{components-popover-recipes-docs.md → components_components-popover-recipes-docs.md} +347 -17
  39. package/generated/docs/components_components-progress-docs.md +115 -0
  40. package/generated/docs/{components-provider-docs.md → components_components-provider-docs.md} +41 -32
  41. package/generated/docs/components_components-radio-docs.md +491 -0
  42. package/generated/docs/{components-radiogroup-docs.md → components_components-radiogroup-docs.md} +943 -75
  43. package/generated/docs/components_components-readonly-docs.md +263 -0
  44. package/generated/docs/components_components-richselect-docs.md +6497 -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} +50 -10
  49. package/generated/docs/{components-skiplink-docs.md → components_components-skiplink-docs.md} +53 -14
  50. package/generated/docs/components_components-slideout-docs.md +2262 -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 +3651 -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 +259 -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} +181 -79
  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} +711 -143
  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/{versions-docs.md → components_versions-docs.md} +5 -8
  83. package/generated/docs/guidelines.md +484 -200
  84. package/generated/docs/introduction-docs.md +19 -30
  85. package/package.json +41 -45
  86. package/generated/docs/components-alert-docs.md +0 -130
  87. package/generated/docs/components-autocomplete-docs.md +0 -754
  88. package/generated/docs/components-button-docs.md +0 -362
  89. package/generated/docs/components-button-recipes-docs.md +0 -76
  90. package/generated/docs/components-buttongroup-docs.md +0 -310
  91. package/generated/docs/components-card-docs.md +0 -494
  92. package/generated/docs/components-checkbox-docs.md +0 -193
  93. package/generated/docs/components-combobox-docs.md +0 -1016
  94. package/generated/docs/components-filter-docs.md +0 -1109
  95. package/generated/docs/components-hide-docs.md +0 -265
  96. package/generated/docs/components-icon-docs.md +0 -553
  97. package/generated/docs/components-input-docs.md +0 -335
  98. package/generated/docs/components-input-recipes-docs.md +0 -140
  99. package/generated/docs/components-inputcurrency-docs.md +0 -157
  100. package/generated/docs/components-label-docs.md +0 -135
  101. package/generated/docs/components-menu-docs.md +0 -704
  102. package/generated/docs/components-menu-menuitem-docs.md +0 -193
  103. package/generated/docs/components-navbar-docs.md +0 -291
  104. package/generated/docs/components-placeholder-docs.md +0 -27
  105. package/generated/docs/components-popover-docs.md +0 -464
  106. package/generated/docs/components-progress-docs.md +0 -104
  107. package/generated/docs/components-radio-docs.md +0 -107
  108. package/generated/docs/components-readonly-docs.md +0 -89
  109. package/generated/docs/components-richselect-docs.md +0 -2433
  110. package/generated/docs/components-skeleton-docs.md +0 -214
  111. package/generated/docs/components-slideout-docs.md +0 -538
  112. package/generated/docs/components-slider-docs.md +0 -346
  113. package/generated/docs/components-spinner-docs.md +0 -59
  114. package/generated/docs/components-table-ag-grid-docs.md +0 -1074
  115. package/generated/docs/components-table-docs.md +0 -1305
  116. package/generated/docs/components-tabset-docs.md +0 -341
  117. package/generated/docs/components-tabset-tab-docs.md +0 -86
  118. package/generated/docs/components-tag-docs.md +0 -115
  119. package/generated/docs/components-toaster-toast-docs.md +0 -157
  120. package/generated/docs/components-toggle-docs.md +0 -158
  121. package/generated/docs/contact-us-docs.md +0 -27
  122. package/generated/docs/extensions-editor-docs.md +0 -288
  123. package/generated/docs/extensions-editor-recipes-docs.md +0 -39
  124. package/generated/docs/foundations-introduction-docs.md +0 -17
  125. package/generated/docs/foundations-typography-docs.md +0 -191
  126. package/generated/docs/get-started-develop-docs.md +0 -209
  127. package/generated/docs/get-started-using-storybook-docs.md +0 -68
  128. package/generated/docs/resources-changelog-docs.md +0 -6
  129. package/generated/docs/themes-available-themes-docs.md +0 -66
  130. package/generated/docs/themes-introduction-docs.md +0 -121
  131. package/generated/docs/themes-tokens-docs.md +0 -1200
  132. /package/{LICENSE.txt → LICENSE} +0 -0
@@ -1,14 +1,16 @@
1
- [](#recipes)Recipes
2
- ===================
1
+ Recipes
2
+ =======
3
3
 
4
- [](#with-iressmenu)With `IressMenu`
5
- -----------------------------------
4
+ With `IressMenu`
5
+ ----------------
6
6
 
7
7
  When an `IressMenu` is used inside `IressPopover`, it adds some additional functionality to the popover, including:
8
8
 
9
9
  * `IressPopover` will automatically close the popover when a menu item is clicked.
10
10
  * `IressMenu` will automatically focus the first menu item when the popover is opened.
11
11
 
12
+ [](./iframe.html?id=components-popover-recipes--with-menu)
13
+
12
14
  role=menu
13
15
 
14
16
  ### Application menu behaviour
@@ -54,9 +56,7 @@ role=nav
54
56
  * the `esc` key is pressed
55
57
  * the popover panel loses focus
56
58
 
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; }
59
+ ```
60
60
 
61
61
  <IressContainer className\="iress-u-stack iress--gutter--md"\>
62
62
  <IressRow
@@ -181,10 +181,181 @@ Hide code
181
181
  </IressRow\>
182
182
  </IressContainer\>
183
183
 
184
- Copy
184
+ ```
185
+
186
+ #### Props
187
+
188
+ | Name | Description | Default | Control |
189
+ | --- | --- | --- | --- |
190
+ | activator\* |
191
+ Content for an activator element, usually an `IressButton`.
192
+
193
+ PopoverActivatorProps\['children'\]
194
+
195
+ | \- | \- |
196
+ | align |
197
+
198
+ Sets the alignment of the popover relative to the activator element.
199
+
200
+ union
201
+
202
+
203
+
204
+ |
205
+
206
+ 'auto'
207
+
208
+ | Set object |
209
+ | children |
210
+
211
+ The content to render within the popover.
212
+
213
+ ReactReactNode
214
+
215
+
216
+
217
+ | \- | \- |
218
+ | container |
219
+
220
+ The container element to render the popover into. By default, the popover will render where its parent is rendered.
221
+
222
+ **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.
223
+
224
+ FloatingUIContainer
225
+
226
+
227
+
228
+ | \- | Set object |
229
+ | contentClassName |
230
+
231
+ Class name of the popover content
232
+
233
+ string
234
+
235
+
236
+
237
+ | \- | Set string |
238
+ | defaultShow |
239
+
240
+ When set to `true` the popover will be visible by default. Use for uncontrolled popovers.
241
+
242
+ boolean
243
+
244
+
245
+
246
+ | \- | Set boolean |
247
+ | disabledAutoToggle |
248
+
249
+ When set to `true`, popover toggling can only be done through the toggle method on the `ref`.
250
+
251
+ boolean
252
+
253
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use a controlled `show` prop instead.</td></tr></tbody></table>
254
+
255
+ | \- | Set boolean |
256
+ | displayMode |
257
+
258
+ Sets the display mode of popover.
259
+
260
+ union
261
+
262
+
263
+
264
+ |
265
+
266
+ 'overlay'
267
+
268
+ | Set object |
269
+ | focusStartIndex |
270
+
271
+ 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.
272
+
273
+ number
274
+
275
+
276
+
277
+ | \- | Set number |
278
+ | matchActivatorWidth |
279
+
280
+ Sets the popover to match the width of the activator. Note: This only works when `displayMode="overlay"`.
281
+
282
+ boolean
283
+
284
+
285
+
286
+ | \- | Set boolean |
287
+ | menuChildren |
288
+
289
+ string
290
+
291
+
292
+
293
+ | \- | Choose option...nonebasiccomplexnavigationheadingsdividersslotsextraInformationselectable |
294
+ | onActivated |
295
+
296
+ Is called when popover is activated.
297
+
298
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
299
+
300
+ | \- | \- |
301
+ | onDeactivated |
302
+
303
+ Is called when popover is deactivated.
304
+
305
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
306
+
307
+ | \- | \- |
308
+ | onNavigate |
309
+
310
+ Is called when registered popover items are navigated using arrow keys. Only works with `type` listbox and menu.
311
+
312
+ (activeIndex: number | null) => void
313
+
314
+ | \- | \- |
315
+ | role |
316
+
317
+ \-
318
+
319
+ | \- | \- |
320
+ | show |
321
+
322
+ When set to `true` the modal will be visible. Use for controlled popovers.
323
+
324
+ boolean
325
+
326
+
327
+
328
+ | \- | Set boolean |
329
+ | type |
330
+
331
+ Describes the type of content contained in the popover.
332
+
333
+ union
334
+
335
+
336
+
337
+ | \- | \- |
338
+ | virtualFocus |
339
+
340
+ 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.
341
+
342
+ boolean
343
+
344
+
345
+
346
+ | \- | Set boolean |
347
+ | width |
348
+
349
+ Sets the width of the popover
185
350
 
186
- [](#focusable-children)Focusable children
187
- -----------------------------------------
351
+ string
352
+
353
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: use the `--iress-max-width` design token instead.</td></tr></tbody></table>
354
+
355
+ | \- | Set string |
356
+
357
+ Focusable children
358
+ ------------------
188
359
 
189
360
  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
361
 
@@ -198,11 +369,11 @@ The `usePopoverItem` hook returns an object with the following properties:
198
369
  * `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
370
  * `...popoverItemProps`: The rest of the props that you should spread on the focusable element to make it focusable.
200
371
 
201
- Toggle
372
+ [](./iframe.html?id=components-popover-recipes--focusable-children)
202
373
 
203
- Hide code
374
+ Toggle
204
375
 
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; }
376
+ ```
206
377
 
207
378
  const CountButton \= () \=> {
208
379
  const \[count, setCount\] \= useState(0);
@@ -237,9 +408,168 @@ export const UsePopoverExample \= () \=> (
237
408
  </IressPopover\>
238
409
  );
239
410
 
240
- Copy
411
+ ```
412
+
413
+ #### Props
414
+
415
+ | Name | Description | Default | Control |
416
+ | --- | --- | --- | --- |
417
+ | activator\* |
418
+ Content for an activator element, usually an `IressButton`.
419
+
420
+ PopoverActivatorProps\['children'\]
421
+
422
+ | \- | Set object |
423
+ | align |
424
+
425
+ Sets the alignment of the popover relative to the activator element.
426
+
427
+ union
428
+
429
+
430
+
431
+ |
432
+
433
+ 'auto'
434
+
435
+ | Set object |
436
+ | children |
437
+
438
+ The content to render within the popover.
439
+
440
+ ReactReactNode
441
+
442
+
443
+
444
+ | \- | \- |
445
+ | container |
446
+
447
+ The container element to render the popover into. By default, the popover will render where its parent is rendered.
448
+
449
+ **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.
450
+
451
+ FloatingUIContainer
452
+
453
+
454
+
455
+ | \- | Set object |
456
+ | contentClassName |
457
+
458
+ Class name of the popover content
459
+
460
+ string
461
+
462
+
463
+
464
+ | \- | Set string |
465
+ | defaultShow |
466
+
467
+ When set to `true` the popover will be visible by default. Use for uncontrolled popovers.
468
+
469
+ boolean
470
+
471
+
472
+
473
+ | \- | Set boolean |
474
+ | disabledAutoToggle |
475
+
476
+ When set to `true`, popover toggling can only be done through the toggle method on the `ref`.
477
+
478
+ boolean
479
+
480
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: Use a controlled `show` prop instead.</td></tr></tbody></table>
481
+
482
+ | \- | Set boolean |
483
+ | displayMode |
484
+
485
+ Sets the display mode of popover.
486
+
487
+ union
488
+
489
+
490
+
491
+ |
492
+
493
+ 'overlay'
494
+
495
+ | Set object |
496
+ | focusStartIndex |
497
+
498
+ 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.
499
+
500
+ number
501
+
502
+
503
+
504
+ | \- | Set number |
505
+ | matchActivatorWidth |
506
+
507
+ Sets the popover to match the width of the activator. Note: This only works when `displayMode="overlay"`.
508
+
509
+ boolean
510
+
511
+
512
+
513
+ | \- | Set boolean |
514
+ | menuChildren |
515
+
516
+ \-
517
+
518
+ | \- | Choose option...nonebasiccomplexnavigationheadingsdividersslotsextraInformationselectable |
519
+ | onActivated |
520
+
521
+ Is called when popover is activated.
522
+
523
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
524
+
525
+ | \- | \- |
526
+ | onDeactivated |
527
+
528
+ Is called when popover is deactivated.
529
+
530
+ ( e?: Event, reason?: OpenChangeReason, activeIndex?: number | null, ) => void
531
+
532
+ | \- | \- |
533
+ | onNavigate |
534
+
535
+ Is called when registered popover items are navigated using arrow keys. Only works with `type` listbox and menu.
536
+
537
+ (activeIndex: number | null) => void
538
+
539
+ | \- | \- |
540
+ | show |
541
+
542
+ When set to `true` the modal will be visible. Use for controlled popovers.
543
+
544
+ boolean
545
+
546
+
547
+
548
+ | \- | Set boolean |
549
+ | type |
550
+
551
+ Describes the type of content contained in the popover.
552
+
553
+ union
554
+
555
+
556
+
557
+ | \- | Set object |
558
+ | virtualFocus |
559
+
560
+ 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.
561
+
562
+ boolean
563
+
564
+
565
+
566
+ | \- | Set boolean |
567
+ | width |
568
+
569
+ Sets the width of the popover
570
+
571
+ string
241
572
 
242
- On this page
573
+ <table class="css-3nr4py"><tbody><tr><td colspan="2"><strong>Deprecated</strong>: use the `--iress-max-width` design token instead.</td></tr></tbody></table>
243
574
 
244
- * [With IressMenu](#with-iressmenu)
245
- * [Focusable children](#focusable-children)
575
+ | \- | 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
+ ```
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
+ ```
14
14
 
15
15
  import {
16
16
  IressButton,
@@ -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
+ ```