@iress-oss/ids-mcp-server 5.14.2 → 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} +1488 -358
  21. package/generated/docs/{components-form-recipes-docs.md → components_components-form-recipes-docs.md} +174 -64
  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_components-provider-docs.md +114 -0
  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} +224 -71
  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 -2666
  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 -48
  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,20 +1,20 @@
1
- [](#checkbox-group)Checkbox Group
2
- =================================
1
+ Checkbox Group
2
+ ==============
3
3
 
4
4
  Overview
5
5
  --------
6
6
 
7
7
  Checkbox groups allow users to make more than one choice in a set of related options.
8
8
 
9
+ [](./iframe.html?id=components-checkboxgroup--checkbox-children)
10
+
9
11
  Lemon drizzle
10
12
 
11
13
  Victoria Sponge
12
14
 
13
15
  Carrot Cake
14
16
 
15
- Hide code
16
-
17
- \[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; }
17
+ ```
18
18
 
19
19
  <IressCheckboxGroup name\="let-them-eat-cake"\>
20
20
  <IressCheckbox value\="lemon-drizzle"\>
@@ -25,26 +25,121 @@ Hide code
25
25
  Carrot Cake </IressCheckbox\>
26
26
  </IressCheckboxGroup\>
27
27
 
28
- Copy
28
+ ```
29
+
30
+ Props
31
+ -----
32
+
33
+ | Name | Description | Default | Control |
34
+ | --- | --- | --- | --- |
35
+ | children |
36
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
37
+
38
+ ReactNode
39
+
40
+
41
+
42
+ | \- | \- |
43
+ | defaultValue |
44
+
45
+ Value of checkbox group when in uncontrolled mode.
46
+
47
+ union
48
+
49
+
50
+
51
+ | \- | Set object |
52
+ | hiddenCheckbox |
53
+
54
+ Hides the checkbox controls to allow the creation of custom checkboxes.
55
+
56
+ boolean
57
+
58
+
59
+
60
+ | \- | Set boolean |
61
+ | layout |
62
+
63
+ Sets which of the block / inline layout options apply.
64
+
65
+ union
66
+
67
+
68
+
69
+ |
70
+
71
+ 'stack'
72
+
73
+ | Set object |
74
+ | name |
75
+
76
+ Name to be applied to all checkboxes in the group.
77
+
78
+ string
79
+
80
+
81
+
82
+ | \- | let-them-eat-cake |
83
+ | onChange |
84
+
85
+ Called with collated new value when a user toggles one of its children checkboxes.
29
86
 
30
- [](#examples)Examples
31
- ---------------------
87
+ (value?: FormControlValue\[\]) => void
32
88
 
33
- ### [](#checkbox-children)Checkbox children
89
+ | \- | \- |
90
+ | readonly |
91
+
92
+ Renders the group in a read-only state.
93
+
94
+ boolean
95
+
96
+
97
+
98
+ | \- | Set boolean |
99
+ | role |
100
+
101
+ |
102
+
103
+ 'group'
104
+
105
+ | Set object |
106
+ | touch |
107
+
108
+ Add the button-like border and padding to checkbox when `touch` is true.
109
+
110
+ boolean
111
+
112
+
113
+
114
+ | \- | Set boolean |
115
+ | value |
116
+
117
+ Value of checkbox group when in controlled mode.
118
+
119
+ union
120
+
121
+
122
+
123
+ | \- | Set object |
124
+
125
+ Examples
126
+ --------
127
+
128
+ ### Checkbox children
34
129
 
35
130
  Individual checkboxes can be passed directly into `IressCheckboxGroup`.
36
131
 
37
132
  **Note:** The `mapCheckboxGroupOptions` helper function, originally used to map options to `IressCheckbox` components, is now deprecated. Instead, you can use `array.map` to map the options to `IressCheckbox` components.
38
133
 
134
+ [](./iframe.html?id=components-checkboxgroup--checkbox-children)
135
+
39
136
  Lemon drizzle
40
137
 
41
138
  Victoria Sponge
42
139
 
43
140
  Carrot Cake
44
141
 
45
- Hide code
46
-
47
- \[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; }
142
+ ```
48
143
 
49
144
  <IressCheckboxGroup name\="let-them-eat-cake"\>
50
145
  <IressCheckbox value\="lemon-drizzle"\>
@@ -55,23 +150,117 @@ Hide code
55
150
  Carrot Cake </IressCheckbox\>
56
151
  </IressCheckboxGroup\>
57
152
 
58
- Copy
153
+ ```
154
+
155
+ #### Props
156
+
157
+ | Name | Description | Default | Control |
158
+ | --- | --- | --- | --- |
159
+ | children |
160
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
161
+
162
+ ReactNode
163
+
164
+
165
+
166
+ | \- | \- |
167
+ | defaultValue |
168
+
169
+ Value of checkbox group when in uncontrolled mode.
170
+
171
+ union
59
172
 
60
- ### [](#default-checked)Default checked
173
+
174
+
175
+ | \- | Set object |
176
+ | hiddenCheckbox |
177
+
178
+ Hides the checkbox controls to allow the creation of custom checkboxes.
179
+
180
+ boolean
181
+
182
+
183
+
184
+ | \- | Set boolean |
185
+ | layout |
186
+
187
+ Sets which of the block / inline layout options apply.
188
+
189
+ union
190
+
191
+
192
+
193
+ |
194
+
195
+ 'stack'
196
+
197
+ | Set object |
198
+ | name |
199
+
200
+ Name to be applied to all checkboxes in the group.
201
+
202
+ string
203
+
204
+
205
+
206
+ | \- | let-them-eat-cake |
207
+ | onChange |
208
+
209
+ Called with collated new value when a user toggles one of its children checkboxes.
210
+
211
+ (value?: FormControlValue\[\]) => void
212
+
213
+ | \- | \- |
214
+ | readonly |
215
+
216
+ Renders the group in a read-only state.
217
+
218
+ boolean
219
+
220
+
221
+
222
+ | \- | Set boolean |
223
+ | role |
224
+
225
+ |
226
+
227
+ 'group'
228
+
229
+ | Set object |
230
+ | touch |
231
+
232
+ Add the button-like border and padding to checkbox when `touch` is true.
233
+
234
+ boolean
235
+
236
+
237
+
238
+ | \- | Set boolean |
239
+ | value |
240
+
241
+ Value of checkbox group when in controlled mode.
242
+
243
+ union
244
+
245
+
246
+
247
+ | \- | Set object |
248
+
249
+ ### Default checked
61
250
 
62
251
  The default checked state of the checkbox children should always be set using the `defaultValue` prop (not directly on the checkbox component).
63
252
 
64
253
  The `defaultValue` prop can contain an array of strings, numbers or booleans.
65
254
 
255
+ [](./iframe.html?id=components-checkboxgroup--default-checked)
256
+
66
257
  Lemon drizzle
67
258
 
68
259
  Victoria Sponge
69
260
 
70
261
  Carrot Cake
71
262
 
72
- Hide code
73
-
74
- \[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; }
263
+ ```
75
264
 
76
265
  <IressCheckboxGroup
77
266
  defaultValue\={\[
@@ -88,14 +277,126 @@ Hide code
88
277
  Carrot Cake </IressCheckbox\>
89
278
  </IressCheckboxGroup\>
90
279
 
91
- Copy
280
+ ```
281
+
282
+ #### Props
283
+
284
+ | Name | Description | Default | Control |
285
+ | --- | --- | --- | --- |
286
+ | children |
287
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
288
+
289
+ ReactNode
290
+
291
+
292
+
293
+ | \- | \- |
294
+ | defaultValue |
295
+
296
+ Value of checkbox group when in uncontrolled mode.
297
+
298
+ union
299
+
300
+
301
+
302
+ | \- |
303
+
304
+ RAW
305
+
306
+ * defaultValue :
307
+
308
+ \[
309
+
310
+ * 0 : "lemon-drizzle"
311
+ * 1 : "victoria-sponge"
312
+
313
+ \]
314
+
315
+
316
+
317
+
318
+ |
319
+ | hiddenCheckbox |
320
+
321
+ Hides the checkbox controls to allow the creation of custom checkboxes.
322
+
323
+ boolean
92
324
 
93
- ### [](#changing-the-checked-state)Changing the checked state
325
+
326
+
327
+ | \- | Set boolean |
328
+ | layout |
329
+
330
+ Sets which of the block / inline layout options apply.
331
+
332
+ union
333
+
334
+
335
+
336
+ |
337
+
338
+ 'stack'
339
+
340
+ | Set object |
341
+ | name |
342
+
343
+ Name to be applied to all checkboxes in the group.
344
+
345
+ string
346
+
347
+
348
+
349
+ | \- | let-them-eat-cake |
350
+ | onChange |
351
+
352
+ Called with collated new value when a user toggles one of its children checkboxes.
353
+
354
+ (value?: FormControlValue\[\]) => void
355
+
356
+ | \- | \- |
357
+ | readonly |
358
+
359
+ Renders the group in a read-only state.
360
+
361
+ boolean
362
+
363
+
364
+
365
+ | \- | Set boolean |
366
+ | role |
367
+
368
+ |
369
+
370
+ 'group'
371
+
372
+ | Set object |
373
+ | touch |
374
+
375
+ Add the button-like border and padding to checkbox when `touch` is true.
376
+
377
+ boolean
378
+
379
+
380
+
381
+ | \- | Set boolean |
382
+ | value |
383
+
384
+ Value of checkbox group when in controlled mode.
385
+
386
+ union
387
+
388
+
389
+
390
+ | \- | Set object |
391
+
392
+ ### Changing the checked state
94
393
 
95
394
  The `value` prop can be updated if you need to change the checked state without interacting with the checkboxes.
96
395
 
97
396
  For example, if you want to clear down the selected options:
98
397
 
398
+ [](./iframe.html?id=components-checkboxgroup--controlled)
399
+
99
400
  Lemon drizzle
100
401
 
101
402
  Victoria Sponge
@@ -104,16 +405,14 @@ Carrot Cake
104
405
 
105
406
  Clear
106
407
 
107
- Hide code
108
-
109
- \[data-radix-scroll-area-viewport\] { scrollbar-width: none; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; } \[data-radix-scroll-area-viewport\]::-webkit-scrollbar { display: none; } :where(\[data-radix-scroll-area-viewport\]) { display: flex; flex-direction: column; align-items: stretch; } :where(\[data-radix-scroll-area-content\]) { flex-grow: 1; }
408
+ ```
110
409
 
111
410
  import {
112
- FormControlValue,
411
+ type FormControlValue,
113
412
  IressButton,
114
413
  IressCheckbox,
115
414
  IressCheckboxGroup,
116
- IressCheckboxGroupProps,
415
+ type IressCheckboxGroupProps,
117
416
  IressStack,
118
417
  } from '@iress-oss/ids-components';
119
418
  import { useState } from 'react';
@@ -137,9 +436,103 @@ export const CheckboxGroupUsingState \= () \=> {
137
436
  );
138
437
  };
139
438
 
140
- Copy
439
+ ```
440
+
441
+ #### Props
442
+
443
+ | Name | Description | Default | Control |
444
+ | --- | --- | --- | --- |
445
+ | children |
446
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
447
+
448
+ ReactNode
449
+
450
+
451
+
452
+ | \- | \- |
453
+ | defaultValue |
454
+
455
+ Value of checkbox group when in uncontrolled mode.
456
+
457
+ union
458
+
459
+
460
+
461
+ | \- | Set object |
462
+ | hiddenCheckbox |
463
+
464
+ Hides the checkbox controls to allow the creation of custom checkboxes.
465
+
466
+ boolean
467
+
468
+
469
+
470
+ | \- | Set boolean |
471
+ | layout |
472
+
473
+ Sets which of the block / inline layout options apply.
474
+
475
+ union
476
+
477
+
478
+
479
+ |
480
+
481
+ 'stack'
482
+
483
+ | Set object |
484
+ | name |
141
485
 
142
- ### [](#layout)Layout
486
+ Name to be applied to all checkboxes in the group.
487
+
488
+ string
489
+
490
+
491
+
492
+ | \- | let-them-eat-cake |
493
+ | onChange |
494
+
495
+ Called with collated new value when a user toggles one of its children checkboxes.
496
+
497
+ (value?: FormControlValue\[\]) => void
498
+
499
+ | \- | \- |
500
+ | readonly |
501
+
502
+ Renders the group in a read-only state.
503
+
504
+ boolean
505
+
506
+
507
+
508
+ | \- | Set boolean |
509
+ | role |
510
+
511
+ |
512
+
513
+ 'group'
514
+
515
+ | Set object |
516
+ | touch |
517
+
518
+ Add the button-like border and padding to checkbox when `touch` is true.
519
+
520
+ boolean
521
+
522
+
523
+
524
+ | \- | Set boolean |
525
+ | value |
526
+
527
+ Value of checkbox group when in controlled mode.
528
+
529
+ union
530
+
531
+
532
+
533
+ | \- | \- |
534
+
535
+ ### Layout
143
536
 
144
537
  The `layout` prop controls how the checkbox group is displayed and can have three basic layouts:
145
538
 
@@ -147,6 +540,8 @@ The `layout` prop controls how the checkbox group is displayed and can have thre
147
540
  * **Block:** Same as Stack, but labels take up the full width of the container.
148
541
  * **Inline:** Checkboxes are laid out horizontally. Labels are only as wide as their text.
149
542
 
543
+ [](./iframe.html?id=components-checkboxgroup--layout)
544
+
150
545
  ### stack
151
546
 
152
547
  Google
@@ -187,9 +582,7 @@ Friend
187
582
 
188
583
  Other
189
584
 
190
- Hide code
191
-
192
- \[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; }
585
+ ```
193
586
 
194
587
  <IressText className\="iress-u-stack iress--gutter--lg"\>
195
588
  <div\>
@@ -197,22 +590,22 @@ Hide code
197
590
  stack </h3\>
198
591
  <IressCheckboxGroup layout\="stack"\>
199
592
  <IressCheckbox
200
- className\="ids-styles--add-border-to-label-v5142"
593
+ className\="ids-styles--add-border-to-label-v5202"
201
594
  value\="google"
202
595
  \>
203
596
  Google </IressCheckbox\>
204
597
  <IressCheckbox
205
- className\="ids-styles--add-border-to-label-v5142"
598
+ className\="ids-styles--add-border-to-label-v5202"
206
599
  value\="newspaper"
207
600
  \>
208
601
  Newspaper </IressCheckbox\>
209
602
  <IressCheckbox
210
- className\="ids-styles--add-border-to-label-v5142"
603
+ className\="ids-styles--add-border-to-label-v5202"
211
604
  value\="friend"
212
605
  \>
213
606
  Friend </IressCheckbox\>
214
607
  <IressCheckbox
215
- className\="ids-styles--add-border-to-label-v5142"
608
+ className\="ids-styles--add-border-to-label-v5202"
216
609
  value\="other"
217
610
  \>
218
611
  Other </IressCheckbox\>
@@ -223,22 +616,22 @@ Hide code
223
616
  block </h3\>
224
617
  <IressCheckboxGroup layout\="block"\>
225
618
  <IressCheckbox
226
- className\="ids-styles--add-border-to-label-v5142"
619
+ className\="ids-styles--add-border-to-label-v5202"
227
620
  value\="google"
228
621
  \>
229
622
  Google </IressCheckbox\>
230
623
  <IressCheckbox
231
- className\="ids-styles--add-border-to-label-v5142"
624
+ className\="ids-styles--add-border-to-label-v5202"
232
625
  value\="newspaper"
233
626
  \>
234
627
  Newspaper </IressCheckbox\>
235
628
  <IressCheckbox
236
- className\="ids-styles--add-border-to-label-v5142"
629
+ className\="ids-styles--add-border-to-label-v5202"
237
630
  value\="friend"
238
631
  \>
239
632
  Friend </IressCheckbox\>
240
633
  <IressCheckbox
241
- className\="ids-styles--add-border-to-label-v5142"
634
+ className\="ids-styles--add-border-to-label-v5202"
242
635
  value\="other"
243
636
  \>
244
637
  Other </IressCheckbox\>
@@ -249,22 +642,22 @@ Hide code
249
642
  inline </h3\>
250
643
  <IressCheckboxGroup layout\="inline"\>
251
644
  <IressCheckbox
252
- className\="ids-styles--add-border-to-label-v5142"
645
+ className\="ids-styles--add-border-to-label-v5202"
253
646
  value\="google"
254
647
  \>
255
648
  Google </IressCheckbox\>
256
649
  <IressCheckbox
257
- className\="ids-styles--add-border-to-label-v5142"
650
+ className\="ids-styles--add-border-to-label-v5202"
258
651
  value\="newspaper"
259
652
  \>
260
653
  Newspaper </IressCheckbox\>
261
654
  <IressCheckbox
262
- className\="ids-styles--add-border-to-label-v5142"
655
+ className\="ids-styles--add-border-to-label-v5202"
263
656
  value\="friend"
264
657
  \>
265
658
  Friend </IressCheckbox\>
266
659
  <IressCheckbox
267
- className\="ids-styles--add-border-to-label-v5142"
660
+ className\="ids-styles--add-border-to-label-v5202"
268
661
  value\="other"
269
662
  \>
270
663
  Other </IressCheckbox\>
@@ -275,22 +668,22 @@ Hide code
275
668
  full </h3\>
276
669
  <IressCheckboxGroup layout\="full"\>
277
670
  <IressCheckbox
278
- className\="ids-styles--add-border-to-label-v5142"
671
+ className\="ids-styles--add-border-to-label-v5202"
279
672
  value\="google"
280
673
  \>
281
674
  Google </IressCheckbox\>
282
675
  <IressCheckbox
283
- className\="ids-styles--add-border-to-label-v5142"
676
+ className\="ids-styles--add-border-to-label-v5202"
284
677
  value\="newspaper"
285
678
  \>
286
679
  Newspaper </IressCheckbox\>
287
680
  <IressCheckbox
288
- className\="ids-styles--add-border-to-label-v5142"
681
+ className\="ids-styles--add-border-to-label-v5202"
289
682
  value\="friend"
290
683
  \>
291
684
  Friend </IressCheckbox\>
292
685
  <IressCheckbox
293
- className\="ids-styles--add-border-to-label-v5142"
686
+ className\="ids-styles--add-border-to-label-v5202"
294
687
  value\="other"
295
688
  \>
296
689
  Other </IressCheckbox\>
@@ -298,14 +691,110 @@ Hide code
298
691
  </div\>
299
692
  </IressText\>
300
693
 
301
- Copy
694
+ ```
695
+
696
+ #### Props
697
+
698
+ | Name | Description | Default | Control |
699
+ | --- | --- | --- | --- |
700
+ | children |
701
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
702
+
703
+ ReactNode
704
+
705
+
706
+
707
+ | \- | \- |
708
+ | defaultValue |
709
+
710
+ Value of checkbox group when in uncontrolled mode.
711
+
712
+ union
713
+
714
+
715
+
716
+ | \- | Set object |
717
+ | hiddenCheckbox |
718
+
719
+ Hides the checkbox controls to allow the creation of custom checkboxes.
720
+
721
+ boolean
722
+
723
+
724
+
725
+ | \- | Set boolean |
726
+ | layout |
727
+
728
+ Sets which of the block / inline layout options apply.
729
+
730
+ union
731
+
732
+
733
+
734
+ |
735
+
736
+ 'stack'
737
+
738
+ | \- |
739
+ | name |
740
+
741
+ Name to be applied to all checkboxes in the group.
742
+
743
+ string
744
+
745
+
746
+
747
+ | \- | Set string |
748
+ | onChange |
749
+
750
+ Called with collated new value when a user toggles one of its children checkboxes.
751
+
752
+ (value?: FormControlValue\[\]) => void
753
+
754
+ | \- | \- |
755
+ | readonly |
756
+
757
+ Renders the group in a read-only state.
758
+
759
+ boolean
302
760
 
303
- ### [](#hidden-checkboxes)Hidden checkboxes
761
+
762
+
763
+ | \- | Set boolean |
764
+ | role |
765
+
766
+ |
767
+
768
+ 'group'
769
+
770
+ | Set object |
771
+ | touch |
772
+
773
+ Add the button-like border and padding to checkbox when `touch` is true.
774
+
775
+ boolean
776
+
777
+
778
+
779
+ | \- | Set boolean |
780
+ | value |
781
+
782
+ Value of checkbox group when in controlled mode.
783
+
784
+ union
785
+
786
+
787
+
788
+ | \- | Set object |
789
+
790
+ ### Hidden checkboxes
304
791
 
305
792
  You can use the `hiddenCheckbox` prop to create custom checkboxes. When enabled, the actual checkbox will be visually hidden, allowing you to create more interesting controls. The checked state will be shown by the label's border, which is thicker when the checkbox is checked.
306
793
 
307
794
  When `hiddenCheckbox` is enabled, the label will have no padding. Padding can be added by using an `IressPanel`.
308
795
 
796
+ [](./iframe.html?id=components-checkboxgroup--hidden-checkboxes)
797
+
309
798
  **I'd like to discuss the following with my financial adviser:
310
799
 
311
800
  Select all that apply
@@ -318,9 +807,7 @@ Saving for a holiday
318
807
 
319
808
  Reducing my debt
320
809
 
321
- Hide code
322
-
323
- \[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; }
810
+ ```
324
811
 
325
812
  <IressField
326
813
  hint\="Select all that apply"
@@ -394,14 +881,129 @@ Hide code
394
881
  </IressCheckboxGroup\>
395
882
  </IressField\>
396
883
 
397
- Copy
884
+ ```
885
+
886
+ #### Props
887
+
888
+ | Name | Description | Default | Control |
889
+ | --- | --- | --- | --- |
890
+ | children |
891
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
892
+
893
+ ReactNode
894
+
895
+
896
+
897
+ | \- | \- |
898
+ | defaultValue |
899
+
900
+ Value of checkbox group when in uncontrolled mode.
901
+
902
+ union
903
+
904
+
905
+
906
+ | \- |
907
+
908
+ RAW
909
+
910
+ * defaultValue :
911
+
912
+ \[
913
+
914
+ * 0 : "home"
915
+
916
+ \]
917
+
918
+
919
+
920
+
921
+ |
922
+ | hiddenCheckbox |
923
+
924
+ Hides the checkbox controls to allow the creation of custom checkboxes.
925
+
926
+ boolean
927
+
928
+
929
+
930
+ | \- | FalseTrue |
931
+ | layout |
932
+
933
+ Sets which of the block / inline layout options apply.
934
+
935
+ union
936
+
937
+
938
+
939
+ |
940
+
941
+ 'stack'
942
+
943
+ |
944
+
945
+ "inline"
946
+
947
+ |
948
+ | name |
949
+
950
+ Name to be applied to all checkboxes in the group.
951
+
952
+ string
953
+
954
+
955
+
956
+ | \- | financial-review |
957
+ | onChange |
958
+
959
+ Called with collated new value when a user toggles one of its children checkboxes.
960
+
961
+ (value?: FormControlValue\[\]) => void
962
+
963
+ | \- | \- |
964
+ | readonly |
965
+
966
+ Renders the group in a read-only state.
967
+
968
+ boolean
969
+
970
+
971
+
972
+ | \- | Set boolean |
973
+ | role |
398
974
 
399
- ### [](#laying-out-custom-checkboxes)Laying out custom checkboxes
975
+ |
976
+
977
+ 'group'
978
+
979
+ | Set object |
980
+ | touch |
981
+
982
+ Add the button-like border and padding to checkbox when `touch` is true.
983
+
984
+ boolean
985
+
986
+
987
+
988
+ | \- | Set boolean |
989
+ | value |
990
+
991
+ Value of checkbox group when in controlled mode.
992
+
993
+ union
994
+
995
+
996
+
997
+ | \- | Set object |
998
+
999
+ ### Laying out custom checkboxes
400
1000
 
401
1001
  The checkbox group's `layout` prop gives you some default options to help control the layout of your controls. But sometimes you need more granular control, which you can achieve with a bit of custom CSS.
402
1002
 
403
1003
  The example below uses CSS grid to give us evenly spaced / sized checkboxes, which will wrap on to new lines as the screen size reduces. The grid wrapper element is a div that wraps around the `<IressCheckbox>` elements, as shown by the dashed border. Use the grab handle in the bottom right-hand corner of the grid wrapper to see how the controls change size to respond to the container's width.
404
1004
 
1005
+ [](./iframe.html?id=components-checkboxgroup--custom-checkbox-group-layout)
1006
+
405
1007
  **I'd like to discuss the following with my financial adviser:
406
1008
 
407
1009
  Select all that apply
@@ -424,9 +1026,7 @@ Reducing my debt
424
1026
 
425
1027
  Starting a business
426
1028
 
427
- Hide code
428
-
429
- \[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; }
1029
+ ```
430
1030
 
431
1031
  <IressField
432
1032
  hint\="Select all that apply"
@@ -445,7 +1045,7 @@ Hide code
445
1045
  }}
446
1046
  \>
447
1047
  <div
448
- className\="ids-styles--resizable-v5142"
1048
+ className\="ids-styles--resizable-v5202"
449
1049
  style\={{
450
1050
  display: 'grid',
451
1051
  gridAutoRows: '1fr',
@@ -611,21 +1211,134 @@ Hide code
611
1211
  </IressCheckboxGroup\>
612
1212
  </IressField\>
613
1213
 
614
- Copy
1214
+ ```
1215
+
1216
+ #### Props
1217
+
1218
+ | Name | Description | Default | Control |
1219
+ | --- | --- | --- | --- |
1220
+ | children |
1221
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
1222
+
1223
+ ReactNode
1224
+
1225
+
1226
+
1227
+ | \- | \- |
1228
+ | defaultValue |
1229
+
1230
+ Value of checkbox group when in uncontrolled mode.
1231
+
1232
+ union
1233
+
1234
+
1235
+
1236
+ | \- |
1237
+
1238
+ RAW
1239
+
1240
+ * defaultValue :
1241
+
1242
+ \[
1243
+
1244
+ * 0 : "home"
1245
+
1246
+ \]
1247
+
1248
+
1249
+
1250
+
1251
+ |
1252
+ | hiddenCheckbox |
1253
+
1254
+ Hides the checkbox controls to allow the creation of custom checkboxes.
1255
+
1256
+ boolean
1257
+
1258
+
1259
+
1260
+ | \- | FalseTrue |
1261
+ | layout |
1262
+
1263
+ Sets which of the block / inline layout options apply.
1264
+
1265
+ union
1266
+
1267
+
1268
+
1269
+ |
1270
+
1271
+ 'stack'
1272
+
1273
+ |
1274
+
1275
+ "block"
1276
+
1277
+ |
1278
+ | name |
1279
+
1280
+ Name to be applied to all checkboxes in the group.
1281
+
1282
+ string
1283
+
1284
+
1285
+
1286
+ | \- | financial-review |
1287
+ | onChange |
1288
+
1289
+ Called with collated new value when a user toggles one of its children checkboxes.
1290
+
1291
+ (value?: FormControlValue\[\]) => void
1292
+
1293
+ | \- | \- |
1294
+ | readonly |
1295
+
1296
+ Renders the group in a read-only state.
1297
+
1298
+ boolean
1299
+
1300
+
1301
+
1302
+ | \- | Set boolean |
1303
+ | role |
1304
+
1305
+ |
1306
+
1307
+ 'group'
1308
+
1309
+ | Set object |
1310
+ | touch |
615
1311
 
616
- ### [](#readonly)Readonly
1312
+ Add the button-like border and padding to checkbox when `touch` is true.
1313
+
1314
+ boolean
1315
+
1316
+
1317
+
1318
+ | \- | Set boolean |
1319
+ | value |
1320
+
1321
+ Value of checkbox group when in controlled mode.
1322
+
1323
+ union
1324
+
1325
+
1326
+
1327
+ | \- | Set object |
1328
+
1329
+ ### Readonly
617
1330
 
618
1331
  The `readonly` prop changes how the checkbox group is rendered. It will only render the children that are checked (alongside a hidden input that contains the `value` if it was set), otherwise it not be rendered.
619
1332
 
620
1333
  It is understandable that this may not be the desired behavior for all use cases. If you need a checkbox group that is not editable, but still visible, simply do not set the `readonly` prop and set the `value` prop instead.
621
1334
 
1335
+ [](./iframe.html?id=components-checkboxgroup--readonly)
1336
+
622
1337
  Lemon drizzle
623
1338
 
624
1339
  Victoria Sponge
625
1340
 
626
- Hide code
627
-
628
- \[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; }
1341
+ ```
629
1342
 
630
1343
  <IressCheckboxGroup
631
1344
  defaultValue\={\[
@@ -643,21 +1356,131 @@ Hide code
643
1356
  Carrot Cake </IressCheckbox\>
644
1357
  </IressCheckboxGroup\>
645
1358
 
646
- Copy
1359
+ ```
1360
+
1361
+ #### Props
1362
+
1363
+ | Name | Description | Default | Control |
1364
+ | --- | --- | --- | --- |
1365
+ | children |
1366
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
1367
+
1368
+ ReactNode
1369
+
1370
+
1371
+
1372
+ | \- | \- |
1373
+ | defaultValue |
1374
+
1375
+ Value of checkbox group when in uncontrolled mode.
1376
+
1377
+ union
1378
+
1379
+
1380
+
1381
+ | \- |
1382
+
1383
+ RAW
1384
+
1385
+ * defaultValue :
1386
+
1387
+ \[
1388
+
1389
+ * 0 : "lemon-drizzle"
1390
+ * 1 : "victoria-sponge"
1391
+
1392
+ \]
1393
+
1394
+
1395
+
1396
+
1397
+ |
1398
+ | hiddenCheckbox |
1399
+
1400
+ Hides the checkbox controls to allow the creation of custom checkboxes.
1401
+
1402
+ boolean
1403
+
1404
+
1405
+
1406
+ | \- | Set boolean |
1407
+ | layout |
1408
+
1409
+ Sets which of the block / inline layout options apply.
1410
+
1411
+ union
1412
+
1413
+
1414
+
1415
+ |
1416
+
1417
+ 'stack'
1418
+
1419
+ | Set object |
1420
+ | name |
1421
+
1422
+ Name to be applied to all checkboxes in the group.
1423
+
1424
+ string
1425
+
1426
+
1427
+
1428
+ | \- | let-them-eat-cake |
1429
+ | onChange |
1430
+
1431
+ Called with collated new value when a user toggles one of its children checkboxes.
1432
+
1433
+ (value?: FormControlValue\[\]) => void
1434
+
1435
+ | \- | \- |
1436
+ | readonly |
1437
+
1438
+ Renders the group in a read-only state.
1439
+
1440
+ boolean
1441
+
1442
+
1443
+
1444
+ | \- | FalseTrue |
1445
+ | role |
1446
+
1447
+ |
1448
+
1449
+ 'group'
1450
+
1451
+ | Set object |
1452
+ | touch |
1453
+
1454
+ Add the button-like border and padding to checkbox when `touch` is true.
1455
+
1456
+ boolean
1457
+
1458
+
1459
+
1460
+ | \- | Set boolean |
1461
+ | value |
647
1462
 
648
- ### [](#touch)Touch
1463
+ Value of checkbox group when in controlled mode.
1464
+
1465
+ union
1466
+
1467
+
1468
+
1469
+ | \- | Set object |
1470
+
1471
+ ### Touch
649
1472
 
650
1473
  The `touch` prop adds the button-like border and padding to checkbox.
651
1474
 
1475
+ [](./iframe.html?id=components-checkboxgroup--touch)
1476
+
652
1477
  Lemon drizzle
653
1478
 
654
1479
  Victoria Sponge
655
1480
 
656
1481
  Carrot Cake
657
1482
 
658
- Hide code
659
-
660
- \[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; }
1483
+ ```
661
1484
 
662
1485
  <IressCheckboxGroup
663
1486
  defaultValue\={\[
@@ -675,18 +1498,114 @@ Hide code
675
1498
  Carrot Cake </IressCheckbox\>
676
1499
  </IressCheckboxGroup\>
677
1500
 
678
- Copy
679
-
680
- On this page
681
-
682
- * [Overview](#overview)
683
- * [Props](#props)
684
- * [Examples](#examples)
685
- * [Checkbox children](#checkbox-children)
686
- * [Default checked](#default-checked)
687
- * [Changing the checked state](#changing-the-checked-state)
688
- * [Layout](#layout)
689
- * [Hidden checkboxes](#hidden-checkboxes)
690
- * [Laying out custom checkboxes](#laying-out-custom-checkboxes)
691
- * [Readonly](#readonly)
692
- * [Touch](#touch)
1501
+ ```
1502
+
1503
+ #### Props
1504
+
1505
+ | Name | Description | Default | Control |
1506
+ | --- | --- | --- | --- |
1507
+ | children |
1508
+ Content to be displayed inside the group, usually multiple `IressCheckbox`.
1509
+
1510
+ ReactNode
1511
+
1512
+
1513
+
1514
+ | \- | \- |
1515
+ | defaultValue |
1516
+
1517
+ Value of checkbox group when in uncontrolled mode.
1518
+
1519
+ union
1520
+
1521
+
1522
+
1523
+ | \- |
1524
+
1525
+ RAW
1526
+
1527
+ * defaultValue :
1528
+
1529
+ \[
1530
+
1531
+ * 0 : "lemon-drizzle"
1532
+ * 1 : "victoria-sponge"
1533
+
1534
+ \]
1535
+
1536
+
1537
+
1538
+
1539
+ |
1540
+ | hiddenCheckbox |
1541
+
1542
+ Hides the checkbox controls to allow the creation of custom checkboxes.
1543
+
1544
+ boolean
1545
+
1546
+
1547
+
1548
+ | \- | Set boolean |
1549
+ | layout |
1550
+
1551
+ Sets which of the block / inline layout options apply.
1552
+
1553
+ union
1554
+
1555
+
1556
+
1557
+ |
1558
+
1559
+ 'stack'
1560
+
1561
+ | Set object |
1562
+ | name |
1563
+
1564
+ Name to be applied to all checkboxes in the group.
1565
+
1566
+ string
1567
+
1568
+
1569
+
1570
+ | \- | let-them-eat-cake |
1571
+ | onChange |
1572
+
1573
+ Called with collated new value when a user toggles one of its children checkboxes.
1574
+
1575
+ (value?: FormControlValue\[\]) => void
1576
+
1577
+ | \- | \- |
1578
+ | readonly |
1579
+
1580
+ Renders the group in a read-only state.
1581
+
1582
+ boolean
1583
+
1584
+
1585
+
1586
+ | \- | Set boolean |
1587
+ | role |
1588
+
1589
+ |
1590
+
1591
+ 'group'
1592
+
1593
+ | Set object |
1594
+ | touch |
1595
+
1596
+ Add the button-like border and padding to checkbox when `touch` is true.
1597
+
1598
+ boolean
1599
+
1600
+
1601
+
1602
+ | \- | FalseTrue |
1603
+ | value |
1604
+
1605
+ Value of checkbox group when in controlled mode.
1606
+
1607
+ union
1608
+
1609
+
1610
+
1611
+ | \- | Set object |