desy-html 17.0.1 → 17.0.2

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.
@@ -1,824 +0,0 @@
1
- {% from "components/listbox/_macro.listbox.njk" import componentListbox %}
2
-
3
- <div class="grid lg:grid-cols-5 gap-xl mb-lg">
4
- <div>
5
- Primario
6
- </div>
7
- <div>
8
- {{ componentListbox({
9
- "id":"listbox-1",
10
- "text": "Primario",
11
- "label": {
12
- "text": "Label",
13
- "classes": "sr-only"
14
- },
15
- "classes": "c-listbox--primary",
16
- "items": [
17
- {
18
- "href": "#",
19
- "html": "Opción 1"
20
- },
21
- {
22
- "href": "#",
23
- "text": "Opción 2"
24
- },
25
- {
26
- "href": "#",
27
- "text": "Opción 3"
28
- },
29
- {
30
- "href": "#",
31
- "text": "Opción 4"
32
- },
33
- {
34
- "href": "#",
35
- "text": "Opción 5"
36
- }
37
- ]
38
- }) }}
39
- </div>
40
- <div>
41
- {{ componentListbox({
42
- "id":"listbox-2",
43
- "html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
44
- "label": {
45
- "text": "Label",
46
- "classes": "sr-only"
47
- },
48
- "classes": "c-listbox--primary",
49
- "items": [
50
- {
51
- "href": "#",
52
- "html": "Opción 1"
53
- },
54
- {
55
- "href": "#",
56
- "text": "Opción 2"
57
- },
58
- {
59
- "href": "#",
60
- "text": "Opción 3"
61
- },
62
- {
63
- "href": "#",
64
- "text": "Opción 4"
65
- },
66
- {
67
- "href": "#",
68
- "text": "Opción 5"
69
- }
70
- ]
71
- }) }}
72
- </div>
73
- <div>
74
- {{ componentListbox({
75
- "id":"listbox-3",
76
- "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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
77
- "label": {
78
- "text": "Label",
79
- "classes": "sr-only"
80
- },
81
- "classes": "c-listbox--primary",
82
- "items": [
83
- {
84
- "href": "#",
85
- "html": "Opción 1"
86
- },
87
- {
88
- "href": "#",
89
- "text": "Opción 2"
90
- },
91
- {
92
- "href": "#",
93
- "text": "Opción 3"
94
- },
95
- {
96
- "href": "#",
97
- "text": "Opción 4"
98
- },
99
- {
100
- "href": "#",
101
- "text": "Opción 5"
102
- }
103
- ]
104
- }) }}
105
- </div>
106
- <div>
107
- {{ componentListbox({
108
- "id":"listbox-4",
109
- "html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
110
- "label": {
111
- "text": "Label",
112
- "classes": "sr-only"
113
- },
114
- "classes": "c-listbox--primary align-bottom",
115
- "items": [
116
- {
117
- "href": "#",
118
- "html": "Opción 1"
119
- },
120
- {
121
- "href": "#",
122
- "text": "Opción 2"
123
- },
124
- {
125
- "href": "#",
126
- "text": "Opción 3"
127
- },
128
- {
129
- "href": "#",
130
- "text": "Opción 4"
131
- },
132
- {
133
- "href": "#",
134
- "text": "Opción 5"
135
- }
136
- ]
137
- }) }}
138
- </div>
139
- </div>
140
- <div class="grid lg:grid-cols-5 gap-xl mb-lg">
141
- <div>
142
- Transparent
143
- </div>
144
- <div>
145
- {{ componentListbox({
146
- "id":"listbox-5",
147
- "text": "Primario",
148
- "label": {
149
- "text": "Label",
150
- "classes": "sr-only"
151
- },
152
- "classes": "c-listbox--transparent",
153
- "items": [
154
- {
155
- "href": "#",
156
- "html": "Opción 1"
157
- },
158
- {
159
- "href": "#",
160
- "text": "Opción 2"
161
- },
162
- {
163
- "href": "#",
164
- "text": "Opción 3"
165
- },
166
- {
167
- "href": "#",
168
- "text": "Opción 4"
169
- },
170
- {
171
- "href": "#",
172
- "text": "Opción 5"
173
- }
174
- ]
175
- }) }}
176
- </div>
177
- <div>
178
- {{ componentListbox({
179
- "id":"listbox-6",
180
- "html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
181
- "label": {
182
- "text": "Label",
183
- "classes": "sr-only"
184
- },
185
- "classes": "c-listbox--transparent",
186
- "items": [
187
- {
188
- "href": "#",
189
- "html": "Opción 1"
190
- },
191
- {
192
- "href": "#",
193
- "text": "Opción 2"
194
- },
195
- {
196
- "href": "#",
197
- "text": "Opción 3"
198
- },
199
- {
200
- "href": "#",
201
- "text": "Opción 4"
202
- },
203
- {
204
- "href": "#",
205
- "text": "Opción 5"
206
- }
207
- ]
208
- }) }}
209
- </div>
210
- <div>
211
- {{ componentListbox({
212
- "id":"listbox-7",
213
- "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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
214
- "label": {
215
- "text": "Label",
216
- "classes": "sr-only"
217
- },
218
- "classes": "c-listbox--transparent",
219
- "items": [
220
- {
221
- "href": "#",
222
- "html": "Opción 1"
223
- },
224
- {
225
- "href": "#",
226
- "text": "Opción 2"
227
- },
228
- {
229
- "href": "#",
230
- "text": "Opción 3"
231
- },
232
- {
233
- "href": "#",
234
- "text": "Opción 4"
235
- },
236
- {
237
- "href": "#",
238
- "text": "Opción 5"
239
- }
240
- ]
241
- }) }}
242
- </div>
243
- <div>
244
- {{ componentListbox({
245
- "id":"listbox-8",
246
- "html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
247
- "label": {
248
- "text": "Label",
249
- "classes": "sr-only"
250
- },
251
- "classes": "c-listbox--transparent align-bottom",
252
- "items": [
253
- {
254
- "href": "#",
255
- "html": "Opción 1"
256
- },
257
- {
258
- "href": "#",
259
- "text": "Opción 2"
260
- },
261
- {
262
- "href": "#",
263
- "text": "Opción 3"
264
- },
265
- {
266
- "href": "#",
267
- "text": "Opción 4"
268
- },
269
- {
270
- "href": "#",
271
- "text": "Opción 5"
272
- }
273
- ]
274
- }) }}
275
- </div>
276
- </div>
277
- <div class="grid lg:grid-cols-5 gap-xl mb-lg">
278
- <div>
279
- Header
280
- </div>
281
- <div>
282
- {{ componentListbox({
283
- "id":"listbox-9",
284
- "text": "Primario",
285
- "label": {
286
- "text": "Label",
287
- "classes": "sr-only"
288
- },
289
- "classes": "c-listbox--header",
290
- "items": [
291
- {
292
- "href": "#",
293
- "html": "Opción 1"
294
- },
295
- {
296
- "href": "#",
297
- "text": "Opción 2"
298
- },
299
- {
300
- "href": "#",
301
- "text": "Opción 3"
302
- },
303
- {
304
- "href": "#",
305
- "text": "Opción 4"
306
- },
307
- {
308
- "href": "#",
309
- "text": "Opción 5"
310
- }
311
- ]
312
- }) }}
313
- </div>
314
- <div>
315
- {{ componentListbox({
316
- "id":"listbox-10",
317
- "html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
318
- "label": {
319
- "text": "Label",
320
- "classes": "sr-only"
321
- },
322
- "classes": "c-listbox--header",
323
- "items": [
324
- {
325
- "href": "#",
326
- "html": "Opción 1"
327
- },
328
- {
329
- "href": "#",
330
- "text": "Opción 2"
331
- },
332
- {
333
- "href": "#",
334
- "text": "Opción 3"
335
- },
336
- {
337
- "href": "#",
338
- "text": "Opción 4"
339
- },
340
- {
341
- "href": "#",
342
- "text": "Opción 5"
343
- }
344
- ]
345
- }) }}
346
- </div>
347
- <div>
348
- {{ componentListbox({
349
- "id":"listbox-11",
350
- "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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
351
- "label": {
352
- "text": "Label",
353
- "classes": "sr-only"
354
- },
355
- "classes": "c-listbox--header",
356
- "items": [
357
- {
358
- "href": "#",
359
- "html": "Opción 1"
360
- },
361
- {
362
- "href": "#",
363
- "text": "Opción 2"
364
- },
365
- {
366
- "href": "#",
367
- "text": "Opción 3"
368
- },
369
- {
370
- "href": "#",
371
- "text": "Opción 4"
372
- },
373
- {
374
- "href": "#",
375
- "text": "Opción 5"
376
- }
377
- ]
378
- }) }}
379
- </div>
380
- <div>
381
- {{ componentListbox({
382
- "id":"listbox-12",
383
- "html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
384
- "label": {
385
- "text": "Label",
386
- "classes": "sr-only"
387
- },
388
- "classes": "c-listbox--header align-bottom",
389
- "items": [
390
- {
391
- "href": "#",
392
- "html": "Opción 1"
393
- },
394
- {
395
- "href": "#",
396
- "text": "Opción 2"
397
- },
398
- {
399
- "href": "#",
400
- "text": "Opción 3"
401
- },
402
- {
403
- "href": "#",
404
- "text": "Opción 4"
405
- },
406
- {
407
- "href": "#",
408
- "text": "Opción 5"
409
- }
410
- ]
411
- }) }}
412
- </div>
413
- </div>
414
- <div class="grid lg:grid-cols-5 gap-xl mb-lg">
415
- <div>
416
- Pequeño
417
- </div>
418
- <div>
419
- {{ componentListbox({
420
- "id":"listbox-13",
421
- "text": "Primario",
422
- "label": {
423
- "text": "Label",
424
- "classes": "sr-only"
425
- },
426
- "classes": "c-listbox--sm",
427
- "items": [
428
- {
429
- "href": "#",
430
- "html": "Opción 1"
431
- },
432
- {
433
- "href": "#",
434
- "text": "Opción 2"
435
- },
436
- {
437
- "href": "#",
438
- "text": "Opción 3"
439
- },
440
- {
441
- "href": "#",
442
- "text": "Opción 4"
443
- },
444
- {
445
- "href": "#",
446
- "text": "Opción 5"
447
- }
448
- ]
449
- }) }}
450
- </div>
451
- <div>
452
- {{ componentListbox({
453
- "id":"listbox-14",
454
- "html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
455
- "label": {
456
- "text": "Label",
457
- "classes": "sr-only"
458
- },
459
- "classes": "c-listbox--sm",
460
- "items": [
461
- {
462
- "href": "#",
463
- "html": "Opción 1"
464
- },
465
- {
466
- "href": "#",
467
- "text": "Opción 2"
468
- },
469
- {
470
- "href": "#",
471
- "text": "Opción 3"
472
- },
473
- {
474
- "href": "#",
475
- "text": "Opción 4"
476
- },
477
- {
478
- "href": "#",
479
- "text": "Opción 5"
480
- }
481
- ]
482
- }) }}
483
- </div>
484
- <div>
485
- {{ componentListbox({
486
- "id":"listbox-15",
487
- "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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
488
- "label": {
489
- "text": "Label",
490
- "classes": "sr-only"
491
- },
492
- "classes": "c-listbox--sm",
493
- "items": [
494
- {
495
- "href": "#",
496
- "html": "Opción 1"
497
- },
498
- {
499
- "href": "#",
500
- "text": "Opción 2"
501
- },
502
- {
503
- "href": "#",
504
- "text": "Opción 3"
505
- },
506
- {
507
- "href": "#",
508
- "text": "Opción 4"
509
- },
510
- {
511
- "href": "#",
512
- "text": "Opción 5"
513
- }
514
- ]
515
- }) }}
516
- </div>
517
- <div>
518
- {{ componentListbox({
519
- "id":"listbox-16",
520
- "html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
521
- "label": {
522
- "text": "Label",
523
- "classes": "sr-only"
524
- },
525
- "classes": "c-listbox--sm align-bottom",
526
- "items": [
527
- {
528
- "href": "#",
529
- "html": "Opción 1"
530
- },
531
- {
532
- "href": "#",
533
- "text": "Opción 2"
534
- },
535
- {
536
- "href": "#",
537
- "text": "Opción 3"
538
- },
539
- {
540
- "href": "#",
541
- "text": "Opción 4"
542
- },
543
- {
544
- "href": "#",
545
- "text": "Opción 5"
546
- }
547
- ]
548
- }) }}
549
- </div>
550
- </div>
551
- <div class="grid lg:grid-cols-5 gap-xl mb-lg">
552
- <div>
553
- Pequeño tiene selección
554
- </div>
555
- <div>
556
- {{ componentListbox({
557
- "id":"listbox-17",
558
- "text": "Primario",
559
- "label": {
560
- "text": "Label",
561
- "classes": "sr-only"
562
- },
563
- "classes": "c-listbox--sm c-listbox--has-selection",
564
- "items": [
565
- {
566
- "href": "#",
567
- "html": "Opción 1"
568
- },
569
- {
570
- "href": "#",
571
- "text": "Opción 2"
572
- },
573
- {
574
- "href": "#",
575
- "text": "Opción 3"
576
- },
577
- {
578
- "href": "#",
579
- "text": "Opción 4"
580
- },
581
- {
582
- "href": "#",
583
- "text": "Opción 5"
584
- }
585
- ]
586
- }) }}
587
- </div>
588
- <div>
589
- {{ componentListbox({
590
- "id":"listbox-18",
591
- "html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
592
- "label": {
593
- "text": "Label",
594
- "classes": "sr-only"
595
- },
596
- "classes": "c-listbox--sm c-listbox--has-selection",
597
- "items": [
598
- {
599
- "href": "#",
600
- "html": "Opción 1"
601
- },
602
- {
603
- "href": "#",
604
- "text": "Opción 2"
605
- },
606
- {
607
- "href": "#",
608
- "text": "Opción 3"
609
- },
610
- {
611
- "href": "#",
612
- "text": "Opción 4"
613
- },
614
- {
615
- "href": "#",
616
- "text": "Opción 5"
617
- }
618
- ]
619
- }) }}
620
- </div>
621
- <div>
622
- {{ componentListbox({
623
- "id":"listbox-19",
624
- "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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
625
- "label": {
626
- "text": "Label",
627
- "classes": "sr-only"
628
- },
629
- "classes": "c-listbox--sm c-listbox--has-selection",
630
- "items": [
631
- {
632
- "href": "#",
633
- "html": "Opción 1"
634
- },
635
- {
636
- "href": "#",
637
- "text": "Opción 2"
638
- },
639
- {
640
- "href": "#",
641
- "text": "Opción 3"
642
- },
643
- {
644
- "href": "#",
645
- "text": "Opción 4"
646
- },
647
- {
648
- "href": "#",
649
- "text": "Opción 5"
650
- }
651
- ]
652
- }) }}
653
- </div>
654
- <div>
655
- {{ componentListbox({
656
- "id":"listbox-20",
657
- "html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
658
- "label": {
659
- "text": "Label",
660
- "classes": "sr-only"
661
- },
662
- "classes": "c-listbox--sm c-listbox--has-selection align-bottom",
663
- "items": [
664
- {
665
- "href": "#",
666
- "html": "Opción 1"
667
- },
668
- {
669
- "href": "#",
670
- "text": "Opción 2"
671
- },
672
- {
673
- "href": "#",
674
- "text": "Opción 3"
675
- },
676
- {
677
- "href": "#",
678
- "text": "Opción 4"
679
- },
680
- {
681
- "href": "#",
682
- "text": "Opción 5"
683
- }
684
- ]
685
- }) }}
686
- </div>
687
- </div>
688
- <div class="grid lg:grid-cols-5 gap-xl mb-lg">
689
- <div>
690
- Grande
691
- </div>
692
- <div>
693
- {{ componentListbox({
694
- "id":"listbox-21",
695
- "text": "Primario",
696
- "label": {
697
- "text": "Label",
698
- "classes": "sr-only"
699
- },
700
- "classes": "c-listbox--lg",
701
- "items": [
702
- {
703
- "href": "#",
704
- "html": "Opción 1"
705
- },
706
- {
707
- "href": "#",
708
- "text": "Opción 2"
709
- },
710
- {
711
- "href": "#",
712
- "text": "Opción 3"
713
- },
714
- {
715
- "href": "#",
716
- "text": "Opción 4"
717
- },
718
- {
719
- "href": "#",
720
- "text": "Opción 5"
721
- }
722
- ]
723
- }) }}
724
- </div>
725
- <div>
726
- {{ componentListbox({
727
- "id":"listbox-22",
728
- "html": '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="M100 0H40a15 15 0 00-15 15v120a5 5 0 008.54 3.53l34.69-34.69a2.5 2.5 0 013.54 0l34.69 34.69A5 5 0 00115 135V15a15 15 0 00-15-15z" fill="currentColor"/></svg>',
729
- "label": {
730
- "text": "Label",
731
- "classes": "sr-only"
732
- },
733
- "classes": "c-listbox--lg",
734
- "items": [
735
- {
736
- "href": "#",
737
- "html": "Opción 1"
738
- },
739
- {
740
- "href": "#",
741
- "text": "Opción 2"
742
- },
743
- {
744
- "href": "#",
745
- "text": "Opción 3"
746
- },
747
- {
748
- "href": "#",
749
- "text": "Opción 4"
750
- },
751
- {
752
- "href": "#",
753
- "text": "Opción 5"
754
- }
755
- ]
756
- }) }}
757
- </div>
758
- <div>
759
- {{ componentListbox({
760
- "id":"listbox-23",
761
- "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="M135.57 22.29l-17.9-17.88a15.17 15.17 0 00-21.39 0L14.05 86.73a4.93 4.93 0 00-1.28 2.18L.19 133.64A5 5 0 005 140a4.84 4.84 0 001.35-.19l44.8-12.56a5.16 5.16 0 002.19-1.28l82.23-82.31a15.1 15.1 0 000-21.37z" fill="currentColor"/></svg>Con icono',
762
- "label": {
763
- "text": "Label",
764
- "classes": "sr-only"
765
- },
766
- "classes": "c-listbox--lg",
767
- "items": [
768
- {
769
- "href": "#",
770
- "html": "Opción 1"
771
- },
772
- {
773
- "href": "#",
774
- "text": "Opción 2"
775
- },
776
- {
777
- "href": "#",
778
- "text": "Opción 3"
779
- },
780
- {
781
- "href": "#",
782
- "text": "Opción 4"
783
- },
784
- {
785
- "href": "#",
786
- "text": "Opción 5"
787
- }
788
- ]
789
- }) }}
790
- </div>
791
- <div>
792
- {{ componentListbox({
793
- "id":"listbox-24",
794
- "html": "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 140 140\" class=\"self-center\" 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>",
795
- "label": {
796
- "text": "Label",
797
- "classes": "sr-only"
798
- },
799
- "classes": "c-listbox--lg align-bottom",
800
- "items": [
801
- {
802
- "href": "#",
803
- "html": "Opción 1"
804
- },
805
- {
806
- "href": "#",
807
- "text": "Opción 2"
808
- },
809
- {
810
- "href": "#",
811
- "text": "Opción 3"
812
- },
813
- {
814
- "href": "#",
815
- "text": "Opción 4"
816
- },
817
- {
818
- "href": "#",
819
- "text": "Opción 5"
820
- }
821
- ]
822
- }) }}
823
- </div>
824
- </div>