desy-html 11.1.2 → 11.2.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/docs/ds/_ds.example.botones-primary-lg.njk +265 -0
- package/docs/ds/_ds.example.dropdowns-variaciones.njk +37 -0
- package/docs/ds/_ds.example.listbox-variaciones.njk +137 -0
- package/docs/ds/_ds.example.tabs.njk +44 -0
- package/docs/ds/_ds.example.textos.njk +5 -0
- package/docs/ds/_ds.section.botones.njk +5 -0
- package/docs/ds/_ds.section.textos.njk +11 -1
- package/docs/index.html +9 -0
- package/package.json +2 -2
- package/src/css/component.text.css +34 -26
- package/src/js/aria/linksList.js +42 -0
- package/src/js/aria/treeitem.js +9 -2
- package/src/js/desy-html.js +10 -0
- package/src/js/index.js +2 -0
- package/src/templates/components/button/_examples.button.njk +9 -2
- package/src/templates/components/button/_styles.button.css +7 -0
- package/src/templates/components/button-loader/_examples.button-loader.njk +8 -1
- package/src/templates/components/button-loader/_styles.button-loader.css +6 -0
- package/src/templates/components/dropdown/_examples.dropdown.njk +8 -0
- package/src/templates/components/dropdown/_styles.dropdown.css +7 -0
- package/src/templates/components/links-list/_examples.links-list.njk +28 -5
- package/src/templates/components/links-list/_template.links-list.njk +4 -4
- package/src/templates/components/listbox/_examples.listbox.njk +36 -1
- package/src/templates/components/listbox/_styles.listbox.css +7 -0
- package/src/templates/components/listbox/_template.listbox.njk +2 -2
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +87 -3
- package/src/templates/components/menu-navigation/_styles.menu-navigation.css +7 -0
- package/src/templates/components/menubar/_examples.menubar.njk +154 -0
- package/src/templates/components/menubar/_styles.menubar.css +8 -1
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +90 -0
- package/src/templates/components/table-advanced/_template.table-advanced.njk +3 -3
- package/src/templates/components/table-advanced/params.table-advanced.yaml +4 -0
- package/src/templates/components/tabs/_examples.tabs.njk +43 -0
- package/src/templates/components/tabs/_styles.tabs.css +30 -7
- package/src/templates/components/tabs/_template.tabs.njk +1 -1
- package/src/templates/components/tabs/params.tabs.yaml +4 -0
- package/src/templates/components/tree/_examples.tree.njk +113 -0
- package/src/templates/components/tree/_template.tree.njk +2 -2
|
@@ -0,0 +1,265 @@
|
|
|
1
|
+
{% from "components/button/_macro.button.njk" import componentButton %}
|
|
2
|
+
{% from "components/button-loader/_macro.button-loader.njk" import componentButtonLoader %}
|
|
3
|
+
|
|
4
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
5
|
+
<div>
|
|
6
|
+
Normal
|
|
7
|
+
</div>
|
|
8
|
+
<div>
|
|
9
|
+
{{ componentButton({
|
|
10
|
+
"text": "Primario",
|
|
11
|
+
"classes": "c-button--primary c-button--lg"
|
|
12
|
+
}) }}
|
|
13
|
+
</div>
|
|
14
|
+
<div>
|
|
15
|
+
{{ componentButton({
|
|
16
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
17
|
+
"href": "/",
|
|
18
|
+
"classes": "c-button--primary c-button--lg"
|
|
19
|
+
}) }}
|
|
20
|
+
</div>
|
|
21
|
+
<div>
|
|
22
|
+
{{ componentButton({
|
|
23
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
24
|
+
"href": "/",
|
|
25
|
+
"classes": "c-button--primary c-button--lg"
|
|
26
|
+
}) }}
|
|
27
|
+
</div>
|
|
28
|
+
<div>
|
|
29
|
+
{{ componentButton({
|
|
30
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
31
|
+
"href": "/",
|
|
32
|
+
"classes": "c-button--primary c-button--lg p-4 align-bottom"
|
|
33
|
+
}) }}
|
|
34
|
+
</div>
|
|
35
|
+
</div>
|
|
36
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
37
|
+
<div>
|
|
38
|
+
:active
|
|
39
|
+
</div>
|
|
40
|
+
<div>
|
|
41
|
+
{{ componentButton({
|
|
42
|
+
"text": "Active",
|
|
43
|
+
"classes": "c-button--primary c-button--lg ds-active"
|
|
44
|
+
}) }}
|
|
45
|
+
</div>
|
|
46
|
+
<div>
|
|
47
|
+
{{ componentButton({
|
|
48
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
49
|
+
"href": "/",
|
|
50
|
+
"classes": "c-button--primary c-button--lg ds-active"
|
|
51
|
+
}) }}
|
|
52
|
+
</div>
|
|
53
|
+
<div>
|
|
54
|
+
{{ componentButton({
|
|
55
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
56
|
+
"href": "/",
|
|
57
|
+
"classes": "c-button--primary c-button--lg ds-active"
|
|
58
|
+
}) }}
|
|
59
|
+
</div>
|
|
60
|
+
<div>
|
|
61
|
+
{{ componentButton({
|
|
62
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
63
|
+
"href": "/",
|
|
64
|
+
"classes": "c-button--primary c-button--lg ds-active p-4 align-bottom"
|
|
65
|
+
}) }}
|
|
66
|
+
</div>
|
|
67
|
+
</div>
|
|
68
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
69
|
+
<div>
|
|
70
|
+
:hover
|
|
71
|
+
</div>
|
|
72
|
+
<div>
|
|
73
|
+
{{ componentButton({
|
|
74
|
+
"text": "Hover",
|
|
75
|
+
"classes": "c-button--primary c-button--lg ds-hover"
|
|
76
|
+
}) }}
|
|
77
|
+
</div>
|
|
78
|
+
<div>
|
|
79
|
+
{{ componentButton({
|
|
80
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
81
|
+
"href": "/",
|
|
82
|
+
"classes": "c-button--primary c-button--lg ds-hover"
|
|
83
|
+
}) }}
|
|
84
|
+
</div>
|
|
85
|
+
<div>
|
|
86
|
+
{{ componentButton({
|
|
87
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
88
|
+
"href": "/",
|
|
89
|
+
"classes": "c-button--primary c-button--lg ds-hover"
|
|
90
|
+
}) }}
|
|
91
|
+
</div>
|
|
92
|
+
<div>
|
|
93
|
+
{{ componentButton({
|
|
94
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
95
|
+
"href": "/",
|
|
96
|
+
"classes": "c-button--primary c-button--lg ds-hover p-4 align-bottom"
|
|
97
|
+
}) }}
|
|
98
|
+
</div>
|
|
99
|
+
</div>
|
|
100
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
101
|
+
<div>
|
|
102
|
+
:focus
|
|
103
|
+
</div>
|
|
104
|
+
<div>
|
|
105
|
+
{{ componentButton({
|
|
106
|
+
"text": "Focus",
|
|
107
|
+
"classes": "c-button--primary c-button--lg ds-focus"
|
|
108
|
+
}) }}
|
|
109
|
+
</div>
|
|
110
|
+
<div>
|
|
111
|
+
{{ componentButton({
|
|
112
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
113
|
+
"href": "/",
|
|
114
|
+
"classes": "c-button--primary c-button--lg ds-focus"
|
|
115
|
+
}) }}
|
|
116
|
+
</div>
|
|
117
|
+
<div>
|
|
118
|
+
{{ componentButton({
|
|
119
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
120
|
+
"href": "/",
|
|
121
|
+
"classes": "c-button--primary c-button--lg ds-focus"
|
|
122
|
+
}) }}
|
|
123
|
+
</div>
|
|
124
|
+
<div>
|
|
125
|
+
{{ componentButton({
|
|
126
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
127
|
+
"href": "/",
|
|
128
|
+
"classes": "c-button--primary c-button--lg ds-focus p-4 align-bottom"
|
|
129
|
+
}) }}
|
|
130
|
+
</div>
|
|
131
|
+
</div>
|
|
132
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
133
|
+
<div>
|
|
134
|
+
Deshabilitado
|
|
135
|
+
</div>
|
|
136
|
+
<div>
|
|
137
|
+
{{ componentButton({
|
|
138
|
+
"text": "Deshabilitado",
|
|
139
|
+
"classes": "c-button--primary c-button--lg",
|
|
140
|
+
"disabled": true
|
|
141
|
+
}) }}
|
|
142
|
+
</div>
|
|
143
|
+
<div>
|
|
144
|
+
{{ componentButton({
|
|
145
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
146
|
+
"href": "/",
|
|
147
|
+
"classes": "c-button--primary c-button--lg",
|
|
148
|
+
"disabled": true
|
|
149
|
+
}) }}
|
|
150
|
+
</div>
|
|
151
|
+
<div>
|
|
152
|
+
{{ componentButton({
|
|
153
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
154
|
+
"href": "/",
|
|
155
|
+
"classes": "c-button--primary c-button--lg",
|
|
156
|
+
"disabled": true
|
|
157
|
+
}) }}
|
|
158
|
+
</div>
|
|
159
|
+
<div>
|
|
160
|
+
{{ componentButton({
|
|
161
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
162
|
+
"href": "/",
|
|
163
|
+
"classes": "c-button--primary c-button--lg p-4 align-bottom",
|
|
164
|
+
"disabled": true
|
|
165
|
+
}) }}
|
|
166
|
+
</div>
|
|
167
|
+
</div>
|
|
168
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
169
|
+
<div>
|
|
170
|
+
Estado cargando
|
|
171
|
+
</div>
|
|
172
|
+
<div>
|
|
173
|
+
{{ componentButtonLoader({
|
|
174
|
+
"name": "loading",
|
|
175
|
+
"text": "Loading",
|
|
176
|
+
"state": "is-loading",
|
|
177
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading",
|
|
178
|
+
"loader": {
|
|
179
|
+
"text": "Acción en curso"
|
|
180
|
+
}
|
|
181
|
+
}) }}
|
|
182
|
+
</div>
|
|
183
|
+
<div>
|
|
184
|
+
{{ componentButtonLoader({
|
|
185
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
186
|
+
"href": "/",
|
|
187
|
+
"state": "is-loading",
|
|
188
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading",
|
|
189
|
+
"loader": {
|
|
190
|
+
"text": "Acción en curso"
|
|
191
|
+
}
|
|
192
|
+
}) }}
|
|
193
|
+
</div>
|
|
194
|
+
<div>
|
|
195
|
+
{{ componentButtonLoader({
|
|
196
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
197
|
+
"href": "/",
|
|
198
|
+
"state": "is-loading",
|
|
199
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading",
|
|
200
|
+
"loader": {
|
|
201
|
+
"text": "Acción en curso"
|
|
202
|
+
}
|
|
203
|
+
}) }}
|
|
204
|
+
</div>
|
|
205
|
+
<div>
|
|
206
|
+
{{ componentButtonLoader({
|
|
207
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
208
|
+
"href": "/",
|
|
209
|
+
"state": "is-loading",
|
|
210
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-loading p-4 align-bottom",
|
|
211
|
+
"loader": {
|
|
212
|
+
"text": "Acción en curso"
|
|
213
|
+
}
|
|
214
|
+
}) }}
|
|
215
|
+
</div>
|
|
216
|
+
</div>
|
|
217
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
218
|
+
<div>
|
|
219
|
+
Estado éxito
|
|
220
|
+
</div>
|
|
221
|
+
<div>
|
|
222
|
+
{{ componentButtonLoader({
|
|
223
|
+
"name": "success",
|
|
224
|
+
"text": "Success",
|
|
225
|
+
"state": "is-success",
|
|
226
|
+
"success": {
|
|
227
|
+
"text": "Acción realizada con éxito"
|
|
228
|
+
},
|
|
229
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success"
|
|
230
|
+
}) }}
|
|
231
|
+
</div>
|
|
232
|
+
<div>
|
|
233
|
+
{{ componentButtonLoader({
|
|
234
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z" fill="currentColor"/></svg>',
|
|
235
|
+
"href": "/",
|
|
236
|
+
"state": "is-success",
|
|
237
|
+
"success": {
|
|
238
|
+
"text": "Acción realizada con éxito"
|
|
239
|
+
},
|
|
240
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success"
|
|
241
|
+
}) }}
|
|
242
|
+
</div>
|
|
243
|
+
<div>
|
|
244
|
+
{{ componentButtonLoader({
|
|
245
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"/></svg>Con icono',
|
|
246
|
+
"href": "/",
|
|
247
|
+
"state": "is-success",
|
|
248
|
+
"success": {
|
|
249
|
+
"text": "Acción realizada con éxito"
|
|
250
|
+
},
|
|
251
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success"
|
|
252
|
+
}) }}
|
|
253
|
+
</div>
|
|
254
|
+
<div>
|
|
255
|
+
{{ componentButtonLoader({
|
|
256
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
257
|
+
"href": "/",
|
|
258
|
+
"state": "is-success",
|
|
259
|
+
"success": {
|
|
260
|
+
"text": "Acción realizada con éxito"
|
|
261
|
+
},
|
|
262
|
+
"classes": "c-button-loader--primary c-button-loader--lg c-button-loader--is-success p-4 align-bottom"
|
|
263
|
+
}) }}
|
|
264
|
+
</div>
|
|
265
|
+
</div>
|
|
@@ -185,3 +185,40 @@
|
|
|
185
185
|
{% endcall %}
|
|
186
186
|
</div>
|
|
187
187
|
</div>
|
|
188
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
189
|
+
<div>
|
|
190
|
+
Grande
|
|
191
|
+
</div>
|
|
192
|
+
<div>
|
|
193
|
+
{% call componentDropdown({
|
|
194
|
+
"text": "Primario",
|
|
195
|
+
"classes": "c-dropdown--lg"
|
|
196
|
+
}) %}
|
|
197
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
198
|
+
{% endcall %}
|
|
199
|
+
</div>
|
|
200
|
+
<div>
|
|
201
|
+
{% call componentDropdown({
|
|
202
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
|
|
203
|
+
"classes": "c-dropdown--lg"
|
|
204
|
+
}) %}
|
|
205
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
206
|
+
{% endcall %}
|
|
207
|
+
</div>
|
|
208
|
+
<div>
|
|
209
|
+
{% call componentDropdown({
|
|
210
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
|
|
211
|
+
"classes": "c-dropdown--lg"
|
|
212
|
+
}) %}
|
|
213
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
214
|
+
{% endcall %}
|
|
215
|
+
</div>
|
|
216
|
+
<div>
|
|
217
|
+
{% call componentDropdown({
|
|
218
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
219
|
+
"classes": "c-dropdown--lg align-bottom"
|
|
220
|
+
}) %}
|
|
221
|
+
<div class=" w-48 p-2 "><div class=" border-4 border-dashed border-gray-200 rounded-lg h-40 "></div></div>
|
|
222
|
+
{% endcall %}
|
|
223
|
+
</div>
|
|
224
|
+
</div>
|
|
@@ -685,3 +685,140 @@
|
|
|
685
685
|
}) }}
|
|
686
686
|
</div>
|
|
687
687
|
</div>
|
|
688
|
+
<div class="grid lg:grid-cols-5 gap-xl mb-lg">
|
|
689
|
+
<div>
|
|
690
|
+
Grande
|
|
691
|
+
</div>
|
|
692
|
+
<div>
|
|
693
|
+
{{ componentListbox({
|
|
694
|
+
"id":"listbox-21",
|
|
695
|
+
"text": "Primario",
|
|
696
|
+
"label": {
|
|
697
|
+
"text": "Label",
|
|
698
|
+
"classes": "sr-only"
|
|
699
|
+
},
|
|
700
|
+
"classes": "c-listbox--lg",
|
|
701
|
+
"items": [
|
|
702
|
+
{
|
|
703
|
+
"href": "#",
|
|
704
|
+
"html": "Opción 1"
|
|
705
|
+
},
|
|
706
|
+
{
|
|
707
|
+
"href": "#",
|
|
708
|
+
"text": "Opción 2"
|
|
709
|
+
},
|
|
710
|
+
{
|
|
711
|
+
"href": "#",
|
|
712
|
+
"text": "Opción 3"
|
|
713
|
+
},
|
|
714
|
+
{
|
|
715
|
+
"href": "#",
|
|
716
|
+
"text": "Opción 4"
|
|
717
|
+
},
|
|
718
|
+
{
|
|
719
|
+
"href": "#",
|
|
720
|
+
"text": "Opción 5"
|
|
721
|
+
}
|
|
722
|
+
]
|
|
723
|
+
}) }}
|
|
724
|
+
</div>
|
|
725
|
+
<div>
|
|
726
|
+
{{ componentListbox({
|
|
727
|
+
"id":"listbox-22",
|
|
728
|
+
"html": 'Con icono<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center ml-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
|
|
729
|
+
"label": {
|
|
730
|
+
"text": "Label",
|
|
731
|
+
"classes": "sr-only"
|
|
732
|
+
},
|
|
733
|
+
"classes": "c-listbox--lg",
|
|
734
|
+
"items": [
|
|
735
|
+
{
|
|
736
|
+
"href": "#",
|
|
737
|
+
"html": "Opción 1"
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"href": "#",
|
|
741
|
+
"text": "Opción 2"
|
|
742
|
+
},
|
|
743
|
+
{
|
|
744
|
+
"href": "#",
|
|
745
|
+
"text": "Opción 3"
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"href": "#",
|
|
749
|
+
"text": "Opción 4"
|
|
750
|
+
},
|
|
751
|
+
{
|
|
752
|
+
"href": "#",
|
|
753
|
+
"text": "Opción 5"
|
|
754
|
+
}
|
|
755
|
+
]
|
|
756
|
+
}) }}
|
|
757
|
+
</div>
|
|
758
|
+
<div>
|
|
759
|
+
{{ componentListbox({
|
|
760
|
+
"id":"listbox-23",
|
|
761
|
+
"html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center mr-2" aria-hidden="true" focusable="false" width="1em" height="1em"><path d="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
|
|
762
|
+
"label": {
|
|
763
|
+
"text": "Label",
|
|
764
|
+
"classes": "sr-only"
|
|
765
|
+
},
|
|
766
|
+
"classes": "c-listbox--lg",
|
|
767
|
+
"items": [
|
|
768
|
+
{
|
|
769
|
+
"href": "#",
|
|
770
|
+
"html": "Opción 1"
|
|
771
|
+
},
|
|
772
|
+
{
|
|
773
|
+
"href": "#",
|
|
774
|
+
"text": "Opción 2"
|
|
775
|
+
},
|
|
776
|
+
{
|
|
777
|
+
"href": "#",
|
|
778
|
+
"text": "Opción 3"
|
|
779
|
+
},
|
|
780
|
+
{
|
|
781
|
+
"href": "#",
|
|
782
|
+
"text": "Opción 4"
|
|
783
|
+
},
|
|
784
|
+
{
|
|
785
|
+
"href": "#",
|
|
786
|
+
"text": "Opción 5"
|
|
787
|
+
}
|
|
788
|
+
]
|
|
789
|
+
}) }}
|
|
790
|
+
</div>
|
|
791
|
+
<div>
|
|
792
|
+
{{ componentListbox({
|
|
793
|
+
"id":"listbox-24",
|
|
794
|
+
"html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\" role=\"img\" aria-label=\"Borrar\"><path d=\"M113.72 61.66A5 5 0 00110 60H30a5 5 0 00-5 5.53l7.5 70a5 5 0 005 4.47h65a5 5 0 005-4.47l7.5-70a5 5 0 00-1.28-3.87zM125 27.92h-25a2.5 2.5 0 01-2.5-2.5V17.5A17.52 17.52 0 0080 0H60a17.58 17.58 0 00-17.5 17.23l-.12 8.22a2.51 2.51 0 01-2.5 2.47H15a10 10 0 000 20h110a10 10 0 000-20zM57.5 17.46A2.51 2.51 0 0160 15h20a2.5 2.5 0 012.5 2.5v7.92a2.5 2.5 0 01-2.5 2.5H59.88a2.51 2.51 0 01-2.5-2.54z\" fill=\"currentColor\"/></svg>",
|
|
795
|
+
"label": {
|
|
796
|
+
"text": "Label",
|
|
797
|
+
"classes": "sr-only"
|
|
798
|
+
},
|
|
799
|
+
"classes": "c-listbox--lg align-bottom",
|
|
800
|
+
"items": [
|
|
801
|
+
{
|
|
802
|
+
"href": "#",
|
|
803
|
+
"html": "Opción 1"
|
|
804
|
+
},
|
|
805
|
+
{
|
|
806
|
+
"href": "#",
|
|
807
|
+
"text": "Opción 2"
|
|
808
|
+
},
|
|
809
|
+
{
|
|
810
|
+
"href": "#",
|
|
811
|
+
"text": "Opción 3"
|
|
812
|
+
},
|
|
813
|
+
{
|
|
814
|
+
"href": "#",
|
|
815
|
+
"text": "Opción 4"
|
|
816
|
+
},
|
|
817
|
+
{
|
|
818
|
+
"href": "#",
|
|
819
|
+
"text": "Opción 5"
|
|
820
|
+
}
|
|
821
|
+
]
|
|
822
|
+
}) }}
|
|
823
|
+
</div>
|
|
824
|
+
</div>
|
|
@@ -90,4 +90,48 @@
|
|
|
90
90
|
]
|
|
91
91
|
}) }}
|
|
92
92
|
</div>
|
|
93
|
+
</div>
|
|
94
|
+
<div class="grid lg:grid-cols-1 gap-xl mb-lg">
|
|
95
|
+
<div>
|
|
96
|
+
<p class="c-paragraph-base">Ejemplo con aspecto de lista de enlaces:</p>
|
|
97
|
+
{{ componentTabs({
|
|
98
|
+
"tablistClasses": "flex flex-col col-span-2 lg:col-span-1 lg:divide-y lg:divide-neutral-base mb-base lg:mb-0",
|
|
99
|
+
"tablistAriaLabel": "Ejemplo de tab con aspecto de links list dispuesto en horizontal",
|
|
100
|
+
"idPrefix": "tab-links-list",
|
|
101
|
+
"items": [
|
|
102
|
+
{
|
|
103
|
+
"html": "<div class=\"flex gap-base justify-between items-center flex-1 c-link\">Tab 1</div><div class=\"self-center h-full text-primary-base\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"hidden lg:block self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg></div>",
|
|
104
|
+
"panel": {
|
|
105
|
+
"html": "<p><strong>Panel 1</strong>. Lorem ipsum dolor sit, amet, consectetur adipisicing elit. Est quis exercitationem, nesciunt nulla quisquam temporibus. Provident animi dolor veniam, et quas consequuntur. Reiciendis eius in, nostrum porro? Quaerat, temporibus, optio?</p>",
|
|
106
|
+
"classes": "col-span-2 lg:col-span-2 lg:p-base focus:outline-none focus:border-black focus:shadow-outline-focus-input focus:ring-4 focus:ring-warning-base"
|
|
107
|
+
}
|
|
108
|
+
},
|
|
109
|
+
{
|
|
110
|
+
"html": "<div class=\"flex gap-base justify-between items-center flex-1 c-link\">Tab 2</div><div class=\"self-center h-full text-primary-base\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"hidden lg:block self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg></div>",
|
|
111
|
+
"panel": {
|
|
112
|
+
"html": "<p><strong>Panel 2</strong>. Est quis exercitationem, nesciunt nulla quisquam temporibus. Provident animi dolor veniam, et quas consequuntur. Reiciendis eius in, nostrum porro? Quaerat, temporibus, optio? Lorem ipsum dolor sit, amet, consectetur adipisicing elit. Est quis exercitationem, nesciunt nulla quisquam temporibus. Provident animi dolor veniam, et quas consequuntur.</p>",
|
|
113
|
+
"classes": "col-span-2 lg:col-span-2 lg:p-base focus:outline-none focus:border-black focus:shadow-outline-focus-input focus:ring-4 focus:ring-warning-base"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"html": "<div class=\"flex gap-base justify-between items-center flex-1 c-link\">Tab 3</div><div class=\"self-center h-full text-primary-base\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"hidden lg:block self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg></div>",
|
|
118
|
+
"panel": {
|
|
119
|
+
"html": "<p><strong>Panel 3</strong>. Provident animi dolor veniam, et quas consequuntur. Reiciendis eius in, nostrum porro? Quaerat, temporibus, optio? Lorem ipsum dolor sit, amet, consectetur adipisicing elit. Est quis exercitationem, nesciunt nulla quisquam temporibus. Provident animi dolor veniam, et quas consequuntur.</p>",
|
|
120
|
+
"classes": "col-span-2 lg:col-span-2 lg:p-base focus:outline-none focus:border-black focus:shadow-outline-focus-input focus:ring-4 focus:ring-warning-base"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
"html": "<div class=\"flex gap-base justify-between items-center flex-1 c-link\">Tab 4</div><div class=\"self-center h-full text-primary-base\"><svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"hidden lg:block self-center\" aria-hidden=\"true\" focusable=\"false\" width=\"1em\" height=\"1em\"><path d=\"M102.07 27.93l35 35a10 10 0 010 14.14l-35 35a10 10 0 01-14.14-14.14l13.66-13.66A2.5 2.5 0 0099.82 80H10a10 10 0 010-20h89.82a2.5 2.5 0 001.77-4.27L87.93 42.07a10 10 0 0114.14-14.14z\" fill=\"currentColor\"></path></svg></div>",
|
|
125
|
+
"panel": {
|
|
126
|
+
"html": "<p><strong>Panel 4</strong>. Reiciendis eius in, nostrum porro? Quaerat, temporibus, optio? Lorem ipsum dolor sit, amet, consectetur adipisicing elit. Est quis exercitationem, nesciunt nulla quisquam temporibus. Provident animi dolor veniam, et quas consequuntur.</p>",
|
|
127
|
+
"classes": "col-span-2 lg:col-span-2 lg:p-base focus:outline-none focus:border-black focus:shadow-outline-focus-input focus:ring-4 focus:ring-warning-base"
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
],
|
|
131
|
+
"classes": "c-tabs--reset c-tabs--list grid grid-cols-2 lg:grid-cols-4 lg:gap-lg",
|
|
132
|
+
"attributes": {
|
|
133
|
+
"id": "tabs-list"
|
|
134
|
+
}
|
|
135
|
+
}) }}
|
|
136
|
+
</div>
|
|
93
137
|
</div>
|
|
@@ -6,6 +6,11 @@
|
|
|
6
6
|
<p>Esto es un <a href="#" class="c-link">link</a> en un texto</p>
|
|
7
7
|
<p>Esto es un <a href="#" class="c-link" title="Se abre en ventana nueva" target="_blank">enlace en ventana nueva<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" height="0.8em" width="0.8em" class="inline-block mx-xs no-underline align-baseline" aria-hidden="true" focusable="false" role="img"><g><path fill="currentcolor" fill-rule="evenodd" d="M7.428571428571428 0.5714285714285714c-0.6311885714285713 0 -1.1428571428571428 0.5116742857142856 -1.1428571428571428 1.1428571428571428 0 0.6311771428571428 0.5116685714285714 1.1428571428571428 1.1428571428571428 1.1428571428571428h4.098057142857143L0.9061634285714285 13.477599999999999c-0.4463131428571428 0.4462857142857143 -0.4463131428571428 1.1699428571428572 0 1.6162285714285711 0.4463165714285714 0.4462857142857143 1.1699279999999999 0.4462857142857143 1.616248 0L13.142857142857142 4.473382857142857V8.571428571428571c0 0.6311771428571428 0.5116571428571428 1.1428571428571428 1.1428571428571428 1.1428571428571428s1.1428571428571428 -0.51168 1.1428571428571428 -1.1428571428571428v-6.857142857142857c0 -0.6311828571428572 -0.5116571428571428 -1.1428571428571428 -1.1428571428571428 -1.1428571428571428h-6.857142857142857Z" clip-rule="evenodd" stroke-width="1"></path></g></svg></a> en un texto.</p>
|
|
8
8
|
<p>Esto es un <a href="#" class="c-link c-link--alert">link</a> en una notificación de error</p>
|
|
9
|
+
<p class="text-neutral-dark">Esto es un <a href="#" class="c-link c-link--neutral">enlace</a> en un texto secundario.</p>
|
|
10
|
+
<p>Esto es un <a href="#" class="c-link c-link--no-underline">enlace</a> sin subrayado (sólo en hover).</p>
|
|
11
|
+
<div class="col-span-2 lg:col-span-2 p-base border border-neutral-base rounded relative hover:bg-neutral-light">
|
|
12
|
+
<p><a href="#" class="c-link c-link--full">Esto es un contenedor con enlace</a></p>
|
|
13
|
+
</div>
|
|
9
14
|
<p class="c-paragraph-lg">Párrafo destacados</p>
|
|
10
15
|
<p class="c-paragraph-base">Párrafo por defecto</p>
|
|
11
16
|
<p class="c-paragraph-base text-neutral-dark">Párrafo secundario</p>
|
|
@@ -45,4 +45,9 @@
|
|
|
45
45
|
title: "Botones pequeños alerta"
|
|
46
46
|
}) }}
|
|
47
47
|
{% include "ds/_ds.example.botones-alert-sm.njk" %}
|
|
48
|
+
<div class="pb-lg"></div>
|
|
49
|
+
{{ DSSubsectionTitle({
|
|
50
|
+
title: "Botones grandes primarios"
|
|
51
|
+
}) }}
|
|
52
|
+
{% include "ds/_ds.example.botones-primary-lg.njk" %}
|
|
48
53
|
</div>
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<!-- _ds.section.textos.njk -->
|
|
5
5
|
|
|
6
6
|
<div class="container mx-auto">
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
<div class="pb-lg"></div>
|
|
9
9
|
{% from "ds/_ds.macro.subsection-title.njk" import DSSubsectionTitle %}
|
|
10
10
|
{{ DSSubsectionTitle({
|
|
@@ -209,6 +209,16 @@
|
|
|
209
209
|
</dd>
|
|
210
210
|
</dl>
|
|
211
211
|
</li>
|
|
212
|
+
<li>
|
|
213
|
+
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
214
|
+
<dt class="col-span-2 lg:col-span-2">
|
|
215
|
+
<p>Esto es un <a href="#" class="c-link c-link--no-underline">enlace</a> sin subrayado (sólo en hover).</p>
|
|
216
|
+
</dt>
|
|
217
|
+
<dd class="col-span-2 lg:col-span-2">
|
|
218
|
+
<p class="text-neutral-dark text-sm"><code>.c-link.c-link--no-underline</code> - <code>normal</code> - <code>no-underline</code> - <code>text-current</code> - hover: <code>primary-dark.underline</code></p>
|
|
219
|
+
</dd>
|
|
220
|
+
</dl>
|
|
221
|
+
</li>
|
|
212
222
|
<li>
|
|
213
223
|
<dl class="grid grid-cols-2 lg:grid-cols-4 gap-x-lg gap-y-base my-base">
|
|
214
224
|
<dt class="col-span-2 lg:col-span-2 p-base border border-neutral-base rounded relative hover:bg-neutral-light">
|
package/docs/index.html
CHANGED
|
@@ -38,6 +38,15 @@
|
|
|
38
38
|
|
|
39
39
|
<h2>Changelog (English)</h2>
|
|
40
40
|
<p>What's new in the latest version of desy-html</p>
|
|
41
|
+
<h3>v.11.2.0</h3>
|
|
42
|
+
<ul class="text-sm">
|
|
43
|
+
<li>Added global function to Links list and Tree navigation to activate items.</li>
|
|
44
|
+
<li>Added parameter in Table advanced to customize filter texts in table head.</li>
|
|
45
|
+
<li>Added parameter in Tabs to improve customization.</li>
|
|
46
|
+
<li>Added large modifier in Button, Button loader, Dropdown, Listbox, Menu navigation and Menebar.</li>
|
|
47
|
+
<li>Added style for links.</li>
|
|
48
|
+
<li>Validation fixes.</li>
|
|
49
|
+
</ul>
|
|
41
50
|
<h3>v.11.1.2</h3>
|
|
42
51
|
<ul class="text-sm">
|
|
43
52
|
<li>Improved initial tooltip visualization in Dropdown, Listbox, Menu navigation, Menubar and Tooltip.</li>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "desy-html",
|
|
3
|
-
"version": "11.
|
|
3
|
+
"version": "11.2.0",
|
|
4
4
|
"description": "desy-html contains the code you need to start building a user interface for Gobierno de Aragón government webapps.",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"author": {
|
|
@@ -41,7 +41,7 @@
|
|
|
41
41
|
"postcss": "^8.4.38",
|
|
42
42
|
"postcss-cli": "^10.1.0",
|
|
43
43
|
"postcss-import": "^15.1.0",
|
|
44
|
-
"tailwindcss": "^3.4.
|
|
44
|
+
"tailwindcss": "^3.4.15"
|
|
45
45
|
},
|
|
46
46
|
"devDependencies": {
|
|
47
47
|
"@babel/core": "^7.24.7",
|