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,459 +1,458 @@
1
1
  {% from "components/input/_macro.input.njk" import componentInput %}
2
2
 
3
- {% set telefonoContent %}
3
+ {% macro telefonoContent(id='id') %}
4
4
  {{ componentInput({
5
5
  "label": {
6
6
  "text": "Número de teléfono"
7
7
  },
8
- "id": "telefono-a",
9
- "name": "telefono-name"
8
+ "id": "telefono-" + id,
9
+ "name": "telefono-name-" + id
10
10
  }) }}
11
- {% endset %}
11
+ {% endmacro %}
12
12
 
13
- {% set mobileContent %}
13
+ {% macro mobileContent(id='id') %}
14
14
  {{ componentInput({
15
15
  "label": {
16
16
  "text": "Número de teléfono móvil"
17
17
  },
18
- "id": "mobile-a",
19
- "name": "mobile-name"
18
+ "id": "mobile-" + id,
19
+ "name": "mobile-name-" + id
20
20
  }) }}
21
- {% endset %}
21
+ {% endmacro %}
22
22
 
23
- {% set mobileErrorContent %}
23
+ {% macro mobileErrorContent(id='id') %}
24
24
  {{ componentInput({
25
25
  "label": {
26
26
  "text": "Número de teléfono móvil"
27
27
  },
28
- "id": "input-with-error-message-a",
29
- "name": "test-name",
28
+ "id": "input-with-error-message-" + id,
29
+ "name": "test-name-" + id,
30
30
  "errorMessage": {
31
31
  "text": "Error: Este campo no puede estar vacío"
32
32
  }
33
33
  }) }}
34
- {% endset %}
35
-
36
-
34
+ {% endmacro %}
37
35
 
38
36
 
39
37
 
40
38
  {% set exampleComponent = "checkboxes" %}
41
39
  {% set examples = [{
42
- "name": "default",
40
+ "name": "por defecto",
43
41
  "data": {
44
42
  "idPrefix": "default",
45
43
  "name": "default",
46
44
  "fieldset": {
47
45
  "legend": {
48
- "text": "What is your nationality?"
46
+ "text": "¿Cómo prefieres que te contactemos?"
49
47
  }
50
48
  },
51
49
  "hint": {
52
- "text": "If you have dual nationality, select all options that are relevant to you."
50
+ "text": "Si lo deseas puedes seleccionar varios elementos."
53
51
  },
54
52
  "items": [
55
53
  {
56
- "value": "british",
57
- "text": "British"
54
+ "value": "correo-electronico",
55
+ "text": "Correo electrónico"
58
56
  },
59
57
  {
60
- "value": "irish",
61
- "text": "Irish"
58
+ "value": "correo-postal",
59
+ "text": "Correo postal"
62
60
  },
63
61
  {
64
- "value": "other",
65
- "text": "Citizen of another country"
62
+ "value": "telefono",
63
+ "text": "Teléfono"
66
64
  }
67
65
  ]
68
66
  }
69
67
  },
70
68
  {
71
- "name": "with id and name",
69
+ "name": "Con id y name",
72
70
  "data": {
73
71
  "idPrefix": "with-id-and-name",
74
72
  "name": "with-id-and-name",
75
73
  "fieldset": {
76
74
  "legend": {
77
- "text": "What is your nationality?"
75
+ "text": "¿Cómo prefieres que te contactemos?"
78
76
  }
79
77
  },
80
78
  "hint": {
81
- "text": "If you have dual nationality, select all options that are relevant to you."
79
+ "text": "Si lo deseas puedes seleccionar varios elementos."
82
80
  },
83
81
  "items": [
84
82
  {
85
- "name": "british",
86
- "id": "item_british",
87
- "value": "yes",
88
- "text": "British"
83
+ "name": "correo-electronico",
84
+ "id": "correo-electronico-id",
85
+ "value": "correo-electronico",
86
+ "text": "Correo electrónico"
89
87
  },
90
88
  {
91
- "name": "irish",
92
- "id": "item_irish",
93
- "value": "irish",
94
- "text": "Irish"
89
+ "name": "correo-postal",
90
+ "id": "correo-postal-id",
91
+ "value": "correo-postal",
92
+ "text": "Correo postal"
95
93
  }
96
94
  ]
97
95
  }
98
96
  },
99
97
  {
100
- "name": "with hints on items",
98
+ "name": "con pistas en los items",
101
99
  "data": {
102
100
  "idPrefix": "hints-on-items",
103
101
  "fieldset": {
104
102
  "legend": {
105
- "text": "How do you want to sign in?",
103
+ "text": "¿Cómo prefieres que te contactemos?",
106
104
  "isPageHeading": true
107
105
  }
108
106
  },
109
107
  "items": [
110
108
  {
111
- "name": "gateway",
112
- "id": "government-gateway-a",
113
- "value": "desy-gateway",
114
- "text": "Sign in with Government Gateway",
109
+ "name": "correo-electronico",
110
+ "id": "correo-electronico-a",
111
+ "value": "desy-correo-electronico",
112
+ "text": "Correo electrónico",
115
113
  "hint": {
116
- "text": "You’ll have a user ID if you’ve registered for Self Assessment or filed a tax return online before."
114
+ "text": "Asegúrate de que el correo no llega a la bandeja de spam."
117
115
  }
118
116
  },
119
117
  {
120
- "name": "verify",
121
- "id": "desy-verify-a",
122
- "value": "desy-verify-a",
123
- "text": "Sign in with DESY Verify",
118
+ "name": "correo-postal",
119
+ "id": "desy-correo-postal-a",
120
+ "value": "desy-correo-postal-a",
121
+ "text": "Correo postal",
124
122
  "hint": {
125
- "text": "You’ll have an account if you’ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity."
123
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
126
124
  }
127
125
  }
128
126
  ]
129
127
  }
130
128
  },
131
129
  {
132
- "name": "with hasDividers",
130
+ "name": "Con líneas divisorias",
133
131
  "data": {
134
132
  "idPrefix": "has-dividers",
135
133
  "fieldset": {
136
134
  "legend": {
137
- "text": "How do you want to sign in?"
135
+ "text": "¿Cómo prefieres que te contactemos?"
138
136
  }
139
137
  },
140
138
  "hint": {
141
- "text": "Please, choose the right answer."
139
+ "text": "Si lo deseas puedes seleccionar varios elementos."
142
140
  },
143
141
  "hasDividers": true,
144
142
  "items": [
145
143
  {
146
- "name": "gateway",
147
- "id": "government-gateway-b",
148
- "value": "desy-gateway",
149
- "text": "Sign in with Government Gateway"
144
+ "name": "correo-electronico",
145
+ "id": "correo-electronico-b",
146
+ "value": "desy-correo-electronico",
147
+ "text": "Correo electrónico"
150
148
  },
151
149
  {
152
- "name": "verify",
153
- "id": "desy-verify-b",
154
- "value": "desy-verify-b",
155
- "text": "Sign in with DESY Verify",
150
+ "name": "correo-postal",
151
+ "id": "desy-correo-postal-b",
152
+ "value": "desy-correo-postal-b",
153
+ "text": "Correo postal",
156
154
  "hint": {
157
- "text": "You’ll have an account if you’ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity."
155
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
158
156
  }
159
157
  },
160
158
  {
161
- "name": "phone",
162
- "id": "phone-b",
163
- "value": "phone",
164
- "text": "Verify with Phone",
159
+ "name": "telefono",
160
+ "id": "telefono-b",
161
+ "value": "telefono",
162
+ "text": "Teléfono",
165
163
  "checked": true,
166
164
  "conditional": {
167
- "html": telefonoContent
165
+ "html": telefonoContent('1').val
168
166
  }
169
167
  },
170
168
  {
171
- "name": "verify",
172
- "id": "desy-verify-c",
173
- "value": "desy-verify-c",
174
- "text": "Sign in with DESY Verify",
169
+ "name": "correo-postal",
170
+ "id": "desy-correo-postal-c",
171
+ "value": "desy-correo-postal-c",
172
+ "text": "Correo postal",
175
173
  "hint": {
176
- "text": "You’ll have an account if you’ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity."
174
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
177
175
  }
178
176
  }
179
177
  ]
180
178
  }
181
179
  },
182
180
  {
183
- "name": "with classes applied on items",
181
+ "name": "Con clases de CSS aplicadas",
182
+ "description": 'Los parámetros <code>classes</code> nos permiten aplicar clases de Tailwind CSS a nuestro componente.',
184
183
  "data": {
185
184
  "idPrefix": "classes",
186
185
  "fieldset": {
187
186
  "legend": {
188
- "text": "How do you want to sign in?"
187
+ "text": "¿Cómo prefieres que te contactemos?"
189
188
  }
190
189
  },
191
190
  "items": [
192
191
  {
193
- "name": "gateway",
194
- "id": "government-gateway-c",
195
- "value": "desy-gateway",
196
- "text": "Sign in with Government Gateway",
192
+ "name": "correo-electronico",
193
+ "id": "correo-electronico-c",
194
+ "value": "desy-correo-electronico",
195
+ "text": "Correo electrónico",
197
196
  "hint": {
198
- "text": "You’ll have a user ID if you’ve registered for Self Assessment or filed a tax return online before."
197
+ "text": "Asegúrate de que el correo no llega a la bandeja de spam."
199
198
  },
200
- "classes": "bg-warning-light"
199
+ "classes": "bg-primary-light"
201
200
  },
202
201
  {
203
- "name": "verify",
204
- "id": "desy-verify-d",
205
- "value": "desy-verify-d",
206
- "text": "Sign in with DESY Verify",
202
+ "name": "correo-postal",
203
+ "id": "desy-correo-postal-d",
204
+ "value": "desy-correo-postal-d",
205
+ "text": "Correo postal",
207
206
  "hint": {
208
- "text": "You’ll have an account if you’ve already proved your identity with either Barclays, CitizenSafe, Digidentity, Experian, Post Office, Royal Mail or SecureIdentity."
207
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
209
208
  },
210
- "classes": "bg-neutral-light"
209
+ "classes": "bg-neutral-lighter"
211
210
  }
212
211
  ]
213
212
  }
214
213
  },
215
214
  {
216
- "name": "with disabled item",
215
+ "name": "con item deshabilitado",
217
216
  "data": {
218
217
  "idPrefix": "disabled-item",
219
218
  "name": "colours",
220
219
  "items": [
221
220
  {
222
- "value": "red",
223
- "text": "Red"
221
+ "value": "correo-electronico",
222
+ "text": "Correo electrónico"
224
223
  },
225
224
  {
226
- "value": "green",
227
- "text": "Green",
225
+ "value": "correo-postal",
226
+ "text": "Correo postal",
228
227
  "disabled": true,
229
228
  "checked": true
230
229
  },
231
230
  {
232
- "value": "blue",
233
- "text": "Blue",
231
+ "value": "telefono",
232
+ "text": "Teléfono",
234
233
  "disabled": true
235
234
  }
236
235
  ]
237
236
  }
238
237
  },
239
238
  {
240
- "name": "with legend as a page heading",
241
- "description": "use optional headingLevel param to set if h1, h2 h3...",
239
+ "name": "con un legend como encabezado",
240
+ "description": 'Usa el parámetro <code>"heading"</code> para añadir un encabezado asociado al componente. Usa el parámetro <code>"headingLevel"</code> para establecer el nivel del encabezado. Por ejemplo: <code>"headingLevel": 3</code> creará un encabezado <code>&lt;h3&gt;</code>.',
242
241
  "data": {
243
242
  "idPrefix": "legend-as-page-heading",
244
243
  "name": "legend-as-page-heading",
245
244
  "fieldset": {
246
245
  "legend": {
247
- "text": "Which types of waste do you transport regularly?",
246
+ "text": "¿Cómo prefieres que te contactemos?",
248
247
  "classes": "c-h2",
249
248
  "isPageHeading": true
250
249
  },
251
250
  "headingLevel": 2
252
251
  },
253
252
  "hint": {
254
- "text": "Select all that apply"
253
+ "text": "Si lo deseas puedes seleccionar varios elementos."
255
254
  },
256
255
  "items": [
257
256
  {
258
- "value": "animal",
259
- "text": "Waste from animal carcasses"
257
+ "value": "correo-electronico",
258
+ "text": "Correo electrónico"
260
259
  },
261
260
  {
262
- "value": "mines",
263
- "text": "Waste from mines or quarries"
261
+ "value": "correp-postal",
262
+ "text": "Correo postal"
264
263
  },
265
264
  {
266
- "value": "farm",
267
- "text": "Farm or agricultural waste"
265
+ "value": "telefono",
266
+ "text": "Teléfono"
268
267
  }
269
268
  ]
270
269
  }
271
270
  },
272
271
  {
273
- "name": "with a medium legend",
272
+ "name": "con un legend del tamaño de un encabezado h2",
274
273
  "data": {
275
274
  "idPrefix": "medium-legend",
276
275
  "name": "medium-legend",
277
276
  "fieldset": {
278
277
  "legend": {
279
- "text": "Which types of waste do you transport regularly?",
278
+ "text": "¿Cómo prefieres que te contactemos?",
280
279
  "classes": "c-h2"
281
280
  }
282
281
  },
283
282
  "hint": {
284
- "text": "Select all that apply"
283
+ "text": "Si lo deseas puedes seleccionar varios elementos."
285
284
  },
286
285
  "errorMessage": {
287
- "text": "Error: Select which types of waste you transport regularly"
286
+ "text": "Error: Tienes que seleccionar al menos una opción"
288
287
  },
289
288
  "items": [
290
289
  {
291
- "value": "animal",
292
- "text": "Waste from animal carcasses"
290
+ "value": "correo-electronico",
291
+ "text": "Correo electrónico"
293
292
  },
294
293
  {
295
- "value": "mines",
296
- "text": "Waste from mines or quarries"
294
+ "value": "correp-postal",
295
+ "text": "Correo postal"
297
296
  },
298
297
  {
299
- "value": "farm",
300
- "text": "Farm or agricultural waste"
298
+ "value": "telefono",
299
+ "text": "Teléfono"
301
300
  }
302
301
  ]
303
302
  }
304
303
  },
305
304
  {
306
- "name": "without fieldset",
305
+ "name": "sin fieldset",
307
306
  "data": {
308
307
  "idPrefix": "without-fieldset",
309
308
  "name": "without-fieldset",
310
309
  "items": [
311
310
  {
312
- "value": "red",
313
- "text": "Red"
311
+ "value": "correo-electronico",
312
+ "text": "Correo electrónico"
314
313
  },
315
314
  {
316
- "value": "green",
317
- "text": "Green"
315
+ "value": "correp-postal",
316
+ "text": "Correo postal"
318
317
  },
319
318
  {
320
- "value": "blue",
321
- "text": "Blue"
319
+ "value": "telefono",
320
+ "text": "Teléfono"
322
321
  }
323
322
  ]
324
323
  }
325
324
  },
326
325
  {
327
- "name": "with single option set 'aria-describedby' on input",
326
+ "name": "con una sóla opción usando 'aria-describedby' en el input",
328
327
  "data": {
329
328
  "idPrefix": "describedby",
330
329
  "name": "describedby",
331
330
  "errorMessage": {
332
- "text": "Error: Please accept the terms and conditions"
331
+ "text": "Error: Por favor, debes aceptar los términos y condiciones"
333
332
  },
334
333
  "items": [
335
334
  {
336
- "value": "yes",
337
- "text": "I agree to the terms and conditions"
335
+ "value": "acepto",
336
+ "html": 'Acepto los <a href="#" target="_blank" class="c-link" title="Se abre en ventana nueva del navegador">términos y condiciones</a>'
338
337
  }
339
338
  ]
340
339
  }
341
340
  },
342
341
  {
343
- "name": "with single option (and hint) set 'aria-describedby' on input",
342
+ "name": "con una sóla opción (y pista) usando 'aria-describedby' en el input",
344
343
  "data": {
345
344
  "name": "t-and-c-with-hint",
346
345
  "errorMessage": {
347
- "text": "Error: Please accept the terms and conditions"
346
+ "text": "Error: Por favor, debes aceptar los términos y condiciones"
348
347
  },
349
348
  "items": [
350
349
  {
351
- "value": "yes",
352
- "text": "I agree to the terms and conditions",
350
+ "value": "acepto",
351
+ "html": 'Acepto los <a href="#" target="_blank" class="c-link" title="Se abre en ventana nueva del navegador">términos y condiciones</a>',
353
352
  "hint": {
354
- "text": "Go on, you know you want to!"
353
+ "text": "Puedes visualizarlos en ventana nueva del navegador"
355
354
  }
356
355
  }
357
356
  ]
358
357
  }
359
358
  },
360
359
  {
361
- "name": "with fieldset and error message",
360
+ "name": "con fieldset y mensaje de error",
362
361
  "data": {
363
362
  "name": "colours",
364
363
  "errorMessage": {
365
- "text": "Error: Please accept the terms and conditions"
364
+ "text": "Error: Tienes que seleccionar al menos una opción"
366
365
  },
367
366
  "fieldset": {
368
367
  "legend": {
369
- "text": "What is your nationality?"
368
+ "text": "¿Cómo prefieres que te contactemos?"
370
369
  }
371
370
  },
372
371
  "items": [
373
372
  {
374
- "value": "british",
375
- "text": "British"
373
+ "value": "correo-electronico",
374
+ "text": "Correo electrónico"
376
375
  },
377
376
  {
378
- "value": "irish",
379
- "text": "Irish"
377
+ "value": "correo-postal",
378
+ "text": "Correo postal"
380
379
  },
381
380
  {
382
- "value": "other",
383
- "text": "Citizen of another country"
381
+ "value": "telefono",
382
+ "text": "Teléfono"
384
383
  }
385
384
  ]
386
385
  }
387
386
  },
388
387
  {
389
- "name": "with error message",
388
+ "name": "con mensaje de error",
390
389
  "data": {
391
390
  "idPrefix": "error-message",
392
391
  "name": "error-message",
393
392
  "errorMessage": {
394
- "text": "Error: Please select an option"
393
+ "text": "Error: Tienes que seleccionar al menos una opción"
395
394
  },
396
395
  "fieldset": {
397
396
  "legend": {
398
- "text": "Which types of waste do you transport regularly?"
397
+ "text": "¿Cómo prefieres que te contactemos?"
399
398
  }
400
399
  },
401
400
  "items": [
402
401
  {
403
- "value": "animal",
404
- "text": "Waste from animal carcasses"
402
+ "value": "correo-electronico",
403
+ "text": "Correo electrónico"
405
404
  },
406
405
  {
407
- "value": "mines",
408
- "text": "Waste from mines or quarries"
406
+ "value": "correp-postal",
407
+ "text": "Correo postal"
409
408
  },
410
409
  {
411
- "value": "farm",
412
- "text": "Farm or agricultural waste"
410
+ "value": "telefono",
411
+ "text": "Teléfono"
413
412
  }
414
413
  ]
415
414
  }
416
415
  },
417
416
  {
418
- "name": "with error message and hints on items",
417
+ "name": "con mensaje de error y pistas en los items",
419
418
  "data": {
420
419
  "idPrefix": "error-and-hints",
421
420
  "name": "error-and-hints",
422
421
  "errorMessage": {
423
- "text": "Error: Please select an option"
422
+ "text": "Error: Tienes que seleccionar al menos una opción"
424
423
  },
425
424
  "fieldset": {
426
425
  "legend": {
427
- "text": "Which types of waste do you transport regularly?"
426
+ "text": "¿Cómo prefieres que te contactemos?"
428
427
  }
429
428
  },
430
429
  "items": [
431
430
  {
432
- "value": "animal",
433
- "text": "Waste from animal carcasses",
431
+ "value": "correo-electronico",
432
+ "text": "Correo electrónico",
434
433
  "hint": {
435
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
434
+ "text": "Asegúrate de que nuestros correos no lleguen a la bandeja de spam."
436
435
  }
437
436
  },
438
437
  {
439
- "value": "mines",
440
- "text": "Waste from mines or quarries",
438
+ "value": "correo-postal",
439
+ "text": "Correo postal",
441
440
  "hint": {
442
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
441
+ "text": "Asegúrate de haber introducido correctamente tu dirección."
443
442
  }
444
443
  },
445
444
  {
446
- "value": "farm",
447
- "text": "Farm or agricultural waste",
445
+ "value": "telefono",
446
+ "text": "Teléfono",
448
447
  "hint": {
449
- "text": "Nullam id dolor id nibh ultricies vehicula ut id elit."
448
+ "text": "Sólo enviamos mensajes durante el día."
450
449
  }
451
450
  }
452
451
  ]
453
452
  }
454
453
  },
455
454
  {
456
- "name": "with very long option text",
455
+ "name": "con un texto de item muy largo",
457
456
  "data": {
458
457
  "idPrefix": "long-option",
459
458
  "name": "long-option",
@@ -485,79 +484,79 @@
485
484
  }
486
485
  },
487
486
  {
488
- "name": "with conditional items",
487
+ "name": "con items condicionales",
489
488
  "data": {
490
489
  "idPrefix": "with-conditional-items",
491
490
  "name": "with-conditional-items",
492
491
  "idPrefix": "how-contacted",
493
492
  "fieldset": {
494
493
  "legend": {
495
- "text": "How do you want to be contacted?"
494
+ "text": "¿Cómo quieres que te contactemos?"
496
495
  }
497
496
  },
498
497
  "items": [
499
498
  {
500
- "value": "email",
501
- "text": "Email",
499
+ "value": "correo-electronico",
500
+ "text": "Correo electrónico",
502
501
  "conditional": {
503
- "html": mobileContent
502
+ "html": mobileContent('1').val
504
503
  }
505
504
  },
506
505
  {
507
- "value": "phone",
508
- "text": "Phone",
506
+ "value": "telefono",
507
+ "text": "Teléfono",
509
508
  "conditional": {
510
- "html": telefonoContent
509
+ "html": telefonoContent('2').val
511
510
  }
512
511
  },
513
512
  {
514
- "value": "text",
515
- "text": "Text message",
513
+ "value": "mensaje-SMS",
514
+ "text": "Mensaje SMS",
516
515
  "conditional": {
517
- "html": mobileContent
516
+ "html": mobileContent('2').val
518
517
  }
519
518
  }
520
519
  ]
521
520
  }
522
521
  },
523
522
  {
524
- "name": "with conditional item checked",
523
+ "name": "con item condicional seleccionado",
525
524
  "data": {
526
525
  "idPrefix": "with-conditional-items-checked",
527
526
  "name": "with-conditional-items-checked",
528
527
  "fieldset": {
529
528
  "legend": {
530
- "text": "How do you want to be contacted?"
529
+ "text": "¿Cómo quieres que te contactemos?"
531
530
  }
532
531
  },
533
532
  "items": [
534
533
  {
535
- "value": "email",
536
- "text": "Email",
534
+ "value": "correo-electronico",
535
+ "text": "Correo electrónico",
537
536
  "conditional": {
538
- "html": mobileContent
537
+ "html": mobileContent('3').val
539
538
  }
540
539
  },
541
540
  {
542
- "value": "phone",
543
- "text": "Phone",
541
+ "value": "telefono",
542
+ "text": "Teléfono",
544
543
  "checked": true,
545
544
  "conditional": {
546
- "html": telefonoContent
545
+ "html": telefonoContent('3').val
547
546
  }
548
547
  },
549
548
  {
550
- "value": "text",
551
- "text": "Text message",
549
+ "value": "mensaje-SMS",
550
+ "text": "Mensaje SMS",
552
551
  "conditional": {
553
- "html": mobileContent
552
+ "html": mobileContent('4').val
554
553
  }
555
554
  }
556
555
  ]
557
556
  }
558
557
  },
559
558
  {
560
- "name": "with optional form-group classes showing group error",
559
+ "name": "con clases opcionales del form-group mostrando un error del grupo",
561
560
  "data": {
562
561
  "idPrefix": "optional-classes-showing-error",
563
562
  "name": "optional-classes-showing-error",
@@ -566,61 +565,61 @@
566
565
  },
567
566
  "fieldset": {
568
567
  "legend": {
569
- "text": "How do you want to be contacted?"
568
+ "text": "¿Cómo quieres que te contactemos?"
570
569
  }
571
570
  },
572
571
  "items": [
573
572
  {
574
- "value": "email",
575
- "text": "Email",
573
+ "value": "correo-electronico",
574
+ "text": "Correo electrónico",
576
575
  "conditional": {
577
- "html": mobileContent
576
+ "html": mobileContent('5').val
578
577
  }
579
578
  },
580
579
  {
581
- "value": "phone",
582
- "text": "Phone",
580
+ "value": "telefono",
581
+ "text": "Teléfono",
583
582
  "checked": true,
584
583
  "conditional": {
585
- "html": mobileErrorContent
584
+ "html": mobileErrorContent('1').val
586
585
  }
587
586
  },
588
587
  {
589
- "value": "text",
590
- "text": "Text message",
588
+ "value": "mensaje-SMS",
589
+ "text": "Mensaje SMS",
591
590
  "conditional": {
592
- "html": mobileContent
591
+ "html": mobileContent('6').val
593
592
  }
594
593
  }
595
594
  ]
596
595
  }
597
596
  },
598
597
  {
599
- "name": "small",
598
+ "name": "peque",
600
599
  "data": {
601
600
  "idPrefix": "small",
602
- "name": "small",
601
+ "name": "peque",
603
602
  "classes": "c-checkboxes--sm",
604
603
  "items": [
605
604
  {
606
- "value": "british",
607
- "text": "British",
605
+ "value": "correo-electronico",
606
+ "text": "Correo electrónico",
608
607
  "classes": "-mt-base",
609
608
  "label": {
610
609
  "classes": "text-sm -mt-1"
611
610
  }
612
611
  },
613
612
  {
614
- "value": "irish",
615
- "text": "Irish",
613
+ "value": "correo-postal",
614
+ "text": "Correo postal",
616
615
  "classes": "-mt-base",
617
616
  "label": {
618
617
  "classes": "text-sm -mt-1"
619
618
  }
620
619
  },
621
620
  {
622
- "value": "other",
623
- "text": "Citizen of another country",
621
+ "value": "telefono",
622
+ "text": "Teléfono",
624
623
  "classes": "-mt-base",
625
624
  "label": {
626
625
  "classes": "text-sm -mt-1"
@@ -630,8 +629,8 @@
630
629
  }
631
630
  },
632
631
  {
633
- "name": "indeterminate",
634
- "description": "isIndeterminate: true",
632
+ "name": "indeterminado",
633
+ "description": 'Usando el parámetro <code>"isIndeterminate": true</code> podemos crear un item del checkbox que tenga 3 estados: marcado, desmarcado o indeterminado. El estado indeterminado expresa que hay sólo algún item seleccionado pero no todos. Útil para selecciones múltiples.',
635
634
  "data": {
636
635
  "idPrefix": "indeterminate",
637
636
  "name": "indeterminate",
@@ -650,8 +649,8 @@
650
649
  }
651
650
  },
652
651
  {
653
- "name": "indeterminate cheched",
654
- "description": "isIndeterminate: true, indeterminateChecked: true",
652
+ "name": "indeterminado marcado",
653
+ "description": 'Usando los parámetros <code>"isIndeterminate": true</code> y <code>"indeterminateChecked": true</code> podemos marcar como estado indeterminado un item que sea de tipo indeterminado.',
655
654
  "data": {
656
655
  "idPrefix": "indeterminate-checked",
657
656
  "name": "indeterminate-checked",