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.
- package/config/tailwind.config.js +10 -10
- package/docs/_include.template-header.njk +8 -0
- package/docs/_macro.example-render.njk +8 -0
- package/docs/componentes.html +6 -0
- package/docs/ds/_ds.example.accordion.njk +61 -0
- package/docs/ds/_ds.example.footer.njk +7 -128
- package/docs/ds/_ds.example.header.njk +118 -0
- package/docs/ds/_ds.example.layout.njk +16 -6
- package/docs/ds/_ds.example.menu-navigation.njk +494 -0
- package/docs/ds/_ds.example.searchbar.njk +39 -0
- package/docs/ds/_ds.example.table.njk +432 -0
- package/docs/ds/_ds.example.toggle.njk +55 -35
- package/docs/ds/_ds.section.layout.njk +12 -12
- package/docs/ds/_ds.section.navigation.njk +5 -0
- package/docs/ds/_ds.section.textos.njk +27 -0
- package/docs/examples-accordion-history.html +5 -0
- package/docs/examples-menu-navigation.html +5 -0
- package/docs/index.html +39 -0
- package/gulpfile.js +7 -6
- package/package.json +6 -7
- package/src/css/base.css +4 -0
- package/src/css/styles.css +1 -0
- package/src/js/aria/accordion.js +16 -5
- package/src/js/aria/disclosureMenu.js +153 -0
- package/src/js/desy-html.js +15 -0
- package/src/js/index.js +2 -0
- package/src/templates/components/accordion/_examples.accordion.njk +70 -2
- package/src/templates/components/accordion/_template.accordion.njk +18 -8
- package/src/templates/components/accordion/params.accordion.yaml +38 -0
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +356 -0
- package/src/templates/components/accordion-history/_macro.accordion-history.njk +3 -0
- package/src/templates/components/accordion-history/_template.accordion-history.njk +209 -0
- package/src/templates/components/accordion-history/params.accordion-history.yaml +125 -0
- package/src/templates/components/button/_examples.button.njk +7 -0
- package/src/templates/components/button/_styles.button.css +27 -0
- package/src/templates/components/button/_template.button.njk +1 -1
- package/src/templates/components/button-loader/_template.button-loader.njk +6 -6
- package/src/templates/components/file-upload/_template.file-upload.njk +1 -1
- package/src/templates/components/footer/_examples.footer.njk +46 -136
- package/src/templates/components/footer/_template.footer.njk +35 -28
- package/src/templates/components/footer/params.footer.yaml +18 -0
- package/src/templates/components/header/_examples.header.njk +166 -0
- package/src/templates/components/header/_template.header.header__navigation.njk +2 -2
- package/src/templates/components/header/_template.header.njk +7 -3
- package/src/templates/components/header/params.header.yaml +24 -0
- package/src/templates/components/item/_examples.item.njk +1 -1
- package/src/templates/components/item/_template.item.njk +3 -3
- package/src/templates/components/listbox/_styles.listbox.css +7 -4
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +25 -0
- package/src/templates/components/menu-horizontal/_styles.menu-horizontal.css +26 -0
- package/src/templates/components/menu-horizontal/_template.menu-horizontal.njk +1 -1
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +1080 -0
- package/src/templates/components/menu-navigation/_macro.menu-navigation.njk +3 -0
- package/src/templates/components/menu-navigation/_styles.menu-navigation.css +216 -0
- package/src/templates/components/menu-navigation/_template.menu-navigation.njk +116 -0
- package/src/templates/components/menu-navigation/params.menu-navigation.yaml +93 -0
- package/src/templates/components/menubar/_examples.menubar.njk +1 -1
- package/src/templates/components/menubar/_styles.menubar.css +26 -5
- package/src/templates/components/modal/_examples.modal.njk +62 -0
- package/src/templates/components/modal/_template.modal.njk +21 -4
- package/src/templates/components/modal/params.modal.yaml +2 -2
- package/src/templates/components/searchbar/_examples.searchbar.njk +12 -1
- package/src/templates/components/searchbar/_template.searchbar.njk +8 -8
- package/src/templates/components/spinner/_styles.spinner.css +1 -0
- package/src/templates/components/spinner/_template.spinner.njk +4 -4
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +182 -5
- package/src/templates/components/table-advanced/_template.table-advanced.njk +26 -2
- package/src/templates/components/table-advanced/params.table-advanced.yaml +5 -0
- package/src/templates/components/toggle/_examples.toggle.njk +33 -11
- package/src/templates/components/toggle/_template.toggle.njk +3 -1
- package/src/templates/components/toggle/params.toggle.yaml +4 -0
- package/src/templates/components/tree/_examples.tree.njk +580 -32
- package/src/templates/components/tree/_template.tree.njk +1 -1
- package/config/clean-css.js +0 -25
|
@@ -306,4 +306,436 @@
|
|
|
306
306
|
"classes": "min-w-full"
|
|
307
307
|
}) }}
|
|
308
308
|
</div>
|
|
309
|
+
<div class="py-xl">
|
|
310
|
+
{{ componentTableAdvanced({
|
|
311
|
+
"idPrefix": "table-with-head-and-selects",
|
|
312
|
+
"head": [
|
|
313
|
+
{
|
|
314
|
+
"text": "Month you apply",
|
|
315
|
+
"select": {
|
|
316
|
+
"items": [
|
|
317
|
+
{
|
|
318
|
+
"value": "",
|
|
319
|
+
"text": "Filtrar por...",
|
|
320
|
+
"disabled": true,
|
|
321
|
+
"selected": true,
|
|
322
|
+
"hidden": true
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"value": 1,
|
|
326
|
+
"text": "Option 1"
|
|
327
|
+
},
|
|
328
|
+
{
|
|
329
|
+
"value": 2,
|
|
330
|
+
"text": "Option 2"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"value": 3,
|
|
334
|
+
"text": "Option 3"
|
|
335
|
+
}
|
|
336
|
+
]
|
|
337
|
+
}
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"text": "Rate for bicycles",
|
|
341
|
+
"classes": "text-right",
|
|
342
|
+
"select": {
|
|
343
|
+
"items": [
|
|
344
|
+
{
|
|
345
|
+
"value": "",
|
|
346
|
+
"text": "Filtrar por...",
|
|
347
|
+
"disabled": true,
|
|
348
|
+
"selected": true,
|
|
349
|
+
"hidden": true
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"value": 1,
|
|
353
|
+
"text": "Option 1"
|
|
354
|
+
},
|
|
355
|
+
{
|
|
356
|
+
"value": 2,
|
|
357
|
+
"text": "Option 2"
|
|
358
|
+
},
|
|
359
|
+
{
|
|
360
|
+
"value": 3,
|
|
361
|
+
"text": "Option 3"
|
|
362
|
+
}
|
|
363
|
+
]
|
|
364
|
+
}
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"text": "Rate for vehicles",
|
|
368
|
+
"classes": "text-right",
|
|
369
|
+
"select": {
|
|
370
|
+
"items": [
|
|
371
|
+
{
|
|
372
|
+
"value": "",
|
|
373
|
+
"text": "Filtrar por...",
|
|
374
|
+
"disabled": true,
|
|
375
|
+
"selected": true,
|
|
376
|
+
"hidden": true
|
|
377
|
+
},
|
|
378
|
+
{
|
|
379
|
+
"value": 1,
|
|
380
|
+
"text": "Option 1"
|
|
381
|
+
},
|
|
382
|
+
{
|
|
383
|
+
"value": 2,
|
|
384
|
+
"text": "Option 2"
|
|
385
|
+
},
|
|
386
|
+
{
|
|
387
|
+
"value": 3,
|
|
388
|
+
"text": "Option 3"
|
|
389
|
+
}
|
|
390
|
+
]
|
|
391
|
+
}
|
|
392
|
+
}
|
|
393
|
+
],
|
|
394
|
+
"rows": [
|
|
395
|
+
[
|
|
396
|
+
{
|
|
397
|
+
"text": "January"
|
|
398
|
+
},
|
|
399
|
+
{
|
|
400
|
+
"text": "85€",
|
|
401
|
+
"classes": "text-right"
|
|
402
|
+
},
|
|
403
|
+
{
|
|
404
|
+
"text": "95€",
|
|
405
|
+
"classes": "text-right"
|
|
406
|
+
}
|
|
407
|
+
],
|
|
408
|
+
[
|
|
409
|
+
{
|
|
410
|
+
"text": "February"
|
|
411
|
+
},
|
|
412
|
+
{
|
|
413
|
+
"text": "75€",
|
|
414
|
+
"classes": "text-right"
|
|
415
|
+
},
|
|
416
|
+
{
|
|
417
|
+
"text": "55€",
|
|
418
|
+
"classes": "text-right"
|
|
419
|
+
}
|
|
420
|
+
],
|
|
421
|
+
[
|
|
422
|
+
{
|
|
423
|
+
"text": "March"
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"text": "165€",
|
|
427
|
+
"classes": "text-right"
|
|
428
|
+
},
|
|
429
|
+
{
|
|
430
|
+
"text": "125€",
|
|
431
|
+
"classes": "text-right"
|
|
432
|
+
}
|
|
433
|
+
]
|
|
434
|
+
],
|
|
435
|
+
"classes": "min-w-full"
|
|
436
|
+
}) }}
|
|
437
|
+
</div>
|
|
438
|
+
<div class="pt-xl">
|
|
439
|
+
{{ componentTableAdvanced({
|
|
440
|
+
"idPrefix": "table-with-sticky-columns",
|
|
441
|
+
"hasCheckboxes": true,
|
|
442
|
+
"checkboxesClasses": "sticky left-0 z-10 w-0 bg-white",
|
|
443
|
+
"firstCellIsHeader": true,
|
|
444
|
+
"head": [
|
|
445
|
+
{
|
|
446
|
+
"text": "Row number",
|
|
447
|
+
"classes": "sticky left-16 z-10 w-60 bg-white"
|
|
448
|
+
},
|
|
449
|
+
{
|
|
450
|
+
"text": "Month you apply",
|
|
451
|
+
"orderBy": "none",
|
|
452
|
+
"hasFilter": true
|
|
453
|
+
},
|
|
454
|
+
{
|
|
455
|
+
"text": "Rate for bicycles",
|
|
456
|
+
"orderBy": "none",
|
|
457
|
+
"classes": "text-right",
|
|
458
|
+
"hasFilter": true
|
|
459
|
+
},
|
|
460
|
+
{
|
|
461
|
+
"text": "Rate for vehicles",
|
|
462
|
+
"orderBy": "none",
|
|
463
|
+
"classes": "text-right",
|
|
464
|
+
"hasFilter": true
|
|
465
|
+
},
|
|
466
|
+
{
|
|
467
|
+
"text": "Rate for column A",
|
|
468
|
+
"orderBy": "none",
|
|
469
|
+
"classes": "text-right",
|
|
470
|
+
"hasFilter": true
|
|
471
|
+
},
|
|
472
|
+
{
|
|
473
|
+
"text": "Rate for column B",
|
|
474
|
+
"orderBy": "none",
|
|
475
|
+
"classes": "text-right",
|
|
476
|
+
"hasFilter": true
|
|
477
|
+
},
|
|
478
|
+
{
|
|
479
|
+
"text": "Rate for column C",
|
|
480
|
+
"orderBy": "none",
|
|
481
|
+
"classes": "text-right",
|
|
482
|
+
"hasFilter": true
|
|
483
|
+
},
|
|
484
|
+
{
|
|
485
|
+
"text": "Rate for column D",
|
|
486
|
+
"orderBy": "none",
|
|
487
|
+
"classes": "text-right",
|
|
488
|
+
"hasFilter": true
|
|
489
|
+
},
|
|
490
|
+
{
|
|
491
|
+
"text": "Rate for column E",
|
|
492
|
+
"orderBy": "none",
|
|
493
|
+
"classes": "text-right sticky right-0 z-10 w-60 bg-white",
|
|
494
|
+
"hasFilter": true
|
|
495
|
+
}
|
|
496
|
+
],
|
|
497
|
+
"rows": [
|
|
498
|
+
[
|
|
499
|
+
{
|
|
500
|
+
"text": "First row",
|
|
501
|
+
"classes": "sticky left-16 z-10 w-60 bg-white"
|
|
502
|
+
},
|
|
503
|
+
{
|
|
504
|
+
"text": "January"
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"text": "85€",
|
|
508
|
+
"classes": "text-right"
|
|
509
|
+
},
|
|
510
|
+
{
|
|
511
|
+
"text": "95€",
|
|
512
|
+
"classes": "text-right"
|
|
513
|
+
},
|
|
514
|
+
{
|
|
515
|
+
"text": "85€",
|
|
516
|
+
"classes": "text-right"
|
|
517
|
+
},
|
|
518
|
+
{
|
|
519
|
+
"text": "95€",
|
|
520
|
+
"classes": "text-right"
|
|
521
|
+
},
|
|
522
|
+
{
|
|
523
|
+
"text": "95€",
|
|
524
|
+
"classes": "text-right"
|
|
525
|
+
},
|
|
526
|
+
{
|
|
527
|
+
"text": "95€",
|
|
528
|
+
"classes": "text-right"
|
|
529
|
+
},
|
|
530
|
+
{
|
|
531
|
+
"text": "95€",
|
|
532
|
+
"classes": "text-right sticky z-10 right-0 w-60 bg-white"
|
|
533
|
+
}
|
|
534
|
+
],
|
|
535
|
+
[
|
|
536
|
+
{
|
|
537
|
+
"text": "Second row",
|
|
538
|
+
"classes": "sticky left-16 z-10 w-60 bg-white"
|
|
539
|
+
},
|
|
540
|
+
{
|
|
541
|
+
"text": "February"
|
|
542
|
+
},
|
|
543
|
+
{
|
|
544
|
+
"text": "75€",
|
|
545
|
+
"classes": "text-right"
|
|
546
|
+
},
|
|
547
|
+
{
|
|
548
|
+
"text": "55€",
|
|
549
|
+
"classes": "text-right"
|
|
550
|
+
},
|
|
551
|
+
{
|
|
552
|
+
"text": "85€",
|
|
553
|
+
"classes": "text-right"
|
|
554
|
+
},
|
|
555
|
+
{
|
|
556
|
+
"text": "95€",
|
|
557
|
+
"classes": "text-right"
|
|
558
|
+
},
|
|
559
|
+
{
|
|
560
|
+
"text": "95€",
|
|
561
|
+
"classes": "text-right"
|
|
562
|
+
},
|
|
563
|
+
{
|
|
564
|
+
"text": "95€",
|
|
565
|
+
"classes": "text-right"
|
|
566
|
+
},
|
|
567
|
+
{
|
|
568
|
+
"text": "95€",
|
|
569
|
+
"classes": "text-right sticky right-0 z-10 w-60 bg-white"
|
|
570
|
+
}
|
|
571
|
+
],
|
|
572
|
+
[
|
|
573
|
+
{
|
|
574
|
+
"text": "Third row",
|
|
575
|
+
"classes": "sticky left-16 z-10 w-60 bg-white"
|
|
576
|
+
},
|
|
577
|
+
{
|
|
578
|
+
"text": "March"
|
|
579
|
+
},
|
|
580
|
+
{
|
|
581
|
+
"text": "165€",
|
|
582
|
+
"classes": "text-right"
|
|
583
|
+
},
|
|
584
|
+
{
|
|
585
|
+
"text": "125€",
|
|
586
|
+
"classes": "text-right"
|
|
587
|
+
},
|
|
588
|
+
{
|
|
589
|
+
"text": "85€",
|
|
590
|
+
"classes": "text-right"
|
|
591
|
+
},
|
|
592
|
+
{
|
|
593
|
+
"text": "95€",
|
|
594
|
+
"classes": "text-right"
|
|
595
|
+
},
|
|
596
|
+
{
|
|
597
|
+
"text": "95€",
|
|
598
|
+
"classes": "text-right"
|
|
599
|
+
},
|
|
600
|
+
{
|
|
601
|
+
"text": "95€",
|
|
602
|
+
"classes": "text-right"
|
|
603
|
+
},
|
|
604
|
+
{
|
|
605
|
+
"text": "95€",
|
|
606
|
+
"classes": "text-right sticky z-10 right-0 w-60 bg-white"
|
|
607
|
+
}
|
|
608
|
+
]
|
|
609
|
+
],
|
|
610
|
+
"wrapper": {
|
|
611
|
+
"classes": "overflow-x-auto pb-base"
|
|
612
|
+
},
|
|
613
|
+
"classes": "relative whitespace-nowrap min-w-full"
|
|
614
|
+
}) }}
|
|
615
|
+
</div>
|
|
616
|
+
<div class="pt-xl">
|
|
617
|
+
{{ componentTableAdvanced({
|
|
618
|
+
"idPrefix": "table-with-all",
|
|
619
|
+
"hasCheckboxes": true,
|
|
620
|
+
"firstCellIsHeader": true,
|
|
621
|
+
"head": [
|
|
622
|
+
{
|
|
623
|
+
"text": "Row number"
|
|
624
|
+
},
|
|
625
|
+
{
|
|
626
|
+
"text": "Month you apply",
|
|
627
|
+
"orderBy": "none",
|
|
628
|
+
"hasFilter": true
|
|
629
|
+
},
|
|
630
|
+
{
|
|
631
|
+
"text": "Rate for bicycles",
|
|
632
|
+
"orderBy": "none",
|
|
633
|
+
"classes": "text-right",
|
|
634
|
+
"select": {
|
|
635
|
+
"items": [
|
|
636
|
+
{
|
|
637
|
+
"value": "",
|
|
638
|
+
"text": "Filtrar por...",
|
|
639
|
+
"disabled": true,
|
|
640
|
+
"selected": true,
|
|
641
|
+
"hidden": true
|
|
642
|
+
},
|
|
643
|
+
{
|
|
644
|
+
"value": 1,
|
|
645
|
+
"text": "Option 1"
|
|
646
|
+
},
|
|
647
|
+
{
|
|
648
|
+
"value": 2,
|
|
649
|
+
"text": "Option 2"
|
|
650
|
+
},
|
|
651
|
+
{
|
|
652
|
+
"value": 3,
|
|
653
|
+
"text": "Option 3"
|
|
654
|
+
}
|
|
655
|
+
]
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
{
|
|
659
|
+
"text": "Rate for vehicles",
|
|
660
|
+
"orderBy": "none",
|
|
661
|
+
"classes": "text-right",
|
|
662
|
+
"hasFilter": true,
|
|
663
|
+
"select": {
|
|
664
|
+
"items": [
|
|
665
|
+
{
|
|
666
|
+
"value": "",
|
|
667
|
+
"text": "Filtrar por...",
|
|
668
|
+
"disabled": true,
|
|
669
|
+
"selected": true,
|
|
670
|
+
"hidden": true
|
|
671
|
+
},
|
|
672
|
+
{
|
|
673
|
+
"value": 1,
|
|
674
|
+
"text": "Option 1"
|
|
675
|
+
},
|
|
676
|
+
{
|
|
677
|
+
"value": 2,
|
|
678
|
+
"text": "Option 2"
|
|
679
|
+
},
|
|
680
|
+
{
|
|
681
|
+
"value": 3,
|
|
682
|
+
"text": "Option 3"
|
|
683
|
+
}
|
|
684
|
+
]
|
|
685
|
+
}
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
"rows": [
|
|
689
|
+
[
|
|
690
|
+
{
|
|
691
|
+
"text": "First row"
|
|
692
|
+
},
|
|
693
|
+
{
|
|
694
|
+
"text": "January"
|
|
695
|
+
},
|
|
696
|
+
{
|
|
697
|
+
"text": "85€",
|
|
698
|
+
"classes": "text-right"
|
|
699
|
+
},
|
|
700
|
+
{
|
|
701
|
+
"text": "95€",
|
|
702
|
+
"classes": "text-right"
|
|
703
|
+
}
|
|
704
|
+
],
|
|
705
|
+
[
|
|
706
|
+
{
|
|
707
|
+
"text": "Second row"
|
|
708
|
+
},
|
|
709
|
+
{
|
|
710
|
+
"text": "February"
|
|
711
|
+
},
|
|
712
|
+
{
|
|
713
|
+
"text": "75€",
|
|
714
|
+
"classes": "text-right"
|
|
715
|
+
},
|
|
716
|
+
{
|
|
717
|
+
"text": "55€",
|
|
718
|
+
"classes": "text-right"
|
|
719
|
+
}
|
|
720
|
+
],
|
|
721
|
+
[
|
|
722
|
+
{
|
|
723
|
+
"text": "Third row"
|
|
724
|
+
},
|
|
725
|
+
{
|
|
726
|
+
"text": "March"
|
|
727
|
+
},
|
|
728
|
+
{
|
|
729
|
+
"text": "165€",
|
|
730
|
+
"classes": "text-right"
|
|
731
|
+
},
|
|
732
|
+
{
|
|
733
|
+
"text": "125€",
|
|
734
|
+
"classes": "text-right"
|
|
735
|
+
}
|
|
736
|
+
]
|
|
737
|
+
],
|
|
738
|
+
"classes": "min-w-full"
|
|
739
|
+
}) }}
|
|
740
|
+
</div>
|
|
309
741
|
</div>
|
|
@@ -1,56 +1,76 @@
|
|
|
1
1
|
{% from "components/toggle/_macro.toggle.njk" import componentToggle %}
|
|
2
2
|
|
|
3
|
-
<div class="grid lg:grid-cols-
|
|
3
|
+
<div class="grid lg:grid-cols-1 gap-xl mb-lg">
|
|
4
4
|
<div>
|
|
5
5
|
{{ componentToggle({
|
|
6
|
-
"classes": "c-button
|
|
6
|
+
"classes": "c-button",
|
|
7
7
|
"offState": {
|
|
8
8
|
"classes": "",
|
|
9
|
-
"html": "
|
|
9
|
+
"html": "Mostrar detalles"
|
|
10
10
|
},
|
|
11
11
|
"onState": {
|
|
12
|
-
"classes": "",
|
|
13
|
-
"html": "
|
|
12
|
+
"classes": "c-button--has-selection",
|
|
13
|
+
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" width=\"1em\" height=\"1em\"><path d=\"M13.714 42.857A6.857 6.857 0 0 1 8.4 40.183L.857 31.646a3.429 3.429 0 0 1 .309-4.869A3.429 3.429 0 0 1 6 27.12l7.063 7.989a.72.72 0 0 0 .617.308.789.789 0 0 0 .617-.274L42.103 6.206a3.429 3.429 0 0 1 4.937 4.731L18.926 40.526a6.651 6.651 0 0 1-5.212 2.331Z\" fill=\"currentColor\"/></svg>Mostrar detalles</span>"
|
|
14
|
+
},
|
|
15
|
+
"attributes": {
|
|
16
|
+
"aria-controls": "id-panel-oculto"
|
|
14
17
|
}
|
|
15
18
|
}) }}
|
|
16
|
-
|
|
19
|
+
</div>
|
|
20
|
+
<div>
|
|
17
21
|
{{ componentToggle({
|
|
18
|
-
"classes": "c-button c-button--sm
|
|
22
|
+
"classes": "c-button c-button--sm",
|
|
19
23
|
"offState": {
|
|
20
24
|
"classes": "",
|
|
21
|
-
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M13.
|
|
25
|
+
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M13.71 2.3a1.45 1.45 0 0 0 .14-1.51A1.41 1.41 0 0 0 12.57 0H1.43A1.4 1.4 0 0 0 .15.8a1.43 1.43 0 0 0 .16 1.52l5.13 6.32a.25.25 0 0 1 .06.16v4.7a.5.5 0 0 0 .31.46A.43.43 0 0 0 6 14a.47.47 0 0 0 .35-.15l2-2a.47.47 0 0 0 .15-.35V8.8a.25.25 0 0 1 .06-.16ZM7.6 6.65a.29.29 0 0 1-.2.09h-.8a.29.29 0 0 1-.2-.09L3 2.41a.26.26 0 0 1 0-.27.26.26 0 0 1 .15-.14h7.7a.26.26 0 0 1 .22.14.26.26 0 0 1 0 .27Z\" fill=\"currentColor\" transform=\"scale(3.42857)\"/></svg>Mostrar filtros</span>"
|
|
22
26
|
},
|
|
23
27
|
"onState": {
|
|
24
|
-
"classes": "",
|
|
25
|
-
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><
|
|
28
|
+
"classes": "c-button--has-selection",
|
|
29
|
+
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M13.9.8a.51.51 0 0 0 0-.52.51.51 0 0 0-.4-.28H.5a.51.51 0 0 0-.45.28A.51.51 0 0 0 .1.8l5.19 6.79a1 1 0 0 1 .21.61v5.3a.5.5 0 0 0 .31.46A.43.43 0 0 0 6 14a.47.47 0 0 0 .35-.15l2-2a.47.47 0 0 0 .15-.35V8.2a1 1 0 0 1 .21-.61Z\" fill=\"currentColor\" transform=\"scale(3.42857)\"/></svg>Mostrar filtros</span>"
|
|
30
|
+
},
|
|
31
|
+
"attributes": {
|
|
32
|
+
"aria-controls": "id-panel-oculto"
|
|
26
33
|
}
|
|
27
34
|
}) }}
|
|
28
35
|
</div>
|
|
29
36
|
<div>
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
<
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
},
|
|
43
|
-
"onState": {
|
|
44
|
-
"classes": "",
|
|
45
|
-
"html": "<span class=\"bg-primary-base relative inline-flex flex-shrink-0 h-5 w-9 border-2 border-primary-base rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75\"><span class=\"sr-only\">off</span><span aria-hidden=\"true\" class=\"translate-x-4 pointer-events-none inline-block h-4 w-4 rounded-full bg-white shadow-lg transform ring-0 transition ease-in-out duration-200\" /></span></span>"
|
|
46
|
-
},
|
|
47
|
-
"attributes": {
|
|
48
|
-
"aria-labelledby": "id-text"
|
|
49
|
-
}
|
|
50
|
-
}) }}
|
|
51
|
-
</div>
|
|
52
|
-
</li>
|
|
53
|
-
</ul>
|
|
37
|
+
{{ componentToggle({
|
|
38
|
+
"isExpandible": false,
|
|
39
|
+
"classes": "c-button",
|
|
40
|
+
"offState": {
|
|
41
|
+
"classes": "",
|
|
42
|
+
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" width=\"1em\" height=\"1em\"><path d=\"M6.41 10.78a.25.25 0 0 0 0 .34l2.16 2.41a1.35 1.35 0 0 0 .8.27 1.31 1.31 0 0 0 1.31-1.31V7.12a.26.26 0 0 0-.43-.18ZM.26 13.81a.76.76 0 0 0 1 0l12.5-12.5a.76.76 0 0 0 .18-.31.71.71 0 0 0 .06-.24.73.73 0 0 0-.19-.49.74.74 0 0 0-1.06 0l-2 2a.26.26 0 0 1-.19.07.25.25 0 0 1-.18-.08 1.23 1.23 0 0 0-1-.45 1.29 1.29 0 0 0-.8.27L5.74 5.21a.23.23 0 0 1-.19.09H4.42a1.75 1.75 0 0 0-1.75 1.75v1.5A1.78 1.78 0 0 0 3 9.61a.25.25 0 0 1 0 .33L.22 12.73a.75.75 0 0 0 0 1.06Z\" fill=\"currentColor\" transform=\"scale(3.42857)\"/></svg>Reproducir sonido</span>"
|
|
43
|
+
},
|
|
44
|
+
"onState": {
|
|
45
|
+
"classes": "c-button--has-selection",
|
|
46
|
+
"html": "<span class=\"inline-flex\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 48 48\" class=\"self-center mr-2\" aria-hidden=\"true\" width=\"1em\" height=\"1em\"><path d=\"M12 2.21a.75.75 0 0 0-1.06 0 .75.75 0 0 0 0 1.06 5.26 5.26 0 0 1 0 7.46.75.75 0 0 0 0 1.06.75.75 0 0 0 1.06 0 6.74 6.74 0 0 0 0-9.58Z\" fill=\"currentColor\" transform=\"scale(3.42857)\"/><path d=\"M10.34 4.89a.75.75 0 0 0-1.23.85 2.23 2.23 0 0 1 0 2.52.74.74 0 0 0 .19 1 .75.75 0 0 0 1-.19 3.7 3.7 0 0 0 0-4.22ZM6.69 1a1.35 1.35 0 0 0-.8.27L3.07 4.42a.27.27 0 0 1-.19.08H1.75A1.76 1.76 0 0 0 0 6.25v1.5A1.76 1.76 0 0 0 1.75 9.5h1.13a.27.27 0 0 1 .19.08l2.82 3.15a1.35 1.35 0 0 0 .8.27A1.31 1.31 0 0 0 8 11.69V2.31A1.31 1.31 0 0 0 6.69 1Z\" fill=\"currentColor\" transform=\"scale(3.42857)\"/></svg>Reproducir sonido</span>"
|
|
47
|
+
}
|
|
48
|
+
}) }}
|
|
54
49
|
</div>
|
|
55
|
-
|
|
50
|
+
</div>
|
|
51
|
+
<div>
|
|
52
|
+
<ul>
|
|
53
|
+
<li class="flex flex-wrap w-full justify-between p-base border-t border-b border-neutral-base">
|
|
54
|
+
<div>
|
|
55
|
+
<p id="id-text">Notificar por email</p>
|
|
56
|
+
</div>
|
|
57
|
+
<div>
|
|
58
|
+
{{ componentToggle({
|
|
59
|
+
"classes": "",
|
|
60
|
+
"isSwitch": true,
|
|
61
|
+
"offState": {
|
|
62
|
+
"classes": "",
|
|
63
|
+
"html": "<span class=\"bg-neutral-base relative inline-flex flex-shrink-0 h-5 w-9 border-2 border-neutral-base rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75\"><span class=\"sr-only\">on</span><span aria-hidden=\"true\" class=\"translate-x-0 pointer-events-none inline-block h-4 w-4 rounded-full bg-white shadow-lg transform ring-0 transition ease-in-out duration-200\" /></span></span>"
|
|
64
|
+
},
|
|
65
|
+
"onState": {
|
|
66
|
+
"classes": "",
|
|
67
|
+
"html": "<span class=\"bg-primary-base relative inline-flex flex-shrink-0 h-5 w-9 border-2 border-primary-base rounded-full cursor-pointer transition-colors ease-in-out duration-200 focus:outline-none focus-visible:ring-2 focus-visible:ring-white focus-visible:ring-opacity-75\"><span class=\"sr-only\">off</span><span aria-hidden=\"true\" class=\"translate-x-4 pointer-events-none inline-block h-4 w-4 rounded-full bg-white shadow-lg transform ring-0 transition ease-in-out duration-200\" /></span></span>"
|
|
68
|
+
},
|
|
69
|
+
"attributes": {
|
|
70
|
+
"aria-labelledby": "id-text"
|
|
71
|
+
}
|
|
72
|
+
}) }}
|
|
73
|
+
</div>
|
|
74
|
+
</li>
|
|
75
|
+
</ul>
|
|
56
76
|
</div>
|
|
@@ -32,18 +32,18 @@
|
|
|
32
32
|
{{ DSSubsectionTitle({
|
|
33
33
|
title: "Pantallas grandes - escritorio"
|
|
34
34
|
}) }}
|
|
35
|
-
<div class="grid grid-cols-4 gap-xl mt-base">
|
|
36
|
-
<div class="col-span-4 bg-neutral-light h-12 flex items-center justify-center">100%</div>
|
|
37
|
-
<div class="col-span-2 bg-neutral-light h-12 flex items-center justify-center">50%</div>
|
|
38
|
-
<div class="col-span-2 bg-neutral-light h-12 flex items-center justify-center">50%</div>
|
|
39
|
-
<div class="col-span-3 bg-blue-100 h-12 flex items-center justify-center">75%</div>
|
|
40
|
-
<div class="col-span-1 bg-blue-100 h-12 flex items-center justify-center">25%</div>
|
|
41
|
-
<div class="col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
42
|
-
<div class="col-span-3 bg-neutral-light h-12 flex items-center justify-center">75%</div>
|
|
43
|
-
<div class="col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
44
|
-
<div class="col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
45
|
-
<div class="col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
46
|
-
<div class="col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
35
|
+
<div class="grid grid-cols-2 lg:grid-cols-4 gap-xl mt-base">
|
|
36
|
+
<div class="col-span-2 lg:col-span-4 bg-neutral-light h-12 flex items-center justify-center">100%</div>
|
|
37
|
+
<div class="col-span-2 lg:col-span-2 bg-neutral-light h-12 flex items-center justify-center">50%</div>
|
|
38
|
+
<div class="col-span-2 lg:col-span-2 bg-neutral-light h-12 flex items-center justify-center">50%</div>
|
|
39
|
+
<div class="col-span-2 lg:col-span-3 bg-blue-100 h-12 flex items-center justify-center">75%</div>
|
|
40
|
+
<div class="col-span-2 lg:col-span-1 bg-blue-100 h-12 flex items-center justify-center">25%</div>
|
|
41
|
+
<div class="col-span-2 lg:col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
42
|
+
<div class="col-span-2 lg:col-span-3 bg-neutral-light h-12 flex items-center justify-center">75%</div>
|
|
43
|
+
<div class="col-span-2 lg:col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
44
|
+
<div class="col-span-2 lg:col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
45
|
+
<div class="col-span-2 lg:col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
46
|
+
<div class="col-span-2 lg:col-span-1 bg-neutral-light h-12 flex items-center justify-center">25%</div>
|
|
47
47
|
</div>
|
|
48
48
|
<div class="pb-lg"></div>
|
|
49
49
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
@@ -26,6 +26,11 @@
|
|
|
26
26
|
}) }}
|
|
27
27
|
{% include "ds/_ds.example.menu-horizontal.njk" %}
|
|
28
28
|
<div class="pb-lg"></div>
|
|
29
|
+
{{ DSSubsectionTitle({
|
|
30
|
+
title: "Menu de navegación"
|
|
31
|
+
}) }}
|
|
32
|
+
{% include "ds/_ds.example.menu-navigation.njk" %}
|
|
33
|
+
<div class="pb-lg"></div>
|
|
29
34
|
{{ DSSubsectionTitle({
|
|
30
35
|
title: "Menu vertical"
|
|
31
36
|
}) }}
|
|
@@ -13,6 +13,33 @@
|
|
|
13
13
|
}) }}
|
|
14
14
|
<p>La tipografía principal es <a class="c-link" href="https://fonts.google.com/specimen/Open+Sans?sidebar.open&selection.family=Open+Sans:ital,wght@0,400;0,600;0,700;1,400;1,600;1,700">Open Sans</a> en sus pesos Bold, Semibold y Regular.</p>
|
|
15
15
|
<div class="pb-lg"></div>
|
|
16
|
+
{{ DSSubsectionTitle({
|
|
17
|
+
title: "Estilos de base"
|
|
18
|
+
}) }}
|
|
19
|
+
<div class="flex items-center mb-8">
|
|
20
|
+
<div class="w-1/6 mr-8">
|
|
21
|
+
<p>Esto simula un <strong class="font-bold">Encabezado</strong>.</p>
|
|
22
|
+
</div>
|
|
23
|
+
<div>
|
|
24
|
+
<p class="text-neutral-dark text-sm"><code>span.font-bold</code> - <code>bold</code></p>
|
|
25
|
+
</div>
|
|
26
|
+
</div>
|
|
27
|
+
<div class="flex items-center mb-8">
|
|
28
|
+
<div class="w-1/6 mr-8">
|
|
29
|
+
<p>Esto es un <strong>strong</strong> en un texto.</p>
|
|
30
|
+
</div>
|
|
31
|
+
<div>
|
|
32
|
+
<p class="text-neutral-dark text-sm"><code>strong</code> - <code>semibold</code></p>
|
|
33
|
+
</div>
|
|
34
|
+
</div>
|
|
35
|
+
<div class="flex items-center mb-8">
|
|
36
|
+
<div class="w-1/6 mr-8">
|
|
37
|
+
<p>Esto es un <em>em</em> en un texto.</p>
|
|
38
|
+
</div>
|
|
39
|
+
<div>
|
|
40
|
+
<p class="text-neutral-dark text-sm"><code>em</code> - <code>normal</code> - <code>italic</code></p>
|
|
41
|
+
</div>
|
|
42
|
+
</div>
|
|
16
43
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
17
44
|
{{ DSSubsectionTitle({
|
|
18
45
|
title: "Títulos"
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{% set title = "Accordion history. Componente, parámetros y ejemplos. Documentación de desy-html. Gobierno de Aragón" %}
|
|
2
|
+
{% extends "_template.examples.njk" %}
|
|
3
|
+
{% block contentBlock %}
|
|
4
|
+
{% import "components/accordion-history/_examples.accordion-history.njk" as exampleData %}
|
|
5
|
+
{% endblock %}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
{% set title = "Menu navigation. Componente, parámetros y ejemplos. Documentación de desy-html. Gobierno de Aragón" %}
|
|
2
|
+
{% extends "_template.examples.njk" %}
|
|
3
|
+
{% block contentBlock %}
|
|
4
|
+
{% import "components/menu-navigation/_examples.menu-navigation.njk" as exampleData %}
|
|
5
|
+
{% endblock %}
|