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.
- package/docs/_macro.example-render.njk +1 -1
- package/docs/index.html +4 -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
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
{% set exampleComponent = "media-object" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"figureHtml": "<div class=\" w-20 h-20 \"><div class=\" h-full border-4 border-dashed border-gray-200 rounded-lg \"></div></div>",
|
|
7
7
|
"caller": "Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer maximus, elit et faucibus finibus, massa enim egestas leo, et lobortis lorem elit non enim. Nullam molestie nunc eget eleifend porttitor. Suspendisse ornare ligula erat, non dapibus nunc rhoncus at. Maecenas vitae urna viverra, semper mauris vitae, euismod ante. Sed finibus quam ut orci pellentesque, in tincidunt risus tristique. Vivamus efficitur purus urna, sed blandit lorem convallis vel. Mauris tincidunt tincidunt ipsum finibus euismod. Sed eget tincidunt mauris. Duis viverra commodo consectetur. Nullam viverra tincidunt nisl, sit amet dignissim lacus mattis imperdiet."
|
|
8
8
|
}
|
|
9
9
|
},
|
|
10
10
|
{
|
|
11
|
-
"name": "
|
|
11
|
+
"name": "invertido",
|
|
12
12
|
"data": {
|
|
13
13
|
"reverse": true,
|
|
14
14
|
"figureHtml": "<div class=\" w-20 h-20 \"><div class=\" h-full border-4 border-dashed border-gray-200 rounded-lg \"></div></div>",
|
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "figure centrado verticalmente",
|
|
20
20
|
"data": {
|
|
21
21
|
"center": true,
|
|
22
22
|
"figureHtml": "<div class=\" w-20 h-20 \"><div class=\" h-full border-4 border-dashed border-gray-200 rounded-lg \"></div></div>",
|
|
@@ -24,8 +24,8 @@
|
|
|
24
24
|
}
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
|
-
"name": "
|
|
28
|
-
"description": "
|
|
27
|
+
"name": "clases añadiendo padding y margin",
|
|
28
|
+
"description": "Lo más habitual es añadir clases para dar estilos al componente, el figure y los elementos de contenido.",
|
|
29
29
|
"data": {
|
|
30
30
|
"figureHtml": "<div class=\" w-20 h-20 \"><div class=\" h-full border-4 border-dashed border-gray-200 rounded-lg \"></div></div>",
|
|
31
31
|
"figureClasses": "mr-base",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
}
|
|
36
36
|
},
|
|
37
37
|
{
|
|
38
|
-
"name": "
|
|
39
|
-
"description": "
|
|
38
|
+
"name": "Orden invertido con clases, padding y margin",
|
|
39
|
+
"description": "Lo más habitual es añadir clases para dar estilos al componente, el figure y los elementos de contenido.",
|
|
40
40
|
"data": {
|
|
41
41
|
"reverse": true,
|
|
42
42
|
"figureHtml": "<div class=\" w-20 h-20 \"><div class=\" h-full border-4 border-dashed border-gray-200 rounded-lg \"></div></div>",
|
|
@@ -1,28 +1,28 @@
|
|
|
1
1
|
{% set exampleComponent = "menu-horizontal" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
8
8
|
"href": "http://www.google.com",
|
|
9
|
-
"text": "
|
|
9
|
+
"text": "Opción 1"
|
|
10
10
|
},
|
|
11
11
|
{
|
|
12
12
|
"href": "http://www.google.com",
|
|
13
|
-
"text": "
|
|
13
|
+
"text": "Opción 2"
|
|
14
14
|
},
|
|
15
15
|
{
|
|
16
16
|
"href": "http://www.google.com",
|
|
17
|
-
"text": "
|
|
17
|
+
"text": "Opción 3"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
20
|
"href": "http://www.google.com",
|
|
21
|
-
"text": "
|
|
21
|
+
"text": "Opción 4"
|
|
22
22
|
},
|
|
23
23
|
{
|
|
24
24
|
"href": "http://www.google.com",
|
|
25
|
-
"text": "
|
|
25
|
+
"text": "Opción 5"
|
|
26
26
|
}
|
|
27
27
|
],
|
|
28
28
|
"attributes": {
|
|
@@ -31,29 +31,29 @@
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
"name": "
|
|
34
|
+
"name": "con item deshabilitado",
|
|
35
35
|
"data": {
|
|
36
36
|
"items": [
|
|
37
37
|
{
|
|
38
38
|
"href": "http://www.google.com",
|
|
39
|
-
"text": "
|
|
39
|
+
"text": "Opción 1"
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
42
|
"href": "http://www.google.com",
|
|
43
|
-
"text": "
|
|
43
|
+
"text": "Opción 2"
|
|
44
44
|
},
|
|
45
45
|
{
|
|
46
46
|
"href": "http://www.google.com",
|
|
47
|
-
"text": "
|
|
47
|
+
"text": "Opción deshabilitada 3",
|
|
48
48
|
"disabled": true
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
51
|
"href": "http://www.google.com",
|
|
52
|
-
"text": "
|
|
52
|
+
"text": "Opción 4"
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
55
|
"href": "http://www.google.com",
|
|
56
|
-
"text": "
|
|
56
|
+
"text": "Opción 5"
|
|
57
57
|
}
|
|
58
58
|
],
|
|
59
59
|
"attributes": {
|
|
@@ -62,29 +62,29 @@
|
|
|
62
62
|
}
|
|
63
63
|
},
|
|
64
64
|
{
|
|
65
|
-
"name": "
|
|
65
|
+
"name": "con item activo",
|
|
66
66
|
"data": {
|
|
67
67
|
"items": [
|
|
68
68
|
{
|
|
69
69
|
"href": "http://www.google.com",
|
|
70
|
-
"text": "
|
|
70
|
+
"text": "Opción 1"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"href": "http://www.google.com",
|
|
74
|
-
"text": "
|
|
74
|
+
"text": "Opción 2"
|
|
75
75
|
},
|
|
76
76
|
{
|
|
77
77
|
"href": "http://www.google.com",
|
|
78
|
-
"text": "
|
|
78
|
+
"text": "Opción 3"
|
|
79
79
|
},
|
|
80
80
|
{
|
|
81
81
|
"href": "http://www.google.com",
|
|
82
|
-
"text": "
|
|
82
|
+
"text": "Opción 4 activa",
|
|
83
83
|
"active": true
|
|
84
84
|
},
|
|
85
85
|
{
|
|
86
86
|
"href": "http://www.google.com",
|
|
87
|
-
"text": "
|
|
87
|
+
"text": "Opción 5"
|
|
88
88
|
}
|
|
89
89
|
],
|
|
90
90
|
"attributes": {
|
|
@@ -93,32 +93,32 @@
|
|
|
93
93
|
}
|
|
94
94
|
},
|
|
95
95
|
{
|
|
96
|
-
"name": "
|
|
96
|
+
"name": "con target en enlaces",
|
|
97
97
|
"data": {
|
|
98
98
|
"items": [
|
|
99
99
|
{
|
|
100
100
|
"href": "http://www.google.com",
|
|
101
|
-
"text": "
|
|
101
|
+
"text": "Opción 1",
|
|
102
102
|
"target": "_blank"
|
|
103
103
|
},
|
|
104
104
|
{
|
|
105
105
|
"href": "http://www.google.com",
|
|
106
|
-
"text": "
|
|
106
|
+
"text": "Opción 2",
|
|
107
107
|
"target": "_blank"
|
|
108
108
|
},
|
|
109
109
|
{
|
|
110
110
|
"href": "http://www.google.com",
|
|
111
|
-
"text": "
|
|
111
|
+
"text": "Opción 3",
|
|
112
112
|
"target": "_blank"
|
|
113
113
|
},
|
|
114
114
|
{
|
|
115
115
|
"href": "http://www.google.com",
|
|
116
|
-
"text": "
|
|
116
|
+
"text": "Opción 4",
|
|
117
117
|
"target": "_blank"
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
120
|
"href": "http://www.google.com",
|
|
121
|
-
"text": "
|
|
121
|
+
"text": "Opción 5",
|
|
122
122
|
"target": "_blank"
|
|
123
123
|
}
|
|
124
124
|
],
|
|
@@ -128,32 +128,32 @@
|
|
|
128
128
|
}
|
|
129
129
|
},
|
|
130
130
|
{
|
|
131
|
-
"name": "
|
|
132
|
-
"description":
|
|
131
|
+
"name": "con clases de css aplicadas",
|
|
132
|
+
"description": 'Clase modificadora aplicada: <code>.c-menu-horizontal--tabs</code>',
|
|
133
133
|
"data": {
|
|
134
134
|
"classes": "c-menu-horizontal--tabs",
|
|
135
135
|
"items": [
|
|
136
136
|
{
|
|
137
137
|
"href": "http://www.google.com",
|
|
138
|
-
"text": "
|
|
138
|
+
"text": "Opción 1"
|
|
139
139
|
},
|
|
140
140
|
{
|
|
141
141
|
"href": "http://www.google.com",
|
|
142
|
-
"text": "
|
|
142
|
+
"text": "Opción 2",
|
|
143
143
|
"active": true
|
|
144
144
|
},
|
|
145
145
|
{
|
|
146
146
|
"href": "http://www.google.com",
|
|
147
|
-
"text": "
|
|
147
|
+
"text": "Opción 3"
|
|
148
148
|
},
|
|
149
149
|
{
|
|
150
150
|
"href": "http://www.google.com",
|
|
151
|
-
"text": "
|
|
151
|
+
"text": "Opción 4",
|
|
152
152
|
"disabled": true
|
|
153
153
|
},
|
|
154
154
|
{
|
|
155
155
|
"href": "http://www.google.com",
|
|
156
|
-
"text": "
|
|
156
|
+
"text": "Opción 5"
|
|
157
157
|
}
|
|
158
158
|
],
|
|
159
159
|
"attributes": {
|
|
@@ -162,8 +162,8 @@
|
|
|
162
162
|
}
|
|
163
163
|
},
|
|
164
164
|
{
|
|
165
|
-
"name": "
|
|
166
|
-
"description":
|
|
165
|
+
"name": "con clases aplicadas: tabs en móvil",
|
|
166
|
+
"description": 'Clase modificadora aplicada: <code>.c-menu-horizontal--tabs-mobile</code>',
|
|
167
167
|
"data": {
|
|
168
168
|
"classes": "c-menu-horizontal--tabs-mobile",
|
|
169
169
|
"items": [
|
|
@@ -187,30 +187,30 @@
|
|
|
187
187
|
}
|
|
188
188
|
},
|
|
189
189
|
{
|
|
190
|
-
"name": "
|
|
191
|
-
"description":
|
|
190
|
+
"name": "con idPrefix",
|
|
191
|
+
"description": 'Mostrar código para ver el <code>idPrefix</code> aplicado',
|
|
192
192
|
"data": {
|
|
193
193
|
"idPrefix": "site-menu-item",
|
|
194
194
|
"items": [
|
|
195
195
|
{
|
|
196
196
|
"href": "http://www.google.com",
|
|
197
|
-
"text": "
|
|
197
|
+
"text": "Opción 1"
|
|
198
198
|
},
|
|
199
199
|
{
|
|
200
200
|
"href": "http://www.google.com",
|
|
201
|
-
"text": "
|
|
201
|
+
"text": "Opción 2"
|
|
202
202
|
},
|
|
203
203
|
{
|
|
204
204
|
"href": "http://www.google.com",
|
|
205
|
-
"text": "
|
|
205
|
+
"text": "Opción 3"
|
|
206
206
|
},
|
|
207
207
|
{
|
|
208
208
|
"href": "http://www.google.com",
|
|
209
|
-
"text": "
|
|
209
|
+
"text": "Opción 4"
|
|
210
210
|
},
|
|
211
211
|
{
|
|
212
212
|
"href": "http://www.google.com",
|
|
213
|
-
"text": "
|
|
213
|
+
"text": "Opción 5"
|
|
214
214
|
}
|
|
215
215
|
],
|
|
216
216
|
"attributes": {
|
|
@@ -219,33 +219,33 @@
|
|
|
219
219
|
}
|
|
220
220
|
},
|
|
221
221
|
{
|
|
222
|
-
"name": "
|
|
223
|
-
"description":
|
|
222
|
+
"name": "con ids individuales",
|
|
223
|
+
"description": 'Mostrar código para ver los <code>id</code> aplicados',
|
|
224
224
|
"data": {
|
|
225
225
|
"items": [
|
|
226
226
|
{
|
|
227
227
|
"href": "http://www.google.com",
|
|
228
|
-
"text": "
|
|
228
|
+
"text": "Opción 1",
|
|
229
229
|
"id": "option-A"
|
|
230
230
|
},
|
|
231
231
|
{
|
|
232
232
|
"href": "http://www.google.com",
|
|
233
|
-
"text": "
|
|
233
|
+
"text": "Opción 2",
|
|
234
234
|
"id": "option-B"
|
|
235
235
|
},
|
|
236
236
|
{
|
|
237
237
|
"href": "http://www.google.com",
|
|
238
|
-
"text": "
|
|
238
|
+
"text": "Opción 3",
|
|
239
239
|
"id": "option-C"
|
|
240
240
|
},
|
|
241
241
|
{
|
|
242
242
|
"href": "http://www.google.com",
|
|
243
|
-
"text": "
|
|
243
|
+
"text": "Opción 4",
|
|
244
244
|
"id": "option-D"
|
|
245
245
|
},
|
|
246
246
|
{
|
|
247
247
|
"href": "http://www.google.com",
|
|
248
|
-
"text": "
|
|
248
|
+
"text": "Opción 5",
|
|
249
249
|
"id": "option-E"
|
|
250
250
|
}
|
|
251
251
|
],
|
|
@@ -255,8 +255,8 @@
|
|
|
255
255
|
}
|
|
256
256
|
},
|
|
257
257
|
{
|
|
258
|
-
"name": "
|
|
259
|
-
"description": "
|
|
258
|
+
"name": "con atributos",
|
|
259
|
+
"description": "Muestra el código para ver cómo se aplican los atributos",
|
|
260
260
|
"data": {
|
|
261
261
|
"attributes": {
|
|
262
262
|
"id": "nav-id-example",
|
|
@@ -265,7 +265,7 @@
|
|
|
265
265
|
"items": [
|
|
266
266
|
{
|
|
267
267
|
"href": "http://www.google.com",
|
|
268
|
-
"text": "
|
|
268
|
+
"text": "Opción 1",
|
|
269
269
|
"attributes": {
|
|
270
270
|
"data-attribute-1": "value-A",
|
|
271
271
|
"data-attribute-2": "value-B",
|
|
@@ -274,7 +274,7 @@
|
|
|
274
274
|
},
|
|
275
275
|
{
|
|
276
276
|
"href": "http://www.google.com",
|
|
277
|
-
"text": "
|
|
277
|
+
"text": "Opción 2",
|
|
278
278
|
"attributes": {
|
|
279
279
|
"data-attribute-1": "value-A",
|
|
280
280
|
"data-attribute-2": "value-B",
|
|
@@ -283,7 +283,7 @@
|
|
|
283
283
|
},
|
|
284
284
|
{
|
|
285
285
|
"href": "http://www.google.com",
|
|
286
|
-
"text": "
|
|
286
|
+
"text": "Opción 3",
|
|
287
287
|
"attributes": {
|
|
288
288
|
"data-attribute-1": "value-A",
|
|
289
289
|
"data-attribute-2": "value-B",
|
|
@@ -292,7 +292,7 @@
|
|
|
292
292
|
},
|
|
293
293
|
{
|
|
294
294
|
"href": "http://www.google.com",
|
|
295
|
-
"text": "
|
|
295
|
+
"text": "Opción 4",
|
|
296
296
|
"attributes": {
|
|
297
297
|
"data-attribute-1": "value-A",
|
|
298
298
|
"data-attribute-2": "value-B",
|
|
@@ -301,7 +301,7 @@
|
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
303
|
"href": "http://www.google.com",
|
|
304
|
-
"text": "
|
|
304
|
+
"text": "Opción 5",
|
|
305
305
|
"attributes": {
|
|
306
306
|
"data-attribute-1": "value-A",
|
|
307
307
|
"data-attribute-2": "value-B",
|