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,59 +1,57 @@
1
1
  {% from "components/input/_macro.input.njk" import componentInput %}
2
2
 
3
- {% set exampleComponent = "radios" %}
4
-
5
- {% set telefonoContent %}
3
+ {% macro telefonoContent(id='id') %}
6
4
  {{ componentInput({
7
5
  "label": {
8
6
  "text": "Número de teléfono"
9
7
  },
10
- "id": "telefono-a",
11
- "name": "telefono-name"
8
+ "id": "telefono-" + id,
9
+ "name": "telefono-name-" + id
12
10
  }) }}
13
- {% endset %}
11
+ {% endmacro %}
14
12
 
15
- {% set mobileContent %}
13
+ {% macro mobileContent(id='id') %}
16
14
  {{ componentInput({
17
15
  "label": {
18
16
  "text": "Número de teléfono móvil"
19
17
  },
20
- "id": "mobile-a",
21
- "name": "mobile-name"
18
+ "id": "mobile-" + id,
19
+ "name": "mobile-name-" + id
22
20
  }) }}
23
- {% endset %}
21
+ {% endmacro %}
24
22
 
25
- {% set mobileErrorContent %}
23
+ {% macro mobileErrorContent(id='id') %}
26
24
  {{ componentInput({
27
25
  "label": {
28
26
  "text": "Número de teléfono móvil"
29
27
  },
30
- "id": "input-with-error-message-a",
31
- "name": "test-name",
28
+ "id": "input-with-error-message-" + id,
29
+ "name": "test-name-" + id,
32
30
  "errorMessage": {
33
31
  "text": "Error: Este campo no puede estar vacío"
34
32
  }
35
33
  }) }}
36
- {% endset %}
37
-
34
+ {% endmacro %}
38
35
 
36
+ {% set exampleComponent = "radios" %}
39
37
  {% set examples = [
40
38
  {
41
- "name": "default",
39
+ "name": "por defecto",
42
40
  "data": {
43
41
  "idPrefix": "default",
44
- "name": "default",
42
+ "name": "por defecto",
45
43
  "fieldset": {
46
44
  "legend": {
47
- "text": "Have you changed your name?"
45
+ "text": "¿Quieres que te contactemos por correo electrónico?"
48
46
  }
49
47
  },
50
48
  "hint": {
51
- "text": "This includes changing your last name or spelling your name differently."
49
+ "text": "Sólo puedes seleccionar un elemento."
52
50
  },
53
51
  "items": [
54
52
  {
55
- "value": "yes",
56
- "text": "Yes"
53
+ "value": "si",
54
+ "text": "Si"
57
55
  },
58
56
  {
59
57
  "value": "no",
@@ -64,23 +62,23 @@
64
62
  }
65
63
  },
66
64
  {
67
- "name": "inline",
65
+ "name": "En línea",
68
66
  "data": {
69
67
  "idPrefix": "inline",
70
68
  "classes": "flex",
71
69
  "name": "inline",
72
70
  "fieldset": {
73
71
  "legend": {
74
- "text": "Have you changed your name?"
72
+ "text": "¿Quieres que te contactemos por correo electrónico?"
75
73
  }
76
74
  },
77
75
  "hint": {
78
- "text": "This includes changing your last name or spelling your name differently."
76
+ "text": "Sólo puedes seleccionar un elemento."
79
77
  },
80
78
  "items": [
81
79
  {
82
- "value": "yes",
83
- "text": "Yes",
80
+ "value": "si",
81
+ "text": "Si",
84
82
  "classes": "mr-sm"
85
83
  },
86
84
  {
@@ -93,22 +91,22 @@
93
91
  }
94
92
  },
95
93
  {
96
- "name": "with disabled",
94
+ "name": "Con deshabilitado",
97
95
  "data": {
98
96
  "idPrefix": "example-disabled",
99
97
  "name": "example-disabled",
100
98
  "fieldset": {
101
99
  "legend": {
102
- "text": "Have you changed your name?"
100
+ "text": "¿Quieres que te contactemos por correo electrónico?"
103
101
  }
104
102
  },
105
103
  "hint": {
106
- "text": "This includes changing your last name or spelling your name differently."
104
+ "text": "Sólo puedes seleccionar un elemento."
107
105
  },
108
106
  "items": [
109
107
  {
110
- "value": "yes",
111
- "text": "Yes",
108
+ "value": "si",
109
+ "text": "Si",
112
110
  "disabled": true,
113
111
  "checked": true
114
112
  },
@@ -121,220 +119,233 @@
121
119
  }
122
120
  },
123
121
  {
124
- "name": "with legend as page heading",
125
- "description": "use optional headingLevel param to set if h1, h2 h3...",
122
+ "name": "con un legend como encabezado",
123
+ "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>.',
126
124
  "data": {
127
125
  "idPrefix": "legend-as-page-heading",
128
126
  "name": "legend-as-page-heading",
129
127
  "fieldset": {
130
128
  "legend": {
131
- "text": "Which part of the Housing Act was your licence issued under?",
129
+ "text": "¿Cómo prefieres que te contactemos?",
132
130
  "classes": "c-h2",
133
131
  "isPageHeading": true
134
132
  },
135
133
  "headingLevel": 2
136
134
  },
137
135
  "hint": {
138
- "text": "Select one of the options below."
136
+ "text": "Selecciona una de las opciones."
139
137
  },
140
138
  "items": [
141
139
  {
142
140
  "value": "part-2",
143
- "html": "<span class=\" block font-bold \">Part 2 of the Housing Act 2004</span> <span class=\" font-normal \">For properties that are 3 or more stories high and occupied by 5 or more people</span>"
141
+ "text": "Por correo electrónico",
142
+ "hint": {
143
+ "text": "Asegúrate de que nuestros correos no lleguen a la bandeja de spam."
144
+ }
144
145
  },
145
146
  {
146
147
  "value": "part-3",
147
- "html": "<span class=\" block font-bold \">Part 3 of the Housing Act 2004</span> <span class=\" font-normal \">For properties that are within a geographical area defined by a local council</span>"
148
+ "text": "Por correo postal",
149
+ "hint": {
150
+ "text": "Asegúrate de haber introducido correctamente tu dirección."
151
+ }
148
152
  }
149
153
  ]
150
154
  }
151
155
  },
152
156
  {
153
- "name": "with a medium legend",
157
+ "name": "con un legend del tamaño de un encabezado h2",
154
158
  "data": {
155
159
  "idPrefix": "medium-legend",
156
160
  "name": "medium-legend",
157
161
  "fieldset": {
158
162
  "legend": {
159
- "text": "Which part of the Housing Act was your licence issued under?",
163
+ "text": "¿Cómo prefieres que te contactemos?",
160
164
  "classes": "c-h2"
161
165
  }
162
166
  },
163
167
  "hint": {
164
- "text": "Select one of the options below."
168
+ "text": "Selecciona una de las opciones."
165
169
  },
166
170
  "items": [
167
171
  {
168
172
  "value": "part-2",
169
- "html": "<span class=\" block font-bold \">Part 2 of the Housing Act 2004</span> <span class=\" font-normal \">For properties that are 3 or more stories high and occupied by 5 or more people</span>"
173
+ "text": "Por correo electrónico",
174
+ "hint": {
175
+ "text": "Asegúrate de que nuestros correos no lleguen a la bandeja de spam."
176
+ }
170
177
  },
171
178
  {
172
179
  "value": "part-3",
173
- "html": "<span class=\" block font-bold \">Part 3 of the Housing Act 2004</span> <span class=\" font-normal \">For properties that are within a geographical area defined by a local council</span>"
180
+ "text": "Por correo postal",
181
+ "hint": {
182
+ "text": "Asegúrate de haber introducido correctamente tu dirección."
183
+ }
174
184
  }
175
185
  ]
176
186
  }
177
187
  },
178
188
  {
179
- "name": "with a divider",
189
+ "name": "con un divisor",
180
190
  "data": {
181
191
  "idPrefix": "example-divider",
182
192
  "name": "example-divider",
183
193
  "fieldset": {
184
194
  "legend": {
185
- "text": "How do you want to sign in?"
195
+ "text": "¿Cómo prefieres que te contactemos?"
186
196
  }
187
197
  },
188
198
  "items": [
189
199
  {
190
- "value": "governement-gateway",
191
- "text": "Use Digital Cert"
200
+ "value": "correo-electronico",
201
+ "text": "Correo electrónico"
192
202
  },
193
203
  {
194
- "value": "clave-verify",
195
- "text": "Use Cl@ve"
204
+ "value": "correo-postal",
205
+ "text": "Correo postal"
196
206
  },
197
207
  {
198
- "divider": "or"
208
+ "divider": "o bien"
199
209
  },
200
210
  {
201
- "value": "create-account",
202
- "text": "Create an account"
211
+ "value": "telefono",
212
+ "text": "Teléfono"
203
213
  }
204
214
  ]
205
215
  }
206
216
  },
207
217
  {
208
- "name": "with hints on items",
218
+ "name": "Con pistas en los items",
209
219
  "data": {
210
220
  "idPrefix": "hints-on-items",
211
221
  "name": "hints-on-items",
212
222
  "fieldset": {
213
223
  "legend": {
214
- "text": "How do you want to sign in?",
224
+ "text": "¿Cómo prefieres que te contactemos?",
215
225
  "isPageHeading": true
216
226
  }
217
227
  },
218
228
  "items": [
219
229
  {
220
- "value": "gateway",
221
- "text": "Sign in with Digital Cert",
230
+ "value": "correo-electronico",
231
+ "text": "Correo electrónico",
222
232
  "hint": {
223
- "text": "You’ll have a user ID if you’ve registered for Self Assessment or filed a tax return online before."
233
+ "text": "Asegúrate de que el correo no llega a la bandeja de spam."
224
234
  }
225
235
  },
226
236
  {
227
- "value": "verify",
228
- "text": "Sign in with Cl@ve",
237
+ "value": "correo-postal",
238
+ "text": "Correo postal",
229
239
  "hint": {
230
- "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."
240
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
231
241
  }
232
242
  }
233
243
  ]
234
244
  }
235
245
  },
236
246
  {
237
- "name": "with hasDividers",
247
+ "name": "con líneas divisorias",
238
248
  "data": {
239
249
  "idPrefix": "has-dividers",
240
250
  "name": "has-dividers",
241
251
  "fieldset": {
242
252
  "legend": {
243
- "text": "How do you want to sign in?"
253
+ "text": "¿Cómo prefieres que te contactemos?"
244
254
  }
245
255
  },
246
256
  "hint": {
247
- "text": "Please, choose the right answer."
257
+ "text": "Sólo puedes elegir un elemento."
248
258
  },
249
259
  "hasDividers": true,
250
260
  "items": [
251
261
  {
252
- "value": "gateway",
253
- "text": "Sign in with Digital Cert",
262
+ "value": "correo-electronico",
263
+ "text": "Correo electrónico",
254
264
  "classes": "font-normal",
255
265
  "hint": {
256
- "text": "You’ll have a user ID if you’ve registered for Self Assessment or filed a tax return online before."
266
+ "text": "Asegúrate de que el correo no llega a la bandeja de spam."
257
267
  }
258
268
  },
259
269
  {
260
- "value": "verify",
261
- "text": "Sign in with Cl@ve",
270
+ "value": "correo-postal",
271
+ "text": "Correo postal",
262
272
  "hint": {
263
- "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."
273
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
264
274
  }
265
275
  }
266
276
  ]
267
277
  }
268
278
  },
269
279
  {
270
- "name": "with classes applied in items",
280
+ "name": "Con clases de CSS aplicadas",
281
+ "description": 'Los parámetros <code>classes</code> nos permiten aplicar clases de Tailwind CSS a nuestro componente.',
271
282
  "data": {
272
283
  "idPrefix": "classes",
273
284
  "name": "classes",
274
285
  "fieldset": {
275
286
  "legend": {
276
- "text": "How do you want to sign in?",
287
+ "text": "¿Cómo prefieres que te contactemos?",
277
288
  "isPageHeading": true
278
289
  }
279
290
  },
280
291
  "items": [
281
292
  {
282
- "value": "gateway",
283
- "text": "Sign in with Digital Cert",
293
+ "value": "correo-electronico",
294
+ "text": "Correo electrónico",
284
295
  "hint": {
285
- "text": "You’ll have a user ID if you’ve registered for Self Assessment or filed a tax return online before."
296
+ "text": "Asegúrate de que el correo no llega a la bandeja de spam."
286
297
  },
287
- "classes": "bg-warning-light"
298
+ "classes": "bg-primary-light"
288
299
  },
289
300
  {
290
- "value": "verify",
291
- "text": "Sign in with Cl@ve",
301
+ "value": "correo-postal",
302
+ "text": "Correo postal",
292
303
  "hint": {
293
- "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."
304
+ "text": "Asegúrate de haber introducido la dirección postal correctamente."
294
305
  },
295
- "classes": "bg-neutral-light"
306
+ "classes": "bg-neutral-lighter"
296
307
  }
297
308
  ]
298
309
  }
299
310
  },
300
311
  {
301
- "name": "without fieldset",
312
+ "name": "sin fieldset",
302
313
  "data": {
303
314
  "idPrefix": "without-fieldset",
304
315
  "name": "without-fieldset",
305
316
  "items": [
306
317
  {
307
- "value": "red",
308
- "text": "Red"
318
+ "value": "correo-electronico",
319
+ "text": "Correo electrónico"
309
320
  },
310
321
  {
311
- "value": "green",
312
- "text": "Green"
322
+ "value": "correp-postal",
323
+ "text": "Correo postal"
313
324
  },
314
325
  {
315
- "value": "blue",
316
- "text": "Blue"
326
+ "value": "telefono",
327
+ "text": "Teléfono"
317
328
  }
318
329
  ]
319
330
  }
320
331
  },
321
332
  {
322
- "name": "with fieldset and error message",
333
+ "name": "con fieldset y mensaje de error",
323
334
  "data": {
324
335
  "idPrefix": "fieldset-and-error",
325
336
  "name": "fieldset-and-error",
326
337
  "errorMessage": {
327
- "text": "Error: Please select an option"
338
+ "text": "Error: Tienes que seleccionar al menos una opción"
328
339
  },
329
340
  "fieldset": {
330
341
  "legend": {
331
- "text": "Have you changed your name?"
342
+ "text": "¿Quieres que te contactemos por correo electrónico?"
332
343
  }
333
344
  },
334
345
  "items": [
335
346
  {
336
- "value": "yes",
337
- "text": "Yes"
347
+ "value": "si",
348
+ "text": "Si"
338
349
  },
339
350
  {
340
351
  "value": "no",
@@ -345,7 +356,7 @@
345
356
  }
346
357
  },
347
358
  {
348
- "name": "with very long option text",
359
+ "name": "con un texto de item muy largo",
349
360
  "data": {
350
361
  "idPrefix": "very-long",
351
362
  "name": "very-long",
@@ -377,119 +388,119 @@
377
388
  }
378
389
  },
379
390
  {
380
- "name": "with conditional items",
391
+ "name": "con items condicionales",
381
392
  "data": {
382
393
  "idPrefix": "conditional-items",
383
394
  "name": "conditional-items",
384
395
  "fieldset": {
385
396
  "legend": {
386
- "text": "How do you want to be contacted?"
397
+ "text": "¿Cómo quieres que te contactemos?"
387
398
  }
388
399
  },
389
400
  "items": [
390
401
  {
391
- "value": "email",
392
- "text": "Email",
393
- "checked": true,
402
+ "value": "correo-electronico",
403
+ "text": "Correo electrónico",
394
404
  "conditional": {
395
- "html": telefonoContent | trim | safe
405
+ "html": mobileContent('1').val
396
406
  }
397
407
  },
398
408
  {
399
- "value": "phone",
400
- "text": "Phone",
409
+ "value": "telefono",
410
+ "text": "Teléfono",
411
+ "checked": true,
401
412
  "conditional": {
402
- "html": mobileContent | trim | safe
413
+ "html": telefonoContent('2').val
403
414
  }
404
415
  },
405
416
  {
406
- "value": "text",
407
- "text": "Text message",
417
+ "value": "mensaje-SMS",
418
+ "text": "Mensaje SMS",
408
419
  "conditional": {
409
- "html": mobileContent | trim | safe
420
+ "html": mobileContent('2').val
410
421
  }
411
422
  }
412
423
  ]
413
424
  }
414
425
  },
415
426
  {
416
- "name": "inline with conditional items",
427
+ "name": "en línea con items condicionales",
417
428
  "data": {
418
429
  "classes": "flex",
419
430
  "idPrefix": "inline-with-conditional",
420
431
  "name": "inline-with-conditional",
421
432
  "fieldset": {
422
433
  "legend": {
423
- "text": "How do you want to be contacted?"
434
+ "text": "¿Cómo quieres que te contactemos?"
424
435
  }
425
436
  },
426
437
  "items": [
427
438
  {
428
- "value": "email",
429
- "text": "Email",
430
- "checked": true,
439
+ "value": "correo-electronico",
440
+ "text": "Correo electrónico",
431
441
  "classes": "mr-sm",
432
442
  "conditional": {
433
- "html": telefonoContent | trim | safe
443
+ "html": telefonoContent('3').val
434
444
  }
435
445
  },
436
446
  {
437
- "value": "phone",
438
- "text": "Phone",
447
+ "value": "telefono",
448
+ "text": "Teléfono",
439
449
  "classes": "mr-sm",
450
+ "checked": true,
440
451
  "conditional": {
441
- "html": mobileContent | trim | safe
452
+ "html": mobileContent('3').val
442
453
  }
443
454
  },
444
455
  {
445
- "value": "text",
446
- "text": "Text message",
456
+ "value": "mensaje-SMS",
457
+ "text": "Mensaje SMS",
447
458
  "classes": "mr-sm",
448
459
  "conditional": {
449
- "html": mobileContent | trim | safe
460
+ "html": mobileContent('4').val
450
461
  }
451
462
  }
452
463
  ]
453
464
  }
454
465
  },
455
466
  {
456
- "name": "with conditional item checked",
467
+ "name": "con item condicional seleccionado",
457
468
  "data": {
458
469
  "idPrefix": "conditional-item-checked",
459
470
  "name": "conditional-item-checked",
460
471
  "fieldset": {
461
472
  "legend": {
462
- "text": "How do you want to be contacted?"
473
+ "text": "¿Cómo quieres que te contactemos?"
463
474
  }
464
475
  },
465
476
  "items": [
466
477
  {
467
- "value": "email",
468
- "text": "Email",
478
+ "value": "correo-electronico",
479
+ "text": "Correo electrónico",
469
480
  "conditional": {
470
- "html": telefonoContent | trim | safe
481
+ "html": telefonoContent('4').val
471
482
  }
472
483
  },
473
484
  {
474
- "value": "phone",
475
- "text": "Phone",
485
+ "value": "telefono",
486
+ "text": "Teléfono",
487
+ "checked": true,
476
488
  "conditional": {
477
- "html": mobileContent | trim | safe
489
+ "html": mobileContent('5').val
478
490
  }
479
491
  },
480
492
  {
481
- "value": "text",
482
- "text": "Text message",
483
- "checked": true,
493
+ "value": "mensaje-SMS",
494
+ "text": "Mensaje SMS",
484
495
  "conditional": {
485
- "html": mobileContent | trim | safe
496
+ "html": mobileContent('6').val
486
497
  }
487
498
  }
488
499
  ]
489
500
  }
490
501
  },
491
502
  {
492
- "name": "with optional form-group classes showing group error",
503
+ "name": "con clases opcionales del form-group mostrando un error del grupo",
493
504
  "data": {
494
505
  "idPrefix": "classes-group-error",
495
506
  "name": "classes-group-error",
@@ -498,45 +509,45 @@
498
509
  },
499
510
  "fieldset": {
500
511
  "legend": {
501
- "text": "How do you want to be contacted?"
512
+ "text": "¿Cómo quieres que te contactemos?"
502
513
  }
503
514
  },
504
515
  "items": [
505
516
  {
506
- "value": "email",
507
- "text": "Email",
517
+ "value": "correo-electronico",
518
+ "text": "Correo electrónico",
508
519
  "conditional": {
509
- "html": telefonoContent | trim | safe
520
+ "html": telefonoContent('5').val
510
521
  }
511
522
  },
512
523
  {
513
- "value": "phone",
514
- "text": "Phone",
524
+ "value": "telefono",
525
+ "text": "Teléfono",
515
526
  "checked": true,
516
527
  "conditional": {
517
- "html": mobileErrorContent | trim | safe
528
+ "html": mobileErrorContent('1').val
518
529
  }
519
530
  },
520
531
  {
521
- "value": "text",
522
- "text": "Text message",
532
+ "value": "mensaje-SMS",
533
+ "text": "Mensaje SMS",
523
534
  "conditional": {
524
- "html": mobileContent | trim | safe
535
+ "html": mobileContent('7').val
525
536
  }
526
537
  }
527
538
  ]
528
539
  }
529
540
  },
530
541
  {
531
- "name": "small",
542
+ "name": "peque",
532
543
  "data": {
533
544
  "idPrefix": "small",
534
- "name": "small",
545
+ "name": "peque",
535
546
  "classes": "c-radios--sm",
536
547
  "items": [
537
548
  {
538
- "value": "yes",
539
- "text": "Yes",
549
+ "value": "si",
550
+ "text": "Si",
540
551
  "classes": "-mt-base",
541
552
  "label": {
542
553
  "classes": "text-sm -mt-1"