@italia/timeline 1.0.0-beta.0 → 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/README.md
CHANGED
|
@@ -1,62 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <it-timeline>
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This package is part of [dev-kit-italia](https://italia.github.io/dev-kit-italia), a Web Components kit for the **.italia** design-system.
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Installation and usage
|
|
6
6
|
|
|
7
|
-
|
|
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 |
|
|
7
|
+
Most users want to install the full kit by installing [`@italia/dev-kit-italia`](https://npmjs.com/package/@italia/dev-kit-italia), but you have the option of installing this single Web Component separately if needed. Please find detailed installation and usage instructions in the [official documentation](https://italia.github.io/dev-kit-italia/?path=/docs/introduzione--documentazione).
|
|
13
8
|
|
|
14
|
-
##
|
|
9
|
+
## Documentation
|
|
15
10
|
|
|
16
|
-
|
|
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
|
|
11
|
+
Find the usage instructions for this specific component in its [dedicated documentation page](https://italia.github.io/dev-kit-italia/?path=/docs/componenti-timeline--documentazione).
|
package/custom-elements.json
CHANGED
|
@@ -619,7 +619,7 @@
|
|
|
619
619
|
{
|
|
620
620
|
"kind": "variable",
|
|
621
621
|
"name": "metaTimeline",
|
|
622
|
-
"default": "{ title: 'Componenti/Timeline', tags: ['a11y-ok', 'web-component'
|
|
622
|
+
"default": "{ title: 'Componenti/Timeline', tags: ['a11y-ok', 'web-component'], component: 'it-timeline', parameters: { layout: 'padded', }, } satisfies Meta"
|
|
623
623
|
},
|
|
624
624
|
{
|
|
625
625
|
"kind": "variable",
|
package/dist/src/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export { ItTimeline } from './it-timeline.js';
|
|
2
2
|
export { ItTimelineElement } from './it-timeline-element.js';
|
|
3
3
|
export { ItTimelinePoint } from './it-timeline-point.js';
|
|
4
|
-
export { T as TIMELINE_ELEMENT_DARK_VARIANTS, a as TIMELINE_ELEMENT_VARIANTS, b as TIMELINE_HEADING_LEVELS, c as TIMELINE_POINT_COLORS, d as TIMELINE_POINT_LIST_TAGS, e as TIMELINE_VARIANTS } from '../types-
|
|
4
|
+
export { T as TIMELINE_ELEMENT_DARK_VARIANTS, a as TIMELINE_ELEMENT_VARIANTS, b as TIMELINE_HEADING_LEVELS, c as TIMELINE_POINT_COLORS, d as TIMELINE_POINT_LIST_TAGS, e as TIMELINE_VARIANTS } from '../types-Dh9wSeMe.js';
|
|
5
5
|
import 'lit';
|
|
6
6
|
import 'lit/decorators.js';
|
|
7
7
|
import 'lit/static-html.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate, f as __metadata, B as BaseComponent, b as TIMELINE_HEADING_LEVELS, a as TIMELINE_ELEMENT_VARIANTS, T as TIMELINE_ELEMENT_DARK_VARIANTS } from '../types-
|
|
1
|
+
import { _ as __decorate, f as __metadata, B as BaseComponent, b as TIMELINE_HEADING_LEVELS, a as TIMELINE_ELEMENT_VARIANTS, T as TIMELINE_ELEMENT_DARK_VARIANTS } from '../types-Dh9wSeMe.js';
|
|
2
2
|
import { css, nothing, html } from 'lit';
|
|
3
3
|
import { property, customElement } from 'lit/decorators.js';
|
|
4
4
|
import { unsafeStatic, html as html$1 } from 'lit/static-html.js';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate, f as __metadata, B as BaseComponent, c as TIMELINE_POINT_COLORS } from '../types-
|
|
1
|
+
import { _ as __decorate, f as __metadata, B as BaseComponent, c as TIMELINE_POINT_COLORS } from '../types-Dh9wSeMe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property, customElement } from 'lit/decorators.js';
|
|
4
4
|
import 'lit/directive.js';
|
package/dist/src/it-timeline.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate, f as __metadata, B as BaseComponent, c as TIMELINE_POINT_COLORS, e as TIMELINE_VARIANTS, d as TIMELINE_POINT_LIST_TAGS } from '../types-
|
|
1
|
+
import { _ as __decorate, f as __metadata, B as BaseComponent, c as TIMELINE_POINT_COLORS, e as TIMELINE_VARIANTS, d as TIMELINE_POINT_LIST_TAGS } from '../types-Dh9wSeMe.js';
|
|
2
2
|
import { css, html } from 'lit';
|
|
3
3
|
import { property, customElement } from 'lit/decorators.js';
|
|
4
4
|
import { unsafeStatic, html as html$1 } from 'lit/static-html.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@italia/timeline",
|
|
3
3
|
"description": "Web components it-timeline e it-timeline-point-list del Design system .italia",
|
|
4
|
-
"version": "1.0.0-beta.
|
|
4
|
+
"version": "1.0.0-beta.2",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -36,9 +36,9 @@
|
|
|
36
36
|
"custom-elements.json"
|
|
37
37
|
],
|
|
38
38
|
"dependencies": {
|
|
39
|
-
"bootstrap-italia": "3.0.0-beta.
|
|
39
|
+
"bootstrap-italia": "3.0.0-beta.5",
|
|
40
40
|
"lit": "^3.3.0",
|
|
41
|
-
"@italia/globals": "^1.0.0-beta.
|
|
41
|
+
"@italia/globals": "^1.0.0-beta.2"
|
|
42
42
|
},
|
|
43
43
|
"devDependencies": {
|
|
44
44
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"stylelint-config-standard-scss": "^14.0.0",
|
|
56
56
|
"tslib": "^2.6.3",
|
|
57
57
|
"typescript": "^5.5.3",
|
|
58
|
-
"@italia/test-config": "^1.0.0-beta.
|
|
59
|
-
"@italia/typescript-config": "^1.0.0-beta.
|
|
58
|
+
"@italia/test-config": "^1.0.0-beta.2",
|
|
59
|
+
"@italia/typescript-config": "^1.0.0-beta.1"
|
|
60
60
|
},
|
|
61
61
|
"customElements": "custom-elements.json",
|
|
62
62
|
"scripts": {
|