@italia/timeline 1.0.0-alpha.10

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/AUTHORS ADDED
@@ -0,0 +1,2 @@
1
+ Copyright (c) 2025 Dipartimento per la trasformazione digitale - Presidenza del Consiglio dei Ministri
2
+ The version control system provides attribution for specific lines of code.
package/LICENSE ADDED
@@ -0,0 +1,9 @@
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
+ 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.
7
+ 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.
8
+
9
+ 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.
package/README.md ADDED
@@ -0,0 +1,62 @@
1
+ # @italia/timeline
2
+
3
+ Componenti web per la visualizzazione cronologica di eventi, roadmap e scadenze temporali del Design system .italia, basati su [Bootstrap Italia](https://italia.github.io/bootstrap-italia/).
4
+
5
+ ## Componenti
6
+
7
+ | Componente | Descrizione |
8
+ | -------------------------- | ------------------------------------------------------------ |
9
+ | `<it-timeline>` | Contenitore della timeline classica |
10
+ | `<it-timeline-element>` | Singolo elemento della timeline classica con pin e contenuto |
11
+ | `<it-timeline-point-list>` | Contenitore lista compatta (point list) |
12
+ | `<it-timeline-point>` | Singolo punto della timeline point list |
13
+
14
+ ## Installazione
15
+
16
+ ```bash
17
+ npm install @italia/timeline
18
+ ```
19
+
20
+ ## Utilizzo
21
+
22
+ ### Timeline classica
23
+
24
+ ```html
25
+ <it-timeline>
26
+ <div class="col-12">
27
+ <it-timeline-element variant="it-evidence" date="MAGGIO 2026" heading-level="h3">
28
+ <it-icon slot="pin-icon" name="it-file" aria-hidden="true"></it-icon>
29
+ <it-card>
30
+ <a slot="title" href="#">Titolo del contenuto</a>
31
+ <span slot="text">Descrizione breve.</span>
32
+ <time slot="footer" class="it-card-date" datetime="2026-05-22">22 maggio 2026</time>
33
+ </it-card>
34
+ </it-timeline-element>
35
+ </div>
36
+ </it-timeline>
37
+ ```
38
+
39
+ ### Timeline point list
40
+
41
+ ```html
42
+ <it-timeline-point-list>
43
+ <it-timeline-point>
44
+ <time slot="date" datetime="2025-10-14">
45
+ <span class="visually-hidden">14 ottobre 2025</span>
46
+ <span class="point-visual" aria-hidden="true">
47
+ <span class="point-main">14</span>
48
+ <span class="point-bottom">ott</span>
49
+ </span>
50
+ </time>
51
+ <p slot="content">Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p>
52
+ </it-timeline-point>
53
+ </it-timeline-point-list>
54
+ ```
55
+
56
+ ## Documentazione
57
+
58
+ La documentazione completa è disponibile su [Storybook](https://italia.github.io/dev-kit-italia).
59
+
60
+ ## Licenza
61
+
62
+ BSD-3-Clause