desy-html 7.3.1 → 7.4.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 (57) hide show
  1. package/docs/_macro.example-render.njk +1 -1
  2. package/docs/index.html +4 -0
  3. package/package.json +1 -1
  4. package/src/templates/components/accordion/_examples.accordion.njk +108 -104
  5. package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
  6. package/src/templates/components/alert/_examples.alert.njk +10 -6
  7. package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
  8. package/src/templates/components/button/_examples.button.njk +71 -71
  9. package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
  10. package/src/templates/components/card/_examples.card.njk +43 -43
  11. package/src/templates/components/character-count/_examples.character-count.njk +35 -33
  12. package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
  13. package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
  14. package/src/templates/components/date-input/_examples.date-input.njk +14 -14
  15. package/src/templates/components/description-list/_examples.description-list.njk +45 -44
  16. package/src/templates/components/details/_examples.details.njk +17 -16
  17. package/src/templates/components/dialog/_examples.dialog.njk +5 -6
  18. package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
  19. package/src/templates/components/error-message/_examples.error-message.njk +8 -2
  20. package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
  21. package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
  22. package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
  23. package/src/templates/components/footer/_examples.footer.njk +24 -24
  24. package/src/templates/components/header/_examples.header.njk +12 -12
  25. package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
  26. package/src/templates/components/hint/_examples.hint.njk +4 -4
  27. package/src/templates/components/input/_examples.input.njk +66 -64
  28. package/src/templates/components/input-group/_examples.input-group.njk +15 -17
  29. package/src/templates/components/item/_examples.item.njk +21 -20
  30. package/src/templates/components/label/_examples.label.njk +11 -9
  31. package/src/templates/components/links-list/_examples.links-list.njk +34 -34
  32. package/src/templates/components/listbox/_examples.listbox.njk +146 -146
  33. package/src/templates/components/media-object/_examples.media-object.njk +7 -7
  34. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
  35. package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
  36. package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
  37. package/src/templates/components/menubar/_examples.menubar.njk +42 -42
  38. package/src/templates/components/modal/_examples.modal.njk +21 -15
  39. package/src/templates/components/modal/_template.modal.njk +5 -5
  40. package/src/templates/components/nav/_examples.nav.njk +66 -66
  41. package/src/templates/components/notification/_examples.notification.njk +14 -13
  42. package/src/templates/components/pagination/_examples.pagination.njk +7 -6
  43. package/src/templates/components/pill/_examples.pill.njk +29 -29
  44. package/src/templates/components/radios/_examples.radios.njk +153 -142
  45. package/src/templates/components/searchbar/_examples.searchbar.njk +11 -11
  46. package/src/templates/components/select/_examples.select.njk +63 -63
  47. package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
  48. package/src/templates/components/spinner/_examples.spinner.njk +11 -11
  49. package/src/templates/components/status/_examples.status.njk +4 -4
  50. package/src/templates/components/status-item/_examples.status-item.njk +21 -21
  51. package/src/templates/components/table/_examples.table.njk +58 -56
  52. package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
  53. package/src/templates/components/tabs/_examples.tabs.njk +30 -29
  54. package/src/templates/components/textarea/_examples.textarea.njk +28 -27
  55. package/src/templates/components/toggle/_examples.toggle.njk +10 -11
  56. package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
  57. package/src/templates/components/tree/_examples.tree.njk +58 -57
@@ -1,7 +1,7 @@
1
1
  {% set exampleComponent = "menu-vertical" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
6
  "items": [
7
7
  {
@@ -23,7 +23,7 @@
23
23
  }
24
24
  },
25
25
  {
26
- "name": "with disabled item",
26
+ "name": "con item deshabilitado",
27
27
  "data": {
28
28
  "items": [
29
29
  {
@@ -46,7 +46,7 @@
46
46
  }
47
47
  },
48
48
  {
49
- "name": "with active item",
49
+ "name": "con item activo",
50
50
  "data": {
51
51
  "items": [
52
52
  {
@@ -69,7 +69,7 @@
69
69
  }
70
70
  },
71
71
  {
72
- "name": "with target in links",
72
+ "name": "con target en enlaces",
73
73
  "data": {
74
74
  "items": [
75
75
  {
@@ -103,7 +103,7 @@
103
103
  }
104
104
  },
105
105
  {
106
- "name": "with divider",
106
+ "name": "con divisor",
107
107
  "data": {
108
108
  "items": [
109
109
  {
@@ -130,7 +130,7 @@
130
130
  }
131
131
  },
132
132
  {
133
- "name": "with very long option text",
133
+ "name": "con un texto de item muy largo",
134
134
  "data": {
135
135
  "items": [
136
136
  {
@@ -152,7 +152,7 @@
152
152
  }
153
153
  },
154
154
  {
155
- "name": "with all parent items",
155
+ "name": "con todos los items padres",
156
156
  "data": {
157
157
  "idPrefix": "parent-example",
158
158
  "items": [
@@ -235,7 +235,7 @@
235
235
  }
236
236
  },
237
237
  {
238
- "name": "with descriptive content",
238
+ "name": "items con contenido descriptivo",
239
239
  "data": {
240
240
  "idPrefix": "descriptive-example",
241
241
  "items": [
@@ -267,7 +267,7 @@
267
267
  }
268
268
  },
269
269
  {
270
- "name": "with a children item active",
270
+ "name": "con un item hijo activo",
271
271
  "data": {
272
272
  "idPrefix": "nav-item-with-children-active",
273
273
  "items": [
@@ -327,15 +327,15 @@
327
327
  }
328
328
  },
329
329
  {
330
- "name": "with hasUnderline, with disabled or without href in a parent and child",
331
- "description": "Use hasUnderline true when you will have mixed, disabled or without href items and normal items.",
330
+ "name": "con hasUnderline, con deshabilitado o sin href en un padre e hijo",
331
+ "description": 'Usa <code>"hasUnderline": true</code> cuando tienes mezclados, items deshabilitados o sin href e items normales.',
332
332
  "data": {
333
333
  "idPrefix": "nav-item-without-href",
334
334
  "hasUnderline": true,
335
335
  "items": [
336
336
  {
337
337
  "href": "#",
338
- "text": "Item 1 disabled with href",
338
+ "text": "Item 1 deshabilitado o sin href",
339
339
  "id": "nav-item-item-1-b",
340
340
  "disabled": true,
341
341
  "sub": {
@@ -346,7 +346,7 @@
346
346
  },
347
347
  {
348
348
  "href": "#",
349
- "text": "Subitem 2 disabled with href",
349
+ "text": "Subitem 2 deshabilitado o sin href",
350
350
  "disabled": true
351
351
  },
352
352
  {
@@ -360,7 +360,7 @@
360
360
  }
361
361
  },
362
362
  {
363
- "text": "Item 2 without href",
363
+ "text": "Item 2 sin href",
364
364
  "id": "nav-item-item-2-b",
365
365
  "sub": {
366
366
  "items": [
@@ -369,7 +369,7 @@
369
369
  "text": "Subitem 1"
370
370
  },
371
371
  {
372
- "text": "Subitem 2 without href"
372
+ "text": "Subitem 2 sin href"
373
373
  },
374
374
  {
375
375
  "href": "#",
@@ -388,34 +388,34 @@
388
388
  }
389
389
  },
390
390
  {
391
- "name": "with classes applied",
391
+ "name": "con clases de css aplicadas",
392
392
  "data": {
393
- "classes": "bg-warning-light",
393
+ "classes": "p-base bg-primary-light",
394
394
  "items": [
395
395
  {
396
396
  "href": "#",
397
- "text": "Option 1"
397
+ "text": "Opción 1"
398
398
  },
399
399
  {
400
400
  "href": "#",
401
- "text": "Option 2",
401
+ "text": "Opción 2",
402
402
  "id": "classes-1",
403
- "classes": "bg-warning-base",
403
+ "classes": "bg-white",
404
404
  "sub": {
405
- "classes": "border-l-4 border-alert-base bg-alert-light",
405
+ "classes": " p-sm border-l-4 border-alert-base bg-alert-light",
406
406
  "items": [
407
407
  {
408
408
  "href": "#",
409
- "text": "Simple link"
409
+ "text": "Enlace simple"
410
410
  },
411
411
  {
412
- "text": "Simple link",
413
- "classes": "border-2 border-alert-base text-alert-base bg-white",
412
+ "text": "Enlace simple",
413
+ "classes": "text-alert-base bg-white",
414
414
  "active": true
415
415
  },
416
416
  {
417
417
  "href": "#",
418
- "text": "Simple link"
418
+ "text": "Enlace simple"
419
419
  }
420
420
  ],
421
421
  "attributes": {
@@ -425,15 +425,15 @@
425
425
  },
426
426
  {
427
427
  "href": "#",
428
- "text": "Option 3"
428
+ "text": "Opción 3"
429
429
  },
430
430
  {
431
431
  "href": "#",
432
- "text": "Option 4"
432
+ "text": "Opción 4"
433
433
  },
434
434
  {
435
435
  "href": "#",
436
- "text": "Option 5"
436
+ "text": "Opción 5"
437
437
  }
438
438
  ],
439
439
  "attributes": {
@@ -442,30 +442,30 @@
442
442
  }
443
443
  },
444
444
  {
445
- "name": "with idPrefix",
446
- "description": "See code to display the idPrefix applied",
445
+ "name": "con idPrefix",
446
+ "description": 'Mostrar código para ver el <code>idPrefix</code> aplicado',
447
447
  "data": {
448
448
  "idPrefix": "site-menu-item",
449
449
  "items": [
450
450
  {
451
451
  "href": "#",
452
- "text": "Option 1"
452
+ "text": "Opción 1"
453
453
  },
454
454
  {
455
455
  "href": "#",
456
- "text": "Option 2"
456
+ "text": "Opción 2"
457
457
  },
458
458
  {
459
459
  "href": "#",
460
- "text": "Option 3"
460
+ "text": "Opción 3"
461
461
  },
462
462
  {
463
463
  "href": "#",
464
- "text": "Option 4"
464
+ "text": "Opción 4"
465
465
  },
466
466
  {
467
467
  "href": "#",
468
- "text": "Option 5"
468
+ "text": "Opción 5"
469
469
  }
470
470
  ],
471
471
  "attributes": {
@@ -474,33 +474,33 @@
474
474
  }
475
475
  },
476
476
  {
477
- "name": "with individual ids",
478
- "description": "See code to display the ids applied",
477
+ "name": "con ids individuales",
478
+ "description": 'Mostrar código para ver los <code>id</code> aplicados',
479
479
  "data": {
480
480
  "items": [
481
481
  {
482
482
  "href": "#",
483
- "text": "Option 1",
483
+ "text": "Opción 1",
484
484
  "id": "option-A"
485
485
  },
486
486
  {
487
487
  "href": "#",
488
- "text": "Option 2",
488
+ "text": "Opción 2",
489
489
  "id": "option-B"
490
490
  },
491
491
  {
492
492
  "href": "#",
493
- "text": "Option 3",
493
+ "text": "Opción 3",
494
494
  "id": "option-C"
495
495
  },
496
496
  {
497
497
  "href": "#",
498
- "text": "Option 4",
498
+ "text": "Opción 4",
499
499
  "id": "option-D"
500
500
  },
501
501
  {
502
502
  "href": "#",
503
- "text": "Option 5",
503
+ "text": "Opción 5",
504
504
  "id": "option-E"
505
505
  }
506
506
  ],
@@ -510,8 +510,8 @@
510
510
  }
511
511
  },
512
512
  {
513
- "name": "with attributes",
514
- "description": "See code to display the attributes applied",
513
+ "name": "con atributos",
514
+ "description": "Muestra el código para ver cómo se aplican los atributos",
515
515
  "data": {
516
516
  "attributes": {
517
517
  "id": "nav-id-example"
@@ -519,7 +519,7 @@
519
519
  "items": [
520
520
  {
521
521
  "href": "#",
522
- "text": "Option 1",
522
+ "text": "Opción 1",
523
523
  "attributes": {
524
524
  "data-attribute-1": "value-A",
525
525
  "data-attribute-2": "value-B",
@@ -528,7 +528,7 @@
528
528
  },
529
529
  {
530
530
  "href": "#",
531
- "text": "Option 2",
531
+ "text": "Opción 2",
532
532
  "attributes": {
533
533
  "data-attribute-1": "value-A",
534
534
  "data-attribute-2": "value-B",
@@ -537,7 +537,7 @@
537
537
  },
538
538
  {
539
539
  "href": "#",
540
- "text": "Option 3",
540
+ "text": "Opción 3",
541
541
  "attributes": {
542
542
  "data-attribute-1": "value-A",
543
543
  "data-attribute-2": "value-B",
@@ -552,7 +552,7 @@
552
552
  "items": [
553
553
  {
554
554
  "href": "#",
555
- "text": "Simple link",
555
+ "text": "Enlace simple",
556
556
  "attributes": {
557
557
  "data-attribute-1": "value-A",
558
558
  "data-attribute-2": "value-B",
@@ -561,18 +561,18 @@
561
561
  },
562
562
  {
563
563
  "href": "#",
564
- "text": "Simple link"
564
+ "text": "Enlace simple"
565
565
  },
566
566
  {
567
567
  "href": "#",
568
- "text": "Simple link"
568
+ "text": "Enlace simple"
569
569
  }
570
570
  ]
571
571
  }
572
572
  },
573
573
  {
574
574
  "href": "#",
575
- "text": "Option 4",
575
+ "text": "Opción 4",
576
576
  "attributes": {
577
577
  "data-attribute-1": "value-A",
578
578
  "data-attribute-2": "value-B",
@@ -581,7 +581,7 @@
581
581
  },
582
582
  {
583
583
  "href": "#",
584
- "text": "Option 5",
584
+ "text": "Opción 5",
585
585
  "attributes": {
586
586
  "data-attribute-1": "value-A",
587
587
  "data-attribute-2": "value-B",
@@ -595,37 +595,37 @@
595
595
  }
596
596
  },
597
597
  {
598
- "name": "with mixed items",
598
+ "name": "con items mixtos",
599
599
  "data": {
600
600
  "name": "with-sub-items",
601
601
  "idPrefix": "how-contacted",
602
602
  "items": [
603
603
  {
604
604
  "href": "#",
605
- "text": "Simple link"
605
+ "text": "Enlace simple"
606
606
  },
607
607
  {
608
- "text": "Item without href and disabled",
608
+ "text": "Item sin href o deshabilitado",
609
609
  "disabled": true
610
610
  },
611
611
  {
612
612
  "href": "#",
613
- "text": "Simple link"
613
+ "text": "Enlace simple"
614
614
  },
615
615
  {
616
616
  "href": "#",
617
- "text": "Parent with divider",
617
+ "text": "Padre con divisor",
618
618
  "divider": true,
619
619
  "id": "with-sub-items-1",
620
620
  "sub": {
621
621
  "items": [
622
622
  {
623
623
  "href": "#",
624
- "text": "Simple link"
624
+ "text": "Enlace simple"
625
625
  },
626
626
  {
627
627
  "href": "#",
628
- "text": "Simple link",
628
+ "text": "Enlace simple",
629
629
  "target": "_blank",
630
630
  "attributes": {
631
631
  "title": "Se abre en ventana nueva"
@@ -633,16 +633,16 @@
633
633
  },
634
634
  {
635
635
  "href": "#",
636
- "text": "Simple link"
636
+ "text": "Enlace simple"
637
637
  },
638
638
  {
639
639
  "href": "#",
640
- "text": "Simple link",
640
+ "text": "Enlace simple",
641
641
  "divider": true
642
642
  },
643
643
  {
644
644
  "href": "#",
645
- "text": "Simple link"
645
+ "text": "Enlace simple"
646
646
  }
647
647
  ],
648
648
  "attributes": {
@@ -652,33 +652,33 @@
652
652
  },
653
653
  {
654
654
  "href": "#",
655
- "text": "Simple link"
655
+ "text": "Enlace simple"
656
656
  },
657
657
  {
658
658
  "href": "#",
659
- "text": "Simple link"
659
+ "text": "Enlace simple"
660
660
  },
661
661
  {
662
662
  "href": "#",
663
- "text": "With html inside",
663
+ "text": "Con HTML dentro",
664
664
  "sub": {
665
665
  "html": '<p>Este es un párrafo explicativo metido con un sub.html dentro del Item</p><p>Este es otro párrafo.</p>'
666
666
  }
667
667
  },
668
668
  {
669
669
  "href": "#",
670
- "text": "Simple link"
670
+ "text": "Enlace simple"
671
671
  },
672
672
  {
673
673
  "href": "#",
674
- "text": "Simple link"
674
+ "text": "Enlace simple"
675
675
  },
676
676
  {
677
677
  "href": "#",
678
- "text": "Simple link"
678
+ "text": "Enlace simple"
679
679
  },
680
680
  {
681
- "text": "Parent without href",
681
+ "text": "Padre sin href",
682
682
  "id": "with-sub-items-2",
683
683
  "sub": {
684
684
  "items": [
@@ -688,11 +688,11 @@
688
688
  },
689
689
  {
690
690
  "href": "#",
691
- "text": "Active subitem",
691
+ "text": "Subitem activo",
692
692
  "active" : true
693
693
  },
694
694
  {
695
- "text": "Subitem without href and disabled",
695
+ "text": "Subitem sin href o deshabilitado",
696
696
  "disabled": true
697
697
  }
698
698
  ],