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,28 +1,43 @@
|
|
|
1
1
|
{% set exampleComponent = "collapsible" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"id": "collapsible-example",
|
|
7
|
-
"headerText": "
|
|
8
|
-
"text": "
|
|
7
|
+
"headerText": "Cabecera del collapsible",
|
|
8
|
+
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
|
9
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
|
10
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
11
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
|
12
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
|
13
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum."
|
|
9
14
|
}
|
|
10
15
|
},
|
|
11
16
|
{
|
|
12
|
-
"name": "
|
|
17
|
+
"name": "expandido",
|
|
13
18
|
"data": {
|
|
14
19
|
"id": "help-with-nationality",
|
|
15
|
-
"headerText": "
|
|
16
|
-
"text": "
|
|
20
|
+
"headerText": "Cabecera del collapsible",
|
|
21
|
+
"text": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
|
|
22
|
+
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
|
23
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
24
|
+
consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse
|
|
25
|
+
cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non
|
|
26
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.",
|
|
17
27
|
"open": true
|
|
18
28
|
}
|
|
19
29
|
},
|
|
20
30
|
{
|
|
21
|
-
"name": "
|
|
31
|
+
"name": "con HTML",
|
|
22
32
|
"data": {
|
|
23
33
|
"id": "collapsible-html-example",
|
|
24
|
-
"headerText": "
|
|
25
|
-
"html": '<p>
|
|
34
|
+
"headerText": "Cabecera del collapsible",
|
|
35
|
+
"html": '<p>Lorem ipsum dolor sit amet, <strong>consectetur</strong> adipisicing elit, sed do eiusmod
|
|
36
|
+
tempor <em>incididunt</em> ut labore et dolore magna aliqua. Ut enim ad minim veniam,
|
|
37
|
+
quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo
|
|
38
|
+
consequat. Duis aute irure dolor in <strong>reprehenderit</strong> in voluptate velit esse
|
|
39
|
+
cillum dolore eu fugiat nulla <em>pariatur</em>. Excepteur sint occaecat cupidatat non
|
|
40
|
+
proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>'
|
|
26
41
|
}
|
|
27
42
|
}
|
|
28
43
|
] %}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{% set exampleComponent = "date-input" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"id": "fechnacim",
|
|
7
7
|
"namePrefix": "fechnacim",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
}
|
|
40
40
|
},
|
|
41
41
|
{
|
|
42
|
-
"name": "
|
|
42
|
+
"name": "con errores solo",
|
|
43
43
|
"data": {
|
|
44
44
|
"id": "fechnacim-errors-a",
|
|
45
45
|
"fieldset": {
|
|
@@ -79,7 +79,7 @@
|
|
|
79
79
|
}
|
|
80
80
|
},
|
|
81
81
|
{
|
|
82
|
-
"name": "
|
|
82
|
+
"name": "con errores y pista",
|
|
83
83
|
"data": {
|
|
84
84
|
"id": "fechnacim-errors-b",
|
|
85
85
|
"fieldset": {
|
|
@@ -122,7 +122,7 @@
|
|
|
122
122
|
}
|
|
123
123
|
},
|
|
124
124
|
{
|
|
125
|
-
"name": "
|
|
125
|
+
"name": "con error en el input del día",
|
|
126
126
|
"data": {
|
|
127
127
|
"id": "fechnacim-day-error",
|
|
128
128
|
"namePrefix": "fechnacim-day-error",
|
|
@@ -164,7 +164,7 @@
|
|
|
164
164
|
}
|
|
165
165
|
},
|
|
166
166
|
{
|
|
167
|
-
"name": "
|
|
167
|
+
"name": "con error en el input del mes",
|
|
168
168
|
"data": {
|
|
169
169
|
"id": "fechnacim-month-error",
|
|
170
170
|
"namePrefix": "fechnacim-month-error",
|
|
@@ -206,7 +206,7 @@
|
|
|
206
206
|
}
|
|
207
207
|
},
|
|
208
208
|
{
|
|
209
|
-
"name": "
|
|
209
|
+
"name": "con error en el input del año",
|
|
210
210
|
"data": {
|
|
211
211
|
"id": "fechnacim-year-error",
|
|
212
212
|
"namePrefix": "fechnacim-year-error",
|
|
@@ -248,7 +248,7 @@
|
|
|
248
248
|
}
|
|
249
249
|
},
|
|
250
250
|
{
|
|
251
|
-
"name": "
|
|
251
|
+
"name": "con items por defecto",
|
|
252
252
|
"data": {
|
|
253
253
|
"id": "fechnacim-default-items",
|
|
254
254
|
"namePrefix": "fechnacim-default-items",
|
|
@@ -263,7 +263,7 @@
|
|
|
263
263
|
}
|
|
264
264
|
},
|
|
265
265
|
{
|
|
266
|
-
"name": "
|
|
266
|
+
"name": "input de tiempo",
|
|
267
267
|
"data": {
|
|
268
268
|
"id": "time",
|
|
269
269
|
"namePrefix": "time",
|
|
@@ -300,7 +300,7 @@
|
|
|
300
300
|
}
|
|
301
301
|
},
|
|
302
302
|
{
|
|
303
|
-
"name": "
|
|
303
|
+
"name": "con clases de form-group opcionales",
|
|
304
304
|
"data": {
|
|
305
305
|
"id": "fechnacim-formgroup-classes",
|
|
306
306
|
"namePrefix": "fechnacim-formgroup-classes",
|
|
@@ -313,12 +313,12 @@
|
|
|
313
313
|
"text": "Por ejemplo, 31 3 1980"
|
|
314
314
|
},
|
|
315
315
|
"formGroup": {
|
|
316
|
-
"classes": "bg-
|
|
316
|
+
"classes": "p-base bg-primary-light"
|
|
317
317
|
}
|
|
318
318
|
}
|
|
319
319
|
},
|
|
320
320
|
{
|
|
321
|
-
"name": "
|
|
321
|
+
"name": "con valores de autocompletado",
|
|
322
322
|
"data": {
|
|
323
323
|
"id": "fechnacim-with-autocomplete-attribute",
|
|
324
324
|
"namePrefix": "fechnacim-with-autocomplete",
|
|
@@ -359,7 +359,7 @@
|
|
|
359
359
|
}
|
|
360
360
|
},
|
|
361
361
|
{
|
|
362
|
-
"name": "
|
|
362
|
+
"name": "con atributos de input",
|
|
363
363
|
"data": {
|
|
364
364
|
"id": "fechnacim-with-input-attributes",
|
|
365
365
|
"namePrefix": "fechnacim-with-input-attributes",
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
}
|
|
401
401
|
},
|
|
402
402
|
{
|
|
403
|
-
"name": "
|
|
403
|
+
"name": "peque",
|
|
404
404
|
"data": {
|
|
405
405
|
"id": "fechnacim-small",
|
|
406
406
|
"namePrefix": "fechnacim-small",
|
|
@@ -452,7 +452,7 @@
|
|
|
452
452
|
}
|
|
453
453
|
},
|
|
454
454
|
{
|
|
455
|
-
"name": "
|
|
455
|
+
"name": "input de tiempo peque",
|
|
456
456
|
"data": {
|
|
457
457
|
"id": "fechnacim-small-time",
|
|
458
458
|
"namePrefix": "fechnacim-small-time",
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
{% set exampleComponent = "description-list" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"items": [
|
|
7
7
|
{
|
|
8
8
|
"term": {
|
|
9
|
-
"text": "
|
|
9
|
+
"text": "término"
|
|
10
10
|
},
|
|
11
11
|
"definition": {
|
|
12
|
-
"text": "
|
|
12
|
+
"text": "definición"
|
|
13
13
|
}
|
|
14
14
|
}
|
|
15
15
|
]
|
|
16
16
|
}
|
|
17
17
|
},
|
|
18
18
|
{
|
|
19
|
-
"name": "
|
|
19
|
+
"name": "grande",
|
|
20
20
|
"data": {
|
|
21
21
|
"items": [
|
|
22
22
|
{
|
|
23
23
|
"term": {
|
|
24
|
-
"text": "
|
|
24
|
+
"text": "término"
|
|
25
25
|
},
|
|
26
26
|
"definition": {
|
|
27
|
-
"text": "
|
|
27
|
+
"text": "definición",
|
|
28
28
|
"classes": "text-lg"
|
|
29
29
|
}
|
|
30
30
|
}
|
|
@@ -32,15 +32,15 @@
|
|
|
32
32
|
}
|
|
33
33
|
},
|
|
34
34
|
{
|
|
35
|
-
"name": "extra
|
|
35
|
+
"name": "extra grande",
|
|
36
36
|
"data": {
|
|
37
37
|
"items": [
|
|
38
38
|
{
|
|
39
39
|
"term": {
|
|
40
|
-
"text": "
|
|
40
|
+
"text": "término"
|
|
41
41
|
},
|
|
42
42
|
"definition": {
|
|
43
|
-
"text": "
|
|
43
|
+
"text": "definición",
|
|
44
44
|
"classes": "font-bold text-xl"
|
|
45
45
|
}
|
|
46
46
|
}
|
|
@@ -53,28 +53,28 @@
|
|
|
53
53
|
"items": [
|
|
54
54
|
{
|
|
55
55
|
"term": {
|
|
56
|
-
"text": "
|
|
56
|
+
"text": "término"
|
|
57
57
|
},
|
|
58
58
|
"definition": {
|
|
59
|
-
"text": "
|
|
59
|
+
"text": "definición"
|
|
60
60
|
},
|
|
61
61
|
"classes": "mb-base"
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
64
|
"term": {
|
|
65
|
-
"text": "
|
|
65
|
+
"text": "término"
|
|
66
66
|
},
|
|
67
67
|
"definition": {
|
|
68
|
-
"text": "
|
|
68
|
+
"text": "definición"
|
|
69
69
|
},
|
|
70
70
|
"classes": "mb-base"
|
|
71
71
|
},
|
|
72
72
|
{
|
|
73
73
|
"term": {
|
|
74
|
-
"text": "
|
|
74
|
+
"text": "término"
|
|
75
75
|
},
|
|
76
76
|
"definition": {
|
|
77
|
-
"text": "
|
|
77
|
+
"text": "definición"
|
|
78
78
|
},
|
|
79
79
|
"classes": "mb-base"
|
|
80
80
|
}
|
|
@@ -88,28 +88,28 @@
|
|
|
88
88
|
"items": [
|
|
89
89
|
{
|
|
90
90
|
"term": {
|
|
91
|
-
"text": "
|
|
91
|
+
"text": "término"
|
|
92
92
|
},
|
|
93
93
|
"definition": {
|
|
94
|
-
"text": "
|
|
94
|
+
"text": "definición"
|
|
95
95
|
},
|
|
96
96
|
"classes": "flex-1 pr-base"
|
|
97
97
|
},
|
|
98
98
|
{
|
|
99
99
|
"term": {
|
|
100
|
-
"text": "
|
|
100
|
+
"text": "término"
|
|
101
101
|
},
|
|
102
102
|
"definition": {
|
|
103
|
-
"text": "
|
|
103
|
+
"text": "definición"
|
|
104
104
|
},
|
|
105
105
|
"classes": "flex-1 pr-base"
|
|
106
106
|
},
|
|
107
107
|
{
|
|
108
108
|
"term": {
|
|
109
|
-
"text": "
|
|
109
|
+
"text": "término"
|
|
110
110
|
},
|
|
111
111
|
"definition": {
|
|
112
|
-
"text": "
|
|
112
|
+
"text": "definición"
|
|
113
113
|
},
|
|
114
114
|
"classes": "flex-1 pr-base"
|
|
115
115
|
}
|
|
@@ -117,61 +117,61 @@
|
|
|
117
117
|
}
|
|
118
118
|
},
|
|
119
119
|
{
|
|
120
|
-
"name": "horizontal
|
|
120
|
+
"name": "horizontal con 2 filas",
|
|
121
121
|
"data": {
|
|
122
122
|
"classes": "flex flex-wrap w-full",
|
|
123
123
|
"items": [
|
|
124
124
|
{
|
|
125
125
|
"term": {
|
|
126
|
-
"text": "
|
|
126
|
+
"text": "término"
|
|
127
127
|
},
|
|
128
128
|
"definition": {
|
|
129
|
-
"text": "
|
|
129
|
+
"text": "definición"
|
|
130
130
|
},
|
|
131
131
|
"classes": "w-1/3 mb-base pr-base"
|
|
132
132
|
},
|
|
133
133
|
{
|
|
134
134
|
"term": {
|
|
135
|
-
"text": "
|
|
135
|
+
"text": "término"
|
|
136
136
|
},
|
|
137
137
|
"definition": {
|
|
138
|
-
"text": "
|
|
138
|
+
"text": "definición"
|
|
139
139
|
},
|
|
140
140
|
"classes": "w-1/3 mb-base pr-base"
|
|
141
141
|
},
|
|
142
142
|
{
|
|
143
143
|
"term": {
|
|
144
|
-
"text": "
|
|
144
|
+
"text": "término"
|
|
145
145
|
},
|
|
146
146
|
"definition": {
|
|
147
|
-
"text": "
|
|
147
|
+
"text": "definición"
|
|
148
148
|
},
|
|
149
149
|
"classes": "w-1/3 mb-base pr-base"
|
|
150
150
|
},
|
|
151
151
|
{
|
|
152
152
|
"term": {
|
|
153
|
-
"text": "
|
|
153
|
+
"text": "término"
|
|
154
154
|
},
|
|
155
155
|
"definition": {
|
|
156
|
-
"text": "
|
|
156
|
+
"text": "definición"
|
|
157
157
|
},
|
|
158
158
|
"classes": "w-1/3 mb-base pr-base"
|
|
159
159
|
},
|
|
160
160
|
{
|
|
161
161
|
"term": {
|
|
162
|
-
"text": "
|
|
162
|
+
"text": "término"
|
|
163
163
|
},
|
|
164
164
|
"definition": {
|
|
165
|
-
"text": "
|
|
165
|
+
"text": "definición"
|
|
166
166
|
},
|
|
167
167
|
"classes": "w-1/3 mb-base pr-base"
|
|
168
168
|
},
|
|
169
169
|
{
|
|
170
170
|
"term": {
|
|
171
|
-
"text": "
|
|
171
|
+
"text": "término"
|
|
172
172
|
},
|
|
173
173
|
"definition": {
|
|
174
|
-
"text": "
|
|
174
|
+
"text": "definición"
|
|
175
175
|
},
|
|
176
176
|
"classes": "w-1/3 mb-base pr-base"
|
|
177
177
|
}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
}
|
|
180
180
|
},
|
|
181
181
|
{
|
|
182
|
-
"name": "
|
|
182
|
+
"name": "agrupado",
|
|
183
183
|
"data": {
|
|
184
184
|
"classes": "w-full py-sm border-t border-b border-neutral-base",
|
|
185
185
|
"items": [
|
|
@@ -242,7 +242,7 @@
|
|
|
242
242
|
}
|
|
243
243
|
},
|
|
244
244
|
{
|
|
245
|
-
"name": "
|
|
245
|
+
"name": "con apariencia de tabla",
|
|
246
246
|
"data": {
|
|
247
247
|
"classes": "w-full",
|
|
248
248
|
"items": [
|
|
@@ -316,7 +316,7 @@
|
|
|
316
316
|
}
|
|
317
317
|
},
|
|
318
318
|
{
|
|
319
|
-
"name": "
|
|
319
|
+
"name": "con apariencia de tabla y números",
|
|
320
320
|
"data": {
|
|
321
321
|
"classes": "w-full",
|
|
322
322
|
"items": [
|
|
@@ -390,15 +390,16 @@
|
|
|
390
390
|
}
|
|
391
391
|
},
|
|
392
392
|
{
|
|
393
|
-
"name": "
|
|
393
|
+
"name": "con HTML y clases",
|
|
394
394
|
"data": {
|
|
395
395
|
"items": [
|
|
396
396
|
{
|
|
397
397
|
"term": {
|
|
398
|
-
"html": "Expedientes abiertos ↓"
|
|
398
|
+
"html": "Expedientes abiertos ↓",
|
|
399
|
+
"classes": "mb-sm"
|
|
399
400
|
},
|
|
400
401
|
"definition": {
|
|
401
|
-
"html": '<span class="font-bold text-4xl">45</span> <svg class="inline-block align-baseline" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" width="1.6rem" height="1.6rem"><path d="M140 20a20 20 0 00-20-20H20A20 20 0 000 20v100a20 20 0 0020 20h70a10 10 0 007.07-2.93l40-40A10 10 0 00140 90zM20 22.5a2.5 2.5 0 012.5-2.5h95a2.5 2.5 0 012.5 2.5v55a2.5 2.5 0 01-2.5 2.5H95a15 15 0 00-15 15v22.5a2.5 2.5 0 01-2.5 2.5h-55a2.5 2.5 0 01-2.5-2.5z"/></svg><a href="/" class="c-link block font-normal text-sm">Ver todos</a>'
|
|
402
|
+
"html": '<span class="font-bold text-4xl">45</span> <svg class="inline-block align-baseline ml-sm" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 140 140" width="1.6rem" height="1.6rem"><path d="M140 20a20 20 0 00-20-20H20A20 20 0 000 20v100a20 20 0 0020 20h70a10 10 0 007.07-2.93l40-40A10 10 0 00140 90zM20 22.5a2.5 2.5 0 012.5-2.5h95a2.5 2.5 0 012.5 2.5v55a2.5 2.5 0 01-2.5 2.5H95a15 15 0 00-15 15v22.5a2.5 2.5 0 01-2.5 2.5h-55a2.5 2.5 0 01-2.5-2.5z"/></svg><a href="/" class="c-link block mt-sm font-normal text-sm">Ver todos</a>'
|
|
402
403
|
}
|
|
403
404
|
}
|
|
404
405
|
],
|
|
@@ -406,19 +407,19 @@
|
|
|
406
407
|
}
|
|
407
408
|
},
|
|
408
409
|
{
|
|
409
|
-
"name": "
|
|
410
|
-
"description": "
|
|
410
|
+
"name": "con atributos",
|
|
411
|
+
"description": "Muestra el código para ver cómo se aplican los atributos",
|
|
411
412
|
"data": {
|
|
412
413
|
"items": [
|
|
413
414
|
{
|
|
414
415
|
"term": {
|
|
415
|
-
"text": "
|
|
416
|
+
"text": "término",
|
|
416
417
|
"attributes": {
|
|
417
418
|
"id": "term"
|
|
418
419
|
}
|
|
419
420
|
},
|
|
420
421
|
"definition": {
|
|
421
|
-
"text": "
|
|
422
|
+
"text": "definición",
|
|
422
423
|
"attributes": {
|
|
423
424
|
"id": "definition"
|
|
424
425
|
}
|
|
@@ -1,44 +1,45 @@
|
|
|
1
1
|
{% set exampleComponent = "details" %}
|
|
2
2
|
{% set examples = [
|
|
3
3
|
{
|
|
4
|
-
"name": "
|
|
4
|
+
"name": "por defecto",
|
|
5
5
|
"data": {
|
|
6
6
|
"summary": {
|
|
7
|
-
"html": "
|
|
7
|
+
"html": "Más información"
|
|
8
8
|
},
|
|
9
|
-
"caller": "<p>
|
|
9
|
+
"caller": "<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Aliquid distinctio mollitia itaque placeat voluptatibus, veritatis recusandae odio facere corporis laboriosam quam quia sequi, possimus consequatur enim veniam eius soluta esse.</p>"
|
|
10
10
|
}
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
|
-
"name": "
|
|
13
|
+
"name": "expandido",
|
|
14
|
+
"description": 'Usa el parámetro <code>"open": true</code> para mostrar inicialmente abierto un item.',
|
|
14
15
|
"data": {
|
|
15
|
-
"id": "
|
|
16
|
+
"id": "mas-informacion",
|
|
16
17
|
"summary": {
|
|
17
|
-
"text": "
|
|
18
|
+
"text": "Más información"
|
|
18
19
|
},
|
|
19
|
-
"caller": "<p>
|
|
20
|
+
"caller": "<p>Lorem ipsum dolor sit amet consectetur, adipisicing elit. Voluptates eum cupiditate quod minima consequuntur, eveniet aspernatur eius, consectetur ad, a enim atque dicta, repellat voluptatum iusto hic perspiciatis laboriosam unde.</p>",
|
|
20
21
|
"open": true
|
|
21
22
|
}
|
|
22
23
|
},
|
|
23
24
|
{
|
|
24
|
-
"name": "
|
|
25
|
+
"name": "con HTML",
|
|
25
26
|
"data": {
|
|
26
27
|
"summary": {
|
|
27
|
-
"html":
|
|
28
|
+
"html": 'Más información <em>actualizada</em>'
|
|
28
29
|
},
|
|
29
|
-
"caller": "<p>
|
|
30
|
+
"caller": "<p>Lorem ipsum dolor, sit amet consectetur, adipisicing elit. Quae omnis ipsa eius dolorum, maiores! Labore quaerat nam pariatur minima consectetur, tempora magnam. At sequi quidem exercitationem velit id, pariatur, animi.</p>"
|
|
30
31
|
}
|
|
31
32
|
},
|
|
32
33
|
{
|
|
33
|
-
"name": "
|
|
34
|
+
"name": "con clases",
|
|
34
35
|
"data": {
|
|
35
36
|
"summary": {
|
|
36
|
-
"html":
|
|
37
|
-
"classes": "
|
|
37
|
+
"html": 'Más información <em>actualizada</em>',
|
|
38
|
+
"classes": "hover:underline"
|
|
38
39
|
},
|
|
39
|
-
"classes": "
|
|
40
|
-
"containerClasses": "p-base
|
|
41
|
-
"caller": "<p>
|
|
40
|
+
"classes": "p-base bg-primary-light text-primary-base",
|
|
41
|
+
"containerClasses": "p-base",
|
|
42
|
+
"caller": "<p>Lorem ipsum dolor, sit amet <strong>consectetur</strong>, adipisicing elit. Quae omnis ipsa eius dolorum, maiores! Labore quaerat nam pariatur minima consectetur, tempora magnam. At sequi quidem exercitationem velit id, pariatur, animi.</p>"
|
|
42
43
|
}
|
|
43
44
|
}
|
|
44
45
|
] %}
|
|
@@ -53,11 +53,11 @@
|
|
|
53
53
|
{% set exampleComponent = "dialog" %}
|
|
54
54
|
{% set examples = [
|
|
55
55
|
{
|
|
56
|
-
"name": "
|
|
57
|
-
"description": "role
|
|
56
|
+
"name": "Modal lanzado con un Dialog",
|
|
57
|
+
"description": 'Un dialog es un componente que permite mostrar otro componente que se muestra sobre la página, con una capa negra semitransparente por debajo. Se utiliza para mostrar modales o para mostrar el menú móvil de la cabecera. Si haces click en la capa negra de debajo o si pulsas la tecla Esc se cierra el contenido del Dialog. Mira el código para ver cómo usamos la función <code>openDialog</code>, el primer parámetro es el id del contenido a mostrar, el segundo parámetro es el nodo que debe tomar foco al cerrar el dialog, y el tercer elemento es el id del elemento al que se le da el foco al abrir el contenido. En este ejemplo de modal usamos los atributos de accesibilidad: <code>"role":"dialog"</code> y <code>"aria-modal": true</code>',
|
|
58
58
|
"data": {
|
|
59
59
|
"button": {
|
|
60
|
-
"text": "
|
|
60
|
+
"text": "Abrir modal",
|
|
61
61
|
"attributes": {
|
|
62
62
|
"onclick": "openDialog('default', this, 'label-default-example')"
|
|
63
63
|
}
|
|
@@ -73,11 +73,10 @@
|
|
|
73
73
|
}
|
|
74
74
|
},
|
|
75
75
|
{
|
|
76
|
-
"name": "
|
|
77
|
-
"description": "role=dialog, aria-modal=true",
|
|
76
|
+
"name": "Modal lanzado con un Dialog con acciones secundarias",
|
|
78
77
|
"data": {
|
|
79
78
|
"button": {
|
|
80
|
-
"text": "
|
|
79
|
+
"text": "Abrir modal con acciones secundarias",
|
|
81
80
|
"attributes": {
|
|
82
81
|
"onclick": "openDialog('secondary', this, 'label-secondary-action-example')"
|
|
83
82
|
}
|