desy-html 7.3.1 → 8.0.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 (82) hide show
  1. package/docs/_global.foot.njk +0 -23
  2. package/docs/_global.head.njk +13 -331
  3. package/docs/_macro.example-render.njk +40 -15
  4. package/docs/_macro.render-caller.njk +2 -2
  5. package/docs/_macro.show-code-from-file.njk +57 -0
  6. package/docs/_template.examples.njk +1 -1
  7. package/docs/estilos.html +15 -14
  8. package/docs/index.html +12 -0
  9. package/gulpfile.js +18 -3
  10. package/package.json +5 -2
  11. package/src/css/styles.css +1 -1
  12. package/src/js/filters/filter-caller.js +6 -0
  13. package/src/js/filters/highlight.js +14 -0
  14. package/src/js/filters/index.js +10 -0
  15. package/src/js/globals/get-html-code-from-example.js +29 -0
  16. package/src/js/globals/get-html-code-from-file.js +26 -0
  17. package/src/js/globals/get-nunjucks-code-from-example.js +32 -0
  18. package/src/js/globals/get-nunjucks-code-from-file.js +24 -0
  19. package/src/js/globals/index.js +14 -0
  20. package/src/js/index.js +21 -0
  21. package/src/templates/components/accordion/_examples.accordion.njk +108 -104
  22. package/src/templates/components/accordion-history/_examples.accordion-history.njk +116 -112
  23. package/src/templates/components/alert/_examples.alert.njk +10 -6
  24. package/src/templates/components/breadcrumbs/_examples.breadcrumbs.njk +52 -52
  25. package/src/templates/components/button/_examples.button.njk +71 -71
  26. package/src/templates/components/button-loader/_examples.button-loader.njk +72 -72
  27. package/src/templates/components/card/_examples.card.njk +43 -43
  28. package/src/templates/components/character-count/_examples.character-count.njk +35 -33
  29. package/src/templates/components/checkboxes/_examples.checkboxes.njk +200 -201
  30. package/src/templates/components/collapsible/_examples.collapsible.njk +24 -9
  31. package/src/templates/components/date-input/_examples.date-input.njk +14 -14
  32. package/src/templates/components/description-list/_examples.description-list.njk +45 -44
  33. package/src/templates/components/details/_examples.details.njk +17 -16
  34. package/src/templates/components/dialog/_examples.dialog.njk +5 -6
  35. package/src/templates/components/dropdown/_examples.dropdown.njk +34 -35
  36. package/src/templates/components/error-message/_examples.error-message.njk +8 -2
  37. package/src/templates/components/error-summary/_examples.error-summary.njk +19 -19
  38. package/src/templates/components/fieldset/_examples.fieldset.njk +27 -25
  39. package/src/templates/components/file-upload/_examples.file-upload.njk +7 -7
  40. package/src/templates/components/footer/_examples.footer.njk +24 -24
  41. package/src/templates/components/footer/_template.footer.njk +1 -1
  42. package/src/templates/components/header/_examples.header.njk +12 -12
  43. package/src/templates/components/header-mini/_examples.header-mini.njk +5 -5
  44. package/src/templates/components/hint/_examples.hint.njk +4 -4
  45. package/src/templates/components/input/_examples.input.njk +68 -65
  46. package/src/templates/components/input-group/_examples.input-group.njk +15 -17
  47. package/src/templates/components/item/_examples.item.njk +21 -20
  48. package/src/templates/components/label/_examples.label.njk +11 -9
  49. package/src/templates/components/links-list/_examples.links-list.njk +34 -34
  50. package/src/templates/components/listbox/_examples.listbox.njk +146 -146
  51. package/src/templates/components/media-object/_examples.media-object.njk +7 -7
  52. package/src/templates/components/menu-horizontal/_examples.menu-horizontal.njk +54 -54
  53. package/src/templates/components/menu-navigation/_examples.menu-navigation.njk +65 -66
  54. package/src/templates/components/menu-vertical/_examples.menu-vertical.njk +71 -71
  55. package/src/templates/components/menubar/_examples.menubar.njk +42 -42
  56. package/src/templates/components/modal/_examples.modal.njk +21 -15
  57. package/src/templates/components/modal/_template.modal.njk +5 -5
  58. package/src/templates/components/nav/_examples.nav.njk +66 -66
  59. package/src/templates/components/notification/_examples.notification.njk +14 -13
  60. package/src/templates/components/pagination/_examples.pagination.njk +7 -6
  61. package/src/templates/components/pill/_examples.pill.njk +29 -29
  62. package/src/templates/components/radios/_examples.radios.njk +153 -142
  63. package/src/templates/components/searchbar/_examples.searchbar.njk +13 -13
  64. package/src/templates/components/select/_examples.select.njk +63 -63
  65. package/src/templates/components/skip-link/_examples.skip-link.njk +4 -4
  66. package/src/templates/components/spinner/_examples.spinner.njk +11 -11
  67. package/src/templates/components/status/_examples.status.njk +4 -4
  68. package/src/templates/components/status-item/_examples.status-item.njk +21 -21
  69. package/src/templates/components/table/_examples.table.njk +58 -56
  70. package/src/templates/components/table-advanced/_examples.table-advanced.njk +83 -83
  71. package/src/templates/components/tabs/_examples.tabs.njk +30 -29
  72. package/src/templates/components/textarea/_examples.textarea.njk +28 -27
  73. package/src/templates/components/toggle/_examples.toggle.njk +10 -11
  74. package/src/templates/components/tooltip/_examples.tooltip.njk +9 -9
  75. package/src/templates/components/tree/_examples.tree.njk +58 -57
  76. package/src/js/prism/clipboard.min.js +0 -7
  77. package/src/js/prism/prism-copy-to-clipboard.min.js +0 -1
  78. package/src/js/prism/prism-normalize-whitespace.min.js +0 -1
  79. package/src/js/prism/prism-toolbar.min.js +0 -1
  80. package/src/js/prism/prism-twig.min.js +0 -1
  81. package/src/js/prism/prism-yaml.min.js +0 -1
  82. package/src/js/prism/prism.min.js +0 -1
@@ -1,56 +1,56 @@
1
1
  {% set exampleComponent = "breadcrumbs" %}
2
2
  {% set examples = [
3
3
  {
4
- "name": "default",
4
+ "name": "por defecto",
5
5
  "data": {
6
6
  "items": [
7
7
  {
8
- "text": "Section",
8
+ "text": "Sección",
9
9
  "href": "/section"
10
10
  },
11
11
  {
12
- "text": "Sub-section",
12
+ "text": "Sub-sección",
13
13
  "href": "/section/sub-section"
14
14
  }
15
15
  ]
16
16
  }
17
17
  },
18
18
  {
19
- "name": "with one level",
19
+ "name": "con 1 sólo nivel",
20
20
  "data": {
21
21
  "items": [
22
22
  {
23
- "text": "Section",
23
+ "text": "Sección",
24
24
  "href": "/section"
25
25
  }
26
26
  ]
27
27
  }
28
28
  },
29
29
  {
30
- "name": "with multiple levels",
30
+ "name": "con múltiples niveles",
31
31
  "data": {
32
32
  "items": [
33
33
  {
34
- "text": "Home",
34
+ "text": "Inicio",
35
35
  "href": "/"
36
36
  },
37
37
  {
38
- "text": "Section",
38
+ "text": "Sección",
39
39
  "href": "/section"
40
40
  },
41
41
  {
42
- "text": "Sub-section",
42
+ "text": "Sub-sección",
43
43
  "href": "/section/sub-section"
44
44
  },
45
45
  {
46
- "text": "Sub Sub-section",
46
+ "text": "Sub Sub-sección",
47
47
  "href": "/section/sub-section/sub-sub-section"
48
48
  }
49
49
  ]
50
50
  }
51
51
  },
52
52
  {
53
- "name": "with very large strings",
53
+ "name": "con cadenas muy largas",
54
54
  "data": {
55
55
  "items": [
56
56
  {
@@ -73,151 +73,151 @@
73
73
  }
74
74
  },
75
75
  {
76
- "name": "middle item without href",
76
+ "name": "Item a mitad sin href",
77
77
  "data": {
78
78
  "items": [
79
79
  {
80
- "text": "Home",
80
+ "text": "Inicio",
81
81
  "href": "/"
82
82
  },
83
83
  {
84
84
  "text": "Section"
85
85
  },
86
86
  {
87
- "text": "Sub-section",
87
+ "text": "Sub-sección",
88
88
  "href": "/section/sub-section"
89
89
  },
90
90
  {
91
- "text": "Sub Sub-section",
91
+ "text": "Sub Sub-sección",
92
92
  "href": "/section/sub-section/sub-sub-section"
93
93
  }
94
94
  ]
95
95
  }
96
96
  },
97
97
  {
98
- "name": "with last breadcrumb as current page with href",
98
+ "name": "con la última miga de pan como página actual con href",
99
99
  "data": {
100
100
  "items": [
101
101
  {
102
- "text": "Home",
102
+ "text": "Inicio",
103
103
  "href": "/"
104
104
  },
105
105
  {
106
- "text": "Passports, travel and living abroad",
107
- "href": "/browse/abroad"
106
+ "text": "Trámites por tema",
107
+ "href": "/tramites/tema"
108
108
  },
109
109
  {
110
- "text": "Travel abroad",
111
- "href": "/browse/travel/abroad"
110
+ "text": "Vivienda",
111
+ "href": "/tramites/tema/vivienda"
112
112
  }
113
113
  ]
114
114
  }
115
115
  },
116
116
  {
117
- "name": "with last breadcrumb as current page without href",
117
+ "name": "con la última miga de pan como página actual sin href",
118
118
  "data": {
119
119
  "items": [
120
120
  {
121
- "text": "Home",
121
+ "text": "Inicio",
122
122
  "href": "/"
123
123
  },
124
124
  {
125
- "text": "Passports, travel and living abroad",
126
- "href": "/browse/abroad"
125
+ "text": "Trámites por tema",
126
+ "href": "/tramites/tema"
127
127
  },
128
128
  {
129
- "text": "Travel abroad"
129
+ "text": "Vivienda"
130
130
  }
131
131
  ]
132
132
  }
133
133
  },
134
134
  {
135
- "name": "with collapse on mobile",
136
- "description": "See in small widths to collapse middle items.",
135
+ "name": "con colapsar en móvil",
136
+ "description": "Mirar en anchuras pequeñas para ver cómo se colapsan los items intermedios y sólo se muestran el primero y último.",
137
137
  "data": {
138
138
  "collapseOnMobile": true,
139
139
  "items": [
140
140
  {
141
- "text": "Home",
141
+ "text": "Inicio",
142
142
  "href": "/"
143
143
  },
144
144
  {
145
- "text": "Education, training and skills",
146
- "href": "/education"
145
+ "text": "Trámites por tema",
146
+ "href": "/tramites/tema"
147
147
  },
148
148
  {
149
- "text": "Special educational needs and disability",
150
- "href": "/education/special-educational-needs-and-disability"
149
+ "text": "Vivienda",
150
+ "href": "/tramites/tema/vivienda"
151
151
  }
152
152
  ]
153
153
  }
154
154
  },
155
155
  {
156
- "name": "with backbutton",
156
+ "name": "con botón atrás",
157
157
  "data": {
158
158
  "hasBackButton": true,
159
159
  "items": [
160
160
  {
161
- "text": "Home",
161
+ "text": "Inicio",
162
162
  "href": "/"
163
163
  },
164
164
  {
165
- "text": "Passports, travel and living abroad",
166
- "href": "/browse/abroad"
165
+ "text": "Trámites por tema",
166
+ "href": "/tramites/tema"
167
167
  },
168
168
  {
169
- "text": "Travel abroad"
169
+ "text": "Vivienda"
170
170
  }
171
171
  ]
172
172
  }
173
173
  },
174
174
  {
175
- "name": "with backbutton and collapse on mobile",
176
- "description": "See in small widths to collapse middle items.",
175
+ "name": "con botón atrás y colapsar en móvil",
176
+ "description": "Mirar en anchuras pequeñas para ver cómo se colapsan los items intermedios y sólo se muestran el primero y último.",
177
177
  "data": {
178
178
  "collapseOnMobile": true,
179
179
  "hasBackButton": true,
180
180
  "items": [
181
181
  {
182
- "text": "Home",
182
+ "text": "Inicio",
183
183
  "href": "/"
184
184
  },
185
185
  {
186
- "text": "Education, training and skills",
187
- "href": "/education"
186
+ "text": "Trámites por tema",
187
+ "href": "/tramites/tema"
188
188
  },
189
189
  {
190
- "text": "Special educational needs and disability",
191
- "href": "/education/special-educational-needs-and-disability"
190
+ "text": "Vivienda",
191
+ "href": "/tramites/tema/vivienda"
192
192
  },
193
193
  {
194
- "text": "Travel abroad",
195
- "href": "/browse/abroad"
194
+ "text": "Urbanismo",
195
+ "href": "/tramites/tema/vivienda/urbanismo"
196
196
  }
197
197
  ]
198
198
  }
199
199
  },
200
200
  {
201
- "name": "with backbutton and truncated modifier class",
201
+ "name": "con botón atrás y la clase modificadora para truncar texto",
202
202
  "data": {
203
203
  "hasBackButton": true,
204
204
  "classes": "c-breadcrumbs--truncated",
205
205
  "items": [
206
206
  {
207
207
  "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
208
- "href": "/"
208
+ "href": "#"
209
209
  },
210
210
  {
211
211
  "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
212
- "href": "/"
212
+ "href": "#"
213
213
  },
214
214
  {
215
215
  "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
216
- "href": "/"
216
+ "href": "#"
217
217
  },
218
218
  {
219
219
  "text": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Morbi volutpat non augue id hendrerit. Cras at iaculis sem, eu posuere tortor",
220
- "href": "/"
220
+ "href": "#"
221
221
  }
222
222
  ]
223
223
  }
@@ -1,64 +1,64 @@
1
1
  {% set exampleComponent = "button" %}
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 active state",
11
- "description": "Simulate triggering the :active CSS pseudo-class",
10
+ "name": "por defecto con estado activo",
11
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
12
12
  "data": {
13
13
  "name": "active",
14
- "text": "Active",
14
+ "text": "Activo",
15
15
  "classes": "ds-active"
16
16
  }
17
17
  },
18
18
  {
19
- "name": "default with hover state",
20
- "description": "Simulate triggering the :hover CSS pseudo-class",
19
+ "name": "por defecto con estado hover",
20
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
21
21
  "data": {
22
22
  "name": "hover",
23
- "text": "Hovered",
23
+ "text": "Hover",
24
24
  "classes": "ds-hover"
25
25
  }
26
26
  },
27
27
  {
28
- "name": "default with focus state",
29
- "description": "Simulate triggering the :focus CSS pseudo-class",
28
+ "name": "por defecto con estado focus",
29
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
30
30
  "data": {
31
31
  "name": "focus",
32
- "text": "Focussed",
32
+ "text": "Focus",
33
33
  "classes": "ds-focus"
34
34
  }
35
35
  },
36
36
  {
37
- "name": "default disabled",
37
+ "name": "por defecto deshabilitado",
38
38
  "data": {
39
- "text": "Disabled",
39
+ "text": "Deshabilitado",
40
40
  "disabled": true
41
41
  }
42
42
  },
43
43
  {
44
- "name": "primary",
44
+ "name": "primario",
45
45
  "data": {
46
- "text": "Primary",
46
+ "text": "Primario",
47
47
  "classes": "c-button--primary"
48
48
  }
49
49
  },
50
50
  {
51
- "name": "primary with active state",
52
- "description": "Simulate triggering the :active CSS pseudo-class",
51
+ "name": "primario con estado activo",
52
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
53
53
  "data": {
54
54
  "name": "active",
55
- "text": "Active",
55
+ "text": "Activo",
56
56
  "classes": "c-button--primary ds-active"
57
57
  }
58
58
  },
59
59
  {
60
- "name": "primary with hover state",
61
- "description": "Simulate triggering the :hover CSS pseudo-class",
60
+ "name": "primario con estado hover",
61
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
62
62
  "data": {
63
63
  "name": "hover",
64
64
  "text": "Hover",
@@ -66,8 +66,8 @@
66
66
  }
67
67
  },
68
68
  {
69
- "name": "primary with focus state",
70
- "description": "Simulate triggering the :focus CSS pseudo-class",
69
+ "name": "primario con estado focus",
70
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
71
71
  "data": {
72
72
  "name": "focus",
73
73
  "text": "Focus",
@@ -75,32 +75,32 @@
75
75
  }
76
76
  },
77
77
  {
78
- "name": "primary disabled",
78
+ "name": "primario deshabilitado",
79
79
  "data": {
80
- "text": "Disabled",
80
+ "text": "Deshabilitado",
81
81
  "disabled": true,
82
82
  "classes": "c-button--primary"
83
83
  }
84
84
  },
85
85
  {
86
- "name": "alert",
86
+ "name": "alerta",
87
87
  "data": {
88
- "text": "Alert",
88
+ "text": "Alerta",
89
89
  "classes": "c-button--alert"
90
90
  }
91
91
  },
92
92
  {
93
- "name": "alert with active state",
94
- "description": "Simulate triggering the :active CSS pseudo-class",
93
+ "name": "alerta con estado activo",
94
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
95
95
  "data": {
96
96
  "name": "active",
97
- "text": "Active",
97
+ "text": "Activo",
98
98
  "classes": "c-button--alert ds-active"
99
99
  }
100
100
  },
101
101
  {
102
- "name": "alert with hover state",
103
- "description": "Simulate triggering the :hover CSS pseudo-class",
102
+ "name": "alerta con estado hover",
103
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
104
104
  "data": {
105
105
  "name": "hover",
106
106
  "text": "Hover",
@@ -108,8 +108,8 @@
108
108
  }
109
109
  },
110
110
  {
111
- "name": "alert with focus state",
112
- "description": "Simulate triggering the :focus CSS pseudo-class",
111
+ "name": "alerta con estado focus",
112
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
113
113
  "data": {
114
114
  "name": "focus",
115
115
  "text": "Focus",
@@ -117,32 +117,32 @@
117
117
  }
118
118
  },
119
119
  {
120
- "name": "alert disabled",
120
+ "name": "alerta deshabilitado",
121
121
  "data": {
122
- "text": "Disabled",
122
+ "text": "Deshabilitado",
123
123
  "disabled": true,
124
124
  "classes": "c-button--alert"
125
125
  }
126
126
  },
127
127
  {
128
- "name": "transparent",
128
+ "name": "transparente",
129
129
  "data": {
130
- "text": "Transparent",
130
+ "text": "Transparente",
131
131
  "classes": "c-button--transparent"
132
132
  }
133
133
  },
134
134
  {
135
- "name": "transparent with active state",
136
- "description": "Simulate triggering the :active CSS pseudo-class",
135
+ "name": "transparente con estado activo",
136
+ "description": 'Simula activar la pseudoclase de CSS <code>:active</code>',
137
137
  "data": {
138
138
  "name": "active",
139
- "text": "Active",
139
+ "text": "Activo",
140
140
  "classes": "c-button--transparent ds-active"
141
141
  }
142
142
  },
143
143
  {
144
- "name": "transparent with hover state",
145
- "description": "Simulate triggering the :hover CSS pseudo-class",
144
+ "name": "transparente con estado hover",
145
+ "description": 'Simula activar la pseudoclase de CSS <code>:hover</code>',
146
146
  "data": {
147
147
  "name": "hover",
148
148
  "text": "Hover",
@@ -150,8 +150,8 @@
150
150
  }
151
151
  },
152
152
  {
153
- "name": "transparent with focus state",
154
- "description": "Simulate triggering the :focus CSS pseudo-class",
153
+ "name": "transparente con estado focus",
154
+ "description": 'Simula activar la pseudoclase de CSS <code>:focus</code>',
155
155
  "data": {
156
156
  "name": "focus",
157
157
  "text": "Focus",
@@ -159,67 +159,67 @@
159
159
  }
160
160
  },
161
161
  {
162
- "name": "transparent disabled",
162
+ "name": "transparente deshabilitado",
163
163
  "data": {
164
- "text": "Disabled",
164
+ "text": "Deshabilitado",
165
165
  "disabled": true,
166
166
  "classes": "c-button--transparent"
167
167
  }
168
168
  },
169
169
  {
170
- "name": "small",
170
+ "name": "peque",
171
171
  "data": {
172
- "text": "Small",
172
+ "text": "Peque",
173
173
  "classes": "c-button--sm"
174
174
  }
175
175
  },
176
176
  {
177
- "name": "small has selection",
177
+ "name": "peque tiene selección",
178
178
  "data": {
179
- "text": "Small has selection",
179
+ "text": "Peque tiene selección",
180
180
  "classes": "c-button--sm c-button--has-selection"
181
181
  }
182
182
  },
183
183
  {
184
- "name": "link",
184
+ "name": "enlace",
185
185
  "data": {
186
- "text": "Link button",
186
+ "text": "Botón enlace",
187
187
  "href": "/"
188
188
  }
189
189
  },
190
190
  {
191
- "name": "link with target blank",
191
+ "name": "botón enlace con target blank",
192
192
  "data": {
193
- "text": "Link button with target",
193
+ "text": "Botón enlace con target",
194
194
  "href": "http://www.google.com",
195
195
  "target": "_blank"
196
196
  }
197
197
  },
198
198
  {
199
- "name": "link disabled",
199
+ "name": "enlace deshabilitado",
200
200
  "data": {
201
- "text": "Disabled link button",
201
+ "text": "Botón enlace deshabilitado",
202
202
  "href": "/",
203
203
  "disabled": true
204
204
  }
205
205
  },
206
206
  {
207
- "name": "button with right icon",
207
+ "name": "botón con icono a la derecha",
208
208
  "data": {
209
- "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>',
209
+ "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>',
210
210
  "href": "/"
211
211
  }
212
212
  },
213
213
  {
214
- "name": "button with left icon",
214
+ "name": "botón con icono a la izquierda",
215
215
  "data": {
216
- "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',
216
+ "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',
217
217
  "href": "/"
218
218
  }
219
219
  },
220
220
  {
221
- "name": "backbutton",
222
- "description": "Transparent with left icon",
221
+ "name": "botón atrás",
222
+ "description": "Transparente con icono a la izquierda",
223
223
  "data": {
224
224
  "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="M37.93 27.93l-35 35a10 10 0 000 14.14l35 35a10 10 0 1014.14-14.14L38.41 84.27A2.5 2.5 0 0140.18 80H130a10 10 0 000-20H40.18a2.5 2.5 0 01-1.77-4.27l13.66-13.66a10 10 0 00-14.14-14.14z" fill="currentColor"></path></svg>Volver',
225
225
  "classes": "c-button--transparent",
@@ -227,8 +227,8 @@
227
227
  }
228
228
  },
229
229
  {
230
- "name": "forwardbutton",
231
- "description": "Transparent with right icon",
230
+ "name": "botón adelante",
231
+ "description": "Transparente con icono a la derecha",
232
232
  "data": {
233
233
  "html": 'Ver 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>',
234
234
  "classes": "c-button--transparent",
@@ -236,7 +236,7 @@
236
236
  }
237
237
  },
238
238
  {
239
- "name": "button with only icon",
239
+ "name": "botón sólo con icono",
240
240
  "data": {
241
241
  "html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center my-1" 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>',
242
242
  "href": "/",
@@ -244,7 +244,7 @@
244
244
  }
245
245
  },
246
246
  {
247
- "name": "button small with only icon",
247
+ "name": "button peque sólo con icono",
248
248
  "data": {
249
249
  "html": '<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" class="self-center my-1" 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>',
250
250
  "href": "/",
@@ -256,21 +256,21 @@
256
256
  "data": {
257
257
  "element": "input",
258
258
  "name": "send-form",
259
- "text": "Submit"
259
+ "text": "Enviar"
260
260
  }
261
261
  },
262
262
  {
263
- "name": "input disabled",
263
+ "name": "input deshabilitado",
264
264
  "data": {
265
265
  "element": "input",
266
- "text": "Submit",
266
+ "text": "Enviar",
267
267
  "disabled": true
268
268
  }
269
269
  },
270
270
  {
271
- "name": "prevent double click",
271
+ "name": "prevenir doble click",
272
272
  "data": {
273
- "text": "Submit",
273
+ "text": "Enviar",
274
274
  "preventDoubleClick": true
275
275
  }
276
276
  }