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.
- package/docs/_macro.example-render.njk +1 -1
- package/docs/index.html +8 -0
- package/docs/pagina-accesibilidad.html +6 -0
- package/docs/pagina-mapa-web.html +6 -0
- package/docs/plantilla-con-header-advanced.html +7 -0
- package/docs/plantilla-editar-con-cabecera-fija-y-sidebar-sticky.html +8 -1
- package/docs/plantilla-editar-con-cabecera-fija.html +7 -0
- package/docs/plantilla-logueado-con-cabecera-fija-headroom.html +7 -0
- package/docs/plantilla-logueado-con-cabecera-fija.html +7 -0
- package/docs/plantilla-logueado-con-selector-de-app-y-sidebar.html +8 -1
- package/docs/plantilla-logueado-con-selector-de-app-y-subheader.html +7 -0
- package/docs/plantilla-logueado-con-selector-de-app.html +7 -0
- package/docs/plantilla-logueado-con-titulo-de-app.html +7 -0
- package/docs/plantilla-sin-loguear.html +7 -0
- package/package.json +1 -1
- package/src/templates/components/accordion/_examples.accordion.njk +108 -104
- package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
- package/src/templates/components/alert/_examples.alert.njk +10 -6
- package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
- package/src/templates/components/button/_examples.button.njk +71 -71
- package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
- package/src/templates/components/card/_examples.card.njk +43 -43
- package/src/templates/components/character-count/_examples.character-count.njk +35 -33
- package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
- package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
- package/src/templates/components/date-input/_examples.date-input.njk +14 -14
- package/src/templates/components/description-list/_examples.description-list.njk +45 -44
- package/src/templates/components/details/_examples.details.njk +17 -16
- package/src/templates/components/dialog/_examples.dialog.njk +5 -6
- package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
- package/src/templates/components/error-message/_examples.error-message.njk +8 -2
- package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
- package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
- package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
- package/src/templates/components/footer/_examples.footer.njk +24 -24
- package/src/templates/components/header/_examples.header.njk +12 -12
- package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
- package/src/templates/components/hint/_examples.hint.njk +4 -4
- package/src/templates/components/input/_examples.input.njk +66 -64
- package/src/templates/components/input-group/_examples.input-group.njk +15 -17
- package/src/templates/components/item/_examples.item.njk +21 -20
- package/src/templates/components/label/_examples.label.njk +11 -9
- package/src/templates/components/links-list/_examples.links-list.njk +34 -34
- package/src/templates/components/listbox/_examples.listbox.njk +146 -146
- package/src/templates/components/media-object/_examples.media-object.njk +7 -7
- package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
- package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
- package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
- package/src/templates/components/menubar/_examples.menubar.njk +42 -42
- package/src/templates/components/modal/_examples.modal.njk +21 -15
- package/src/templates/components/modal/_template.modal.njk +5 -5
- package/src/templates/components/nav/_examples.nav.njk +66 -66
- package/src/templates/components/notification/_examples.notification.njk +14 -13
- package/src/templates/components/pagination/_examples.pagination.njk +7 -6
- package/src/templates/components/pill/_examples.pill.njk +29 -29
- package/src/templates/components/radios/_examples.radios.njk +153 -142
- package/src/templates/components/searchbar/_examples.searchbar.njk +11 -11
- package/src/templates/components/select/_examples.select.njk +63 -63
- package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
- package/src/templates/components/spinner/_examples.spinner.njk +11 -11
- package/src/templates/components/status/_examples.status.njk +4 -4
- package/src/templates/components/status-item/_examples.status-item.njk +21 -21
- package/src/templates/components/table/_examples.table.njk +58 -56
- package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
- package/src/templates/components/tabs/_examples.tabs.njk +30 -29
- package/src/templates/components/textarea/_examples.textarea.njk +28 -27
- package/src/templates/components/toggle/_examples.toggle.njk +10 -11
- package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
- package/src/templates/components/tree/_examples.tree.njk +58 -57
- package/src/templates/includes/_abrir-notificaciones-extra.njk +3 -0
- 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": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
|
-
"text": "
|
|
6
|
+
"text": "Por defecto"
|
|
7
7
|
}
|
|
8
8
|
},
|
|
9
9
|
{
|
|
10
|
-
"name": "
|
|
11
|
-
"description": "
|
|
10
|
+
"name": "Por defecto con el estado cargando",
|
|
11
|
+
"description": "Simula activar el estado cargando",
|
|
12
12
|
"data": {
|
|
13
13
|
"name": "loading",
|
|
14
|
-
"text": "
|
|
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": "
|
|
24
|
-
"description": "
|
|
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": "
|
|
27
|
-
"text": "
|
|
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": "
|
|
37
|
-
"description":
|
|
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": "
|
|
40
|
+
"text": "Activo",
|
|
41
41
|
"classes": "ds-active"
|
|
42
42
|
}
|
|
43
43
|
},
|
|
44
44
|
{
|
|
45
|
-
"name": "
|
|
46
|
-
"description":
|
|
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": "
|
|
49
|
+
"text": "Hover",
|
|
50
50
|
"classes": "ds-hover"
|
|
51
51
|
}
|
|
52
52
|
},
|
|
53
53
|
{
|
|
54
|
-
"name": "
|
|
55
|
-
"description":
|
|
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": "
|
|
58
|
+
"text": "Focus",
|
|
59
59
|
"classes": "ds-focus"
|
|
60
60
|
}
|
|
61
61
|
},
|
|
62
62
|
{
|
|
63
|
-
"name": "
|
|
63
|
+
"name": "por defecto deshabilitado",
|
|
64
64
|
"data": {
|
|
65
|
-
"text": "
|
|
65
|
+
"text": "Deshabilitado",
|
|
66
66
|
"disabled": true
|
|
67
67
|
}
|
|
68
68
|
},
|
|
69
69
|
{
|
|
70
|
-
"name": "
|
|
70
|
+
"name": "primario",
|
|
71
71
|
"data": {
|
|
72
|
-
"text": "
|
|
72
|
+
"text": "Primario",
|
|
73
73
|
"classes": "c-button-loader--primary"
|
|
74
74
|
}
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
|
-
"name": "
|
|
78
|
-
"description":
|
|
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": "
|
|
81
|
+
"text": "Activo",
|
|
82
82
|
"classes": "c-button-loader--primary ds-active"
|
|
83
83
|
}
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
|
-
"name": "
|
|
87
|
-
"description":
|
|
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": "
|
|
96
|
-
"description":
|
|
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": "
|
|
104
|
+
"name": "primario deshabilitado",
|
|
105
105
|
"data": {
|
|
106
|
-
"text": "
|
|
106
|
+
"text": "Deshabilitado",
|
|
107
107
|
"disabled": true,
|
|
108
108
|
"classes": "c-button-loader--primary"
|
|
109
109
|
}
|
|
110
110
|
},
|
|
111
111
|
{
|
|
112
|
-
"name": "
|
|
112
|
+
"name": "alerta",
|
|
113
113
|
"data": {
|
|
114
|
-
"text": "
|
|
114
|
+
"text": "Alerta",
|
|
115
115
|
"classes": "c-button-loader--alert"
|
|
116
116
|
}
|
|
117
117
|
},
|
|
118
118
|
{
|
|
119
|
-
"name": "
|
|
120
|
-
"description":
|
|
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": "
|
|
123
|
+
"text": "Activo",
|
|
124
124
|
"classes": "c-button-loader--alert ds-active"
|
|
125
125
|
}
|
|
126
126
|
},
|
|
127
127
|
{
|
|
128
|
-
"name": "
|
|
129
|
-
"description":
|
|
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": "
|
|
138
|
-
"description":
|
|
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": "
|
|
146
|
+
"name": "alerta deshabilitado",
|
|
147
147
|
"data": {
|
|
148
|
-
"text": "
|
|
148
|
+
"text": "Deshabilitado",
|
|
149
149
|
"disabled": true,
|
|
150
150
|
"classes": "c-button-loader--alert"
|
|
151
151
|
}
|
|
152
152
|
},
|
|
153
153
|
{
|
|
154
|
-
"name": "
|
|
154
|
+
"name": "transparente",
|
|
155
155
|
"data": {
|
|
156
|
-
"text": "
|
|
156
|
+
"text": "Transparente",
|
|
157
157
|
"classes": "c-button-loader--transparent"
|
|
158
158
|
}
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
|
-
"name": "
|
|
162
|
-
"description":
|
|
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": "
|
|
165
|
+
"text": "Activo",
|
|
166
166
|
"classes": "c-button-loader--transparent ds-active"
|
|
167
167
|
}
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
|
-
"name": "
|
|
171
|
-
"description":
|
|
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": "
|
|
180
|
-
"description":
|
|
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": "
|
|
188
|
+
"name": "transparente deshabilitado",
|
|
189
189
|
"data": {
|
|
190
|
-
"text": "
|
|
190
|
+
"text": "Deshabilitado",
|
|
191
191
|
"disabled": true,
|
|
192
192
|
"classes": "c-button-loader--transparent"
|
|
193
193
|
}
|
|
194
194
|
},
|
|
195
195
|
{
|
|
196
|
-
"name": "
|
|
196
|
+
"name": "peque",
|
|
197
197
|
"data": {
|
|
198
|
-
"text": "
|
|
198
|
+
"text": "Peque",
|
|
199
199
|
"classes": "c-button-loader--sm"
|
|
200
200
|
}
|
|
201
201
|
},
|
|
202
202
|
{
|
|
203
|
-
"name": "
|
|
203
|
+
"name": "enlace",
|
|
204
204
|
"data": {
|
|
205
|
-
"text": "
|
|
205
|
+
"text": "Botón enlace",
|
|
206
206
|
"href": "/"
|
|
207
207
|
}
|
|
208
208
|
},
|
|
209
209
|
{
|
|
210
|
-
"name": "
|
|
210
|
+
"name": "botón enlace con target blank",
|
|
211
211
|
"data": {
|
|
212
|
-
"text": "
|
|
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": "
|
|
218
|
+
"name": "enlace deshabilitado",
|
|
219
219
|
"data": {
|
|
220
|
-
"text": "
|
|
220
|
+
"text": "Botón enlace deshabilitado",
|
|
221
221
|
"href": "/",
|
|
222
222
|
"disabled": true
|
|
223
223
|
}
|
|
224
224
|
},
|
|
225
225
|
{
|
|
226
|
-
"name": "
|
|
226
|
+
"name": "botón con icono a la derecha",
|
|
227
227
|
"data": {
|
|
228
|
-
"html": '
|
|
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": "
|
|
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>
|
|
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": "
|
|
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
|
|
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": "
|
|
260
|
+
"text": "Enviar"
|
|
261
261
|
}
|
|
262
262
|
},
|
|
263
263
|
{
|
|
264
|
-
"name": "input
|
|
264
|
+
"name": "input deshabilitado",
|
|
265
265
|
"data": {
|
|
266
266
|
"element": "input",
|
|
267
|
-
"text": "
|
|
267
|
+
"text": "Enviar",
|
|
268
268
|
"disabled": true
|
|
269
269
|
}
|
|
270
270
|
},
|
|
271
271
|
{
|
|
272
|
-
"name": "
|
|
272
|
+
"name": "prevenir doble click",
|
|
273
273
|
"data": {
|
|
274
|
-
"text": "
|
|
274
|
+
"text": "Enviar",
|
|
275
275
|
"preventDoubleClick": true
|
|
276
276
|
}
|
|
277
277
|
}
|
|
@@ -20,46 +20,46 @@
|
|
|
20
20
|
</ul>
|
|
21
21
|
{% endset %}
|
|
22
22
|
|
|
23
|
-
{%
|
|
23
|
+
{% macro verButton(id='id') %}
|
|
24
24
|
{{ componentButton({
|
|
25
|
-
"html":
|
|
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-
|
|
30
|
-
"aria-labelledby": "boton-card-
|
|
29
|
+
"id": "boton-card-" + id,
|
|
30
|
+
"aria-labelledby": "boton-card-" + id + " titulo-card-" + id
|
|
31
31
|
}
|
|
32
32
|
}) }}
|
|
33
|
-
{%
|
|
33
|
+
{% endmacro %}
|
|
34
34
|
|
|
35
|
-
{%
|
|
35
|
+
{% macro verDetalleButton(id='id') %}
|
|
36
36
|
{{ componentButton({
|
|
37
|
-
"html":
|
|
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-
|
|
42
|
-
"aria-labelledby": "boton-card-
|
|
41
|
+
"id": "boton-card-" + id,
|
|
42
|
+
"aria-labelledby": "boton-card-" + id + " titulo-card-" + id
|
|
43
43
|
}
|
|
44
44
|
}) }}
|
|
45
|
-
{%
|
|
45
|
+
{% endmacro %}
|
|
46
46
|
|
|
47
|
-
{%
|
|
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-
|
|
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
|
-
{%
|
|
53
|
+
{{ verButton(id) | safe }}
|
|
54
|
+
{% endmacro %}
|
|
55
55
|
|
|
56
|
-
{%
|
|
57
|
-
<h3 id="titulo-card-
|
|
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
|
-
{%
|
|
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
|
-
{%
|
|
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-
|
|
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
|
-
{%
|
|
91
|
+
{{ verDetalleButton(id) | safe }}
|
|
92
|
+
{% endmacro %}
|
|
93
93
|
|
|
94
94
|
|
|
95
95
|
|
|
96
96
|
{% set examples = [
|
|
97
97
|
{
|
|
98
|
-
"name": "
|
|
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": "
|
|
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
|
|
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": "
|
|
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": "
|
|
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": "
|
|
157
|
-
"description": "
|
|
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": "
|
|
184
|
-
"description": "
|
|
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": "
|
|
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": "
|
|
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
|
|
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": "
|
|
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
|
] %}
|