desy-html 7.3.0 → 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 (71) hide show
  1. package/docs/_macro.example-render.njk +1 -1
  2. package/docs/index.html +8 -0
  3. package/docs/pagina-accesibilidad.html +6 -0
  4. package/docs/pagina-mapa-web.html +6 -0
  5. package/docs/plantilla-con-header-advanced.html +7 -0
  6. package/docs/plantilla-editar-con-cabecera-fija-y-sidebar-sticky.html +8 -1
  7. package/docs/plantilla-editar-con-cabecera-fija.html +7 -0
  8. package/docs/plantilla-logueado-con-cabecera-fija-headroom.html +7 -0
  9. package/docs/plantilla-logueado-con-cabecera-fija.html +7 -0
  10. package/docs/plantilla-logueado-con-selector-de-app-y-sidebar.html +8 -1
  11. package/docs/plantilla-logueado-con-selector-de-app-y-subheader.html +7 -0
  12. package/docs/plantilla-logueado-con-selector-de-app.html +7 -0
  13. package/docs/plantilla-logueado-con-titulo-de-app.html +7 -0
  14. package/docs/plantilla-sin-loguear.html +7 -0
  15. package/package.json +1 -1
  16. package/src/templates/components/accordion/_examples.accordion.njk +108 -104
  17. package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
  18. package/src/templates/components/alert/_examples.alert.njk +10 -6
  19. package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
  20. package/src/templates/components/button/_examples.button.njk +71 -71
  21. package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
  22. package/src/templates/components/card/_examples.card.njk +43 -43
  23. package/src/templates/components/character-count/_examples.character-count.njk +35 -33
  24. package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
  25. package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
  26. package/src/templates/components/date-input/_examples.date-input.njk +14 -14
  27. package/src/templates/components/description-list/_examples.description-list.njk +45 -44
  28. package/src/templates/components/details/_examples.details.njk +17 -16
  29. package/src/templates/components/dialog/_examples.dialog.njk +5 -6
  30. package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
  31. package/src/templates/components/error-message/_examples.error-message.njk +8 -2
  32. package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
  33. package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
  34. package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
  35. package/src/templates/components/footer/_examples.footer.njk +24 -24
  36. package/src/templates/components/header/_examples.header.njk +12 -12
  37. package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
  38. package/src/templates/components/hint/_examples.hint.njk +4 -4
  39. package/src/templates/components/input/_examples.input.njk +66 -64
  40. package/src/templates/components/input-group/_examples.input-group.njk +15 -17
  41. package/src/templates/components/item/_examples.item.njk +21 -20
  42. package/src/templates/components/label/_examples.label.njk +11 -9
  43. package/src/templates/components/links-list/_examples.links-list.njk +34 -34
  44. package/src/templates/components/listbox/_examples.listbox.njk +146 -146
  45. package/src/templates/components/media-object/_examples.media-object.njk +7 -7
  46. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
  47. package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
  48. package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
  49. package/src/templates/components/menubar/_examples.menubar.njk +42 -42
  50. package/src/templates/components/modal/_examples.modal.njk +21 -15
  51. package/src/templates/components/modal/_template.modal.njk +5 -5
  52. package/src/templates/components/nav/_examples.nav.njk +66 -66
  53. package/src/templates/components/notification/_examples.notification.njk +14 -13
  54. package/src/templates/components/pagination/_examples.pagination.njk +7 -6
  55. package/src/templates/components/pill/_examples.pill.njk +29 -29
  56. package/src/templates/components/radios/_examples.radios.njk +153 -142
  57. package/src/templates/components/searchbar/_examples.searchbar.njk +11 -11
  58. package/src/templates/components/select/_examples.select.njk +63 -63
  59. package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
  60. package/src/templates/components/spinner/_examples.spinner.njk +11 -11
  61. package/src/templates/components/status/_examples.status.njk +4 -4
  62. package/src/templates/components/status-item/_examples.status-item.njk +21 -21
  63. package/src/templates/components/table/_examples.table.njk +58 -56
  64. package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
  65. package/src/templates/components/tabs/_examples.tabs.njk +30 -29
  66. package/src/templates/components/textarea/_examples.textarea.njk +28 -27
  67. package/src/templates/components/toggle/_examples.toggle.njk +10 -11
  68. package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
  69. package/src/templates/components/tree/_examples.tree.njk +58 -57
  70. package/src/templates/includes/_abrir-notificaciones-extra.njk +3 -0
  71. package/src/templates/includes/_abrir-notificaciones.njk +1 -1
@@ -1,17 +1,17 @@
1
1
  {% set exampleComponent = "button-loader" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
- "text": "Default"
6
+ "text": "Por defecto"
7
7
  }
8
8
  },
9
9
  {
10
- "name": "default with loading state",
11
- "description": "Simulate triggering the loading state",
10
+ "name": "Por defecto con el estado cargando",
11
+ "description": "Simula activar el estado cargando",
12
12
  "data": {
13
13
  "name": "loading",
14
- "text": "Loading",
14
+ "text": "Cargando",
15
15
  "state": "is-loading",
16
16
  "classes": "c-button-loader--is-loading",
17
17
  "loader": {
@@ -20,11 +20,11 @@
20
20
  }
21
21
  },
22
22
  {
23
- "name": "default with success state",
24
- "description": "Simulate triggering the success state that only displays for seconds, then reverts to initial state",
23
+ "name": "Por defecto con estado éxito",
24
+ "description": "Simula activar el estado éxito que sólo se muestra durante unos segundos, luego vuelve al estado inicial.",
25
25
  "data": {
26
- "name": "success",
27
- "text": "Success",
26
+ "name": "éxito",
27
+ "text": "Éxito",
28
28
  "state": "is-success",
29
29
  "success" : {
30
30
  "text": "Acción realizada con éxito"
@@ -33,58 +33,58 @@
33
33
  }
34
34
  },
35
35
  {
36
- "name": "default with active state",
37
- "description": "Simulate triggering the :active CSS pseudo-class",
36
+ "name": "por defecto con estado activo",
37
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
38
38
  "data": {
39
39
  "name": "active",
40
- "text": "Active",
40
+ "text": "Activo",
41
41
  "classes": "ds-active"
42
42
  }
43
43
  },
44
44
  {
45
- "name": "default with hover state",
46
- "description": "Simulate triggering the :hover CSS pseudo-class",
45
+ "name": "por defecto con estado hover",
46
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
47
47
  "data": {
48
48
  "name": "hover",
49
- "text": "Hovered",
49
+ "text": "Hover",
50
50
  "classes": "ds-hover"
51
51
  }
52
52
  },
53
53
  {
54
- "name": "default with focus state",
55
- "description": "Simulate triggering the :focus CSS pseudo-class",
54
+ "name": "por defecto con estado focus",
55
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
56
56
  "data": {
57
57
  "name": "focus",
58
- "text": "Focussed",
58
+ "text": "Focus",
59
59
  "classes": "ds-focus"
60
60
  }
61
61
  },
62
62
  {
63
- "name": "default disabled",
63
+ "name": "por defecto deshabilitado",
64
64
  "data": {
65
- "text": "Disabled",
65
+ "text": "Deshabilitado",
66
66
  "disabled": true
67
67
  }
68
68
  },
69
69
  {
70
- "name": "primary",
70
+ "name": "primario",
71
71
  "data": {
72
- "text": "Primary",
72
+ "text": "Primario",
73
73
  "classes": "c-button-loader--primary"
74
74
  }
75
75
  },
76
76
  {
77
- "name": "primary with active state",
78
- "description": "Simulate triggering the :active CSS pseudo-class",
77
+ "name": "primario con estado activo",
78
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
79
79
  "data": {
80
80
  "name": "active",
81
- "text": "Active",
81
+ "text": "Activo",
82
82
  "classes": "c-button-loader--primary ds-active"
83
83
  }
84
84
  },
85
85
  {
86
- "name": "primary with hover state",
87
- "description": "Simulate triggering the :hover CSS pseudo-class",
86
+ "name": "primario con estado hover",
87
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
88
88
  "data": {
89
89
  "name": "hover",
90
90
  "text": "Hover",
@@ -92,8 +92,8 @@
92
92
  }
93
93
  },
94
94
  {
95
- "name": "primary with focus state",
96
- "description": "Simulate triggering the :focus CSS pseudo-class",
95
+ "name": "primario con estado focus",
96
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
97
97
  "data": {
98
98
  "name": "focus",
99
99
  "text": "Focus",
@@ -101,32 +101,32 @@
101
101
  }
102
102
  },
103
103
  {
104
- "name": "primary disabled",
104
+ "name": "primario deshabilitado",
105
105
  "data": {
106
- "text": "Disabled",
106
+ "text": "Deshabilitado",
107
107
  "disabled": true,
108
108
  "classes": "c-button-loader--primary"
109
109
  }
110
110
  },
111
111
  {
112
- "name": "alert",
112
+ "name": "alerta",
113
113
  "data": {
114
- "text": "Alert",
114
+ "text": "Alerta",
115
115
  "classes": "c-button-loader--alert"
116
116
  }
117
117
  },
118
118
  {
119
- "name": "alert with active state",
120
- "description": "Simulate triggering the :active CSS pseudo-class",
119
+ "name": "alerta con estado activo",
120
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
121
121
  "data": {
122
122
  "name": "active",
123
- "text": "Active",
123
+ "text": "Activo",
124
124
  "classes": "c-button-loader--alert ds-active"
125
125
  }
126
126
  },
127
127
  {
128
- "name": "alert with hover state",
129
- "description": "Simulate triggering the :hover CSS pseudo-class",
128
+ "name": "alerta con estado hover",
129
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
130
130
  "data": {
131
131
  "name": "hover",
132
132
  "text": "Hover",
@@ -134,8 +134,8 @@
134
134
  }
135
135
  },
136
136
  {
137
- "name": "alert with focus state",
138
- "description": "Simulate triggering the :focus CSS pseudo-class",
137
+ "name": "alerta con estado focus",
138
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
139
139
  "data": {
140
140
  "name": "focus",
141
141
  "text": "Focus",
@@ -143,32 +143,32 @@
143
143
  }
144
144
  },
145
145
  {
146
- "name": "alert disabled",
146
+ "name": "alerta deshabilitado",
147
147
  "data": {
148
- "text": "Disabled",
148
+ "text": "Deshabilitado",
149
149
  "disabled": true,
150
150
  "classes": "c-button-loader--alert"
151
151
  }
152
152
  },
153
153
  {
154
- "name": "transparent",
154
+ "name": "transparente",
155
155
  "data": {
156
- "text": "Transparent",
156
+ "text": "Transparente",
157
157
  "classes": "c-button-loader--transparent"
158
158
  }
159
159
  },
160
160
  {
161
- "name": "transparent with active state",
162
- "description": "Simulate triggering the :active CSS pseudo-class",
161
+ "name": "transparente con estado activo",
162
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
163
163
  "data": {
164
164
  "name": "active",
165
- "text": "Active",
165
+ "text": "Activo",
166
166
  "classes": "c-button-loader--transparent ds-active"
167
167
  }
168
168
  },
169
169
  {
170
- "name": "transparent with hover state",
171
- "description": "Simulate triggering the :hover CSS pseudo-class",
170
+ "name": "transparente con estado hover",
171
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
172
172
  "data": {
173
173
  "name": "hover",
174
174
  "text": "Hover",
@@ -176,8 +176,8 @@
176
176
  }
177
177
  },
178
178
  {
179
- "name": "transparent with focus state",
180
- "description": "Simulate triggering the :focus CSS pseudo-class",
179
+ "name": "transparente con estado focus",
180
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
181
181
  "data": {
182
182
  "name": "focus",
183
183
  "text": "Focus",
@@ -185,59 +185,59 @@
185
185
  }
186
186
  },
187
187
  {
188
- "name": "transparent disabled",
188
+ "name": "transparente deshabilitado",
189
189
  "data": {
190
- "text": "Disabled",
190
+ "text": "Deshabilitado",
191
191
  "disabled": true,
192
192
  "classes": "c-button-loader--transparent"
193
193
  }
194
194
  },
195
195
  {
196
- "name": "small",
196
+ "name": "peque",
197
197
  "data": {
198
- "text": "Small",
198
+ "text": "Peque",
199
199
  "classes": "c-button-loader--sm"
200
200
  }
201
201
  },
202
202
  {
203
- "name": "link",
203
+ "name": "enlace",
204
204
  "data": {
205
- "text": "Link button",
205
+ "text": "Botón enlace",
206
206
  "href": "/"
207
207
  }
208
208
  },
209
209
  {
210
- "name": "link with target blank",
210
+ "name": "botón enlace con target blank",
211
211
  "data": {
212
- "text": "Link button with target",
212
+ "text": "Botón enlace con target",
213
213
  "href": "http://www.google.com",
214
214
  "target": "_blank"
215
215
  }
216
216
  },
217
217
  {
218
- "name": "link disabled",
218
+ "name": "enlace deshabilitado",
219
219
  "data": {
220
- "text": "Disabled link button",
220
+ "text": "Botón enlace deshabilitado",
221
221
  "href": "/",
222
222
  "disabled": true
223
223
  }
224
224
  },
225
225
  {
226
- "name": "button with right icon",
226
+ "name": "botón con icono a la derecha",
227
227
  "data": {
228
- "html": 'Button with icon<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="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>',
228
+ "html": 'Botón 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="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>',
229
229
  "href": "/"
230
230
  }
231
231
  },
232
232
  {
233
- "name": "button with left icon",
233
+ "name": "botón con icono a la izquierda",
234
234
  "data": {
235
- "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="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>Button with icon',
235
+ "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="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>Botón con icono',
236
236
  "href": "/"
237
237
  }
238
238
  },
239
239
  {
240
- "name": "button with only icon",
240
+ "name": "botón sólo con icono",
241
241
  "data": {
242
242
  "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>',
243
243
  "href": "/",
@@ -245,7 +245,7 @@
245
245
  }
246
246
  },
247
247
  {
248
- "name": "button small with only icon",
248
+ "name": "button peque sólo con icono",
249
249
  "data": {
250
250
  "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>',
251
251
  "href": "/",
@@ -257,21 +257,21 @@
257
257
  "data": {
258
258
  "element": "input",
259
259
  "name": "send-form",
260
- "text": "Submit"
260
+ "text": "Enviar"
261
261
  }
262
262
  },
263
263
  {
264
- "name": "input disabled",
264
+ "name": "input deshabilitado",
265
265
  "data": {
266
266
  "element": "input",
267
- "text": "Submit",
267
+ "text": "Enviar",
268
268
  "disabled": true
269
269
  }
270
270
  },
271
271
  {
272
- "name": "prevent double click",
272
+ "name": "prevenir doble click",
273
273
  "data": {
274
- "text": "Submit",
274
+ "text": "Enviar",
275
275
  "preventDoubleClick": true
276
276
  }
277
277
  }
@@ -20,46 +20,46 @@
20
20
  </ul>
21
21
  {% endset %}
22
22
 
23
- {% set verButton %}
23
+ {% macro verButton(id='id') %}
24
24
  {{ componentButton({
25
- "html": "Más <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\"></path></svg>",
25
+ "html": 'Más <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"></path></svg>',
26
26
  "classes": "c-button--transparent",
27
27
  "href": "#",
28
28
  "attributes": {
29
- "id": "boton-card-1",
30
- "aria-labelledby": "boton-card-1 titulo-card-1"
29
+ "id": "boton-card-" + id,
30
+ "aria-labelledby": "boton-card-" + id + " titulo-card-" + id
31
31
  }
32
32
  }) }}
33
- {% endset %}
33
+ {% endmacro %}
34
34
 
35
- {% set verDetalleButton %}
35
+ {% macro verDetalleButton(id='id') %}
36
36
  {{ componentButton({
37
- "html": "Ver detalle <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\"></path></svg>",
37
+ "html": 'Ver detalle <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"></path></svg>',
38
38
  "classes": "c-button--transparent",
39
39
  "href": "#",
40
40
  "attributes": {
41
- "id": "boton-card-1",
42
- "aria-labelledby": "boton-card-1 titulo-card-1"
41
+ "id": "boton-card-" + id,
42
+ "aria-labelledby": "boton-card-" + id + " titulo-card-" + id
43
43
  }
44
44
  }) }}
45
- {% endset %}
45
+ {% endmacro %}
46
46
 
47
- {% set withIconContent %}
47
+ {% macro withIconContent(id='id') %}
48
48
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="1em" height="1em" class="w-6 h-6 lg:w-9 lg:h-9 mt-base mb-lg" aria-hidden="true" focusable="false"><g transform="scale(2)"><path d="M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25Z" fill="currentColor"></path><rect x="6.5" y="10.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="14" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="17.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="10.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="14" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="17.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect></g></svg>
49
- <h3 id="titulo-card-1" class="c-h3">Título card</h3>
49
+ <h3 id="titulo-card-{{ id }}" class="c-h3">Título card</h3>
50
50
  <div class="prose max-w-none mb-base">
51
51
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
52
52
  </div>
53
- {{ verButton | safe }}
54
- {% endset %}
53
+ {{ verButton(id) | safe }}
54
+ {% endmacro %}
55
55
 
56
- {% set withButton %}
57
- <h3 id="titulo-card-1" class="c-h3">Título card</h3>
56
+ {% macro withButton(id='id') %}
57
+ <h3 id="titulo-card-{{ id }}" class="c-h3">Título card</h3>
58
58
  <div class="prose max-w-none mb-base">
59
59
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
60
60
  </div>
61
- {{ verButton | safe }}
62
- {% endset %}
61
+ {{ verButton(id) | safe }}
62
+ {% endmacro %}
63
63
 
64
64
  {% set areaPersonalContent %}
65
65
  <h2 class="c-h1"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 48 48" width="1em" height="1em" class="inline-block align-middle lg:w-9 lg:h-9 mr-base" aria-hidden="true" focusable="false"><g transform="scale(2)"><path d="M21.71 5.71 16.29.29a1 1 0 0 0-.7-.29H4a2 2 0 0 0-2 2v20a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2V6.41a1 1 0 0 0-.29-.7ZM20 21.5a.5.5 0 0 1-.5.5h-15a.5.5 0 0 1-.5-.5v-19a.5.5 0 0 1 .5-.5h10.25a.25.25 0 0 1 .25.25V5a2 2 0 0 0 2 2h2.75a.25.25 0 0 1 .25.25Z" fill="currentColor"></path><rect x="6.5" y="10.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="14" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="6.5" y="17.5" width="3" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="10.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="14" width="6.5" height="2" rx=".5" fill="currentColor"></rect><rect x="11" y="17.5" width="6.5" height="2" rx=".5" fill="currentColor"></rect></g></svg>Tu área personal</h2>
@@ -79,23 +79,23 @@
79
79
  </ul>
80
80
  {% endset %}
81
81
 
82
- {% set postContent %}
82
+ {% macro postContent(id='id') %}
83
83
  <p class="c-paragraph-sm mb-base">
84
84
  <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" height="1em" width="1em" class="inline-block align-middle w-6 h-6 mr-xs"><g><path d="M7.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,10.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M7.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,14.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M7.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M12.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M17.5,18.5h-1a1,1,0,0,0,0,2h1a1,1,0,0,0,0-2Z" fill="currentColor"></path><path d="M21.5,3H18.75a.25.25,0,0,1-.25-.25V1a1,1,0,0,0-2,0V5.75a.75.75,0,0,1-1.5,0V3.5a.5.5,0,0,0-.5-.5H8.25A.25.25,0,0,1,8,2.75V1A1,1,0,0,0,6,1V5.75a.75.75,0,0,1-1.5,0V3.5A.5.5,0,0,0,4,3H2.5a2,2,0,0,0-2,2V22a2,2,0,0,0,2,2h19a2,2,0,0,0,2-2V5A2,2,0,0,0,21.5,3Zm0,18.5a.5.5,0,0,1-.5.5H3a.5.5,0,0,1-.5-.5V9.5A.5.5,0,0,1,3,9H21a.5.5,0,0,1,.5.5Z" fill="currentColor"></path></g></svg>
85
85
  <strong>18 octubre 2022</strong>
86
86
  </p>
87
- <h3 id="titulo-card-1" class="c-h3">Título de noticia</h3>
87
+ <h3 id="titulo-card-{{ id }}" class="c-h3">Título de noticia</h3>
88
88
  <div class="prose max-w-none mb-base">
89
89
  <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Sit suscipit mollitia non deleniti illum iure pariatur vel eligendi praesentium in. Velit amet distinctio minima libero dolorem tempora non aliquid? Corporis.</p>
90
90
  </div>
91
- {{ verDetalleButton | safe }}
92
- {% endset %}
91
+ {{ verDetalleButton(id) | safe }}
92
+ {% endmacro %}
93
93
 
94
94
 
95
95
 
96
96
  {% set examples = [
97
97
  {
98
- "name": "default",
98
+ "name": "por defecto",
99
99
  "data": {
100
100
  "classes": "lg:w-1/3",
101
101
  "containerClasses": "p-base border border-neutral-base rounded",
@@ -103,27 +103,27 @@
103
103
  }
104
104
  },
105
105
  {
106
- "name": "with icon",
106
+ "name": "con icono",
107
107
  "data": {
108
108
  "classes": "lg:w-1/3",
109
109
  "containerClasses": "p-base border border-neutral-base rounded",
110
- "caller": withIconContent | indent(4)
110
+ "caller": withIconContent("1").val | indent(4)
111
111
  }
112
112
  },
113
113
  {
114
- "name": "simple sidebar",
114
+ "name": "barra lateral simple",
115
115
  "data": {
116
116
  "classes": "lg:w-1/3",
117
117
  "containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
118
- "caller": withButton | indent(4)
118
+ "caller": withButton("2").val | indent(4)
119
119
  }
120
120
  },
121
121
  {
122
- "name": "with super",
122
+ "name": "con super",
123
123
  "data": {
124
124
  "classes": "lg:w-1/3",
125
125
  "containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
126
- "caller": withButton | indent(4),
126
+ "caller": withButton("3").val | indent(4),
127
127
  "super": {
128
128
  "backgroundFullColor": "transparent",
129
129
  "backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
@@ -136,11 +136,11 @@
136
136
  }
137
137
  },
138
138
  {
139
- "name": "with sub",
139
+ "name": "con sub",
140
140
  "data": {
141
141
  "classes": "lg:w-1/3",
142
142
  "containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
143
- "caller": withButton | indent(4),
143
+ "caller": withButton("4").val | indent(4),
144
144
  "sub": {
145
145
  "backgroundFullColor": "transparent",
146
146
  "backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
@@ -153,12 +153,12 @@
153
153
  }
154
154
  },
155
155
  {
156
- "name": "with img left in desktop",
157
- "description": "In mobile the img is in super area.",
156
+ "name": "con imagen a la izquierda en escritorio",
157
+ "description": "En móvil la imagen aparece en el área super.",
158
158
  "data": {
159
159
  "classes": "lg:w-2/3",
160
160
  "containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
161
- "caller": withButton | indent(4),
161
+ "caller": withButton("5").val | indent(4),
162
162
  "super": {
163
163
  "backgroundFullColor": "transparent",
164
164
  "backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
@@ -180,12 +180,12 @@
180
180
  }
181
181
  },
182
182
  {
183
- "name": "with img right in desktop",
184
- "description": "In mobile the img is in super area.",
183
+ "name": "con imagen a la derecha en escritorio",
184
+ "description": "En móvil la imagen aparece en el área super.",
185
185
  "data": {
186
186
  "classes": "lg:w-2/3",
187
187
  "containerClasses": "p-base bg-neutral-lighter border-t-8 border-neutral-dark",
188
- "caller": withButton | indent(4),
188
+ "caller": withButton("6").val | indent(4),
189
189
  "super": {
190
190
  "backgroundFullColor": "transparent",
191
191
  "backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
@@ -207,7 +207,7 @@
207
207
  }
208
208
  },
209
209
  {
210
- "name": "home block without padding",
210
+ "name": "Bloque de página de inicio sin padding",
211
211
  "data": {
212
212
  "classes": "lg:w-1/2",
213
213
  "containerClasses": "py-lg border-t-8 border-neutral-dark",
@@ -215,7 +215,7 @@
215
215
  }
216
216
  },
217
217
  {
218
- "name": "home block with buttons",
218
+ "name": "Bloque de página de inicio con botones",
219
219
  "data": {
220
220
  "containerClasses": "p-lg bg-neutral-lighter border-t-8 border-neutral-dark",
221
221
  "caller": areaPersonalContent | indent(4),
@@ -240,12 +240,12 @@
240
240
  }
241
241
  },
242
242
  {
243
- "name": "items in list",
243
+ "name": "items en lista",
244
244
  "description": "Image with fixed dimensions in desktop, text flexible.",
245
245
  "data": {
246
246
  "classes": "lg:w-3/4",
247
247
  "containerClasses": "p-lg bg-neutral-lighter",
248
- "caller": postContent | indent(4),
248
+ "caller": postContent("7").val | indent(4),
249
249
  "super": {
250
250
  "backgroundFullColor": "transparent",
251
251
  "backgroundFullUrl": "https://dummyimage.com/320x240/92949b/fff.jpg&text=Imagen",
@@ -267,11 +267,11 @@
267
267
  }
268
268
  },
269
269
  {
270
- "name": "home mini block with icon",
270
+ "name": "bloque mini de página de inicio con icono",
271
271
  "data": {
272
272
  "classes": "lg:w-1/4",
273
273
  "containerClasses": "p-base bg-neutral-lighter",
274
- "caller": withIconContent | indent(4)
274
+ "caller": withIconContent("8").val | indent(4)
275
275
  }
276
276
  }
277
277
  ] %}