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,29 +1,29 @@
1
1
  {% set exampleComponent = "nav" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
6
  "idPrefix": "nav-default",
7
7
  "items": [
8
8
  {
9
9
  "href": "#",
10
- "text": "Option 1"
10
+ "text": "Opción 1"
11
11
  },
12
12
  {
13
13
  "href": "#",
14
- "text": "Option 2"
14
+ "text": "Opción 2"
15
15
  },
16
16
  {
17
17
  "href": "#",
18
- "text": "Option 3"
18
+ "text": "Opción 3"
19
19
  },
20
20
  {
21
21
  "href": "#",
22
- "text": "Option 4"
22
+ "text": "Opción 4"
23
23
  },
24
24
  {
25
25
  "href": "#",
26
- "text": "Option 5"
26
+ "text": "Opción 5"
27
27
  }
28
28
  ],
29
29
  "attributes": {
@@ -32,30 +32,30 @@
32
32
  }
33
33
  },
34
34
  {
35
- "name": "with disabled item",
35
+ "name": "con item deshabilitado",
36
36
  "data": {
37
37
  "idPrefix": "nav-with-disabled-item",
38
38
  "items": [
39
39
  {
40
40
  "href": "#",
41
- "text": "Option 1"
41
+ "text": "Opción 1"
42
42
  },
43
43
  {
44
44
  "href": "#",
45
- "text": "Option 2"
45
+ "text": "Opción 2"
46
46
  },
47
47
  {
48
48
  "href": "#",
49
- "text": "Disabled Option 3",
49
+ "text": "Opción deshabilitada 3",
50
50
  "disabled": true
51
51
  },
52
52
  {
53
53
  "href": "#",
54
- "text": "Option 4"
54
+ "text": "Opción 4"
55
55
  },
56
56
  {
57
57
  "href": "#",
58
- "text": "Option 5"
58
+ "text": "Opción 5"
59
59
  }
60
60
  ],
61
61
  "attributes": {
@@ -64,30 +64,30 @@
64
64
  }
65
65
  },
66
66
  {
67
- "name": "with active item",
67
+ "name": "con item activo",
68
68
  "data": {
69
69
  "idPrefix": "nav-with-active-item",
70
70
  "items": [
71
71
  {
72
72
  "href": "#",
73
- "text": "Option 1"
73
+ "text": "Opción 1"
74
74
  },
75
75
  {
76
76
  "href": "#",
77
- "text": "Option 2"
77
+ "text": "Opción 2"
78
78
  },
79
79
  {
80
80
  "href": "#",
81
- "text": "Option 3"
81
+ "text": "Opción 3"
82
82
  },
83
83
  {
84
84
  "href": "#",
85
- "text": "Active Option 4",
85
+ "text": "Opción 4 activa",
86
86
  "active": true
87
87
  },
88
88
  {
89
89
  "href": "#",
90
- "text": "Option 5"
90
+ "text": "Opción 5"
91
91
  }
92
92
  ],
93
93
  "attributes": {
@@ -95,13 +95,13 @@
95
95
  }
96
96
  }
97
97
  },{
98
- "name": "with target in links",
98
+ "name": "con target en enlaces",
99
99
  "data": {
100
100
  "idPrefix": "nav-with-target-in-links",
101
101
  "items": [
102
102
  {
103
103
  "href": "#",
104
- "text": "Option 1",
104
+ "text": "Opción 1",
105
105
  "target": "_blank",
106
106
  "attributes": {
107
107
  "title": "Se abre en pestaña nueva"
@@ -109,7 +109,7 @@
109
109
  },
110
110
  {
111
111
  "href": "#",
112
- "text": "Option 2",
112
+ "text": "Opción 2",
113
113
  "target": "_blank",
114
114
  "attributes": {
115
115
  "title": "Se abre en pestaña nueva"
@@ -117,7 +117,7 @@
117
117
  },
118
118
  {
119
119
  "href": "#",
120
- "text": "Option 3",
120
+ "text": "Opción 3",
121
121
  "target": "_blank",
122
122
  "attributes": {
123
123
  "title": "Se abre en pestaña nueva"
@@ -125,7 +125,7 @@
125
125
  },
126
126
  {
127
127
  "href": "#",
128
- "text": "Option 4",
128
+ "text": "Opción 4",
129
129
  "target": "_blank",
130
130
  "attributes": {
131
131
  "title": "Se abre en pestaña nueva"
@@ -133,7 +133,7 @@
133
133
  },
134
134
  {
135
135
  "href": "#",
136
- "text": "Option 5",
136
+ "text": "Opción 5",
137
137
  "target": "_blank",
138
138
  "attributes": {
139
139
  "title": "Se abre en pestaña nueva"
@@ -146,30 +146,30 @@
146
146
  }
147
147
  },
148
148
  {
149
- "name": "with divider",
149
+ "name": "con divisor",
150
150
  "data": {
151
151
  "idPrefix": "nav-with-divider",
152
152
  "items": [
153
153
  {
154
154
  "href": "#",
155
- "text": "Option 1"
155
+ "text": "Opción 1"
156
156
  },
157
157
  {
158
158
  "href": "#",
159
- "text": "Option 2"
159
+ "text": "Opción 2"
160
160
  },
161
161
  {
162
162
  "href": "#",
163
- "text": "Option 3 with divider",
163
+ "text": "Opción 3 con divisor",
164
164
  "divider": true
165
165
  },
166
166
  {
167
167
  "href": "#",
168
- "text": "Option 4"
168
+ "text": "Opción 4"
169
169
  },
170
170
  {
171
171
  "href": "#",
172
- "text": "Option 5"
172
+ "text": "Opción 5"
173
173
  }
174
174
  ],
175
175
  "attributes": {
@@ -178,31 +178,31 @@
178
178
  }
179
179
  },
180
180
  {
181
- "name": "with classes applied",
181
+ "name": "con clases de css aplicadas",
182
182
  "data": {
183
183
  "idPrefix": "nav-with-classes-applied",
184
- "classes": "bg-warning-light",
184
+ "classes": "p-base bg-primary-light",
185
185
  "items": [
186
186
  {
187
187
  "href": "#",
188
- "text": "Option 1"
188
+ "text": "Opción 1"
189
189
  },
190
190
  {
191
191
  "href": "#",
192
- "text": "Option 2",
193
- "classes": "bg-warning-base"
192
+ "text": "Opción 2",
193
+ "classes": "bg-white"
194
194
  },
195
195
  {
196
196
  "href": "#",
197
- "text": "Option 3 with divider"
197
+ "text": "Opción 3"
198
198
  },
199
199
  {
200
200
  "href": "#",
201
- "text": "Option 4"
201
+ "text": "Opción 4"
202
202
  },
203
203
  {
204
204
  "href": "#",
205
- "text": "Option 5"
205
+ "text": "Opción 5"
206
206
  }
207
207
  ],
208
208
  "attributes": {
@@ -211,30 +211,30 @@
211
211
  }
212
212
  },
213
213
  {
214
- "name": "with idPrefix",
215
- "description": "See code to display the idPrefix applied",
214
+ "name": "con idPrefix",
215
+ "description": 'Mostrar código para ver el <code>idPrefix</code> aplicado.',
216
216
  "data": {
217
217
  "idPrefix": "site-menu-item-1",
218
218
  "items": [
219
219
  {
220
220
  "href": "#",
221
- "text": "Option 1"
221
+ "text": "Opción 1"
222
222
  },
223
223
  {
224
224
  "href": "#",
225
- "text": "Option 2"
225
+ "text": "Opción 2"
226
226
  },
227
227
  {
228
228
  "href": "#",
229
- "text": "Option 3"
229
+ "text": "Opción 3"
230
230
  },
231
231
  {
232
232
  "href": "#",
233
- "text": "Option 4"
233
+ "text": "Opción 4"
234
234
  },
235
235
  {
236
236
  "href": "#",
237
- "text": "Option 5"
237
+ "text": "Opción 5"
238
238
  }
239
239
  ],
240
240
  "attributes": {
@@ -243,34 +243,34 @@
243
243
  }
244
244
  },
245
245
  {
246
- "name": "with individual ids",
247
- "description": "Show code to display the ids applied in html",
246
+ "name": "con ids individuales",
247
+ "description": 'Mostrar código para ver los <code>id</code> aplicados.',
248
248
  "data": {
249
249
  "idPrefix": "nav-with-individual-ids",
250
250
  "items": [
251
251
  {
252
252
  "href": "#",
253
- "text": "Option 1",
253
+ "text": "Opción 1",
254
254
  "id": "option-A"
255
255
  },
256
256
  {
257
257
  "href": "#",
258
- "text": "Option 2",
258
+ "text": "Opción 2",
259
259
  "id": "option-B"
260
260
  },
261
261
  {
262
262
  "href": "#",
263
- "text": "Option 3",
263
+ "text": "Opción 3",
264
264
  "id": "option-C"
265
265
  },
266
266
  {
267
267
  "href": "#",
268
- "text": "Option 4",
268
+ "text": "Opción 4",
269
269
  "id": "option-D"
270
270
  },
271
271
  {
272
272
  "href": "#",
273
- "text": "Option 5",
273
+ "text": "Opción 5",
274
274
  "id": "option-E"
275
275
  }
276
276
  ],
@@ -280,8 +280,8 @@
280
280
  }
281
281
  },
282
282
  {
283
- "name": "with attributes",
284
- "description": "Show code to display the attributes applied in html",
283
+ "name": "con atributos",
284
+ "description": "Muestra el código para ver cómo se aplican los atributos.",
285
285
  "data": {
286
286
  "idPrefix": "nav-with-attributes",
287
287
  "attributes": {
@@ -290,7 +290,7 @@
290
290
  "items": [
291
291
  {
292
292
  "href": "#",
293
- "text": "Option 1",
293
+ "text": "Opción 1",
294
294
  "attributes": {
295
295
  "data-attribute-1": "value-A",
296
296
  "data-attribute-2": "value-B",
@@ -299,7 +299,7 @@
299
299
  },
300
300
  {
301
301
  "href": "#",
302
- "text": "Option 2",
302
+ "text": "Opción 2",
303
303
  "attributes": {
304
304
  "data-attribute-1": "value-A",
305
305
  "data-attribute-2": "value-B",
@@ -308,7 +308,7 @@
308
308
  },
309
309
  {
310
310
  "href": "#",
311
- "text": "Option 3",
311
+ "text": "Opción 3",
312
312
  "attributes": {
313
313
  "data-attribute-1": "value-A",
314
314
  "data-attribute-2": "value-B",
@@ -317,7 +317,7 @@
317
317
  },
318
318
  {
319
319
  "href": "#",
320
- "text": "Option 4",
320
+ "text": "Opción 4",
321
321
  "attributes": {
322
322
  "data-attribute-1": "value-A",
323
323
  "data-attribute-2": "value-B",
@@ -326,7 +326,7 @@
326
326
  },
327
327
  {
328
328
  "href": "#",
329
- "text": "Option 5",
329
+ "text": "Opción 5",
330
330
  "attributes": {
331
331
  "data-attribute-1": "value-A",
332
332
  "data-attribute-2": "value-B",
@@ -340,32 +340,32 @@
340
340
  }
341
341
  },
342
342
  {
343
- "name": "hasNav is false",
344
- "description": "Use this if it's opened with a dropdown button. No nav tag will be used, just a plain ul, assuming the component will be wrapped with a custom nav with it's own aria-label if it's needed. We also use classes to control the width of the nav inside the dropdown.",
343
+ "name": "Sin nav",
344
+ "description": 'Usa <code>"hasNav": false</code> si el Nav se abre con un Dropdown. No se usará el tag <code>&lt;nav&gt;</code>, sólo un simple <code>&lt;ul&gt;</code>, asumiendo que rodearás a tu componente manualmente con un <code>&lt;nav&gt;</code> personalizado con su propio <code>aria-label</code> si es necesario. También podemos usar clases para controlar la anchura del nav dentro del Dropdown.',
345
345
  "data": {
346
346
  "hasNav": false,
347
347
  "idPrefix": "site-menu-item-2",
348
348
  "items": [
349
349
  {
350
350
  "href": "#",
351
- "text": "Option 1"
351
+ "text": "Opción 1"
352
352
  },
353
353
  {
354
354
  "href": "#",
355
- "text": "Option 2"
355
+ "text": "Opción 2"
356
356
  },
357
357
  {
358
358
  "href": "#",
359
- "text": "Option 3",
359
+ "text": "Opción 3",
360
360
  "active": true
361
361
  },
362
362
  {
363
363
  "href": "#",
364
- "text": "Option 4"
364
+ "text": "Opción 4"
365
365
  },
366
366
  {
367
367
  "href": "#",
368
- "text": "Max width classes applied to avoid too much width inside menus and force to break line"
368
+ "text": "Clases max-width aplicadas para evitar demasiada anchura dentro de los menus y forzar a saltos de línea"
369
369
  }
370
370
  ],
371
371
  "classes": "w-max max-w-64",
@@ -1,7 +1,7 @@
1
1
  {% set exampleComponent = "notification" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
6
  "title": {
7
7
  "text": "El documento se ha cargado correctamente"
@@ -10,7 +10,7 @@
10
10
  }
11
11
  },
12
12
  {
13
- "name": "default with html",
13
+ "name": "por defecto con html",
14
14
  "data": {
15
15
  "title":{
16
16
  "html": "Las <a href=\" # \" class=\" c-link \">entidades beneficiarias</a> deberán tener su sede y actividad principal en Aragón."
@@ -19,7 +19,7 @@
19
19
  }
20
20
  },
21
21
  {
22
- "name": "with description",
22
+ "name": "con description",
23
23
  "data": {
24
24
  "title":{
25
25
  "html": "El documento se ha cargado correctamente"
@@ -31,7 +31,7 @@
31
31
  }
32
32
  },
33
33
  {
34
- "name": "with items",
34
+ "name": "con items",
35
35
  "data": {
36
36
  "title":{
37
37
  "text": "Problemas encontrados"
@@ -54,7 +54,7 @@
54
54
  }
55
55
  },
56
56
  {
57
- "name": "with type success",
57
+ "name": "con tipo: éxito",
58
58
  "data": {
59
59
  "title": {
60
60
  "text": "El documento se ha cargado correctamente"
@@ -64,7 +64,7 @@
64
64
  }
65
65
  },
66
66
  {
67
- "name": "with type alert",
67
+ "name": "con tipo: alerta",
68
68
  "data": {
69
69
  "title":{
70
70
  "text": "Problemas encontrados"
@@ -88,7 +88,7 @@
88
88
  }
89
89
  },
90
90
  {
91
- "name": "with type info",
91
+ "name": "con tipo: info",
92
92
  "data": {
93
93
  "title": {
94
94
  "text": "ATENCIÓN: Debido a la situación por Covid-19, pide cita previa para acudir a una de nuestras oficinas."
@@ -101,8 +101,8 @@
101
101
  }
102
102
  },
103
103
  {
104
- "name": "with close button",
105
- "description": "isDismissible: true",
104
+ "name": "con botón de cerrar",
105
+ "description": 'Usa el parámetro <code>"isDismissible": true</code>',
106
106
  "data": {
107
107
  "title": {
108
108
  "text": "Lorem ipsum dolor sit, amet consectetur adipisicing elit. Ut distinctio error non, reiciendis repudiandae reprehenderit minima quia laboriosam voluptate, quo veniam expedita possimus ex nam consequuntur autem eveniet, saepe ea."
@@ -112,7 +112,7 @@
112
112
  }
113
113
  },
114
114
  {
115
- "name": "with custom icon and class",
115
+ "name": "con icono personalizado y clases",
116
116
  "data": {
117
117
  "title": {
118
118
  "text": "Acaba de publicarse la lista de admitidos y excluidos de la convocatoria publicado en el BOA"
@@ -124,11 +124,12 @@
124
124
  "html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" width="1em" height="1em" class="w-8 h-8" aria-label="Atención" focusable="false"><path d="M138.42 118.29l-55-110a15 15 0 00-26.84 0l-55 110A15 15 0 0015 140h110a15 15 0 0013.42-21.71zM62.5 50a7.5 7.5 0 0115 0v30a7.5 7.5 0 01-15 0zm7.5 70a10 10 0 1110-10 10 10 0 01-10 10z" fill="currentColor"/></svg>'
125
125
  },
126
126
  "id": "with-custom-icon",
127
- "classes": "border-warning-base bg-warning-light"
127
+ "classes": "border-neutral-dark bg-neutral-lighter"
128
128
  }
129
129
  },
130
130
  {
131
- "name": "with headingLevel 3",
131
+ "name": "Con encabezado",
132
+ "description": 'Usa el parámetro <code>"headingLevel"</code> para establecer el nivel del encabezado. En este ejemplo: <code>"headingLevel": 3</code> creará un encabezado <code>&lt;h3&gt;</code>.',
132
133
  "data": {
133
134
  "headingLevel": 3,
134
135
  "title": {
@@ -138,7 +139,7 @@
138
139
  }
139
140
  },
140
141
  {
141
- "name": "with mixed params",
142
+ "name": "con parámetros mixtos",
142
143
  "data": {
143
144
  "title":{
144
145
  "text": "No olvide adjuntar el registro de alta de la asociación",
@@ -1,7 +1,7 @@
1
1
  {% set exampleComponent = "pagination" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
6
  "id": "default",
7
7
  "idPrefix": "pagination",
@@ -40,8 +40,8 @@
40
40
  }
41
41
  },
42
42
  {
43
- "name": "Listbox style",
44
- "description": "hasSelect: true",
43
+ "name": "Estilo Listbox ",
44
+ "description": 'Usa el parámetro <code>"hasSelect": true</code> para mostrar la paginación como un Listbox en vez de botones.',
45
45
  "data": {
46
46
  "id": "listbox-style",
47
47
  "hasSelect": true,
@@ -117,8 +117,8 @@
117
117
  }
118
118
  },
119
119
  {
120
- "name": "Without previous page",
121
- "description": "hasSelect: true, hasPrevious: false",
120
+ "name": "sin página previa",
121
+ "description": 'En este ejemplo <code>"hasSelect": true</code> y <code>"hasPrevious": false</code>',
122
122
  "data": {
123
123
  "id": "without-previous-page",
124
124
  "hasSelect": true,
@@ -162,7 +162,8 @@
162
162
  }
163
163
  },
164
164
  {
165
- "name": "with itemsListbox",
165
+ "name": "con itemsListbox",
166
+ "description": 'Usa el parámetro <code>itemsListbox</code> para mostrar un listbox que permite elegir el ´numero de items por página, a la derecha.',
166
167
  "data": {
167
168
  "id": "with-items-listbox",
168
169
  "idPrefix": "with-items-listbox",