@maggioli-design-system/mds-progress 2.8.0 → 2.8.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.
Files changed (67) hide show
  1. package/dist/cjs/{index-4c39a7df.js → index-53e759e9.js} +60 -23
  2. package/dist/cjs/loader.cjs.js +1 -1
  3. package/dist/cjs/mds-progress.cjs.entry.js +36 -36
  4. package/dist/cjs/mds-progress.cjs.js +2 -2
  5. package/dist/collection/collection-manifest.json +1 -1
  6. package/dist/collection/common/aria.js +18 -18
  7. package/dist/collection/common/keyboard-manager.js +38 -38
  8. package/dist/collection/common/unit.js +7 -7
  9. package/dist/collection/components/mds-progress/mds-progress.css +5 -0
  10. package/dist/collection/components/mds-progress/mds-progress.js +142 -142
  11. package/dist/collection/components/mds-progress/meta/dictionary.js +2 -2
  12. package/dist/collection/components/mds-progress/test/mds-progress.e2e.js +7 -7
  13. package/dist/collection/components/mds-progress/test/mds-progress.stories.js +20 -20
  14. package/dist/collection/dictionary/autocomplete.js +56 -56
  15. package/dist/collection/dictionary/button.js +19 -19
  16. package/dist/collection/dictionary/color.js +14 -14
  17. package/dist/collection/dictionary/floating-ui.js +14 -14
  18. package/dist/collection/dictionary/input.js +31 -15
  19. package/dist/collection/dictionary/loading.js +2 -2
  20. package/dist/collection/dictionary/typography.js +46 -46
  21. package/dist/collection/dictionary/variant.js +54 -54
  22. package/dist/collection/fixtures/cities.js +107 -107
  23. package/dist/components/mds-progress.d.ts +2 -2
  24. package/dist/components/mds-progress.js +58 -58
  25. package/dist/documentation.json +2 -2
  26. package/dist/esm/{index-84dce283.js → index-d7c3a08c.js} +60 -23
  27. package/dist/esm/loader.js +2 -2
  28. package/dist/esm/mds-progress.entry.js +36 -36
  29. package/dist/esm/mds-progress.js +3 -3
  30. package/dist/esm-es5/index-d7c3a08c.js +1 -0
  31. package/dist/esm-es5/loader.js +1 -1
  32. package/dist/esm-es5/mds-progress.entry.js +1 -1
  33. package/dist/esm-es5/mds-progress.js +1 -1
  34. package/dist/mds-progress/mds-progress.esm.js +1 -1
  35. package/dist/mds-progress/mds-progress.js +15 -15
  36. package/dist/mds-progress/p-3fd7c0e1.system.js +2 -0
  37. package/dist/mds-progress/{p-8adca417.system.js → p-72564754.system.js} +1 -1
  38. package/{www/build/p-1ab5e470.entry.js → dist/mds-progress/p-ba0c7117.entry.js} +1 -1
  39. package/dist/mds-progress/p-e157ffcb.js +2 -0
  40. package/dist/mds-progress/p-efdf2de7.system.entry.js +1 -0
  41. package/dist/stats.json +30 -30
  42. package/dist/types/common/keyboard-manager.d.ts +9 -9
  43. package/dist/types/components/mds-progress/mds-progress.d.ts +24 -24
  44. package/dist/types/components/mds-progress/test/mds-progress.stories.d.ts +37 -37
  45. package/dist/types/dictionary/input.d.ts +2 -1
  46. package/dist/types/interface/input-value.d.ts +1 -1
  47. package/dist/types/stencil-public-runtime.d.ts +8 -0
  48. package/documentation.json +14 -4
  49. package/package.json +3 -3
  50. package/src/components/mds-progress/mds-progress.css +1 -1
  51. package/src/dictionary/input.ts +18 -0
  52. package/src/fixtures/icons.json +3 -0
  53. package/src/fixtures/iconsauce.json +3 -0
  54. package/www/build/mds-progress.esm.js +1 -1
  55. package/www/build/mds-progress.js +15 -15
  56. package/www/build/p-3fd7c0e1.system.js +2 -0
  57. package/www/build/{p-8adca417.system.js → p-72564754.system.js} +1 -1
  58. package/{dist/mds-progress/p-1ab5e470.entry.js → www/build/p-ba0c7117.entry.js} +1 -1
  59. package/www/build/p-e157ffcb.js +2 -0
  60. package/www/build/p-efdf2de7.system.entry.js +1 -0
  61. package/dist/esm-es5/index-84dce283.js +0 -1
  62. package/dist/mds-progress/p-576b3fa7.js +0 -2
  63. package/dist/mds-progress/p-a257dbdb.system.js +0 -2
  64. package/dist/mds-progress/p-aeb5044e.system.entry.js +0 -1
  65. package/www/build/p-576b3fa7.js +0 -2
  66. package/www/build/p-a257dbdb.system.js +0 -2
  67. package/www/build/p-aeb5044e.system.entry.js +0 -1
@@ -1,5 +1,5 @@
1
1
  const loadingDictionary = [
2
- 'eager',
3
- 'lazy',
2
+ 'eager',
3
+ 'lazy',
4
4
  ];
5
5
  export { loadingDictionary, };
@@ -1,67 +1,67 @@
1
1
  const typographyDictionary = [
2
- 'action',
3
- 'caption',
4
- 'snippet',
5
- 'detail',
6
- 'h1',
7
- 'h2',
8
- 'h3',
9
- 'h4',
10
- 'h5',
11
- 'h6',
12
- 'hack',
13
- 'label',
14
- 'option',
15
- 'paragraph',
16
- 'tip',
2
+ 'action',
3
+ 'caption',
4
+ 'snippet',
5
+ 'detail',
6
+ 'h1',
7
+ 'h2',
8
+ 'h3',
9
+ 'h4',
10
+ 'h5',
11
+ 'h6',
12
+ 'hack',
13
+ 'label',
14
+ 'option',
15
+ 'paragraph',
16
+ 'tip',
17
17
  ];
18
18
  const typographyVariationsDictionary = [
19
- 'title',
20
- 'info',
21
- 'read',
22
- 'code',
19
+ 'title',
20
+ 'info',
21
+ 'read',
22
+ 'code',
23
23
  ];
24
24
  const typographyReadingVariationsDictionary = [
25
- 'info',
26
- 'read',
25
+ 'info',
26
+ 'read',
27
27
  ];
28
28
  const typographyMonoDictionary = [
29
- 'snippet',
30
- 'hack',
29
+ 'snippet',
30
+ 'hack',
31
31
  ];
32
32
  const typographyTitleDictionary = [
33
- 'action',
34
- 'h1',
35
- 'h2',
36
- 'h3',
37
- 'h4',
38
- 'h5',
39
- 'h6',
33
+ 'action',
34
+ 'h1',
35
+ 'h2',
36
+ 'h3',
37
+ 'h4',
38
+ 'h5',
39
+ 'h6',
40
40
  ];
41
41
  const typographyInfoDictionary = [
42
- 'caption',
43
- 'detail',
44
- 'label',
45
- 'option',
46
- 'paragraph',
47
- 'tip',
42
+ 'caption',
43
+ 'detail',
44
+ 'label',
45
+ 'option',
46
+ 'paragraph',
47
+ 'tip',
48
48
  ];
49
49
  const typographyReadDictionary = [
50
- 'caption',
51
- 'detail',
52
- 'paragraph',
50
+ 'caption',
51
+ 'detail',
52
+ 'paragraph',
53
53
  ];
54
54
  const typographySmallerDictionary = [
55
- 'option',
56
- 'tip',
55
+ 'option',
56
+ 'tip',
57
57
  ];
58
58
  const typographyTooltipDictionary = [
59
- 'caption',
60
- 'detail',
61
- 'tip',
59
+ 'caption',
60
+ 'detail',
61
+ 'tip',
62
62
  ];
63
63
  const typographyInputDictionary = [
64
- 'snippet',
65
- 'detail',
64
+ 'snippet',
65
+ 'detail',
66
66
  ];
67
67
  export { typographyDictionary, typographyInfoDictionary, typographyInputDictionary, typographyMonoDictionary, typographyReadDictionary, typographyReadingVariationsDictionary, typographySmallerDictionary, typographyTitleDictionary, typographyTooltipDictionary, typographyVariationsDictionary, };
@@ -1,73 +1,73 @@
1
1
  const themeVariantDictionary = [
2
- 'dark',
3
- 'error',
4
- 'info',
5
- 'light',
6
- 'primary',
7
- 'success',
8
- 'warning',
2
+ 'dark',
3
+ 'error',
4
+ 'info',
5
+ 'light',
6
+ 'primary',
7
+ 'success',
8
+ 'warning',
9
9
  ];
10
10
  const themeLuminanceVariantDictionary = [
11
- 'dark',
12
- 'light',
11
+ 'dark',
12
+ 'light',
13
13
  ];
14
14
  const themeStatusVariantDictionary = [
15
- 'error',
16
- 'info',
17
- 'success',
18
- 'warning',
15
+ 'error',
16
+ 'info',
17
+ 'success',
18
+ 'warning',
19
19
  ];
20
20
  const themeFullVariantDictionary = [
21
- 'amaranth',
22
- 'aqua',
23
- 'blue',
24
- 'dark',
25
- 'error',
26
- 'green',
27
- 'info',
28
- 'light',
29
- 'lime',
30
- 'orange',
31
- 'orchid',
32
- 'sky',
33
- 'success',
34
- 'violet',
35
- 'warning',
36
- 'yellow',
21
+ 'amaranth',
22
+ 'aqua',
23
+ 'blue',
24
+ 'dark',
25
+ 'error',
26
+ 'green',
27
+ 'info',
28
+ 'light',
29
+ 'lime',
30
+ 'orange',
31
+ 'orchid',
32
+ 'sky',
33
+ 'success',
34
+ 'violet',
35
+ 'warning',
36
+ 'yellow',
37
37
  ];
38
38
  const themeLabelVariantDictionary = [
39
- 'amaranth',
40
- 'aqua',
41
- 'blue',
42
- 'green',
43
- 'lime',
44
- 'orange',
45
- 'orchid',
46
- 'sky',
47
- 'violet',
48
- 'yellow',
39
+ 'amaranth',
40
+ 'aqua',
41
+ 'blue',
42
+ 'green',
43
+ 'lime',
44
+ 'orange',
45
+ 'orchid',
46
+ 'sky',
47
+ 'violet',
48
+ 'yellow',
49
49
  ];
50
50
  const toneVariantDictionary = [
51
- 'strong',
52
- 'weak',
53
- 'ghost',
54
- 'quiet',
51
+ 'strong',
52
+ 'weak',
53
+ 'ghost',
54
+ 'quiet',
55
55
  ];
56
56
  const toneActionVariantDictionary = [
57
- 'primary',
58
- 'secondary',
59
- 'tertiary',
60
- 'strong',
61
- 'weak',
62
- 'quiet',
57
+ 'primary',
58
+ 'secondary',
59
+ 'tertiary',
60
+ 'strong',
61
+ 'weak',
62
+ 'quiet',
63
63
  ];
64
64
  const toneSimpleVariantDictionary = [
65
- 'strong',
66
- 'weak',
67
- 'quiet',
65
+ 'strong',
66
+ 'weak',
67
+ 'quiet',
68
68
  ];
69
69
  const toneMinimalVariantDictionary = [
70
- 'strong',
71
- 'weak',
70
+ 'strong',
71
+ 'weak',
72
72
  ];
73
73
  export { themeFullVariantDictionary, themeLabelVariantDictionary, themeLuminanceVariantDictionary, themeStatusVariantDictionary, themeVariantDictionary, toneActionVariantDictionary, toneMinimalVariantDictionary, toneSimpleVariantDictionary, toneVariantDictionary, };
@@ -1,110 +1,110 @@
1
1
  const citiesDictionary = [
2
- 'Agrigento',
3
- 'Alessandria',
4
- 'Ancona',
5
- 'Aosta',
6
- 'Arezzo',
7
- 'Ascoli Piceno',
8
- 'Asti',
9
- 'Avellino',
10
- 'Bari',
11
- 'Barletta-Andria-Trani',
12
- 'Belluno',
13
- 'Benevento',
14
- 'Bergamo',
15
- 'Biella',
16
- 'Bologna',
17
- 'Bolzano',
18
- 'Brescia',
19
- 'Brindisi',
20
- 'Cagliari',
21
- 'Caltanissetta',
22
- 'Campobasso',
23
- 'Caserta',
24
- 'Catania',
25
- 'Catanzaro',
26
- 'Chieti',
27
- 'Como',
28
- 'Cosenza',
29
- 'Cremona',
30
- 'Crotone',
31
- 'Cuneo',
32
- 'Enna',
33
- 'Fermo',
34
- 'Ferrara',
35
- 'Firenze',
36
- 'Foggia',
37
- 'Forlì-Cesena',
38
- 'Frosinone',
39
- 'Genova',
40
- 'Gorizia',
41
- 'Grosseto',
42
- 'Imperia',
43
- 'Isernia',
44
- 'La Spezia',
45
- 'L\'Aquila',
46
- 'Latina',
47
- 'Lecce',
48
- 'Lecco',
49
- 'Livorno',
50
- 'Lodi',
51
- 'Lucca',
52
- 'Macerata',
53
- 'Mantova',
54
- 'Massa-Carrara',
55
- 'Matera',
56
- 'Messina',
57
- 'Milano',
58
- 'Modena',
59
- 'Monza e della Brianza',
60
- 'Napoli',
61
- 'Novara',
62
- 'Nuoro',
63
- 'Oristano',
64
- 'Padova',
65
- 'Palermo',
66
- 'Parma',
67
- 'Pavia',
68
- 'Perugia',
69
- 'Pesaro e Urbino',
70
- 'Pescara',
71
- 'Piacenza',
72
- 'Pisa',
73
- 'Pistoia',
74
- 'Pordenone',
75
- 'Potenza',
76
- 'Prato',
77
- 'Ragusa',
78
- 'Ravenna',
79
- 'Reggio Calabria',
80
- 'Reggio Emilia',
81
- 'Rieti',
82
- 'Rimini',
83
- 'Roma',
84
- 'Rovigo',
85
- 'Salerno',
86
- 'Sassari',
87
- 'Savona',
88
- 'Siena',
89
- 'Siracusa',
90
- 'Sondrio',
91
- 'Sud Sardegna',
92
- 'Taranto',
93
- 'Teramo',
94
- 'Terni',
95
- 'Torino',
96
- 'Trapani',
97
- 'Trento',
98
- 'Treviso',
99
- 'Trieste',
100
- 'Udine',
101
- 'Varese',
102
- 'Venezia',
103
- 'Verbano-Cusio-Ossola',
104
- 'Vercelli',
105
- 'Verona',
106
- 'Vibo Valentia',
107
- 'Vicenza',
108
- 'Viterbo',
2
+ 'Agrigento',
3
+ 'Alessandria',
4
+ 'Ancona',
5
+ 'Aosta',
6
+ 'Arezzo',
7
+ 'Ascoli Piceno',
8
+ 'Asti',
9
+ 'Avellino',
10
+ 'Bari',
11
+ 'Barletta-Andria-Trani',
12
+ 'Belluno',
13
+ 'Benevento',
14
+ 'Bergamo',
15
+ 'Biella',
16
+ 'Bologna',
17
+ 'Bolzano',
18
+ 'Brescia',
19
+ 'Brindisi',
20
+ 'Cagliari',
21
+ 'Caltanissetta',
22
+ 'Campobasso',
23
+ 'Caserta',
24
+ 'Catania',
25
+ 'Catanzaro',
26
+ 'Chieti',
27
+ 'Como',
28
+ 'Cosenza',
29
+ 'Cremona',
30
+ 'Crotone',
31
+ 'Cuneo',
32
+ 'Enna',
33
+ 'Fermo',
34
+ 'Ferrara',
35
+ 'Firenze',
36
+ 'Foggia',
37
+ 'Forlì-Cesena',
38
+ 'Frosinone',
39
+ 'Genova',
40
+ 'Gorizia',
41
+ 'Grosseto',
42
+ 'Imperia',
43
+ 'Isernia',
44
+ 'La Spezia',
45
+ 'L\'Aquila',
46
+ 'Latina',
47
+ 'Lecce',
48
+ 'Lecco',
49
+ 'Livorno',
50
+ 'Lodi',
51
+ 'Lucca',
52
+ 'Macerata',
53
+ 'Mantova',
54
+ 'Massa-Carrara',
55
+ 'Matera',
56
+ 'Messina',
57
+ 'Milano',
58
+ 'Modena',
59
+ 'Monza e della Brianza',
60
+ 'Napoli',
61
+ 'Novara',
62
+ 'Nuoro',
63
+ 'Oristano',
64
+ 'Padova',
65
+ 'Palermo',
66
+ 'Parma',
67
+ 'Pavia',
68
+ 'Perugia',
69
+ 'Pesaro e Urbino',
70
+ 'Pescara',
71
+ 'Piacenza',
72
+ 'Pisa',
73
+ 'Pistoia',
74
+ 'Pordenone',
75
+ 'Potenza',
76
+ 'Prato',
77
+ 'Ragusa',
78
+ 'Ravenna',
79
+ 'Reggio Calabria',
80
+ 'Reggio Emilia',
81
+ 'Rieti',
82
+ 'Rimini',
83
+ 'Roma',
84
+ 'Rovigo',
85
+ 'Salerno',
86
+ 'Sassari',
87
+ 'Savona',
88
+ 'Siena',
89
+ 'Siracusa',
90
+ 'Sondrio',
91
+ 'Sud Sardegna',
92
+ 'Taranto',
93
+ 'Teramo',
94
+ 'Terni',
95
+ 'Torino',
96
+ 'Trapani',
97
+ 'Trento',
98
+ 'Treviso',
99
+ 'Trieste',
100
+ 'Udine',
101
+ 'Varese',
102
+ 'Venezia',
103
+ 'Verbano-Cusio-Ossola',
104
+ 'Vercelli',
105
+ 'Verona',
106
+ 'Vibo Valentia',
107
+ 'Vicenza',
108
+ 'Viterbo',
109
109
  ];
110
110
  export { citiesDictionary, };
@@ -2,8 +2,8 @@ import type { Components, JSX } from "../types/components";
2
2
 
3
3
  interface MdsProgress extends Components.MdsProgress, HTMLElement {}
4
4
  export const MdsProgress: {
5
- prototype: MdsProgress;
6
- new (): MdsProgress;
5
+ prototype: MdsProgress;
6
+ new (): MdsProgress;
7
7
  };
8
8
  /**
9
9
  * Used to define this component and all nested components recursively.
@@ -1,68 +1,68 @@
1
1
  import { proxyCustomElement, HTMLElement, h, Host } from '@stencil/core/internal/client';
2
2
 
3
- const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}";
3
+ const mdsProgressCss = "@tailwind utilities; :host{--mds-progress-background:rgb(var(--tone-neutral-08));--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-duration:750ms;--mds-progress-radius:0.5rem;--mds-progress-thickness:0.5rem;-webkit-transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, fill, stroke, -webkit-text-decoration-color;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke;transition-property:color, background-color, border-color, text-decoration-color, fill, stroke, -webkit-text-decoration-color;-webkit-transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transition-timing-function:cubic-bezier(0.4, 0, 0.2, 1);-webkit-transition-duration:150ms;transition-duration:150ms;background-color:var(--mds-progress-background);border-radius:var(--mds-progress-radius);display:-ms-flexbox;display:flex;height:var(--mds-progress-thickness);min-width:var(--mds-progress-thickness);overflow:hidden;width:100%}:host([direction=\"vertical\"]){-ms-flex-direction:column;flex-direction:column;height:unset;min-height:var(--mds-progress-thickness);width:var(--mds-progress-thickness)}.progress{-webkit-transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);transition-timing-function:cubic-bezier(0.19, 1, 0.22, 1);background-color:var(--mds-progress-color);border-radius:var(--mds-progress-radius);-webkit-transition-duration:var(--mds-progress-duration);transition-duration:var(--mds-progress-duration);-webkit-transition-property:background-color, flex-grow;transition-property:background-color, flex-grow;transition-property:background-color, flex-grow, -ms-flex-positive}.fixed{position:fixed}.absolute{position:absolute}.border{border-width:1px}.text{font-size:1rem}.shadow{--tw-shadow:0 1px 3px 0 rgb(0 0 0 / 0.1), 0 1px 2px -1px rgb(0 0 0 / 0.1);--tw-shadow-colored:0 1px 3px 0 var(--tw-shadow-color), 0 1px 2px -1px var(--tw-shadow-color);-webkit-box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000), var(--tw-ring-shadow, 0 0 #0000), var(--tw-shadow)}:host([variant=\"dark\"]){--mds-progress-color:rgb(var(--tone-neutral-04));--mds-progress-background:rgb(var(--tone-neutral-08))}:host([variant=\"light\"]){--mds-progress-color:rgb(var(--tone-neutral));--mds-progress-background:rgb(var(--tone-neutral-05))}:host([variant=\"error\"]){--mds-progress-color:rgb(var(--status-error-06));--mds-progress-background:rgb(var(--status-error-09))}:host([variant=\"warning\"]){--mds-progress-color:rgb(var(--status-warning-06));--mds-progress-background:rgb(var(--status-warning-09))}:host([variant=\"success\"]){--mds-progress-color:rgb(var(--status-success-06));--mds-progress-background:rgb(var(--status-success-09))}:host([variant=\"info\"]){--mds-progress-color:rgb(var(--status-info-06));--mds-progress-background:rgb(var(--status-info-09))}:host([variant=\"primary\"]){--mds-progress-color:rgb(var(--brand-maggioli-03));--mds-progress-background:rgb(var(--tone-neutral-08))}";
4
4
 
5
5
  const MdsProgress$1 = /*@__PURE__*/ proxyCustomElement(class MdsProgress extends HTMLElement {
6
- constructor() {
7
- super();
8
- this.__registerHost();
9
- this.__attachShadow();
10
- this.stepsList = new Array();
11
- this.currentStep = undefined;
12
- this.progress = 0;
13
- this.direction = 'horizontal';
14
- this.variant = 'primary';
15
- this.steps = 'Inizio,Un quarto,Metà,Tre quarti,Fine';
16
- }
17
- componentWillLoad() {
18
- this.stepsList = this.steps.split(',');
19
- this.setProgress(this.progress);
20
- }
21
- setProgress(progress) {
22
- if (this.steps) {
23
- this.currentStep = this.stepsList[Math.round(progress * (this.stepsList.length - 1))];
24
- this.element.setAttribute('aria-valuetext', this.currentStep);
6
+ constructor() {
7
+ super();
8
+ this.__registerHost();
9
+ this.__attachShadow();
10
+ this.stepsList = new Array();
11
+ this.currentStep = undefined;
12
+ this.progress = 0;
13
+ this.direction = 'horizontal';
14
+ this.variant = 'primary';
15
+ this.steps = 'Inizio,Un quarto,Metà,Tre quarti,Fine';
25
16
  }
26
- }
27
- progressChanged(progress) {
28
- this.setProgress(progress);
29
- }
30
- stepsChanged(steps) {
31
- this.stepsList = steps.split(',');
32
- }
33
- render() {
34
- return (h(Host, { "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": Math.round(this.progress * 100), role: "progressbar" }, h("div", { class: "progress", style: this.direction === 'horizontal'
35
- ? { flexGrow: `${this.progress}` }
36
- : { flexGrow: `${this.progress}`, width: '100%' } })));
37
- }
38
- get element() { return this; }
39
- static get watchers() { return {
40
- "progress": ["progressChanged"],
41
- "steps": ["stepsChanged"]
42
- }; }
43
- static get style() { return mdsProgressCss; }
17
+ componentWillLoad() {
18
+ this.stepsList = this.steps.split(',');
19
+ this.setProgress(this.progress);
20
+ }
21
+ setProgress(progress) {
22
+ if (this.steps) {
23
+ this.currentStep = this.stepsList[Math.round(progress * (this.stepsList.length - 1))];
24
+ this.element.setAttribute('aria-valuetext', this.currentStep);
25
+ }
26
+ }
27
+ progressChanged(progress) {
28
+ this.setProgress(progress);
29
+ }
30
+ stepsChanged(steps) {
31
+ this.stepsList = steps.split(',');
32
+ }
33
+ render() {
34
+ return (h(Host, { "aria-valuemax": "100", "aria-valuemin": "0", "aria-valuenow": Math.round(this.progress * 100), role: "progressbar" }, h("div", { class: "progress", style: this.direction === 'horizontal'
35
+ ? { flexGrow: `${this.progress}` }
36
+ : { flexGrow: `${this.progress}`, width: '100%' } })));
37
+ }
38
+ get element() { return this; }
39
+ static get watchers() { return {
40
+ "progress": ["progressChanged"],
41
+ "steps": ["stepsChanged"]
42
+ }; }
43
+ static get style() { return mdsProgressCss; }
44
44
  }, [1, "mds-progress", {
45
- "progress": [2],
46
- "direction": [513],
47
- "variant": [513],
48
- "steps": [1],
49
- "currentStep": [32]
50
- }, undefined, {
51
- "progress": ["progressChanged"],
52
- "steps": ["stepsChanged"]
53
- }]);
45
+ "progress": [2],
46
+ "direction": [513],
47
+ "variant": [513],
48
+ "steps": [1],
49
+ "currentStep": [32]
50
+ }, undefined, {
51
+ "progress": ["progressChanged"],
52
+ "steps": ["stepsChanged"]
53
+ }]);
54
54
  function defineCustomElement$1() {
55
- if (typeof customElements === "undefined") {
56
- return;
57
- }
58
- const components = ["mds-progress"];
59
- components.forEach(tagName => { switch (tagName) {
60
- case "mds-progress":
61
- if (!customElements.get(tagName)) {
62
- customElements.define(tagName, MdsProgress$1);
63
- }
64
- break;
65
- } });
55
+ if (typeof customElements === "undefined") {
56
+ return;
57
+ }
58
+ const components = ["mds-progress"];
59
+ components.forEach(tagName => { switch (tagName) {
60
+ case "mds-progress":
61
+ if (!customElements.get(tagName)) {
62
+ customElements.define(tagName, MdsProgress$1);
63
+ }
64
+ break;
65
+ } });
66
66
  }
67
67
 
68
68
  const MdsProgress = MdsProgress$1;
@@ -1,8 +1,8 @@
1
1
  {
2
- "timestamp": "2023-11-08T17:58:52",
2
+ "timestamp": "2023-12-20T08:51:43",
3
3
  "compiler": {
4
4
  "name": "@stencil/core",
5
- "version": "4.7.1",
5
+ "version": "4.8.0",
6
6
  "typescriptVersion": "5.2.2"
7
7
  },
8
8
  "components": [