desy-html 5.3.0 → 6.0.0

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 (74) hide show
  1. package/config/tailwind.config.js +10 -10
  2. package/docs/_include.template-header.njk +8 -0
  3. package/docs/_macro.example-render.njk +8 -0
  4. package/docs/componentes.html +6 -0
  5. package/docs/ds/_ds.example.accordion.njk +61 -0
  6. package/docs/ds/_ds.example.footer.njk +7 -128
  7. package/docs/ds/_ds.example.header.njk +118 -0
  8. package/docs/ds/_ds.example.layout.njk +16 -6
  9. package/docs/ds/_ds.example.menu-navigation.njk +494 -0
  10. package/docs/ds/_ds.example.searchbar.njk +39 -0
  11. package/docs/ds/_ds.example.table.njk +432 -0
  12. package/docs/ds/_ds.example.toggle.njk +55 -35
  13. package/docs/ds/_ds.section.layout.njk +12 -12
  14. package/docs/ds/_ds.section.navigation.njk +5 -0
  15. package/docs/ds/_ds.section.textos.njk +27 -0
  16. package/docs/examples-accordion-history.html +5 -0
  17. package/docs/examples-menu-navigation.html +5 -0
  18. package/docs/index.html +39 -0
  19. package/gulpfile.js +7 -6
  20. package/package.json +6 -7
  21. package/src/css/base.css +4 -0
  22. package/src/css/styles.css +1 -0
  23. package/src/js/aria/accordion.js +16 -5
  24. package/src/js/aria/disclosureMenu.js +153 -0
  25. package/src/js/desy-html.js +15 -0
  26. package/src/js/index.js +2 -0
  27. package/src/templates/components/accordion/_examples.accordion.njk +70 -2
  28. package/src/templates/components/accordion/_template.accordion.njk +18 -8
  29. package/src/templates/components/accordion/params.accordion.yaml +38 -0
  30. package/src/templates/components/accordion-history/_examples.accordion-history.njk +356 -0
  31. package/src/templates/components/accordion-history/_macro.accordion-history.njk +3 -0
  32. package/src/templates/components/accordion-history/_template.accordion-history.njk +209 -0
  33. package/src/templates/components/accordion-history/params.accordion-history.yaml +125 -0
  34. package/src/templates/components/button/_examples.button.njk +7 -0
  35. package/src/templates/components/button/_styles.button.css +27 -0
  36. package/src/templates/components/button/_template.button.njk +1 -1
  37. package/src/templates/components/button-loader/_template.button-loader.njk +6 -6
  38. package/src/templates/components/file-upload/_template.file-upload.njk +1 -1
  39. package/src/templates/components/footer/_examples.footer.njk +46 -136
  40. package/src/templates/components/footer/_template.footer.njk +35 -28
  41. package/src/templates/components/footer/params.footer.yaml +18 -0
  42. package/src/templates/components/header/_examples.header.njk +166 -0
  43. package/src/templates/components/header/_template.header.header__navigation.njk +2 -2
  44. package/src/templates/components/header/_template.header.njk +7 -3
  45. package/src/templates/components/header/params.header.yaml +24 -0
  46. package/src/templates/components/item/_examples.item.njk +1 -1
  47. package/src/templates/components/item/_template.item.njk +3 -3
  48. package/src/templates/components/listbox/_styles.listbox.css +7 -4
  49. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +25 -0
  50. package/src/templates/components/menu-horizontal/_styles.menu-horizontal.css +26 -0
  51. package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +1 -1
  52. package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +1080 -0
  53. package/src/templates/components/menu-navigation/_macro.menu-navigation.njk +3 -0
  54. package/src/templates/components/menu-navigation/_styles.menu-navigation.css +216 -0
  55. package/src/templates/components/menu-navigation/_template.menu-navigation.njk +116 -0
  56. package/src/templates/components/menu-navigation/params.menu-navigation.yaml +93 -0
  57. package/src/templates/components/menubar/_examples.menubar.njk +1 -1
  58. package/src/templates/components/menubar/_styles.menubar.css +26 -5
  59. package/src/templates/components/modal/_examples.modal.njk +62 -0
  60. package/src/templates/components/modal/_template.modal.njk +21 -4
  61. package/src/templates/components/modal/params.modal.yaml +2 -2
  62. package/src/templates/components/searchbar/_examples.searchbar.njk +12 -1
  63. package/src/templates/components/searchbar/_template.searchbar.njk +8 -8
  64. package/src/templates/components/spinner/_styles.spinner.css +1 -0
  65. package/src/templates/components/spinner/_template.spinner.njk +4 -4
  66. package/src/templates/components/table-advanced/_examples.table-advanced.njk +182 -5
  67. package/src/templates/components/table-advanced/_template.table-advanced.njk +26 -2
  68. package/src/templates/components/table-advanced/params.table-advanced.yaml +5 -0
  69. package/src/templates/components/toggle/_examples.toggle.njk +33 -11
  70. package/src/templates/components/toggle/_template.toggle.njk +3 -1
  71. package/src/templates/components/toggle/params.toggle.yaml +4 -0
  72. package/src/templates/components/tree/_examples.tree.njk +580 -32
  73. package/src/templates/components/tree/_template.tree.njk +1 -1
  74. package/config/clean-css.js +0 -25
@@ -10,18 +10,76 @@
10
10
  "text": "Selecciona organismo"
11
11
  }
12
12
  },
13
+ "idPrefix": "default-example",
13
14
  "items": [
14
15
  {
15
16
  "text": "Item 1",
16
- "value": "item-1"
17
+ "id": "default-example-item-1",
18
+ "sub": {
19
+ "items": [
20
+ {
21
+ "text": "Subitem 1",
22
+ "value": "subitem-1"
23
+ },
24
+ {
25
+ "text": "Subitem 2",
26
+ "value": "subitem-2"
27
+ },
28
+ {
29
+ "text": "Subitem 3",
30
+ "value": "subitem-3"
31
+ }
32
+ ],
33
+ "attributes": {
34
+ "aria-labelledby": "default-example-item-1"
35
+ }
36
+ }
17
37
  },
18
38
  {
19
39
  "text": "Item 2",
20
- "value": "item-2"
40
+ "id": "default-example-item-2",
41
+ "sub": {
42
+ "items": [
43
+ {
44
+ "text": "Subitem 1",
45
+ "value": "subitem-1"
46
+ },
47
+ {
48
+ "text": "Subitem 2",
49
+ "value": "subitem-2"
50
+ },
51
+ {
52
+ "text": "Subitem 3",
53
+ "value": "subitem-3"
54
+ }
55
+ ],
56
+ "attributes": {
57
+ "aria-labelledby": "default-example-item-2"
58
+ }
59
+ }
21
60
  },
22
61
  {
23
62
  "text": "Item 3",
24
- "value": "item-2"
63
+ "id": "default-example-item-3",
64
+ "sub": {
65
+ "items": [
66
+ {
67
+ "text": "Subitem 1",
68
+ "value": "subitem-1"
69
+ },
70
+ {
71
+ "text": "Subitem 2",
72
+ "value": "subitem-2"
73
+ },
74
+ {
75
+ "text": "Subitem 3",
76
+ "value": "subitem-3"
77
+ }
78
+ ],
79
+ "attributes": {
80
+ "aria-labelledby": "default-example-item-3"
81
+ }
82
+ }
25
83
  }
26
84
  ]
27
85
  }
@@ -37,18 +95,76 @@
37
95
  "text": "Selecciona organismo"
38
96
  }
39
97
  },
98
+ "idPrefix": "type-checkbox",
40
99
  "items": [
41
100
  {
42
101
  "text": "Item 1",
43
- "value": "item-1"
102
+ "id": "type-checkbox-example-item-1",
103
+ "sub": {
104
+ "items": [
105
+ {
106
+ "text": "Subitem 1",
107
+ "value": "subitem-1"
108
+ },
109
+ {
110
+ "text": "Subitem 2",
111
+ "value": "subitem-2"
112
+ },
113
+ {
114
+ "text": "Subitem 3",
115
+ "value": "subitem-3"
116
+ }
117
+ ],
118
+ "attributes": {
119
+ "aria-labelledby": "type-checkbox-example-item-1"
120
+ }
121
+ }
44
122
  },
45
123
  {
46
124
  "text": "Item 2",
47
- "value": "item-2"
125
+ "id": "type-checkbox-example-item-2",
126
+ "sub": {
127
+ "items": [
128
+ {
129
+ "text": "Subitem 1",
130
+ "value": "subitem-1"
131
+ },
132
+ {
133
+ "text": "Subitem 2",
134
+ "value": "subitem-2"
135
+ },
136
+ {
137
+ "text": "Subitem 3",
138
+ "value": "subitem-3"
139
+ }
140
+ ],
141
+ "attributes": {
142
+ "aria-labelledby": "type-checkbox-example-item-2"
143
+ }
144
+ }
48
145
  },
49
146
  {
50
147
  "text": "Item 3",
51
- "value": "item-2"
148
+ "id": "type-checkbox-example-item-3",
149
+ "sub": {
150
+ "items": [
151
+ {
152
+ "text": "Subitem 1",
153
+ "value": "subitem-1"
154
+ },
155
+ {
156
+ "text": "Subitem 2",
157
+ "value": "subitem-2"
158
+ },
159
+ {
160
+ "text": "Subitem 3",
161
+ "value": "subitem-3"
162
+ }
163
+ ],
164
+ "attributes": {
165
+ "aria-labelledby": "type-checkbox-example-item-3"
166
+ }
167
+ }
52
168
  }
53
169
  ]
54
170
  }
@@ -69,19 +185,77 @@
69
185
  "errorMessage": {
70
186
  "text": "Error: No tienes permiso para seleccionar ese organismo."
71
187
  },
188
+ "idPrefix": "with-hint-and-error",
72
189
  "items": [
73
190
  {
74
191
  "text": "Item 1",
75
- "value": "item-1"
192
+ "id": "with-hint-and-error-example-item-1",
193
+ "sub": {
194
+ "items": [
195
+ {
196
+ "text": "Subitem 1",
197
+ "value": "subitem-1"
198
+ },
199
+ {
200
+ "text": "Subitem 2",
201
+ "value": "subitem-2"
202
+ },
203
+ {
204
+ "text": "Subitem 3",
205
+ "value": "subitem-3"
206
+ }
207
+ ],
208
+ "attributes": {
209
+ "aria-labelledby": "with-hint-and-error-example-item-1"
210
+ }
211
+ }
76
212
  },
77
213
  {
78
214
  "text": "Item 2",
79
- "value": "item-2",
80
- "checked": true
215
+ "id": "with-hint-and-error-example-item-2",
216
+ "checked": true,
217
+ "sub": {
218
+ "items": [
219
+ {
220
+ "text": "Subitem 1",
221
+ "value": "subitem-1"
222
+ },
223
+ {
224
+ "text": "Subitem 2",
225
+ "value": "subitem-2"
226
+ },
227
+ {
228
+ "text": "Subitem 3",
229
+ "value": "subitem-3"
230
+ }
231
+ ],
232
+ "attributes": {
233
+ "aria-labelledby": "with-hint-and-error-example-item-2"
234
+ }
235
+ }
81
236
  },
82
237
  {
83
238
  "text": "Item 3",
84
- "value": "item-2"
239
+ "id": "with-hint-and-error-example-item-3",
240
+ "sub": {
241
+ "items": [
242
+ {
243
+ "text": "Subitem 1",
244
+ "value": "subitem-1"
245
+ },
246
+ {
247
+ "text": "Subitem 2",
248
+ "value": "subitem-2"
249
+ },
250
+ {
251
+ "text": "Subitem 3",
252
+ "value": "subitem-3"
253
+ }
254
+ ],
255
+ "attributes": {
256
+ "aria-labelledby": "with-hint-and-error-example-item-3"
257
+ }
258
+ }
85
259
  }
86
260
  ]
87
261
  }
@@ -99,19 +273,78 @@
99
273
  "hint": {
100
274
  "text": "Selecciona el organismo al que perteneces."
101
275
  },
276
+ "idPrefix": "with-disabled-item",
102
277
  "items": [
103
278
  {
104
279
  "text": "Item 1",
105
- "value": "item-1"
280
+ "id": "with-disabled-item-example-item-1",
281
+ "sub": {
282
+ "items": [
283
+ {
284
+ "text": "Subitem 1",
285
+ "value": "subitem-1"
286
+ },
287
+ {
288
+ "text": "Subitem 2",
289
+ "value": "subitem-2"
290
+ },
291
+ {
292
+ "text": "Subitem 3",
293
+ "value": "subitem-3"
294
+ }
295
+ ],
296
+ "attributes": {
297
+ "aria-labelledby": "with-disabled-item-example-item-1"
298
+ }
299
+ }
106
300
  },
107
301
  {
108
302
  "text": "Item 2",
109
- "value": "item-2"
303
+ "id": "with-disabled-item-example-item-2",
304
+ "disabled": true,
305
+ "sub": {
306
+ "items": [
307
+ {
308
+ "text": "Subitem 1",
309
+ "value": "subitem-1"
310
+ },
311
+ {
312
+ "text": "Subitem 2",
313
+ "value": "subitem-2",
314
+ "disabled": true
315
+ },
316
+ {
317
+ "text": "Subitem 3",
318
+ "value": "subitem-3"
319
+ }
320
+ ],
321
+ "attributes": {
322
+ "aria-labelledby": "with-disabled-item-example-item-2"
323
+ }
324
+ }
110
325
  },
111
326
  {
112
327
  "text": "Item 3",
113
- "value": "item-3",
114
- "disabled": true
328
+ "id": "with-disabled-item-example-item-3",
329
+ "sub": {
330
+ "items": [
331
+ {
332
+ "text": "Subitem 1",
333
+ "value": "subitem-1"
334
+ },
335
+ {
336
+ "text": "Subitem 2",
337
+ "value": "subitem-2"
338
+ },
339
+ {
340
+ "text": "Subitem 3",
341
+ "value": "subitem-3"
342
+ }
343
+ ],
344
+ "attributes": {
345
+ "aria-labelledby": "with-disabled-item-example-item-3"
346
+ }
347
+ }
115
348
  }
116
349
  ]
117
350
  }
@@ -129,19 +362,77 @@
129
362
  "hint": {
130
363
  "text": "Selecciona el organismo al que perteneces."
131
364
  },
365
+ "idPrefix": "with-active-item",
132
366
  "items": [
133
367
  {
134
368
  "text": "Item 1",
135
- "value": "item-1"
369
+ "id": "with-active-item-example-item-1",
370
+ "sub": {
371
+ "items": [
372
+ {
373
+ "text": "Subitem 1",
374
+ "value": "subitem-1"
375
+ },
376
+ {
377
+ "text": "Subitem 2",
378
+ "value": "subitem-2"
379
+ },
380
+ {
381
+ "text": "Subitem 3",
382
+ "value": "subitem-3"
383
+ }
384
+ ],
385
+ "attributes": {
386
+ "aria-labelledby": "with-active-item-example-item-1"
387
+ }
388
+ }
136
389
  },
137
390
  {
138
391
  "text": "Item 2",
139
- "value": "item-2",
140
- "active": true
392
+ "id": "with-active-item-example-item-2",
393
+ "active": true,
394
+ "sub": {
395
+ "items": [
396
+ {
397
+ "text": "Subitem 1",
398
+ "value": "subitem-1"
399
+ },
400
+ {
401
+ "text": "Subitem 2",
402
+ "value": "subitem-2"
403
+ },
404
+ {
405
+ "text": "Subitem 3",
406
+ "value": "subitem-3"
407
+ }
408
+ ],
409
+ "attributes": {
410
+ "aria-labelledby": "with-active-item-example-item-2"
411
+ }
412
+ }
141
413
  },
142
414
  {
143
415
  "text": "Item 3",
144
- "value": "item-3"
416
+ "id": "with-active-item-example-item-3",
417
+ "sub": {
418
+ "items": [
419
+ {
420
+ "text": "Subitem 1",
421
+ "value": "subitem-1"
422
+ },
423
+ {
424
+ "text": "Subitem 2",
425
+ "value": "subitem-2"
426
+ },
427
+ {
428
+ "text": "Subitem 3",
429
+ "value": "subitem-3"
430
+ }
431
+ ],
432
+ "attributes": {
433
+ "aria-labelledby": "with-active-item-example-item-3"
434
+ }
435
+ }
145
436
  }
146
437
  ]
147
438
  }
@@ -156,29 +447,112 @@
156
447
  "text": "Selecciona organismo"
157
448
  }
158
449
  },
450
+ "idPrefix": "with-hints-on-items",
159
451
  "items": [
160
452
  {
161
453
  "text": "Item 1",
162
- "value": "item-1",
163
454
  "hint": {
164
455
  "text": "Hint on item"
456
+ },
457
+ "id": "with-hints-on-items-example-item-1",
458
+ "sub": {
459
+ "items": [
460
+ {
461
+ "text": "Subitem 1",
462
+ "value": "subitem-1",
463
+ "hint": {
464
+ "text": "Hint on item"
465
+ }
466
+ },
467
+ {
468
+ "text": "Subitem 2",
469
+ "value": "subitem-2",
470
+ "hint": {
471
+ "text": "Hint on item"
472
+ }
473
+ },
474
+ {
475
+ "text": "Subitem 3",
476
+ "value": "subitem-3",
477
+ "hint": {
478
+ "text": "Hint on item"
479
+ }
480
+ }
481
+ ],
482
+ "attributes": {
483
+ "aria-labelledby": "with-hints-on-items-example-item-1"
484
+ }
165
485
  }
166
486
  },
167
487
  {
168
488
  "text": "Item 2",
169
- "value": "item-2",
170
489
  "hint": {
171
490
  "text": "Hint on item"
491
+ },
492
+ "id": "with-hints-on-items-example-item-2",
493
+ "sub": {
494
+ "items": [
495
+ {
496
+ "text": "Subitem 1",
497
+ "value": "subitem-1",
498
+ "hint": {
499
+ "text": "Hint on item"
500
+ }
501
+ },
502
+ {
503
+ "text": "Subitem 2",
504
+ "value": "subitem-2",
505
+ "hint": {
506
+ "text": "Hint on item"
507
+ }
508
+ },
509
+ {
510
+ "text": "Subitem 3",
511
+ "value": "subitem-3",
512
+ "hint": {
513
+ "text": "Hint on item"
514
+ }
515
+ }
516
+ ],
517
+ "attributes": {
518
+ "aria-labelledby": "with-hints-on-items-example-item-2"
519
+ }
172
520
  }
173
-
174
521
  },
175
522
  {
176
523
  "text": "Item 3",
177
- "value": "item-2",
524
+ "id": "with-hints-on-items-example-item-3",
178
525
  "hint": {
179
526
  "text": "Hint on item"
527
+ },
528
+ "sub": {
529
+ "items": [
530
+ {
531
+ "text": "Subitem 1",
532
+ "value": "subitem-1",
533
+ "hint": {
534
+ "text": "Hint on item"
535
+ }
536
+ },
537
+ {
538
+ "text": "Subitem 2",
539
+ "value": "subitem-2",
540
+ "hint": {
541
+ "text": "Hint on item"
542
+ }
543
+ },
544
+ {
545
+ "text": "Subitem 3",
546
+ "value": "subitem-3",
547
+ "hint": {
548
+ "text": "Hint on item"
549
+ }
550
+ }
551
+ ],
552
+ "attributes": {
553
+ "aria-labelledby": "with-hints-on-items-example-item-3"
554
+ }
180
555
  }
181
-
182
556
  }
183
557
  ]
184
558
  }
@@ -196,18 +570,76 @@
196
570
  "hint": {
197
571
  "text": "Selecciona el organismo al que perteneces."
198
572
  },
573
+ "idPrefix": "with-very-long-option-text",
199
574
  "items": [
200
575
  {
201
576
  "text": "Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.",
202
- "value": "item-1"
577
+ "id": "with-very-long-option-text-example-item-1",
578
+ "sub": {
579
+ "items": [
580
+ {
581
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.",
582
+ "value": "subitem-1"
583
+ },
584
+ {
585
+ "text": "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.",
586
+ "value": "subitem-2"
587
+ },
588
+ {
589
+ "text": "Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.",
590
+ "value": "subitem-3"
591
+ }
592
+ ],
593
+ "attributes": {
594
+ "aria-labelledby": "with-very-long-option-text-example-item-1"
595
+ }
596
+ }
203
597
  },
204
598
  {
205
599
  "text": "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.",
206
- "value": "item-2"
600
+ "id": "with-very-long-option-text-example-item-2",
601
+ "sub": {
602
+ "items": [
603
+ {
604
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.",
605
+ "value": "subitem-1"
606
+ },
607
+ {
608
+ "text": "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.",
609
+ "value": "subitem-2"
610
+ },
611
+ {
612
+ "text": "Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.",
613
+ "value": "subitem-3"
614
+ }
615
+ ],
616
+ "attributes": {
617
+ "aria-labelledby": "with-very-long-option-text-example-item-2"
618
+ }
619
+ }
207
620
  },
208
621
  {
209
622
  "text": "Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.",
210
- "value": "item-3"
623
+ "id": "with-very-long-option-text-example-item-3",
624
+ "sub": {
625
+ "items": [
626
+ {
627
+ "text": "Nullam id dolor id nibh ultricies vehicula ut id elit. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Maecenas faucibus mollis interdum. Donec id elit non mi porta gravida at eget metus.",
628
+ "value": "subitem-1"
629
+ },
630
+ {
631
+ "text": "Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Donec sed odio dui. Duis mollis, est non commodo luctus, nisi erat porttitor ligula, eget lacinia odio sem nec elit. Cum sociis natoque penatibus et magnis dis parturient montes, nascetur ridiculus mus. Aenean eu leo quam. Pellentesque ornare sem lacinia quam venenatis vestibulum. Cras mattis consectetur purus sit amet fermentum.",
632
+ "value": "subitem-2"
633
+ },
634
+ {
635
+ "text": "Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Praesent commodo cursus magna, vel scelerisque nisl consectetur et. Etiam porta sem malesuada magna mollis euismod. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. Sed posuere consectetur est at lobortis.",
636
+ "value": "subitem-3"
637
+ }
638
+ ],
639
+ "attributes": {
640
+ "aria-labelledby": "with-very-long-option-text-example-item-3"
641
+ }
642
+ }
211
643
  }
212
644
  ]
213
645
  }
@@ -224,18 +656,76 @@
224
656
  },
225
657
  "headingLevel": 2
226
658
  },
659
+ "idPrefix": "with-legend-as-page-heading",
227
660
  "items": [
228
661
  {
229
662
  "text": "Item 1",
230
- "value": "item-1"
663
+ "id": "with-legend-as-page-heading-example-item-1",
664
+ "sub": {
665
+ "items": [
666
+ {
667
+ "text": "Subitem 1",
668
+ "value": "subitem-1"
669
+ },
670
+ {
671
+ "text": "Subitem 2",
672
+ "value": "subitem-2"
673
+ },
674
+ {
675
+ "text": "Subitem 3",
676
+ "value": "subitem-3"
677
+ }
678
+ ],
679
+ "attributes": {
680
+ "aria-labelledby": "with-legend-as-page-heading-example-item-1"
681
+ }
682
+ }
231
683
  },
232
684
  {
233
685
  "text": "Item 2",
234
- "value": "item-2"
686
+ "id": "with-legend-as-page-heading-example-item-2",
687
+ "sub": {
688
+ "items": [
689
+ {
690
+ "text": "Subitem 1",
691
+ "value": "subitem-1"
692
+ },
693
+ {
694
+ "text": "Subitem 2",
695
+ "value": "subitem-2"
696
+ },
697
+ {
698
+ "text": "Subitem 3",
699
+ "value": "subitem-3"
700
+ }
701
+ ],
702
+ "attributes": {
703
+ "aria-labelledby": "with-legend-as-page-heading-example-item-2"
704
+ }
705
+ }
235
706
  },
236
707
  {
237
708
  "text": "Item 3",
238
- "value": "item-2"
709
+ "id": "with-legend-as-page-heading-example-item-3",
710
+ "sub": {
711
+ "items": [
712
+ {
713
+ "text": "Subitem 1",
714
+ "value": "subitem-1"
715
+ },
716
+ {
717
+ "text": "Subitem 2",
718
+ "value": "subitem-2"
719
+ },
720
+ {
721
+ "text": "Subitem 3",
722
+ "value": "subitem-3"
723
+ }
724
+ ],
725
+ "attributes": {
726
+ "aria-labelledby": "with-legend-as-page-heading-example-item-3"
727
+ }
728
+ }
239
729
  }
240
730
  ]
241
731
  }
@@ -244,18 +734,76 @@
244
734
  "name": "without fieldset",
245
735
  "data": {
246
736
  "name": "without-fieldset",
737
+ "idPrefix": "without-fieldset",
247
738
  "items": [
248
739
  {
249
740
  "text": "Item 1",
250
- "value": "item-1"
741
+ "id": "without-fieldset-example-item-1",
742
+ "sub": {
743
+ "items": [
744
+ {
745
+ "text": "Subitem 1",
746
+ "value": "subitem-1"
747
+ },
748
+ {
749
+ "text": "Subitem 2",
750
+ "value": "subitem-2"
751
+ },
752
+ {
753
+ "text": "Subitem 3",
754
+ "value": "subitem-3"
755
+ }
756
+ ],
757
+ "attributes": {
758
+ "aria-labelledby": "without-fieldset-example-item-1"
759
+ }
760
+ }
251
761
  },
252
762
  {
253
763
  "text": "Item 2",
254
- "value": "item-2"
764
+ "id": "without-fieldset-example-item-2",
765
+ "sub": {
766
+ "items": [
767
+ {
768
+ "text": "Subitem 1",
769
+ "value": "subitem-1"
770
+ },
771
+ {
772
+ "text": "Subitem 2",
773
+ "value": "subitem-2"
774
+ },
775
+ {
776
+ "text": "Subitem 3",
777
+ "value": "subitem-3"
778
+ }
779
+ ],
780
+ "attributes": {
781
+ "aria-labelledby": "without-fieldset-example-item-2"
782
+ }
783
+ }
255
784
  },
256
785
  {
257
786
  "text": "Item 3",
258
- "value": "item-2"
787
+ "id": "without-fieldset-example-item-3",
788
+ "sub": {
789
+ "items": [
790
+ {
791
+ "text": "Subitem 1",
792
+ "value": "subitem-1"
793
+ },
794
+ {
795
+ "text": "Subitem 2",
796
+ "value": "subitem-2"
797
+ },
798
+ {
799
+ "text": "Subitem 3",
800
+ "value": "subitem-3"
801
+ }
802
+ ],
803
+ "attributes": {
804
+ "aria-labelledby": "without-fieldset-example-item-3"
805
+ }
806
+ }
259
807
  }
260
808
  ]
261
809
  }