desy-html 6.4.1 → 6.6.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 +32 -2
- package/docs/_global.head.njk +2 -0
- package/docs/_include.template-header.njk +8 -0
- package/docs/_macro.example-render.njk +8 -0
- package/docs/catalogo.html +2 -0
- package/docs/componentes.html +6 -0
- package/docs/ds/_ds.example.card.njk +199 -0
- package/docs/ds/_ds.example.checkboxes.njk +4 -4
- package/docs/ds/_ds.example.header-advanced.njk +0 -75
- package/docs/ds/_ds.example.links-list.njk +171 -0
- package/docs/ds/_ds.example.pills.njk +1 -1
- package/docs/ds/_ds.example.textos.njk +3 -1
- package/docs/ds/_ds.section.informacion.njk +13 -0
- package/docs/ds/_ds.section.navigation.njk +4 -0
- package/docs/ds/_ds.section.textos.njk +44 -20
- package/docs/examples-card.html +5 -0
- package/docs/examples-links-list.html +5 -0
- package/docs/index.html +17 -3
- package/gulpfile.js +3 -2
- package/package.json +6 -3
- package/src/css/component.text.css +14 -0
- package/src/js/aria/tabs.js +3 -1
- package/src/templates/components/button-loader/_template.button-loader.njk +3 -15
- package/src/templates/components/card/_examples.card.njk +277 -0
- package/src/templates/components/card/_macro.card.njk +3 -0
- package/src/templates/components/card/_template.card.njk +35 -0
- package/src/templates/components/card/params.card.yaml +113 -0
- package/src/templates/components/collapsible/_template.collapsible.njk +1 -1
- package/src/templates/components/header/_template.header.njk +1 -1
- package/src/templates/components/header-advanced/_examples.header-advanced.njk +101 -14
- package/src/templates/components/header-advanced/_template.header-advanced.njk +3 -3
- package/src/templates/components/links-list/_examples.links-list.njk +504 -0
- package/src/templates/components/links-list/_macro.links-list.njk +3 -0
- package/src/templates/components/links-list/_template.links-list.njk +92 -0
- package/src/templates/components/links-list/params.links-list.yaml +82 -0
- package/src/templates/components/menu-vertical/params.menu-vertical.yaml +0 -4
- package/src/templates/components/table/_examples.table.njk +4 -48
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +6 -51
- package/docs/examples-header-advanced-2.html +0 -5
- package/src/templates/components/header-advanced/_examples.header-advanced-2.njk +0 -911
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
params:
|
|
2
|
+
- name: idPrefix
|
|
3
|
+
type: string
|
|
4
|
+
required: false
|
|
5
|
+
description: String to prefix id for each item if no id is specified on each item.
|
|
6
|
+
- name: hasNav
|
|
7
|
+
type: boolean
|
|
8
|
+
required: false
|
|
9
|
+
description: Defaults to `true`. If `false`, there will be no nav assuming the component will be wrapped with a custom nav with it's own aria-label.
|
|
10
|
+
- name: items
|
|
11
|
+
type: array
|
|
12
|
+
required: true
|
|
13
|
+
description: Array of nav items objects.
|
|
14
|
+
params:
|
|
15
|
+
- name: href
|
|
16
|
+
type: string
|
|
17
|
+
required: false
|
|
18
|
+
description: Item link.
|
|
19
|
+
- name: target
|
|
20
|
+
type: string
|
|
21
|
+
required: false
|
|
22
|
+
description: The target where the item should link to.
|
|
23
|
+
- name: text
|
|
24
|
+
type: string
|
|
25
|
+
required: true
|
|
26
|
+
description: If `html` is set, this is not required. Text to use within each nav item label. If `html` is provided, the `text` argument will be ignored.
|
|
27
|
+
- name: html
|
|
28
|
+
type: string
|
|
29
|
+
required: true
|
|
30
|
+
description: If `text` is set, this is not required. HTML to use within each nav item label. If `html` is provided, the `text` argument will be ignored.
|
|
31
|
+
- name: id
|
|
32
|
+
type: string
|
|
33
|
+
required: false
|
|
34
|
+
description: Specific id attribute for the item. If omitted, then idPrefix option will be applied.
|
|
35
|
+
- name: disabled
|
|
36
|
+
type: boolean
|
|
37
|
+
required: false
|
|
38
|
+
description: If true, nav will be disabled.
|
|
39
|
+
- name: sub
|
|
40
|
+
type: boolean
|
|
41
|
+
required: false
|
|
42
|
+
description: If true, content provided will be revealed when the item is expanded.
|
|
43
|
+
- name: html
|
|
44
|
+
type: string
|
|
45
|
+
required: true
|
|
46
|
+
description: Provide content for the sub.
|
|
47
|
+
- name: classes
|
|
48
|
+
type: string
|
|
49
|
+
required: false
|
|
50
|
+
description: Classes to add to the sub container.
|
|
51
|
+
- name: icon
|
|
52
|
+
type: object
|
|
53
|
+
required: false
|
|
54
|
+
description: This is the optional icon at left
|
|
55
|
+
- name: html
|
|
56
|
+
type: string
|
|
57
|
+
required: true
|
|
58
|
+
description: Use this html to insert a custom svg inline icon. If this is set, the type are not used.
|
|
59
|
+
- name: containerClasses
|
|
60
|
+
type: string
|
|
61
|
+
required: false
|
|
62
|
+
description: Classes applied to the parent div of icon. Useful to vertical align the icon.
|
|
63
|
+
- name: containerClasses
|
|
64
|
+
type: string
|
|
65
|
+
required: false
|
|
66
|
+
description: Classes to add to the parent `<li> of the item.
|
|
67
|
+
- name: classes
|
|
68
|
+
type: string
|
|
69
|
+
required: false
|
|
70
|
+
description: Classes to add to the item.
|
|
71
|
+
- name: attributes
|
|
72
|
+
type: object
|
|
73
|
+
required: false
|
|
74
|
+
description: HTML attributes (for example data attributes) to add to the item.
|
|
75
|
+
- name: classes
|
|
76
|
+
type: string
|
|
77
|
+
required: false
|
|
78
|
+
description: Classes to add to the nav container.
|
|
79
|
+
- name: attributes
|
|
80
|
+
type: object
|
|
81
|
+
required: false
|
|
82
|
+
description: HTML attributes (for example data attributes) to add to the nav container.
|
|
@@ -37,10 +37,6 @@ params:
|
|
|
37
37
|
required: false
|
|
38
38
|
description: Provide hint to each nav item.
|
|
39
39
|
isComponent: true
|
|
40
|
-
- name: expanded
|
|
41
|
-
type: boolean
|
|
42
|
-
required: false
|
|
43
|
-
description: If true, nav sub will be expanded.
|
|
44
40
|
- name: divider
|
|
45
41
|
required: false
|
|
46
42
|
description: If true, a divider border will be shown after the item.
|
|
@@ -1,54 +1,10 @@
|
|
|
1
1
|
{% set exampleComponent = "table" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "default",
|
|
5
|
-
"data": {
|
|
6
|
-
"rows": [
|
|
7
|
-
[
|
|
8
|
-
{
|
|
9
|
-
"text": "January"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"text": "85€",
|
|
13
|
-
"classes": "text-right"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"text": "95€",
|
|
17
|
-
"classes": "text-right"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
{
|
|
22
|
-
"text": "February"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"text": "75€",
|
|
26
|
-
"classes": "text-right"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"text": "55€",
|
|
30
|
-
"classes": "text-right"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
{
|
|
35
|
-
"text": "March"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"text": "165€",
|
|
39
|
-
"classes": "text-right"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"text": "125€",
|
|
43
|
-
"classes": "text-right"
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
]
|
|
47
|
-
}
|
|
48
|
-
},
|
|
49
|
-
{
|
|
50
|
-
"name": "table with head",
|
|
4
|
+
"name": "table default",
|
|
51
5
|
"data": {
|
|
6
|
+
"caption": "Caption de la tabla",
|
|
7
|
+
"captionClasses": "sr-only mb-base font-bold text-left text-lg",
|
|
52
8
|
"head": [
|
|
53
9
|
{
|
|
54
10
|
"text": "Month you apply"
|
|
@@ -106,7 +62,7 @@
|
|
|
106
62
|
}
|
|
107
63
|
},
|
|
108
64
|
{
|
|
109
|
-
"name": "table with
|
|
65
|
+
"name": "table with caption visible",
|
|
110
66
|
"data": {
|
|
111
67
|
"caption": "Caption 1: Months and rates",
|
|
112
68
|
"captionClasses": "mb-base font-bold text-left text-lg",
|
|
@@ -1,56 +1,11 @@
|
|
|
1
1
|
{% set exampleComponent = "table-advanced" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "default",
|
|
4
|
+
"name": "table default",
|
|
5
5
|
"data": {
|
|
6
|
-
"
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
"text": "January"
|
|
10
|
-
},
|
|
11
|
-
{
|
|
12
|
-
"text": "85€",
|
|
13
|
-
"classes": "text-right"
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
"text": "95€",
|
|
17
|
-
"classes": "text-right"
|
|
18
|
-
}
|
|
19
|
-
],
|
|
20
|
-
[
|
|
21
|
-
{
|
|
22
|
-
"text": "February"
|
|
23
|
-
},
|
|
24
|
-
{
|
|
25
|
-
"text": "75€",
|
|
26
|
-
"classes": "text-right"
|
|
27
|
-
},
|
|
28
|
-
{
|
|
29
|
-
"text": "55€",
|
|
30
|
-
"classes": "text-right"
|
|
31
|
-
}
|
|
32
|
-
],
|
|
33
|
-
[
|
|
34
|
-
{
|
|
35
|
-
"text": "March"
|
|
36
|
-
},
|
|
37
|
-
{
|
|
38
|
-
"text": "165€",
|
|
39
|
-
"classes": "text-right"
|
|
40
|
-
},
|
|
41
|
-
{
|
|
42
|
-
"text": "125€",
|
|
43
|
-
"classes": "text-right"
|
|
44
|
-
}
|
|
45
|
-
]
|
|
46
|
-
],
|
|
47
|
-
"classes": "min-w-full"
|
|
48
|
-
}
|
|
49
|
-
},
|
|
50
|
-
{
|
|
51
|
-
"name": "table with head",
|
|
52
|
-
"data": {
|
|
53
|
-
"idPrefix": "table-with-head",
|
|
6
|
+
"idPrefix": "table-default",
|
|
7
|
+
"caption": "Caption de la tabla",
|
|
8
|
+
"captionClasses": "sr-only mb-base font-bold text-left text-lg",
|
|
54
9
|
"head": [
|
|
55
10
|
{
|
|
56
11
|
"text": "Month you apply"
|
|
@@ -109,10 +64,10 @@
|
|
|
109
64
|
}
|
|
110
65
|
},
|
|
111
66
|
{
|
|
112
|
-
"name": "table with
|
|
67
|
+
"name": "table with caption visible",
|
|
113
68
|
"description": "Also with firstCellIsHeader: true",
|
|
114
69
|
"data": {
|
|
115
|
-
"idPrefix": "table-with-
|
|
70
|
+
"idPrefix": "table-with-caption",
|
|
116
71
|
"caption": "Caption 1: Months and rates",
|
|
117
72
|
"captionClasses": "mb-base font-bold text-left text-lg",
|
|
118
73
|
"firstCellIsHeader": true,
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
{% set title = "Header advanced. 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/header-advanced/_examples.header-advanced-2.njk" as exampleData %}
|
|
5
|
-
{% endblock %}
|