@italia/stepper 1.0.0-alpha.19 → 1.0.0-beta.1
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 +6 -28
- package/custom-elements.json +1 -1
- package/dist/src/index.js +1 -1
- package/dist/src/it-stepper-step.js +1 -1
- package/dist/src/it-stepper.js +1 -1
- package/package.json +27 -27
package/README.md
CHANGED
|
@@ -1,33 +1,11 @@
|
|
|
1
|
-
#
|
|
1
|
+
# <it-stepper>
|
|
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
|
-
npm install @italia/stepper
|
|
9
|
-
```
|
|
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).
|
|
10
8
|
|
|
11
|
-
##
|
|
9
|
+
## Documentation
|
|
12
10
|
|
|
13
|
-
|
|
14
|
-
<script type="module">
|
|
15
|
-
import '@italia/stepper';
|
|
16
|
-
</script>
|
|
17
|
-
|
|
18
|
-
<it-stepper header-variant="numbers" current="1" total-steps="6">
|
|
19
|
-
<it-stepper-step label="Primo contenuto">
|
|
20
|
-
<p>Contenuto del primo step</p>
|
|
21
|
-
</it-stepper-step>
|
|
22
|
-
<it-stepper-step label="Secondo contenuto">
|
|
23
|
-
<p>Contenuto del secondo step</p>
|
|
24
|
-
</it-stepper-step>
|
|
25
|
-
<it-stepper-step label="Terzo contenuto">
|
|
26
|
-
<p>Contenuto del terzo step</p>
|
|
27
|
-
</it-stepper-step>
|
|
28
|
-
</it-stepper>
|
|
29
|
-
```
|
|
30
|
-
|
|
31
|
-
## Documentazione
|
|
32
|
-
|
|
33
|
-
Consulta la [documentazione completa](https://italia.github.io/dev-kit-italia) per esempi e dettagli sulle proprietà disponibili.
|
|
11
|
+
Find the usage instructions for this specific component in its [dedicated documentation page](https://italia.github.io/dev-kit-italia/?path=/docs/componenti-stepper--documentazione).
|
package/custom-elements.json
CHANGED
|
@@ -681,7 +681,7 @@
|
|
|
681
681
|
"type": {
|
|
682
682
|
"text": "Meta<StepperArgs>"
|
|
683
683
|
},
|
|
684
|
-
"default": "{ title: 'Componenti/Stepper', tags: ['
|
|
684
|
+
"default": "{ title: 'Componenti/Stepper', tags: ['web-component', 'a11y-ok'], 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
685
|
},
|
|
686
686
|
{
|
|
687
687
|
"kind": "variable",
|
package/dist/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { _ as __decorate, a as __metadata, B as BaseComponent } from '../index-
|
|
1
|
+
import { _ as __decorate, a as __metadata, B as BaseComponent } from '../index-BcchMDon.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-stepper.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { r as registerTranslation, _ as __decorate, a as __metadata, b as BaseLocalizedComponent } from '../index-
|
|
1
|
+
import { r as registerTranslation, _ as __decorate, a as __metadata, b as BaseLocalizedComponent } from '../index-BcchMDon.js';
|
|
2
2
|
import { css, html, nothing } from 'lit';
|
|
3
3
|
import { property, customElement } from 'lit/decorators.js';
|
|
4
4
|
import { ifDefined } from 'lit/directives/if-defined.js';
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@italia/stepper",
|
|
3
3
|
"description": "Web component it-stepper del Design system .italia",
|
|
4
|
-
"version": "1.0.0-
|
|
4
|
+
"version": "1.0.0-beta.1",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
7
7
|
},
|
|
@@ -34,42 +34,42 @@
|
|
|
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\" && stylelint \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" --check",
|
|
43
|
+
"format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" && stylelint --fix \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.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
|
+
},
|
|
37
47
|
"dependencies": {
|
|
38
|
-
"
|
|
39
|
-
"
|
|
40
|
-
"
|
|
41
|
-
"
|
|
48
|
+
"@italia/globals": "workspace:^",
|
|
49
|
+
"@italia/i18n": "workspace:^",
|
|
50
|
+
"bootstrap-italia": "catalog:",
|
|
51
|
+
"lit": "catalog:"
|
|
42
52
|
},
|
|
43
53
|
"devDependencies": {
|
|
44
54
|
"@custom-elements-manifest/analyzer": "^0.10.3",
|
|
45
|
-
"@
|
|
55
|
+
"@italia/button": "workspace:^",
|
|
56
|
+
"@italia/test-config": "workspace:^",
|
|
57
|
+
"@italia/typescript-config": "workspace:^",
|
|
58
|
+
"@open-wc/testing": "catalog:",
|
|
46
59
|
"@rollup/plugin-node-resolve": "^16.0.1",
|
|
47
60
|
"@rollup/plugin-typescript": "^12.1.2",
|
|
48
|
-
"@types/mocha": "
|
|
49
|
-
"@web/test-runner": "
|
|
61
|
+
"@types/mocha": "catalog:",
|
|
62
|
+
"@web/test-runner": "catalog:",
|
|
50
63
|
"rimraf": "^6.0.1",
|
|
51
64
|
"rollup": "^4.42.0",
|
|
52
65
|
"rollup-plugin-scss-lit": "^2.1.0",
|
|
53
|
-
"sass": "
|
|
66
|
+
"sass": "catalog:",
|
|
54
67
|
"tslib": "^2.6.3",
|
|
55
|
-
"typescript": "
|
|
56
|
-
"@italia/button": "^1.0.0-alpha.19",
|
|
57
|
-
"@italia/test-config": "^0.0.0",
|
|
58
|
-
"@italia/typescript-config": "^0.0.0"
|
|
68
|
+
"typescript": "catalog:"
|
|
59
69
|
},
|
|
60
70
|
"peerDependencies": {
|
|
61
|
-
"@italia/button": "
|
|
62
|
-
"@italia/icon": "
|
|
71
|
+
"@italia/button": "workspace:^",
|
|
72
|
+
"@italia/icon": "workspace:^"
|
|
63
73
|
},
|
|
64
|
-
"customElements": "custom-elements.json"
|
|
65
|
-
|
|
66
|
-
"analyze": "cem analyze --litelement --exclude dist",
|
|
67
|
-
"build": "rollup --config rollup.config.js",
|
|
68
|
-
"clean": "rimraf node_modules .turbo .rollup.cache dist coverage",
|
|
69
|
-
"prepublish": "pnpm build",
|
|
70
|
-
"lint": "eslint --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" && stylelint \"src/**/*.scss\" && prettier \"src/**/*.ts\" \"stories/**/*.ts\" --check",
|
|
71
|
-
"format": "eslint --fix --ext .ts \"src/**/*.ts\" \"stories/**/*.ts\" && stylelint --fix \"src/**/*.scss\" && prettier --write \"src/**/*.ts\" \"stories/**/*.ts\"",
|
|
72
|
-
"test": "wtr --coverage --node-resolve --config web-test-runner.config.js",
|
|
73
|
-
"test:watch": "wtr --coverage --node-resolve --config web-test-runner.config.js --watch"
|
|
74
|
-
}
|
|
75
|
-
}
|
|
74
|
+
"customElements": "custom-elements.json"
|
|
75
|
+
}
|