@italia/thumbnav 1.0.0-beta.1 → 1.0.0-beta.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.
package/LICENSE ADDED
@@ -0,0 +1,11 @@
1
+ Copyright (c) 2025, the respective contributors, as shown by the AUTHORS file.
2
+
3
+ Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
4
+
5
+ 1. Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
6
+
7
+ 2. Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution.
8
+
9
+ 3. Neither the name of the copyright holder nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission.
10
+
11
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
@@ -2,238 +2,6 @@
2
2
  "schemaVersion": "1.0.0",
3
3
  "readme": "",
4
4
  "modules": [
5
- {
6
- "kind": "javascript-module",
7
- "path": "stories/it-thumbnav.stories.ts",
8
- "declarations": [
9
- {
10
- "kind": "variable",
11
- "name": "meta",
12
- "type": {
13
- "text": "Meta<ThumbnnavProps>"
14
- },
15
- "default": "{ title: 'Componenti/Thumbnav', tags: ['a11y-ok', 'web-component'], component: 'it-thumbnav', args: { small: false, vertical: false, fixed: false, hover: undefined, auto: undefined, position: undefined, }, argTypes: { small: { control: 'boolean', description: 'Usa thumbnail di dimensione ridotta (120px invece di 240px).', table: { defaultValue: { summary: 'false' } }, }, vertical: { control: 'boolean', description: 'Dispone le thumbnail in colonna verticale invece che orizzontale.', table: { defaultValue: { summary: 'false' } }, }, fixed: { control: 'boolean', description: 'Imposta larghezza fissa per ogni thumbnail: 240px per default, 120px se combinato con `small`.', table: { defaultValue: { summary: 'false' } }, }, hover: { control: 'select', options: THUMBNAV_HOVER_EFFECTS, description: \"Personalizza l'effetto al passaggio del mouse. Ometti l'attributo per lo zoom predefinito. Usa `nozoom` per disabilitarlo, `black` o `primary` per aggiungere un layer colorato sull'immagine.\", }, auto: { control: 'select', options: THUMBNAV_AUTO_COLUMNS, description: 'Attiva la griglia a larghezza automatica e imposta il numero di thumbnail per riga (2, 3, 4 o 5).', }, position: { control: 'select', options: THUMBNAV_POSITIONS, description: \"Posiziona la Thumbnav in overlay rispetto a un contenitore con classe `.position-relative`. Usa `bottom` o `top` per la versione orizzontale, `left` o `right` per la verticale (il comportamento verticale viene applicato automaticamente). Questo attributo non ha effetto nell'esempio interattivo: richiede la struttura HTML corretta con un contenitore esterno. Vedi le stories dedicate agli overlay.\", }, }, parameters: { layout: 'padded', docs: { description: { component: ` Componente di navigazione con immagini thumbnail. Il componente Thumbnav è composto da due elementi: - \\`it-thumbnav\\`: contenitore che raggruppa le thumbnail e gestisce il layout; - \\`it-thumbnav-item\\`: singolo elemento, che accetta nello slot un anchor con immagine. Ogni \\`it-thumbnav-item\\` si aspetta un anchor con la classe Bootstrap \\`.ratio\\` per il corretto rapporto d'aspetto: \\`\\`\\`html <it-thumbnav> <it-thumbnav-item> <a href=\"#\" class=\"ratio ratio-3x2\"> <img src=\"…\" alt=\"Descrizione azione\"> </a> </it-thumbnav-item> </it-thumbnav> \\`\\`\\` `, }, }, }, }"
16
- },
17
- {
18
- "kind": "variable",
19
- "name": "EsempioInterattivo",
20
- "type": {
21
- "text": "Story"
22
- },
23
- "default": "{ name: 'Esempio interattivo', tags: ['!dev'], parameters: { docs: { canvas: { sourceState: 'hidden' } } }, render: (args) => renderComponent(args), }"
24
- },
25
- {
26
- "kind": "variable",
27
- "name": "VersioneSmall",
28
- "type": {
29
- "text": "Story"
30
- },
31
- "default": "{ name: 'Versione small', render: () => html` <it-thumbnav small> ${renderItems(3)} </it-thumbnav> `, }"
32
- },
33
- {
34
- "kind": "variable",
35
- "name": "HoverSenzaZoom",
36
- "type": {
37
- "text": "Story"
38
- },
39
- "default": "{ name: 'Hover senza zoom', render: () => html` <it-thumbnav hover=\"nozoom\"> ${renderItems(3)} </it-thumbnav> `, }"
40
- },
41
- {
42
- "kind": "variable",
43
- "name": "HoverLayerNero",
44
- "type": {
45
- "text": "Story"
46
- },
47
- "default": "{ name: 'Hover con layer nero', render: () => html` <it-thumbnav hover=\"black\"> ${renderItems(3)} </it-thumbnav> `, }"
48
- },
49
- {
50
- "kind": "variable",
51
- "name": "HoverLayerPrimary",
52
- "type": {
53
- "text": "Story"
54
- },
55
- "default": "{ name: 'Hover con layer primary', render: () => html` <it-thumbnav hover=\"primary\"> ${renderItems(3)} </it-thumbnav> `, }"
56
- },
57
- {
58
- "kind": "variable",
59
- "name": "Verticale",
60
- "type": {
61
- "text": "Story"
62
- },
63
- "default": "{ name: 'Thumbnav verticale', render: () => html` <it-thumbnav vertical> ${renderItems(3)} </it-thumbnav> `, }"
64
- },
65
- {
66
- "kind": "variable",
67
- "name": "OverlayInferiore",
68
- "type": {
69
- "text": "Story"
70
- },
71
- "default": "{ name: 'Overlay orizzontale inferiore', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 400px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"bottom\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
72
- },
73
- {
74
- "kind": "variable",
75
- "name": "OverlaySuperiore",
76
- "type": {
77
- "text": "Story"
78
- },
79
- "default": "{ name: 'Overlay orizzontale superiore', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 400px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"top\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
80
- },
81
- {
82
- "kind": "variable",
83
- "name": "OverlayVerticaleLeft",
84
- "type": {
85
- "text": "Story"
86
- },
87
- "default": "{ name: 'Overlay verticale a sinistra', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 500px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"left\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
88
- },
89
- {
90
- "kind": "variable",
91
- "name": "OverlayVerticaleRight",
92
- "type": {
93
- "text": "Story"
94
- },
95
- "default": "{ name: 'Overlay verticale a destra', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 500px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"right\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
96
- },
97
- {
98
- "kind": "variable",
99
- "name": "GrigliaFissa",
100
- "type": {
101
- "text": "Story"
102
- },
103
- "default": "{ name: 'Griglia a larghezza fissa', parameters: { pageLayout: 'w-100' }, render: () => html` <it-thumbnav fixed> ${renderItems(5)} </it-thumbnav> `, }"
104
- },
105
- {
106
- "kind": "variable",
107
- "name": "GrigliaAutomatica3",
108
- "type": {
109
- "text": "Story"
110
- },
111
- "default": "{ name: 'Griglia automatica - 3 per riga', parameters: { pageLayout: 'w-100' }, render: () => html` <it-thumbnav auto=\"3\"> ${renderItems(5)} </it-thumbnav> `, }"
112
- },
113
- {
114
- "kind": "variable",
115
- "name": "GrigliaAutomatica5",
116
- "type": {
117
- "text": "Story"
118
- },
119
- "default": "{ name: 'Griglia automatica - 5 per riga', parameters: { pageLayout: 'w-100' }, render: () => html` <it-thumbnav auto=\"5\"> ${renderItems(5)} </it-thumbnav> `, }"
120
- }
121
- ],
122
- "exports": [
123
- {
124
- "kind": "js",
125
- "name": "default",
126
- "declaration": {
127
- "name": "meta",
128
- "module": "stories/it-thumbnav.stories.ts"
129
- }
130
- },
131
- {
132
- "kind": "js",
133
- "name": "EsempioInterattivo",
134
- "declaration": {
135
- "name": "EsempioInterattivo",
136
- "module": "stories/it-thumbnav.stories.ts"
137
- }
138
- },
139
- {
140
- "kind": "js",
141
- "name": "VersioneSmall",
142
- "declaration": {
143
- "name": "VersioneSmall",
144
- "module": "stories/it-thumbnav.stories.ts"
145
- }
146
- },
147
- {
148
- "kind": "js",
149
- "name": "HoverSenzaZoom",
150
- "declaration": {
151
- "name": "HoverSenzaZoom",
152
- "module": "stories/it-thumbnav.stories.ts"
153
- }
154
- },
155
- {
156
- "kind": "js",
157
- "name": "HoverLayerNero",
158
- "declaration": {
159
- "name": "HoverLayerNero",
160
- "module": "stories/it-thumbnav.stories.ts"
161
- }
162
- },
163
- {
164
- "kind": "js",
165
- "name": "HoverLayerPrimary",
166
- "declaration": {
167
- "name": "HoverLayerPrimary",
168
- "module": "stories/it-thumbnav.stories.ts"
169
- }
170
- },
171
- {
172
- "kind": "js",
173
- "name": "Verticale",
174
- "declaration": {
175
- "name": "Verticale",
176
- "module": "stories/it-thumbnav.stories.ts"
177
- }
178
- },
179
- {
180
- "kind": "js",
181
- "name": "OverlayInferiore",
182
- "declaration": {
183
- "name": "OverlayInferiore",
184
- "module": "stories/it-thumbnav.stories.ts"
185
- }
186
- },
187
- {
188
- "kind": "js",
189
- "name": "OverlaySuperiore",
190
- "declaration": {
191
- "name": "OverlaySuperiore",
192
- "module": "stories/it-thumbnav.stories.ts"
193
- }
194
- },
195
- {
196
- "kind": "js",
197
- "name": "OverlayVerticaleLeft",
198
- "declaration": {
199
- "name": "OverlayVerticaleLeft",
200
- "module": "stories/it-thumbnav.stories.ts"
201
- }
202
- },
203
- {
204
- "kind": "js",
205
- "name": "OverlayVerticaleRight",
206
- "declaration": {
207
- "name": "OverlayVerticaleRight",
208
- "module": "stories/it-thumbnav.stories.ts"
209
- }
210
- },
211
- {
212
- "kind": "js",
213
- "name": "GrigliaFissa",
214
- "declaration": {
215
- "name": "GrigliaFissa",
216
- "module": "stories/it-thumbnav.stories.ts"
217
- }
218
- },
219
- {
220
- "kind": "js",
221
- "name": "GrigliaAutomatica3",
222
- "declaration": {
223
- "name": "GrigliaAutomatica3",
224
- "module": "stories/it-thumbnav.stories.ts"
225
- }
226
- },
227
- {
228
- "kind": "js",
229
- "name": "GrigliaAutomatica5",
230
- "declaration": {
231
- "name": "GrigliaAutomatica5",
232
- "module": "stories/it-thumbnav.stories.ts"
233
- }
234
- }
235
- ]
236
- },
237
5
  {
238
6
  "kind": "javascript-module",
239
7
  "path": "src/index.ts",
@@ -546,6 +314,238 @@
546
314
  }
547
315
  }
548
316
  ]
317
+ },
318
+ {
319
+ "kind": "javascript-module",
320
+ "path": "stories/it-thumbnav.stories.ts",
321
+ "declarations": [
322
+ {
323
+ "kind": "variable",
324
+ "name": "meta",
325
+ "type": {
326
+ "text": "Meta<ThumbnnavProps>"
327
+ },
328
+ "default": "{ title: 'Componenti/Thumbnav', tags: ['a11y-ok', 'web-component'], component: 'it-thumbnav', args: { small: false, vertical: false, fixed: false, hover: undefined, auto: undefined, position: undefined, }, argTypes: { small: { control: 'boolean', description: 'Usa thumbnail di dimensione ridotta (120px invece di 240px).', table: { defaultValue: { summary: 'false' } }, }, vertical: { control: 'boolean', description: 'Dispone le thumbnail in colonna verticale invece che orizzontale.', table: { defaultValue: { summary: 'false' } }, }, fixed: { control: 'boolean', description: 'Imposta larghezza fissa per ogni thumbnail: 240px per default, 120px se combinato con `small`.', table: { defaultValue: { summary: 'false' } }, }, hover: { control: 'select', options: THUMBNAV_HOVER_EFFECTS, description: \"Personalizza l'effetto al passaggio del mouse. Ometti l'attributo per lo zoom predefinito. Usa `nozoom` per disabilitarlo, `black` o `primary` per aggiungere un layer colorato sull'immagine.\", }, auto: { control: 'select', options: THUMBNAV_AUTO_COLUMNS, description: 'Attiva la griglia a larghezza automatica e imposta il numero di thumbnail per riga (2, 3, 4 o 5).', }, position: { control: 'select', options: THUMBNAV_POSITIONS, description: \"Posiziona la Thumbnav in overlay rispetto a un contenitore con classe `.position-relative`. Usa `bottom` o `top` per la versione orizzontale, `left` o `right` per la verticale (il comportamento verticale viene applicato automaticamente). Questo attributo non ha effetto nell'esempio interattivo: richiede la struttura HTML corretta con un contenitore esterno. Vedi le stories dedicate agli overlay.\", }, }, parameters: { layout: 'padded', docs: { description: { component: ` Componente di navigazione con immagini thumbnail. Il componente Thumbnav è composto da due elementi: - \\`it-thumbnav\\`: contenitore che raggruppa le thumbnail e gestisce il layout; - \\`it-thumbnav-item\\`: singolo elemento, che accetta nello slot un anchor con immagine. Ogni \\`it-thumbnav-item\\` si aspetta un anchor con la classe Bootstrap \\`.ratio\\` per il corretto rapporto d'aspetto: \\`\\`\\`html <it-thumbnav> <it-thumbnav-item> <a href=\"#\" class=\"ratio ratio-3x2\"> <img src=\"…\" alt=\"Descrizione azione\"> </a> </it-thumbnav-item> </it-thumbnav> \\`\\`\\` `, }, }, }, }"
329
+ },
330
+ {
331
+ "kind": "variable",
332
+ "name": "EsempioInterattivo",
333
+ "type": {
334
+ "text": "Story"
335
+ },
336
+ "default": "{ name: 'Esempio interattivo', tags: ['!dev'], parameters: { docs: { canvas: { sourceState: 'hidden' } } }, render: (args) => renderComponent(args), }"
337
+ },
338
+ {
339
+ "kind": "variable",
340
+ "name": "VersioneSmall",
341
+ "type": {
342
+ "text": "Story"
343
+ },
344
+ "default": "{ name: 'Versione small', render: () => html` <it-thumbnav small> ${renderItems(3)} </it-thumbnav> `, }"
345
+ },
346
+ {
347
+ "kind": "variable",
348
+ "name": "HoverSenzaZoom",
349
+ "type": {
350
+ "text": "Story"
351
+ },
352
+ "default": "{ name: 'Hover senza zoom', render: () => html` <it-thumbnav hover=\"nozoom\"> ${renderItems(3)} </it-thumbnav> `, }"
353
+ },
354
+ {
355
+ "kind": "variable",
356
+ "name": "HoverLayerNero",
357
+ "type": {
358
+ "text": "Story"
359
+ },
360
+ "default": "{ name: 'Hover con layer nero', render: () => html` <it-thumbnav hover=\"black\"> ${renderItems(3)} </it-thumbnav> `, }"
361
+ },
362
+ {
363
+ "kind": "variable",
364
+ "name": "HoverLayerPrimary",
365
+ "type": {
366
+ "text": "Story"
367
+ },
368
+ "default": "{ name: 'Hover con layer primary', render: () => html` <it-thumbnav hover=\"primary\"> ${renderItems(3)} </it-thumbnav> `, }"
369
+ },
370
+ {
371
+ "kind": "variable",
372
+ "name": "Verticale",
373
+ "type": {
374
+ "text": "Story"
375
+ },
376
+ "default": "{ name: 'Thumbnav verticale', render: () => html` <it-thumbnav vertical> ${renderItems(3)} </it-thumbnav> `, }"
377
+ },
378
+ {
379
+ "kind": "variable",
380
+ "name": "OverlayInferiore",
381
+ "type": {
382
+ "text": "Story"
383
+ },
384
+ "default": "{ name: 'Overlay orizzontale inferiore', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 400px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"bottom\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
385
+ },
386
+ {
387
+ "kind": "variable",
388
+ "name": "OverlaySuperiore",
389
+ "type": {
390
+ "text": "Story"
391
+ },
392
+ "default": "{ name: 'Overlay orizzontale superiore', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 400px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"top\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
393
+ },
394
+ {
395
+ "kind": "variable",
396
+ "name": "OverlayVerticaleLeft",
397
+ "type": {
398
+ "text": "Story"
399
+ },
400
+ "default": "{ name: 'Overlay verticale a sinistra', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 500px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"left\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
401
+ },
402
+ {
403
+ "kind": "variable",
404
+ "name": "OverlayVerticaleRight",
405
+ "type": {
406
+ "text": "Story"
407
+ },
408
+ "default": "{ name: 'Overlay verticale a destra', parameters: { layout: 'fullscreen' }, render: () => html` <div class=\"position-relative\" style=\"height: 500px;\"> <img src=\"https://picsum.photos/1280/720?image=1056\" alt=\"Descrizione immagine\" style=\"width:100%;height:100%;object-fit:cover;\" /> <it-thumbnav position=\"right\" small> ${renderItems(3)} </it-thumbnav> </div> `, }"
409
+ },
410
+ {
411
+ "kind": "variable",
412
+ "name": "GrigliaFissa",
413
+ "type": {
414
+ "text": "Story"
415
+ },
416
+ "default": "{ name: 'Griglia a larghezza fissa', parameters: { pageLayout: 'w-100' }, render: () => html` <it-thumbnav fixed> ${renderItems(5)} </it-thumbnav> `, }"
417
+ },
418
+ {
419
+ "kind": "variable",
420
+ "name": "GrigliaAutomatica3",
421
+ "type": {
422
+ "text": "Story"
423
+ },
424
+ "default": "{ name: 'Griglia automatica - 3 per riga', parameters: { pageLayout: 'w-100' }, render: () => html` <it-thumbnav auto=\"3\"> ${renderItems(5)} </it-thumbnav> `, }"
425
+ },
426
+ {
427
+ "kind": "variable",
428
+ "name": "GrigliaAutomatica5",
429
+ "type": {
430
+ "text": "Story"
431
+ },
432
+ "default": "{ name: 'Griglia automatica - 5 per riga', parameters: { pageLayout: 'w-100' }, render: () => html` <it-thumbnav auto=\"5\"> ${renderItems(5)} </it-thumbnav> `, }"
433
+ }
434
+ ],
435
+ "exports": [
436
+ {
437
+ "kind": "js",
438
+ "name": "default",
439
+ "declaration": {
440
+ "name": "meta",
441
+ "module": "stories/it-thumbnav.stories.ts"
442
+ }
443
+ },
444
+ {
445
+ "kind": "js",
446
+ "name": "EsempioInterattivo",
447
+ "declaration": {
448
+ "name": "EsempioInterattivo",
449
+ "module": "stories/it-thumbnav.stories.ts"
450
+ }
451
+ },
452
+ {
453
+ "kind": "js",
454
+ "name": "VersioneSmall",
455
+ "declaration": {
456
+ "name": "VersioneSmall",
457
+ "module": "stories/it-thumbnav.stories.ts"
458
+ }
459
+ },
460
+ {
461
+ "kind": "js",
462
+ "name": "HoverSenzaZoom",
463
+ "declaration": {
464
+ "name": "HoverSenzaZoom",
465
+ "module": "stories/it-thumbnav.stories.ts"
466
+ }
467
+ },
468
+ {
469
+ "kind": "js",
470
+ "name": "HoverLayerNero",
471
+ "declaration": {
472
+ "name": "HoverLayerNero",
473
+ "module": "stories/it-thumbnav.stories.ts"
474
+ }
475
+ },
476
+ {
477
+ "kind": "js",
478
+ "name": "HoverLayerPrimary",
479
+ "declaration": {
480
+ "name": "HoverLayerPrimary",
481
+ "module": "stories/it-thumbnav.stories.ts"
482
+ }
483
+ },
484
+ {
485
+ "kind": "js",
486
+ "name": "Verticale",
487
+ "declaration": {
488
+ "name": "Verticale",
489
+ "module": "stories/it-thumbnav.stories.ts"
490
+ }
491
+ },
492
+ {
493
+ "kind": "js",
494
+ "name": "OverlayInferiore",
495
+ "declaration": {
496
+ "name": "OverlayInferiore",
497
+ "module": "stories/it-thumbnav.stories.ts"
498
+ }
499
+ },
500
+ {
501
+ "kind": "js",
502
+ "name": "OverlaySuperiore",
503
+ "declaration": {
504
+ "name": "OverlaySuperiore",
505
+ "module": "stories/it-thumbnav.stories.ts"
506
+ }
507
+ },
508
+ {
509
+ "kind": "js",
510
+ "name": "OverlayVerticaleLeft",
511
+ "declaration": {
512
+ "name": "OverlayVerticaleLeft",
513
+ "module": "stories/it-thumbnav.stories.ts"
514
+ }
515
+ },
516
+ {
517
+ "kind": "js",
518
+ "name": "OverlayVerticaleRight",
519
+ "declaration": {
520
+ "name": "OverlayVerticaleRight",
521
+ "module": "stories/it-thumbnav.stories.ts"
522
+ }
523
+ },
524
+ {
525
+ "kind": "js",
526
+ "name": "GrigliaFissa",
527
+ "declaration": {
528
+ "name": "GrigliaFissa",
529
+ "module": "stories/it-thumbnav.stories.ts"
530
+ }
531
+ },
532
+ {
533
+ "kind": "js",
534
+ "name": "GrigliaAutomatica3",
535
+ "declaration": {
536
+ "name": "GrigliaAutomatica3",
537
+ "module": "stories/it-thumbnav.stories.ts"
538
+ }
539
+ },
540
+ {
541
+ "kind": "js",
542
+ "name": "GrigliaAutomatica5",
543
+ "declaration": {
544
+ "name": "GrigliaAutomatica5",
545
+ "module": "stories/it-thumbnav.stories.ts"
546
+ }
547
+ }
548
+ ]
549
549
  }
550
550
  ]
551
551
  }
package/dist/src/index.js CHANGED
@@ -1,6 +1,6 @@
1
1
  export { ItThumbnav } from './it-thumbnav.js';
2
2
  export { ItThumbnavItem } from './it-thumbnav-item.js';
3
- import '../index-Bb8Vpns-.js';
3
+ import '../index-YeLXF4Kn.js';
4
4
  import 'lit/directive.js';
5
5
  import 'lit';
6
6
  import 'lit/decorators.js';
@@ -1,4 +1,4 @@
1
- import { _ as __decorate, a as __metadata, B as BaseComponent } from '../index-Bb8Vpns-.js';
1
+ import { _ as __decorate, a as __metadata, B as BaseComponent } from '../index-YeLXF4Kn.js';
2
2
  import { css, html } from 'lit';
3
3
  import { property, customElement } from 'lit/decorators.js';
4
4
  import 'lit/directive.js';
@@ -1,4 +1,4 @@
1
- import { _ as __decorate, a as __metadata, B as BaseComponent } from '../index-Bb8Vpns-.js';
1
+ import { _ as __decorate, a as __metadata, B as BaseComponent } from '../index-YeLXF4Kn.js';
2
2
  import { css, html } from 'lit';
3
3
  import { property, query, customElement } from 'lit/decorators.js';
4
4
  import { classMap } from 'lit/directives/class-map.js';
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@italia/thumbnav",
3
3
  "description": "Web component it-thumbnav del Design system .italia",
4
- "version": "1.0.0-beta.1",
4
+ "version": "1.0.0-beta.2",
5
5
  "publishConfig": {
6
6
  "access": "public"
7
7
  },
@@ -34,37 +34,37 @@
34
34
  "LICENSE",
35
35
  "custom-elements.json"
36
36
  ],
37
- "scripts": {
38
- "analyze": "cem analyze --litelement --exclude dist",
39
- "build": "rollup --config rollup.config.js",
40
- "clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
41
- "prepublish": "pnpm build",
42
- "lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint \"styles/**/*.scss\" \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" --check",
43
- "format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint --fix \"styles/**/*.scss\" \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\"",
44
- "test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
45
- "test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
46
- },
47
37
  "dependencies": {
48
- "@italia/globals": "workspace:^",
49
- "bootstrap-italia": "catalog:",
50
- "lit": "catalog:"
38
+ "bootstrap-italia": "3.0.0-beta.5",
39
+ "lit": "^3.3.0",
40
+ "@italia/globals": "^1.0.0-beta.2"
51
41
  },
52
42
  "devDependencies": {
53
43
  "@custom-elements-manifest/analyzer": "^0.10.3",
54
- "@italia/test-config": "workspace:^",
55
- "@italia/typescript-config": "workspace:^",
56
- "@open-wc/testing": "catalog:",
44
+ "@open-wc/testing": "^4.0.0",
57
45
  "@rollup/plugin-node-resolve": "^16.0.1",
58
46
  "@rollup/plugin-typescript": "^12.1.2",
59
- "@types/mocha": "catalog:",
60
- "@web/test-runner": "catalog:",
47
+ "@types/mocha": "^10.0.10",
48
+ "@web/test-runner": "^0.18.2",
61
49
  "rimraf": "^6.0.1",
62
50
  "rollup": "^4.31.0",
63
51
  "rollup-plugin-scss-lit": "^2.1.0",
64
- "sass": "catalog:",
52
+ "sass": "^1.89.0",
65
53
  "stylelint": "^16.19.1",
66
54
  "tslib": "^2.8.1",
67
- "typescript": "catalog:"
55
+ "typescript": "^5.5.3",
56
+ "@italia/test-config": "^1.0.0-beta.2",
57
+ "@italia/typescript-config": "^1.0.0-beta.1"
68
58
  },
69
- "customElements": "custom-elements.json"
70
- }
59
+ "customElements": "custom-elements.json",
60
+ "scripts": {
61
+ "analyze": "cem analyze --litelement --exclude dist",
62
+ "build": "rollup --config rollup.config.js",
63
+ "clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
64
+ "prepublish": "pnpm build",
65
+ "lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint \"styles/**/*.scss\" \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" --check",
66
+ "format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\" && stylelint --fix \"styles/**/*.scss\" \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.ts\" \"test/**/*.ts\"",
67
+ "test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
68
+ "test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
69
+ }
70
+ }