@italia/stepper 1.0.0-alpha.18

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.
@@ -0,0 +1,923 @@
1
+ {
2
+ "schemaVersion": "1.0.0",
3
+ "readme": "",
4
+ "modules": [
5
+ {
6
+ "kind": "javascript-module",
7
+ "path": "src/index.ts",
8
+ "declarations": [],
9
+ "exports": [
10
+ {
11
+ "kind": "js",
12
+ "name": "ItStepper",
13
+ "declaration": {
14
+ "name": "ItStepper",
15
+ "module": "./it-stepper.js"
16
+ }
17
+ },
18
+ {
19
+ "kind": "js",
20
+ "name": "ItStepperStep",
21
+ "declaration": {
22
+ "name": "ItStepperStep",
23
+ "module": "./it-stepper-step.js"
24
+ }
25
+ },
26
+ {
27
+ "kind": "js",
28
+ "name": "StepperHeaderVariant",
29
+ "declaration": {
30
+ "name": "StepperHeaderVariant",
31
+ "module": "./types.js"
32
+ }
33
+ },
34
+ {
35
+ "kind": "js",
36
+ "name": "StepperMobileProgress",
37
+ "declaration": {
38
+ "name": "StepperMobileProgress",
39
+ "module": "./types.js"
40
+ }
41
+ },
42
+ {
43
+ "kind": "js",
44
+ "name": "STEPPER_HEADER_VARIANTS",
45
+ "declaration": {
46
+ "name": "STEPPER_HEADER_VARIANTS",
47
+ "module": "./types.js"
48
+ }
49
+ },
50
+ {
51
+ "kind": "js",
52
+ "name": "STEPPER_MOBILE_PROGRESS",
53
+ "declaration": {
54
+ "name": "STEPPER_MOBILE_PROGRESS",
55
+ "module": "./types.js"
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ {
61
+ "kind": "javascript-module",
62
+ "path": "src/it-stepper-step.ts",
63
+ "declarations": [
64
+ {
65
+ "kind": "class",
66
+ "description": "`it-stepper-step` rappresenta un singolo passo all'interno di un componente `it-stepper`.\n\nGestisce sia i metadati del passo (etichetta, icona, stato) sia il contenuto mostrato\nnell'area del contenuto dello stepper quando il passo è attivo.\n\n## Struttura attesa\n\n```html\n<it-stepper>\n <it-stepper-step icon=\"it-calendar\">\n <span slot=\"label\">Primo contenuto</span>\n <p>Contenuto del primo step</p>\n </it-stepper-step>\n <it-stepper-step>\n <span slot=\"label\">Secondo contenuto</span>\n <p>Contenuto del secondo step</p>\n </it-stepper-step>\n</it-stepper>\n```",
67
+ "name": "ItStepperStep",
68
+ "slots": [
69
+ {
70
+ "description": "Etichetta del passo, mostrata nell'intestazione dello stepper dall'`it-stepper` padre.",
71
+ "name": "label"
72
+ },
73
+ {
74
+ "description": "Contenuto del passo, mostrato nell'area `steppers-content` quando il passo è attivo.",
75
+ "name": ""
76
+ }
77
+ ],
78
+ "members": [
79
+ {
80
+ "kind": "field",
81
+ "name": "icon",
82
+ "type": {
83
+ "text": "string"
84
+ },
85
+ "default": "''",
86
+ "description": "Nome dell'icona BSI da mostrare nell'intestazione del passo (variante `icons`).\nEsempio: `'it-calendar'`, `'it-lock'`, `'it-settings'`.",
87
+ "attribute": "icon"
88
+ },
89
+ {
90
+ "kind": "field",
91
+ "name": "active",
92
+ "type": {
93
+ "text": "boolean"
94
+ },
95
+ "default": "false",
96
+ "description": "Indica se il passo è attualmente attivo (contenuto visibile).\nGestito automaticamente dall'`it-stepper` padre.",
97
+ "attribute": "active",
98
+ "reflects": true
99
+ },
100
+ {
101
+ "kind": "field",
102
+ "name": "confirmed",
103
+ "type": {
104
+ "text": "boolean"
105
+ },
106
+ "default": "false",
107
+ "description": "Indica se il passo è stato confermato (completato).\nGestito automaticamente dall'`it-stepper` padre.",
108
+ "attribute": "confirmed",
109
+ "reflects": true
110
+ }
111
+ ],
112
+ "attributes": [
113
+ {
114
+ "name": "icon",
115
+ "type": {
116
+ "text": "string"
117
+ },
118
+ "default": "''",
119
+ "description": "Nome dell'icona BSI da mostrare nell'intestazione del passo (variante `icons`).\nEsempio: `'it-calendar'`, `'it-lock'`, `'it-settings'`.",
120
+ "fieldName": "icon"
121
+ },
122
+ {
123
+ "name": "active",
124
+ "type": {
125
+ "text": "boolean"
126
+ },
127
+ "default": "false",
128
+ "description": "Indica se il passo è attualmente attivo (contenuto visibile).\nGestito automaticamente dall'`it-stepper` padre.",
129
+ "fieldName": "active"
130
+ },
131
+ {
132
+ "name": "confirmed",
133
+ "type": {
134
+ "text": "boolean"
135
+ },
136
+ "default": "false",
137
+ "description": "Indica se il passo è stato confermato (completato).\nGestito automaticamente dall'`it-stepper` padre.",
138
+ "fieldName": "confirmed"
139
+ }
140
+ ],
141
+ "superclass": {
142
+ "name": "BaseComponent",
143
+ "package": "@italia/globals"
144
+ },
145
+ "tagName": "it-stepper-step",
146
+ "customElement": true
147
+ }
148
+ ],
149
+ "exports": [
150
+ {
151
+ "kind": "js",
152
+ "name": "ItStepperStep",
153
+ "declaration": {
154
+ "name": "ItStepperStep",
155
+ "module": "src/it-stepper-step.ts"
156
+ }
157
+ },
158
+ {
159
+ "kind": "custom-element-definition",
160
+ "name": "it-stepper-step",
161
+ "declaration": {
162
+ "name": "ItStepperStep",
163
+ "module": "src/it-stepper-step.ts"
164
+ }
165
+ }
166
+ ]
167
+ },
168
+ {
169
+ "kind": "javascript-module",
170
+ "path": "src/it-stepper.ts",
171
+ "declarations": [
172
+ {
173
+ "kind": "class",
174
+ "description": "`it-stepper` è il componente contenitore per una procedura a più passi.\n\nGestisce la navigazione tra gli step, il rendering dell'intestazione,\ndell'area contenuto e dei controlli di navigazione.\n\n## Struttura attesa\n\n```html\n<it-stepper header-variant=\"numbers\">\n <it-stepper-step>\n <span slot=\"label\">Primo contenuto</span>\n <p>Contenuto del primo step</p>\n </it-stepper-step>\n <it-stepper-step>\n <span slot=\"label\">Secondo contenuto</span>\n <p>Contenuto del secondo step</p>\n </it-stepper-step>\n <it-stepper-step>\n <span slot=\"label\">Terzo contenuto</span>\n <p>Contenuto del terzo step</p>\n </it-stepper-step>\n</it-stepper>\n```",
175
+ "name": "ItStepper",
176
+ "slots": [
177
+ {
178
+ "description": "Slot di default per gli elementi `it-stepper-step`.",
179
+ "name": ""
180
+ }
181
+ ],
182
+ "members": [
183
+ {
184
+ "kind": "field",
185
+ "name": "current",
186
+ "type": {
187
+ "text": "number"
188
+ },
189
+ "default": "0",
190
+ "description": "Indice (0-based) dello step attivo.\nModificando questo attributo si naviga direttamente a un determinato step.",
191
+ "attribute": "current",
192
+ "reflects": true
193
+ },
194
+ {
195
+ "kind": "field",
196
+ "name": "dark",
197
+ "type": {
198
+ "text": "boolean"
199
+ },
200
+ "default": "false",
201
+ "description": "Variante con sfondo scuro. Aggiunge la classe `.bg-dark` al contenitore.",
202
+ "attribute": "dark",
203
+ "reflects": true
204
+ },
205
+ {
206
+ "kind": "field",
207
+ "name": "headerVariant",
208
+ "type": {
209
+ "text": "StepperHeaderVariant"
210
+ },
211
+ "default": "'text'",
212
+ "description": "Variante dell'intestazione degli step.\n- `text`: solo testo\n- `icons`: icona + testo (richiede l'attributo `icon` su ogni `it-stepper-step`)\n- `numbers`: numero ordinale + testo",
213
+ "attribute": "header-variant"
214
+ },
215
+ {
216
+ "kind": "field",
217
+ "name": "mobileProgress",
218
+ "type": {
219
+ "text": "StepperMobileProgress"
220
+ },
221
+ "default": "''",
222
+ "description": "Indicatore di progresso mobile mostrato tra i pulsanti di navigazione.\n- `bar`: barra di avanzamento\n- `dots`: pallini\n- `''` (vuoto): nessun indicatore (default)\n\nSu desktop l'indicatore è sempre nascosto (comportamento BSI nativo).",
223
+ "attribute": "mobile-progress"
224
+ },
225
+ {
226
+ "kind": "field",
227
+ "name": "mobileProgressOnDesktop",
228
+ "type": {
229
+ "text": "boolean"
230
+ },
231
+ "default": "false",
232
+ "description": "Mostra progress bar o pallini anche a desktop, comportamento utile per anteprime e documentazione.",
233
+ "attribute": "mobile-progress-on-desktop",
234
+ "reflects": true
235
+ },
236
+ {
237
+ "kind": "field",
238
+ "name": "prevLabel",
239
+ "type": {
240
+ "text": "string | undefined"
241
+ },
242
+ "description": "Etichetta del pulsante \"Indietro\".",
243
+ "attribute": "prev-label"
244
+ },
245
+ {
246
+ "kind": "field",
247
+ "name": "nextLabel",
248
+ "type": {
249
+ "text": "string | undefined"
250
+ },
251
+ "description": "Etichetta del pulsante \"Avanti\".",
252
+ "attribute": "next-label"
253
+ },
254
+ {
255
+ "kind": "field",
256
+ "name": "confirmLabel",
257
+ "type": {
258
+ "text": "string | undefined"
259
+ },
260
+ "description": "Etichetta del pulsante \"Conferma\".",
261
+ "attribute": "confirm-label"
262
+ },
263
+ {
264
+ "kind": "field",
265
+ "name": "showConfirm",
266
+ "type": {
267
+ "text": "boolean"
268
+ },
269
+ "default": "false",
270
+ "description": "Mostra il pulsante \"Conferma\" al posto del pulsante \"Avanti\".\nUtile per l'ultimo step o per step che richiedono conferma esplicita su mobile.",
271
+ "attribute": "show-confirm"
272
+ },
273
+ {
274
+ "kind": "field",
275
+ "name": "saveLabel",
276
+ "type": {
277
+ "text": "string | undefined"
278
+ },
279
+ "description": "Etichetta del pulsante \"Salva\".\nSe vuoto (default), l'area di salvataggio non viene mostrata.",
280
+ "attribute": "save-label"
281
+ },
282
+ {
283
+ "kind": "field",
284
+ "name": "saveTitle",
285
+ "type": {
286
+ "text": "string | undefined"
287
+ },
288
+ "description": "Titolo del testo descrittivo nell'area di salvataggio.",
289
+ "attribute": "save-title"
290
+ },
291
+ {
292
+ "kind": "field",
293
+ "name": "saveDescription",
294
+ "type": {
295
+ "text": "string | undefined"
296
+ },
297
+ "description": "Testo descrittivo nell'area di salvataggio.",
298
+ "attribute": "save-description"
299
+ },
300
+ {
301
+ "kind": "field",
302
+ "name": "_stepCount",
303
+ "type": {
304
+ "text": "number"
305
+ },
306
+ "privacy": "private",
307
+ "default": "0"
308
+ },
309
+ {
310
+ "kind": "field",
311
+ "name": "_steps",
312
+ "privacy": "private",
313
+ "readonly": true
314
+ },
315
+ {
316
+ "kind": "field",
317
+ "name": "_maxNavigableIndex",
318
+ "privacy": "private",
319
+ "readonly": true
320
+ },
321
+ {
322
+ "kind": "field",
323
+ "name": "_currentIndex",
324
+ "privacy": "private",
325
+ "readonly": true
326
+ },
327
+ {
328
+ "kind": "method",
329
+ "name": "_clampIndex",
330
+ "privacy": "private",
331
+ "parameters": [
332
+ {
333
+ "name": "index",
334
+ "type": {
335
+ "text": "number"
336
+ }
337
+ }
338
+ ]
339
+ },
340
+ {
341
+ "kind": "method",
342
+ "name": "_syncSteps",
343
+ "privacy": "private",
344
+ "parameters": [
345
+ {
346
+ "name": "clampCurrent",
347
+ "default": "false"
348
+ }
349
+ ]
350
+ },
351
+ {
352
+ "kind": "method",
353
+ "name": "_goToStep",
354
+ "privacy": "private",
355
+ "parameters": [
356
+ {
357
+ "name": "nextStep",
358
+ "type": {
359
+ "text": "number"
360
+ }
361
+ }
362
+ ]
363
+ },
364
+ {
365
+ "kind": "method",
366
+ "name": "next",
367
+ "privacy": "public",
368
+ "description": "Avanza al prossimo step, se disponibile."
369
+ },
370
+ {
371
+ "kind": "method",
372
+ "name": "prev",
373
+ "privacy": "public",
374
+ "description": "Torna al passo precedente, se disponibile."
375
+ },
376
+ {
377
+ "kind": "method",
378
+ "name": "_handleConfirm",
379
+ "privacy": "private"
380
+ },
381
+ {
382
+ "kind": "method",
383
+ "name": "_handleSave",
384
+ "privacy": "private"
385
+ },
386
+ {
387
+ "kind": "method",
388
+ "name": "_handleSlotChange",
389
+ "privacy": "private"
390
+ },
391
+ {
392
+ "kind": "method",
393
+ "name": "_getStepLabel",
394
+ "privacy": "private",
395
+ "return": {
396
+ "type": {
397
+ "text": "Node | ''"
398
+ }
399
+ },
400
+ "parameters": [
401
+ {
402
+ "name": "step",
403
+ "type": {
404
+ "text": "ItStepperStep"
405
+ }
406
+ }
407
+ ]
408
+ },
409
+ {
410
+ "kind": "method",
411
+ "name": "_renderHeaderItem",
412
+ "privacy": "private",
413
+ "parameters": [
414
+ {
415
+ "name": "step",
416
+ "type": {
417
+ "text": "ItStepperStep"
418
+ }
419
+ },
420
+ {
421
+ "name": "index",
422
+ "type": {
423
+ "text": "number"
424
+ }
425
+ }
426
+ ]
427
+ },
428
+ {
429
+ "kind": "method",
430
+ "name": "_renderMobileIndex",
431
+ "privacy": "private"
432
+ },
433
+ {
434
+ "kind": "method",
435
+ "name": "_renderProgressBar",
436
+ "privacy": "private"
437
+ },
438
+ {
439
+ "kind": "method",
440
+ "name": "_renderDots",
441
+ "privacy": "private"
442
+ },
443
+ {
444
+ "kind": "method",
445
+ "name": "_getDotClass",
446
+ "privacy": "private",
447
+ "parameters": [
448
+ {
449
+ "name": "index",
450
+ "type": {
451
+ "text": "number"
452
+ }
453
+ }
454
+ ]
455
+ },
456
+ {
457
+ "kind": "method",
458
+ "name": "_getDotStateText",
459
+ "privacy": "private",
460
+ "parameters": [
461
+ {
462
+ "name": "index",
463
+ "type": {
464
+ "text": "number"
465
+ }
466
+ }
467
+ ]
468
+ },
469
+ {
470
+ "kind": "method",
471
+ "name": "_renderSaveArea",
472
+ "privacy": "private"
473
+ },
474
+ {
475
+ "kind": "method",
476
+ "name": "_renderProgressIndicator",
477
+ "privacy": "private"
478
+ }
479
+ ],
480
+ "events": [
481
+ {
482
+ "name": "it-stepper-change",
483
+ "type": {
484
+ "text": "CustomEvent"
485
+ },
486
+ "description": "Emesso quando lo step attivo cambia. `detail.step` contiene il nuovo indice (0-based), `detail.prevStep` quello precedente."
487
+ },
488
+ {
489
+ "name": "it-stepper-confirm",
490
+ "type": {
491
+ "text": "CustomEvent"
492
+ },
493
+ "description": "Emesso quando l'utente clicca il pulsante \"Conferma\"."
494
+ },
495
+ {
496
+ "name": "it-stepper-save",
497
+ "type": {
498
+ "text": "CustomEvent"
499
+ },
500
+ "description": "Emesso quando l'utente clicca il pulsante \"Salva\"."
501
+ }
502
+ ],
503
+ "attributes": [
504
+ {
505
+ "name": "current",
506
+ "type": {
507
+ "text": "number"
508
+ },
509
+ "default": "0",
510
+ "description": "Indice (0-based) dello step attivo.\nModificando questo attributo si naviga direttamente a un determinato step.",
511
+ "fieldName": "current"
512
+ },
513
+ {
514
+ "name": "dark",
515
+ "type": {
516
+ "text": "boolean"
517
+ },
518
+ "default": "false",
519
+ "description": "Variante con sfondo scuro. Aggiunge la classe `.bg-dark` al contenitore.",
520
+ "fieldName": "dark"
521
+ },
522
+ {
523
+ "name": "header-variant",
524
+ "type": {
525
+ "text": "StepperHeaderVariant"
526
+ },
527
+ "default": "'text'",
528
+ "description": "Variante dell'intestazione degli step.\n- `text`: solo testo\n- `icons`: icona + testo (richiede l'attributo `icon` su ogni `it-stepper-step`)\n- `numbers`: numero ordinale + testo",
529
+ "fieldName": "headerVariant"
530
+ },
531
+ {
532
+ "name": "mobile-progress",
533
+ "type": {
534
+ "text": "StepperMobileProgress"
535
+ },
536
+ "default": "''",
537
+ "description": "Indicatore di progresso mobile mostrato tra i pulsanti di navigazione.\n- `bar`: barra di avanzamento\n- `dots`: pallini\n- `''` (vuoto): nessun indicatore (default)\n\nSu desktop l'indicatore è sempre nascosto (comportamento BSI nativo).",
538
+ "fieldName": "mobileProgress"
539
+ },
540
+ {
541
+ "name": "mobile-progress-on-desktop",
542
+ "type": {
543
+ "text": "boolean"
544
+ },
545
+ "default": "false",
546
+ "description": "Mostra progress bar o pallini anche a desktop, comportamento utile per anteprime e documentazione.",
547
+ "fieldName": "mobileProgressOnDesktop"
548
+ },
549
+ {
550
+ "name": "prev-label",
551
+ "type": {
552
+ "text": "string | undefined"
553
+ },
554
+ "description": "Etichetta del pulsante \"Indietro\".",
555
+ "fieldName": "prevLabel"
556
+ },
557
+ {
558
+ "name": "next-label",
559
+ "type": {
560
+ "text": "string | undefined"
561
+ },
562
+ "description": "Etichetta del pulsante \"Avanti\".",
563
+ "fieldName": "nextLabel"
564
+ },
565
+ {
566
+ "name": "confirm-label",
567
+ "type": {
568
+ "text": "string | undefined"
569
+ },
570
+ "description": "Etichetta del pulsante \"Conferma\".",
571
+ "fieldName": "confirmLabel"
572
+ },
573
+ {
574
+ "name": "show-confirm",
575
+ "type": {
576
+ "text": "boolean"
577
+ },
578
+ "default": "false",
579
+ "description": "Mostra il pulsante \"Conferma\" al posto del pulsante \"Avanti\".\nUtile per l'ultimo step o per step che richiedono conferma esplicita su mobile.",
580
+ "fieldName": "showConfirm"
581
+ },
582
+ {
583
+ "name": "save-label",
584
+ "type": {
585
+ "text": "string | undefined"
586
+ },
587
+ "description": "Etichetta del pulsante \"Salva\".\nSe vuoto (default), l'area di salvataggio non viene mostrata.",
588
+ "fieldName": "saveLabel"
589
+ },
590
+ {
591
+ "name": "save-title",
592
+ "type": {
593
+ "text": "string | undefined"
594
+ },
595
+ "description": "Titolo del testo descrittivo nell'area di salvataggio.",
596
+ "fieldName": "saveTitle"
597
+ },
598
+ {
599
+ "name": "save-description",
600
+ "type": {
601
+ "text": "string | undefined"
602
+ },
603
+ "description": "Testo descrittivo nell'area di salvataggio.",
604
+ "fieldName": "saveDescription"
605
+ }
606
+ ],
607
+ "superclass": {
608
+ "name": "BaseLocalizedComponent",
609
+ "package": "@italia/globals"
610
+ },
611
+ "tagName": "it-stepper",
612
+ "customElement": true
613
+ }
614
+ ],
615
+ "exports": [
616
+ {
617
+ "kind": "js",
618
+ "name": "ItStepper",
619
+ "declaration": {
620
+ "name": "ItStepper",
621
+ "module": "src/it-stepper.ts"
622
+ }
623
+ },
624
+ {
625
+ "kind": "custom-element-definition",
626
+ "name": "it-stepper",
627
+ "declaration": {
628
+ "name": "ItStepper",
629
+ "module": "src/it-stepper.ts"
630
+ }
631
+ }
632
+ ]
633
+ },
634
+ {
635
+ "kind": "javascript-module",
636
+ "path": "src/types.ts",
637
+ "declarations": [
638
+ {
639
+ "kind": "variable",
640
+ "name": "STEPPER_HEADER_VARIANTS",
641
+ "type": {
642
+ "text": "['text', 'icons', 'numbers']"
643
+ },
644
+ "default": "['text', 'icons', 'numbers']"
645
+ },
646
+ {
647
+ "kind": "variable",
648
+ "name": "STEPPER_MOBILE_PROGRESS",
649
+ "type": {
650
+ "text": "['bar', 'dots', '']"
651
+ },
652
+ "default": "['bar', 'dots', '']"
653
+ }
654
+ ],
655
+ "exports": [
656
+ {
657
+ "kind": "js",
658
+ "name": "STEPPER_HEADER_VARIANTS",
659
+ "declaration": {
660
+ "name": "STEPPER_HEADER_VARIANTS",
661
+ "module": "src/types.ts"
662
+ }
663
+ },
664
+ {
665
+ "kind": "js",
666
+ "name": "STEPPER_MOBILE_PROGRESS",
667
+ "declaration": {
668
+ "name": "STEPPER_MOBILE_PROGRESS",
669
+ "module": "src/types.ts"
670
+ }
671
+ }
672
+ ]
673
+ },
674
+ {
675
+ "kind": "javascript-module",
676
+ "path": "stories/it-stepper.stories.ts",
677
+ "declarations": [
678
+ {
679
+ "kind": "variable",
680
+ "name": "meta",
681
+ "type": {
682
+ "text": "Meta<StepperArgs>"
683
+ },
684
+ "default": "{ title: 'Componenti/Stepper', tags: ['alpha', 'web-component'], component: 'it-stepper' as unknown as keyof HTMLElementTagNameMap, args: { current: 1, dark: false, 'header-variant': '', 'mobile-progress': '', 'mobile-progress-on-desktop': false, 'prev-label': '', 'next-label': '', 'confirm-label': '', 'show-confirm': false, 'save-label': '', 'save-title': '', 'save-description': '', }, argTypes: { current: { control: { type: 'number', min: 0, max: 5, step: 1 }, description: 'Indice (0-based) dello step attivo.', name: 'current', table: { defaultValue: { summary: '0' } }, }, dark: { control: 'boolean', description: 'Visualizza lo stepper su sfondo scuro.', name: 'dark', table: { defaultValue: { summary: 'false' } }, }, 'header-variant': { control: 'select', options: STEPPER_HEADER_VARIANTS, description: \"Variante dell'intestazione degli step: solo testo, icone o numeri.\", name: 'header-variant', table: { defaultValue: { summary: 'text' } }, }, 'mobile-progress': { control: 'select', options: STEPPER_MOBILE_PROGRESS, description: 'Indicatore di progresso mostrato su mobile tra i pulsanti di navigazione.', name: 'mobile-progress', table: { defaultValue: { summary: '' } }, }, 'mobile-progress-on-desktop': { control: 'boolean', description: 'Mostra progress bar o pallini anche su viewport desktop.', name: 'mobile-progress-on-desktop', table: { defaultValue: { summary: 'false' } }, }, 'prev-label': { control: 'text', description: 'Etichetta del pulsante \"Indietro\".', name: 'prev-label', table: { defaultValue: { summary: 'Indietro' } }, }, 'next-label': { control: 'text', description: 'Etichetta del pulsante \"Avanti\".', name: 'next-label', table: { defaultValue: { summary: 'Avanti' } }, }, 'confirm-label': { control: 'text', description: 'Etichetta del pulsante \"Conferma\" (visibile quando `show-confirm` è attivo).', name: 'confirm-label', table: { defaultValue: { summary: 'Conferma' } }, }, 'show-confirm': { control: 'boolean', description: 'Mostra il pulsante \"Conferma\" al posto del pulsante \"Avanti\".', name: 'show-confirm', table: { defaultValue: { summary: 'false' } }, }, 'save-label': { control: 'text', description: 'Etichetta del pulsante \"Salva\". Se vuoto, l\\'area di salvataggio non viene mostrata.', name: 'save-label', table: { defaultValue: { summary: '' } }, }, 'save-title': { control: 'text', description: 'Titolo della sezione di salvataggio. Mostrato solamente se viene aggiunto anche `save-label`.', name: 'save-title', table: { defaultValue: { summary: '' } }, }, 'save-description': { control: 'text', description: 'Testo descrittivo della sezione di salvataggio. Mostrato solamente se viene aggiunto anche `save-label`.', name: 'save-description', table: { defaultValue: { summary: '' } }, }, }, parameters: { pageLayout: 'w-100', docs: { source: { excludeDecorators: true, }, }, }, decorators: demoDecorators, }"
685
+ },
686
+ {
687
+ "kind": "variable",
688
+ "name": "EsempioInterattivo",
689
+ "type": {
690
+ "text": "Story"
691
+ },
692
+ "default": "{ name: 'Esempio interattivo', tags: ['!dev'], parameters: { docs: { canvas: { sourceState: 'shown' } } }, render: (args) => renderStepper(args), }"
693
+ },
694
+ {
695
+ "kind": "variable",
696
+ "name": "SoloTesto",
697
+ "type": {
698
+ "text": "Story"
699
+ },
700
+ "default": "{ name: 'Solo testo', args: { 'header-variant': 'text' }, render: (args) => renderStepper(args), }"
701
+ },
702
+ {
703
+ "kind": "variable",
704
+ "name": "TestoEIcone",
705
+ "type": {
706
+ "text": "Story"
707
+ },
708
+ "default": "{ name: 'Testo e icone', args: { 'header-variant': 'icons' }, render: (args) => renderStepper(args), }"
709
+ },
710
+ {
711
+ "kind": "variable",
712
+ "name": "TestoENumeri",
713
+ "type": {
714
+ "text": "Story"
715
+ },
716
+ "default": "{ name: 'Testo e numeri', args: { 'header-variant': 'numbers' }, render: (args) => renderStepper(args), }"
717
+ },
718
+ {
719
+ "kind": "variable",
720
+ "name": "Navigazione",
721
+ "type": {
722
+ "text": "Story"
723
+ },
724
+ "default": "{ name: 'Navigazione degli step', args: { 'next-label': 'Successivo', 'prev-label': 'Precedente' }, render: (args) => renderStepper(args), }"
725
+ },
726
+ {
727
+ "kind": "variable",
728
+ "name": "ProgressBar",
729
+ "type": {
730
+ "text": "Story"
731
+ },
732
+ "default": "{ args: { 'mobile-progress': 'bar', 'mobile-progress-on-desktop': true }, render: (args) => renderStepper(args), }"
733
+ },
734
+ {
735
+ "kind": "variable",
736
+ "name": "Pallini",
737
+ "type": {
738
+ "text": "Story"
739
+ },
740
+ "default": "{ args: { 'mobile-progress': 'dots', 'mobile-progress-on-desktop': true }, render: (args) => renderStepper(args), }"
741
+ },
742
+ {
743
+ "kind": "variable",
744
+ "name": "Salva",
745
+ "type": {
746
+ "text": "Story"
747
+ },
748
+ "default": "{ args: { 'save-label': 'Salva', 'save-title': 'Vuoi salvare il progresso?', 'save-description': 'Potrai riprendere il flusso da questo punto in poi.', }, render: (args) => renderStepper(args), }"
749
+ },
750
+ {
751
+ "kind": "variable",
752
+ "name": "Conferma",
753
+ "type": {
754
+ "text": "Story"
755
+ },
756
+ "default": "{ args: { 'show-confirm': true, 'confirm-label': 'Conferma' }, render: (args) => renderStepper(args), }"
757
+ },
758
+ {
759
+ "kind": "variable",
760
+ "name": "SfondoScuro",
761
+ "type": {
762
+ "text": "Story"
763
+ },
764
+ "default": "{ name: 'Sfondo scuro', args: { dark: true }, render: (args) => renderStepper(args), }"
765
+ },
766
+ {
767
+ "kind": "variable",
768
+ "name": "SfondoScuroVarianti",
769
+ "type": {
770
+ "text": "Story"
771
+ },
772
+ "default": "{ name: 'Sfondo scuro - varianti intestazione', parameters: { backgrounds: { default: 'dark' }, stepperDemo: { dark: true, stack: true } }, render: (args) => html` ${(['text', 'icons', 'numbers'] as const).map((variant) => renderStepper({ ...args, dark: true, 'header-variant': variant }, headerSteps), )} `, }"
773
+ }
774
+ ],
775
+ "exports": [
776
+ {
777
+ "kind": "js",
778
+ "name": "default",
779
+ "declaration": {
780
+ "name": "meta",
781
+ "module": "stories/it-stepper.stories.ts"
782
+ }
783
+ },
784
+ {
785
+ "kind": "js",
786
+ "name": "EsempioInterattivo",
787
+ "declaration": {
788
+ "name": "EsempioInterattivo",
789
+ "module": "stories/it-stepper.stories.ts"
790
+ }
791
+ },
792
+ {
793
+ "kind": "js",
794
+ "name": "SoloTesto",
795
+ "declaration": {
796
+ "name": "SoloTesto",
797
+ "module": "stories/it-stepper.stories.ts"
798
+ }
799
+ },
800
+ {
801
+ "kind": "js",
802
+ "name": "TestoEIcone",
803
+ "declaration": {
804
+ "name": "TestoEIcone",
805
+ "module": "stories/it-stepper.stories.ts"
806
+ }
807
+ },
808
+ {
809
+ "kind": "js",
810
+ "name": "TestoENumeri",
811
+ "declaration": {
812
+ "name": "TestoENumeri",
813
+ "module": "stories/it-stepper.stories.ts"
814
+ }
815
+ },
816
+ {
817
+ "kind": "js",
818
+ "name": "Navigazione",
819
+ "declaration": {
820
+ "name": "Navigazione",
821
+ "module": "stories/it-stepper.stories.ts"
822
+ }
823
+ },
824
+ {
825
+ "kind": "js",
826
+ "name": "ProgressBar",
827
+ "declaration": {
828
+ "name": "ProgressBar",
829
+ "module": "stories/it-stepper.stories.ts"
830
+ }
831
+ },
832
+ {
833
+ "kind": "js",
834
+ "name": "Pallini",
835
+ "declaration": {
836
+ "name": "Pallini",
837
+ "module": "stories/it-stepper.stories.ts"
838
+ }
839
+ },
840
+ {
841
+ "kind": "js",
842
+ "name": "Salva",
843
+ "declaration": {
844
+ "name": "Salva",
845
+ "module": "stories/it-stepper.stories.ts"
846
+ }
847
+ },
848
+ {
849
+ "kind": "js",
850
+ "name": "Conferma",
851
+ "declaration": {
852
+ "name": "Conferma",
853
+ "module": "stories/it-stepper.stories.ts"
854
+ }
855
+ },
856
+ {
857
+ "kind": "js",
858
+ "name": "SfondoScuro",
859
+ "declaration": {
860
+ "name": "SfondoScuro",
861
+ "module": "stories/it-stepper.stories.ts"
862
+ }
863
+ },
864
+ {
865
+ "kind": "js",
866
+ "name": "SfondoScuroVarianti",
867
+ "declaration": {
868
+ "name": "SfondoScuroVarianti",
869
+ "module": "stories/it-stepper.stories.ts"
870
+ }
871
+ }
872
+ ]
873
+ },
874
+ {
875
+ "kind": "javascript-module",
876
+ "path": "src/locales/en.ts",
877
+ "declarations": [
878
+ {
879
+ "kind": "variable",
880
+ "name": "translation",
881
+ "type": {
882
+ "text": "DefaultTranslation"
883
+ },
884
+ "default": "{ $code: 'en', $name: 'English', $dir: 'ltr', back: 'Back', next: 'Next', confirm: 'Confirm', confirmed: 'Confermato', active: 'Active', step: 'Step', progress: 'Stepper progress', outOf: 'out of', navigation: 'Stepper navigation', }"
885
+ }
886
+ ],
887
+ "exports": [
888
+ {
889
+ "kind": "js",
890
+ "name": "default",
891
+ "declaration": {
892
+ "name": "translation",
893
+ "module": "src/locales/en.ts"
894
+ }
895
+ }
896
+ ]
897
+ },
898
+ {
899
+ "kind": "javascript-module",
900
+ "path": "src/locales/it.ts",
901
+ "declarations": [
902
+ {
903
+ "kind": "variable",
904
+ "name": "translation",
905
+ "type": {
906
+ "text": "DefaultTranslation"
907
+ },
908
+ "default": "{ $code: 'it', $name: 'Italiano', $dir: 'ltr', back: 'Indietro', next: 'Avanti', confirm: 'Conferma', confirmed: 'Confermato', active: 'Attivo', step: 'Passo', progress: 'Avanzamento dello stepper', outOf: 'di', navigation: 'Navigazione stepper', }"
909
+ }
910
+ ],
911
+ "exports": [
912
+ {
913
+ "kind": "js",
914
+ "name": "default",
915
+ "declaration": {
916
+ "name": "translation",
917
+ "module": "src/locales/it.ts"
918
+ }
919
+ }
920
+ ]
921
+ }
922
+ ]
923
+ }