mypgs 2.0.0 → 2.1.0

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 (104) hide show
  1. package/README.md +25 -25
  2. package/assets/scss/components/_accordion.scss +0 -2
  3. package/assets/scss/components/_button.scss +1 -1
  4. package/assets/scss/components/_form.scss +0 -16
  5. package/assets/scss/components/_formAddon.scss +18 -0
  6. package/assets/scss/components/_modals.scss +5 -3
  7. package/assets/scss/components/_search.scss +2 -2
  8. package/assets/scss/components/_slides.scss +0 -1
  9. package/assets/scss/components/_tooltip.scss +0 -1
  10. package/assets/scss/index.scss +1 -0
  11. package/assets/scss/layout/_footer.scss +0 -2
  12. package/assets/scss/layout/_header.scss +9 -1
  13. package/assets/scss/layout/_pageShell.scss +6 -2
  14. package/assets/scss/mixin/_mx-button.scss +30 -76
  15. package/assets/scss/mixin/_mx-card.scss +11 -9
  16. package/assets/scss/mixin/_mx-form.scss +3 -5
  17. package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +23 -26
  18. package/assets/scss/mixin/_mx-hover.scss +75 -0
  19. package/assets/scss/mixin/_settings.scss +2 -1
  20. package/assets/scss/mixin/mixin.scss +2 -1
  21. package/demo/demo.js +4 -3
  22. package/dist/css/index.css +1166 -1517
  23. package/dist/css/index.css.map +1 -1
  24. package/dist/css/index.min.css +1 -1
  25. package/docs/componenti-e-markup.md +6 -5
  26. package/docs/components/accordion.md +22 -22
  27. package/docs/components/badges.md +19 -19
  28. package/docs/components/breadcumbs.md +8 -8
  29. package/docs/components/button.md +17 -17
  30. package/docs/components/card.md +19 -19
  31. package/docs/components/dropdown.md +29 -29
  32. package/docs/components/form.md +63 -40
  33. package/docs/components/formAddon.md +79 -0
  34. package/docs/components/logo.md +11 -11
  35. package/docs/components/menu.md +20 -20
  36. package/docs/components/modal.md +46 -46
  37. package/docs/components/notification.md +34 -34
  38. package/docs/components/search.md +51 -50
  39. package/docs/components/slides.md +39 -39
  40. package/docs/components/stepTabs.md +41 -41
  41. package/docs/components/steps.md +16 -16
  42. package/docs/components/summary.md +20 -20
  43. package/docs/components/table.md +7 -7
  44. package/docs/components/tooltip.md +22 -22
  45. package/docs/convenzioni.md +11 -11
  46. package/docs/export-e-sviluppo.md +3 -3
  47. package/docs/helper-javascript.md +7 -7
  48. package/docs/layout/body.md +11 -11
  49. package/docs/layout/flex.md +44 -44
  50. package/docs/layout/footer.md +23 -23
  51. package/docs/layout/grid.md +44 -44
  52. package/docs/layout/header.md +34 -34
  53. package/docs/layout/pageShell.md +11 -11
  54. package/docs/layout/section.md +26 -26
  55. package/docs/patterns/cookieConsent.md +38 -38
  56. package/docs/utilizzo-css-scss.md +8 -8
  57. package/package.json +1 -1
  58. package/scripts/generate-component-docs.js +5 -5
  59. package/templates/html/components/accordion.html +19 -19
  60. package/templates/html/components/badges.html +17 -17
  61. package/templates/html/components/breadcumbs.html +6 -6
  62. package/templates/html/components/button.html +15 -15
  63. package/templates/html/components/card.html +17 -17
  64. package/templates/html/components/dropdown.html +25 -25
  65. package/templates/html/components/form.html +58 -35
  66. package/templates/html/components/formAddon.html +72 -0
  67. package/templates/html/components/logo.html +9 -9
  68. package/templates/html/components/menu.html +16 -16
  69. package/templates/html/components/modal.html +42 -42
  70. package/templates/html/components/notification.html +30 -30
  71. package/templates/html/components/search.html +43 -42
  72. package/templates/html/components/slides.html +31 -31
  73. package/templates/html/components/stepTabs.html +37 -37
  74. package/templates/html/components/steps.html +13 -13
  75. package/templates/html/components/summary.html +17 -17
  76. package/templates/html/components/table.html +5 -5
  77. package/templates/html/components/tooltip.html +18 -18
  78. package/templates/html/layout/body.html +9 -10
  79. package/templates/html/layout/flex.html +42 -42
  80. package/templates/html/layout/footer.html +20 -20
  81. package/templates/html/layout/grid.html +42 -42
  82. package/templates/html/layout/header.html +32 -32
  83. package/templates/html/layout/pageShell.html +8 -8
  84. package/templates/html/layout/section.html +24 -24
  85. package/templates/html/patterns/cookieConsent.html +33 -33
  86. package/templates/react/components/accordion.jsx +4 -4
  87. package/templates/react/components/breadcumbs.jsx +1 -1
  88. package/templates/react/components/button.jsx +5 -5
  89. package/templates/react/components/card.jsx +4 -4
  90. package/templates/react/components/dropdown.jsx +8 -8
  91. package/templates/react/components/form.jsx +2 -2
  92. package/templates/react/components/modal.jsx +14 -14
  93. package/templates/react/components/notification.jsx +3 -3
  94. package/templates/react/components/search.jsx +5 -5
  95. package/templates/react/components/slides.jsx +3 -3
  96. package/templates/react/components/stepTabs.jsx +8 -8
  97. package/templates/react/components/summary.jsx +3 -3
  98. package/templates/react/components/table.jsx +2 -2
  99. package/templates/react/layout/flex.jsx +8 -8
  100. package/templates/react/layout/grid.jsx +8 -8
  101. package/templates/react/layout/section.jsx +12 -12
  102. package/templates/react/patterns/cookieConsent.jsx +8 -8
  103. package/templates/react/patterns/footer.jsx +3 -3
  104. package/templates/react/patterns/header.jsx +3 -3
@@ -1,33 +1,33 @@
1
1
  <!--
2
2
  /**
3
3
  * @title Footer
4
- * @description Piè di pagina completo con controllo tema, area di brand, navigazione, contenuti informativi e collegamento alle preferenze cookie.
4
+ * @description Complete footer with theme control, brand area, navigation, informational content, and a link to cookie preferences.
5
5
  *
6
6
  * @pgs
7
- * - footer: identifica il contenitore principale del piè di pagina.
8
- * - footer-top: identifica la sezione superiore con brand e contenuti.
9
- * - footer-top-content: identifica il layout interno responsive della sezione superiore.
10
- * - footer-brand: identifica il gruppo dedicato al marchio.
11
- * - footer-brand-motto: identifica il testo descrittivo associato al marchio.
12
- * - footer-content: identifica una colonna informativa del footer.
13
- * - footer-legal: identifica la sezione inferiore dedicata alle informazioni legali.
14
- * - footer-legal-content: identifica il contenuto della sezione legale.
7
+ * - footer: identifies the main footer container.
8
+ * - footer-top: identifies the upper section containing the brand and content.
9
+ * - footer-top-content: identifies the responsive inner layout of the upper section.
10
+ * - footer-brand: identifies the group dedicated to the brand.
11
+ * - footer-brand-motto: identifies the descriptive text associated with the brand.
12
+ * - footer-content: identifies an informational footer column.
13
+ * - footer-legal: identifies the lower section dedicated to legal information.
14
+ * - footer-legal-content: identifies the content of the legal section.
15
15
  *
16
16
  * @related
17
- * - button: presenta i controlli del tema e delle preferenze cookie come pulsanti.
18
- * - toggleDarkmode: collega il controllo al gestore globale del tema chiaro o scuro.
19
- * - section: applica alle aree superiore e legale la struttura condivisa delle sezioni.
20
- * - flex-3: distribuisce in modo responsive le colonne della parte superiore.
21
- * - logo: inserisce il marchio nel footer.
22
- * - logo-text: usa la variante testuale del logo.
23
- * - cookieConsent-actionOpen: apre il pannello delle preferenze del pattern Cookie Consent.
17
+ * - button: presents theme and cookie preference controls as buttons.
18
+ * - toggleDarkmode: connects the control to the global light or dark theme handler.
19
+ * - section: applies the shared section structure to the upper and legal areas.
20
+ * - flex-3: distributes the upper columns responsively.
21
+ * - logo: inserts the brand into the footer.
22
+ * - logo-text: uses the text variant of the logo.
23
+ * - cookieConsent-actionOpen: opens the Cookie Consent preference panel.
24
24
  *
25
- * @return Struttura HTML completa del footer con brand, menu e area legale.
25
+ * @return Complete footer HTML structure with brand, menu, and legal area.
26
26
  */
27
27
  -->
28
28
 
29
29
  <footer pgs="footer">
30
- <button pgs="button toggleDarkmode" type="button" aria-label="Cambia tema">
30
+ <button pgs="button toggleDarkmode" type="button" aria-label="Change theme">
31
31
  <i class="fa-solid fa-moon"></i>
32
32
  </button>
33
33
 
@@ -54,11 +54,11 @@
54
54
 
55
55
  <section pgs="footer-legal section">
56
56
  <div pgs="footer-legal-content">
57
- <button type="button" pgs="button cookieConsent-actionOpen">Preferenze cookie</button>
57
+ <button type="button" pgs="button cookieConsent-actionOpen">Cookie preferences</button>
58
58
  <p><a href="">Privacy Policy</a></p>
59
59
  <p><a href="">Cookie Policy</a></p>
60
60
  <p><a href="">Termini e Condizioni</a></p>
61
- <p>© 2026 MyPgs. Nessun diritto riservato.</p>
61
+ <p>© 2026 MyPgs. No rights reserved.</p>
62
62
  </div>
63
63
  </section>
64
64
  </footer>
@@ -1,109 +1,109 @@
1
1
  <!--
2
2
  /**
3
3
  * @title Grid
4
- * @description Esempi di griglie responsive che distribuiscono da due a sei colonne mantenendo gap e ridimensionamento coerenti con il design system.
4
+ * @description Responsive grid examples that distribute two to six columns while preserving design-system gaps and sizing.
5
5
  *
6
6
  * @pgs
7
- * - grid-2: crea una griglia responsive fino a due colonne.
8
- * - grid-3: crea una griglia responsive fino a tre colonne.
9
- * - grid-4: crea una griglia responsive fino a quattro colonne.
10
- * - grid-6: crea una griglia responsive fino a sei colonne.
7
+ * - grid-2: creates a responsive grid with up to two columns.
8
+ * - grid-3: creates a responsive grid with up to three columns.
9
+ * - grid-4: creates a responsive grid with up to four columns.
10
+ * - grid-6: creates a responsive grid with up to six columns.
11
11
  *
12
12
  * @related
13
- * - container: definisce il contesto contenitore dell'introduzione.
14
- * - flexColumnTexts: organizza e distanzia i testi introduttivi e delle card.
15
- * - card: rende visibili le celle dimostrative delle griglie.
13
+ * - container: defines the container context for the introduction.
14
+ * - flexColumnTexts: organizes and spaces introductory and card text.
15
+ * - card: makes the demonstration grid cells visible.
16
16
  *
17
- * @return Raccolta HTML delle griglie responsive a due, tre, quattro e sei colonne.
17
+ * @return HTML collection of responsive grids with two, three, four, and six columns.
18
18
  */
19
19
  -->
20
20
 
21
21
  <div pgs="container flexColumnTexts">
22
- <strong>Sezione standard</strong>
23
- <p>Contenuto centrato dentro una sezione MyPGS.</p>
22
+ <strong>Standard section</strong>
23
+ <p>Centered content inside a MyPGS section.</p>
24
24
  </div>
25
25
 
26
26
 
27
27
  <div pgs="grid-2">
28
28
  <article pgs="card flexColumnTexts">
29
- <strong>Colonna uno</strong>
30
- <p>Contenuto della prima colonna.</p>
29
+ <strong>Column one</strong>
30
+ <p>First column content.</p>
31
31
  </article>
32
32
 
33
33
  <article pgs="card flexColumnTexts">
34
- <strong>Colonna due</strong>
35
- <p>Contenuto della seconda colonna.</p>
34
+ <strong>Column two</strong>
35
+ <p>Second column content.</p>
36
36
  </article>
37
37
  </div>
38
38
 
39
39
 
40
40
  <div pgs="grid-3">
41
41
  <article pgs="card flexColumnTexts">
42
- <strong>Colonna uno</strong>
43
- <p>Contenuto della prima colonna.</p>
42
+ <strong>Column one</strong>
43
+ <p>First column content.</p>
44
44
  </article>
45
45
 
46
46
  <article pgs="card flexColumnTexts">
47
- <strong>Colonna due</strong>
48
- <p>Contenuto della seconda colonna.</p>
47
+ <strong>Column two</strong>
48
+ <p>Second column content.</p>
49
49
  </article>
50
50
 
51
51
  <article pgs="card flexColumnTexts">
52
- <strong>Colonna tre</strong>
53
- <p>Contenuto della terza colonna.</p>
52
+ <strong>Column three</strong>
53
+ <p>Third column content.</p>
54
54
  </article>
55
55
  </div>
56
56
 
57
57
 
58
58
  <div pgs="grid-4">
59
59
  <article pgs="card flexColumnTexts">
60
- <strong>Colonna uno</strong>
61
- <p>Contenuto della prima colonna.</p>
60
+ <strong>Column one</strong>
61
+ <p>First column content.</p>
62
62
  </article>
63
63
 
64
64
  <article pgs="card flexColumnTexts">
65
- <strong>Colonna due</strong>
66
- <p>Contenuto della seconda colonna.</p>
65
+ <strong>Column two</strong>
66
+ <p>Second column content.</p>
67
67
  </article>
68
68
 
69
69
  <article pgs="card flexColumnTexts">
70
- <strong>Colonna tre</strong>
71
- <p>Contenuto della terza colonna.</p>
70
+ <strong>Column three</strong>
71
+ <p>Third column content.</p>
72
72
  </article>
73
73
  <article pgs="card flexColumnTexts">
74
- <strong>Colonna quattro</strong>
75
- <p>Contenuto della quarta colonna.</p>
74
+ <strong>Column four</strong>
75
+ <p>Fourth column content.</p>
76
76
  </article>
77
77
  </div>
78
78
 
79
79
  <div pgs="grid-6">
80
80
  <article pgs="card flexColumnTexts">
81
- <strong>Colonna uno</strong>
82
- <p>Contenuto della prima colonna.</p>
81
+ <strong>Column one</strong>
82
+ <p>First column content.</p>
83
83
  </article>
84
84
 
85
85
  <article pgs="card flexColumnTexts">
86
- <strong>Colonna due</strong>
87
- <p>Contenuto della seconda colonna.</p>
86
+ <strong>Column two</strong>
87
+ <p>Second column content.</p>
88
88
  </article>
89
89
 
90
90
  <article pgs="card flexColumnTexts">
91
- <strong>Colonna tre</strong>
92
- <p>Contenuto della terza colonna.</p>
91
+ <strong>Column three</strong>
92
+ <p>Third column content.</p>
93
93
  </article>
94
94
 
95
95
  <article pgs="card flexColumnTexts">
96
- <strong>Colonna quattro</strong>
97
- <p>Contenuto della quarta colonna.</p>
96
+ <strong>Column four</strong>
97
+ <p>Fourth column content.</p>
98
98
  </article>
99
99
 
100
100
  <article pgs="card flexColumnTexts">
101
- <strong>Colonna cinque</strong>
102
- <p>Contenuto della quinta colonna.</p>
101
+ <strong>Column five</strong>
102
+ <p>Fifth column content.</p>
103
103
  </article>
104
104
 
105
105
  <article pgs="card flexColumnTexts">
106
- <strong>Colonna sei</strong>
107
- <p>Contenuto della sesta colonna.</p>
106
+ <strong>Column six</strong>
107
+ <p>Sixth column content.</p>
108
108
  </article>
109
- </div
109
+ </div
@@ -1,41 +1,41 @@
1
1
  <!--
2
2
  /**
3
3
  * @title Header
4
- * @description Intestazione responsive che misura lo spazio disponibile, alterna contenuti desktop e mobile e integra menu, tema scuro e navigazione modale.
4
+ * @description Responsive header that measures available space, switches between desktop and mobile content, and integrates menus, dark mode, and modal navigation.
5
5
  *
6
6
  * @pgs
7
- * - header: identifica l'intestazione principale osservata dal modulo JavaScript.
8
- * - header-element: identifica il gruppo interno misurato per determinare il passaggio alla modalità mobile.
9
- * - header-element-alwaysOn: identifica l'area iniziale sempre visibile.
10
- * - header-element-onlyDesktop: identifica i contenuti mostrati soltanto quando il menu desktop è attivo.
11
- * - header-element-onlyMobile: identifica i contenuti mostrati soltanto in modalità mobile.
12
- * - header-element-alwaysOnLast: identifica l'area finale sempre visibile.
13
- * - header-element-hamburger: identifica il gruppo della navigazione mobile.
14
- * - header-element-hamburger-button: identifica il controllo hamburger specifico dell'header.
7
+ * - header: identifies the main header observed by the JavaScript module.
8
+ * - header-element: identifies the inner group measured to determine the switch to mobile mode.
9
+ * - header-element-alwaysOn: identifies the initial area that is always visible.
10
+ * - header-element-onlyDesktop: identifies content shown only while the desktop menu is active.
11
+ * - header-element-onlyMobile: identifies content shown only in mobile mode.
12
+ * - header-element-alwaysOnLast: identifies the final area that is always visible.
13
+ * - header-element-hamburger: identifies the mobile navigation group.
14
+ * - header-element-hamburger-button: identifies the header-specific hamburger control.
15
15
  *
16
16
  * @pgs-option
17
- * - horizontal: dispone orizzontalmente il menu desktop correlato.
18
- * - vertical: dispone verticalmente il menu mobile correlato.
19
- * - menuHeader: adatta entrambi i menu al contesto dell'header.
20
- * - containerPGS: sul wrapper modal usa containerPGS[header] per spostare il dialog nell'intestazione.
21
- * - right: sul dialog della navigazione mobile presenta il contenuto dal lato destro.
17
+ * - horizontal: arranges the related desktop menu horizontally.
18
+ * - vertical: arranges the related mobile menu vertically.
19
+ * - menuHeader: adapts both menus to the header context.
20
+ * - containerPGS: uses containerPGS[header] on the modal wrapper to move the dialog into the header.
21
+ * - right: presents the mobile navigation dialog content from the right side.
22
22
  *
23
23
  * @pgs-state
24
- * - mobileActive: viene applicato a header e header-element quando larghezza o viewport richiedono la navigazione mobile.
24
+ * - mobileActive: is applied to header and header-element when their width or the viewport requires mobile navigation.
25
25
  *
26
26
  * @related
27
- * - logo: inserisce il marchio nell'area iniziale.
28
- * - logo-text: usa la variante testuale del logo.
29
- * - menu: fornisce la navigazione desktop e mobile.
30
- * - buttonIcon: presenta i controlli tema e hamburger come pulsanti a icona.
31
- * - toggleDarkmode: collega il controllo al gestore globale del tema.
32
- * - modal: fornisce apertura e chiusura della navigazione mobile.
33
- * - modal-button: apre il pannello mobile.
34
- * - modal-close: chiude il pannello mobile e condivide il controllo hamburger.
35
- * - modal-dialog: identifica il dialog della navigazione mobile.
36
- * - modal-dialog-content: identifica il pannello interno della navigazione mobile.
27
+ * - logo: inserts the brand into the initial area.
28
+ * - logo-text: uses the text variant of the logo.
29
+ * - menu: provides desktop and mobile navigation.
30
+ * - buttonIcon: presents theme and hamburger controls as icon buttons.
31
+ * - toggleDarkmode: connects the control to the global theme handler.
32
+ * - modal: provides opening and closing behavior for mobile navigation.
33
+ * - modal-button: opens the mobile panel.
34
+ * - modal-close: closes the mobile panel and shares the hamburger control.
35
+ * - modal-dialog: identifies the mobile navigation dialog.
36
+ * - modal-dialog-content: identifies the inner mobile navigation panel.
37
37
  *
38
- * @return Header HTML completo con navigazione desktop e pannello mobile laterale.
38
+ * @return Complete header HTML with desktop navigation and a side mobile panel.
39
39
  */
40
40
  -->
41
41
 
@@ -48,10 +48,10 @@
48
48
  </div>
49
49
 
50
50
  <div pgs="header-element-onlyDesktop">
51
- <nav pgs="menu" pgs-option="horizontal menuHeader" aria-label="Menu principale">
51
+ <nav pgs="menu" pgs-option="horizontal menuHeader" aria-label="Main menu">
52
52
  <ul>
53
53
  <li><a href="/">Home</a></li>
54
- <li><a href="#componenti">Componenti</a></li>
54
+ <li><a href="#components">Components</a></li>
55
55
  <li><a href="#layout">Layout</a></li>
56
56
  </ul>
57
57
  </nav>
@@ -61,7 +61,7 @@
61
61
  </div>
62
62
 
63
63
  <div pgs="header-element-alwaysOnLast">
64
- <button pgs="buttonIcon toggleDarkmode" type="button" aria-label="Cambia tema">
64
+ <button pgs="buttonIcon toggleDarkmode" type="button" aria-label="Change theme">
65
65
  <i class="fa-solid fa-moon"></i>
66
66
  </button>
67
67
  </div>
@@ -72,10 +72,10 @@
72
72
 
73
73
  <dialog pgs="modal-dialog" pgs-option="right">
74
74
  <div pgs="modal-dialog-content">
75
- <nav pgs="menu" pgs-option="vertical menuHeader" aria-label="Menu mobile">
75
+ <nav pgs="menu" pgs-option="vertical menuHeader" aria-label="Mobile menu">
76
76
  <ul>
77
77
  <li><a href="/">Home</a></li>
78
- <li><a href="#componenti">Componenti</a></li>
78
+ <li><a href="#components">Components</a></li>
79
79
  <li><a href="#layout">Layout</a></li>
80
80
  </ul>
81
81
  </nav>
@@ -104,4 +104,4 @@
104
104
  addPgsState(document.querySelector("[pgs~=header-element]"), "mobileActive");
105
105
  }
106
106
  </script>
107
- </header>
107
+ </header>
@@ -1,19 +1,19 @@
1
1
  <!--
2
2
  /**
3
3
  * @title Page Shell
4
- * @description Layout di pagina responsive che combina un contenuto principale con zero, una o due barre laterali scorrevoli, adattandone larghezza e posizione.
4
+ * @description Responsive page layout that combines main content with zero, one, or two scrollable sidebars and adapts their width and position.
5
5
  *
6
6
  * @pgs
7
- * - pageShell: identifica il contenitore che calcola la composizione di main e aside.
8
- * - pageShell-aside: identifica una barra laterale posizionabile prima o dopo il contenuto.
9
- * - pageShell-aside-scroll: identifica l'area interna che può restare visibile durante lo scorrimento.
10
- * - pageShell-content: identifica il contenuto principale della pagina.
7
+ * - pageShell: identifies the container that calculates the main and aside composition.
8
+ * - pageShell-aside: identifies a sidebar that can be placed before or after the content.
9
+ * - pageShell-aside-scroll: identifies the inner area that can remain visible while scrolling.
10
+ * - pageShell-content: identifies the main page content.
11
11
  *
12
12
  * @related
13
- * - flexColumnTexts: organizza i testi contenuti nelle barre laterali.
14
- * - flexColumnElements: organizza verticalmente gli elementi delle sezioni principali.
13
+ * - flexColumnTexts: organizes text contained in the sidebars.
14
+ * - flexColumnElements: vertically organizes elements in the main sections.
15
15
  *
16
- * @return Quattro configurazioni HTML di page shell con due, una o nessuna barra laterale.
16
+ * @return Four page-shell HTML configurations with two, one, or no sidebars.
17
17
  */
18
18
  -->
19
19
 
@@ -1,62 +1,62 @@
1
1
  <!--
2
2
  /**
3
3
  * @title Section
4
- * @description Varianti di sezione che controllano larghezza, padding e trattamento di contenuti specifici mantenendo la spaziatura verticale condivisa.
4
+ * @description Section variants that control width, padding, and specific content treatment while preserving shared vertical spacing.
5
5
  *
6
6
  * @pgs
7
- * - section: identifica la sezione standard con contenuto centrato.
8
- * - sectionFull: identifica una sezione estesa a tutta la larghezza disponibile.
9
- * - sectionSpecificity: identifica una sezione che applica una struttura specifica al relativo figlio.
10
- * - sectionSpecificity-child: identifica il contenuto figlio gestito dalla variante sectionSpecificity.
11
- * - sectionMax: identifica una sezione con larghezza massima estesa.
12
- * - sectionNoPadding: identifica una sezione priva del padding standard.
7
+ * - section: identifies the standard section with centered content.
8
+ * - sectionFull: identifies a section that spans the full available width.
9
+ * - sectionSpecificity: identifies a section that applies a specific structure to its child.
10
+ * - sectionSpecificity-child: identifies child content managed by the sectionSpecificity variant.
11
+ * - sectionMax: identifies a section with an extended maximum width.
12
+ * - sectionNoPadding: identifies a section without standard padding.
13
13
  *
14
14
  * @related
15
- * - flexColumnSections: distanzia verticalmente tutte le sezioni dell'esempio.
16
- * - flexColumnElements: organizza verticalmente gli elementi principali di ogni sezione.
17
- * - flexColumnTexts: organizza e distanzia i contenuti interni.
18
- * - card-img: riutilizza il trattamento delle immagini card nelle sezioni dimostrative.
19
- * - imgCover: adatta le immagini alla larghezza della sezione.
15
+ * - flexColumnSections: vertically spaces all sections in the example.
16
+ * - flexColumnElements: vertically organizes the main elements of each section.
17
+ * - flexColumnTexts: organizes and spaces inner content.
18
+ * - card-img: reuses card image treatment in the demonstration sections.
19
+ * - imgCover: scales images to the section width.
20
20
  *
21
- * @return Raccolta HTML delle varianti di section disponibili.
21
+ * @return HTML collection of the available section variants.
22
22
  */
23
23
  -->
24
24
 
25
25
  <div pgs="flexColumnSections">
26
26
  <section pgs="section flexColumnElements">
27
27
  <div pgs="flexColumnTexts">
28
- <strong>Sezione standard</strong>
29
- <p>Contenuto centrato dentro una sezione MyPGS.</p>
28
+ <strong>Standard section</strong>
29
+ <p>Centered content inside a MyPGS section.</p>
30
30
  </div>
31
31
  </section>
32
32
 
33
33
  <section pgs="sectionFull flexColumnElements">
34
34
  <div pgs="flexColumnTexts">
35
- <strong>Sezione full-width</strong>
36
- <p>Contenuto centrato dentro una sezione MyPGS.</p>
35
+ <strong>Full-width section</strong>
36
+ <p>Centered content inside a MyPGS section.</p>
37
37
  </div>
38
38
  </section>
39
39
 
40
40
  <section pgs="sectionSpecificity flexColumnElements">
41
41
  <div pgs="flexColumnTexts">
42
- <img pgs="card-img imgCover" src="https://placehold.co/800x200?text=Hero" alt="Immagine segnaposto">
42
+ <img pgs="card-img imgCover" src="https://placehold.co/800x200?text=Hero" alt="Placeholder image">
43
43
  </div>
44
44
  <div pgs="sectionSpecificity-child flexColumnTexts">
45
- <strong>Sezione specificità-child</strong>
46
- <p>Contenuto centrato dentro una sezione MyPGS.</p>
45
+ <strong>Specificity-child section</strong>
46
+ <p>Centered content inside a MyPGS section.</p>
47
47
  </div>
48
48
  </section>
49
49
 
50
50
  <section pgs="sectionMax flexColumnElements" style="background-color: var(--color-primary-soft)">
51
51
  <div pgs="flexColumnTexts">
52
- <strong>Sezione max-width</strong>
53
- <p>Contenuto centrato dentro una sezione MyPGS.</p>
52
+ <strong>Max-width section</strong>
53
+ <p>Centered content inside a MyPGS section.</p>
54
54
  </div>
55
55
  </section>
56
56
 
57
57
  <section pgs="sectionNoPadding flexColumnElements">
58
58
  <div pgs="flexColumnTexts">
59
- <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=HI!" alt="Immagine segnaposto">
59
+ <img pgs="card-img imgCover" src="https://placehold.co/800x500?text=HI!" alt="Placeholder image">
60
60
  </div>
61
61
  </section>
62
- </div>
62
+ </div>
@@ -1,42 +1,42 @@
1
1
  <!--
2
2
  /**
3
3
  * @title Cookie Consent
4
- * @description Pattern accessibile per raccogliere e memorizzare il consenso ai cookie analitici, applicare le preferenze e caricare Google Analytics solo quando autorizzato.
4
+ * @description Accessible pattern for collecting and storing analytics cookie consent, applying preferences, and loading Google Analytics only when authorized.
5
5
  *
6
6
  * @pgs
7
- * - cookieConsent: identifica il pannello principale inizializzato dal pattern JavaScript.
8
- * - cookieConsent-panel: identifica il gruppo delle preferenze configurabili.
9
- * - cookieConsent-featureEssential: identifica la riga dei cookie tecnici sempre attivi.
10
- * - cookieConsent-panel-badge: identifica l'indicatore dello stato dei cookie tecnici.
11
- * - cookieConsent-featureAnalytics: identifica la riga dei cookie analitici opzionali.
12
- * - cookieConsent-toggleAnalytics: identifica il controllo che abilita il consenso analytics.
13
- * - cookieConsent-actionReject: applica le preferenze selezionate senza accettare automaticamente analytics.
14
- * - cookieConsent-actionAccept: accetta tutti i cookie disponibili.
15
- * - cookieConsent-actionOpen: identifica controlli esterni che riaprono il pannello delle preferenze.
16
- * - cookieConsent-gaUnavailable: token runtime applicato al root quando manca un measurement ID utilizzabile.
17
- * - cookieConsent-accepted: token runtime applicato al root quando analytics è consentito.
18
- * - cookieConsent-declined: token runtime applicato al root quando analytics non è consentito.
7
+ * - cookieConsent: identifies the main panel initialized by the JavaScript pattern.
8
+ * - cookieConsent-panel: identifies the configurable preference group.
9
+ * - cookieConsent-featureEssential: identifies the row of always-active essential cookies.
10
+ * - cookieConsent-panel-badge: identifies the essential-cookie status indicator.
11
+ * - cookieConsent-featureAnalytics: identifies the optional analytics-cookie row.
12
+ * - cookieConsent-toggleAnalytics: identifies the control that enables analytics consent.
13
+ * - cookieConsent-actionReject: applies selected preferences without automatically accepting analytics.
14
+ * - cookieConsent-actionAccept: accepts all available cookies.
15
+ * - cookieConsent-actionOpen: identifies external controls that reopen the preference panel.
16
+ * - cookieConsent-gaUnavailable: runtime token applied to the root when no usable measurement ID is available.
17
+ * - cookieConsent-accepted: runtime token applied to the root when analytics is allowed.
18
+ * - cookieConsent-declined: runtime token applied to the root when analytics is not allowed.
19
19
  *
20
20
  * @related
21
- * - flexColumn: organizza verticalmente il pannello delle preferenze.
22
- * - flexRow: dispone righe e azioni del pannello.
23
- * - nowrap: impedisce il ritorno a capo nella riga dei cookie essenziali.
24
- * - toggle: presenta il consenso analytics come interruttore.
25
- * - button: presenta l'azione di selezione con lo stile standard.
26
- * - buttonStrong: presenta l'accettazione completa come azione primaria.
21
+ * - flexColumn: vertically organizes the preference panel.
22
+ * - flexRow: arranges panel rows and actions.
23
+ * - nowrap: prevents wrapping in the essential-cookie row.
24
+ * - toggle: presents analytics consent as a switch.
25
+ * - button: presents the selection action with standard styling.
26
+ * - buttonStrong: presents full acceptance as the primary action.
27
27
  *
28
- * @return Pannello HTML di consenso con preferenze tecniche e analytics, azioni e attributi accessibili.
28
+ * @return Consent panel HTML with essential and analytics preferences, actions, and accessible attributes.
29
29
  */
30
30
  -->
31
31
 
32
32
  <section id="pgs-cookieConsent" pgs="cookieConsent" role="dialog" aria-modal="true" data-ga-id="G-XXXXXXXXXX" hidden tabindex="-1">
33
- <p><i class="fa-duotone fa-solid fa-cookie-bite"></i> Cookie e privacy <br></p>
34
- <h2>La tua privacy prima di tutto</h2>
33
+ <p><i class="fa-duotone fa-solid fa-cookie-bite"></i> Cookies and privacy <br></p>
34
+ <h2>Your privacy comes first</h2>
35
35
 
36
36
  <p>
37
- Utilizziamo cookie tecnici per offrire il servizio e, previo consenso, cookie analitici di
38
- <strong>Google Analytics</strong> per misurare in modo anonimo il traffico e migliorare i contenuti.
39
- Puoi modificare la scelta in qualsiasi momento.
37
+ We use essential cookies to provide the service and, with your consent, analytics cookies from
38
+ <strong>Google Analytics</strong> to measure traffic anonymously and improve our content.
39
+ You can change your choice at any time.
40
40
  </p>
41
41
 
42
42
  <p>
@@ -44,17 +44,17 @@
44
44
  <a href="/cookie-policy/" target="_blank" rel="noopener">Cookie Policy</a>
45
45
  </p>
46
46
 
47
- <div pgs="cookieConsent-panel flexColumn" role="group" aria-label="Preferenze cookie">
47
+ <div pgs="cookieConsent-panel flexColumn" role="group" aria-label="Cookie preferences">
48
48
  <div pgs="flexRow nowrap cookieConsent-featureEssential">
49
49
  <div>
50
50
  <p>
51
- <strong>Cookie tecnici</strong>
51
+ <strong>Essential cookies</strong>
52
52
  <br>
53
- <small>Sempre attivi per garantire il corretto funzionamento del sito.</small>
53
+ <small>Always active to ensure the website works correctly.</small>
54
54
  </p>
55
55
  </div>
56
56
 
57
- <span pgs="cookieConsent-panel-badge">Attivi</span>
57
+ <span pgs="cookieConsent-panel-badge">Active</span>
58
58
  </div>
59
59
 
60
60
  <div pgs="flexRow cookieConsent-featureAnalytics">
@@ -62,21 +62,21 @@
62
62
  <p>
63
63
  <strong>Analytics</strong>
64
64
  <br>
65
- <small>Dati di navigazione raccolti in forma aggregata per statistiche anonime.</small>
65
+ <small>Browsing data collected in aggregate form for anonymous statistics.</small>
66
66
  </p>
67
67
 
68
- <input type="checkbox" pgs="cookieConsent-toggleAnalytics" aria-label="Abilita Google Analytics">
68
+ <input type="checkbox" pgs="cookieConsent-toggleAnalytics" aria-label="Enable Google Analytics">
69
69
  </label>
70
70
  </div>
71
71
  </div>
72
72
 
73
73
  <div pgs="flexRow">
74
74
  <button type="button" pgs="button cookieConsent-actionReject">
75
- <i class="fa-solid fa-duotone fa-sliders"></i>Solo selezionati
75
+ <i class="fa-solid fa-duotone fa-sliders"></i>Selected only
76
76
  </button>
77
77
 
78
78
  <button type="button" pgs="buttonStrong cookieConsent-actionAccept">
79
- <i class="fa-solid fa-check"></i> Accetta tutto
79
+ <i class="fa-solid fa-check"></i> Accept all
80
80
  </button>
81
81
  </div>
82
82
  </section>
@@ -4,22 +4,22 @@ export default function Accordion() {
4
4
  <li pgs="accordion">
5
5
  <button pgs="accordion-button" type="button">
6
6
  <i className="fa-solid fa-circle-question" aria-hidden="true"></i>
7
- <span>Domanda frequente</span>
7
+ <span>Frequently asked question</span>
8
8
  </button>
9
9
 
10
10
  <div pgs="accordion-content" hidden>
11
- <p>Risposta di esempio con contenuto testuale riutilizzabile.</p>
11
+ <p>Example answer with reusable text content.</p>
12
12
  </div>
13
13
  </li>
14
14
 
15
15
  <li pgs="accordion">
16
16
  <button pgs="accordion-button" type="button">
17
17
  <i className="fa-solid fa-circle-info" aria-hidden="true"></i>
18
- <span>Seconda sezione</span>
18
+ <span>Second section</span>
19
19
  </button>
20
20
 
21
21
  <div pgs="accordion-content" hidden>
22
- <p>Altro contenuto del pannello accordion.</p>
22
+ <p>Additional accordion panel content.</p>
23
23
  </div>
24
24
  </li>
25
25
  </ul>
@@ -18,7 +18,7 @@ export default function Breadcumbs() {
18
18
 
19
19
  <li pgs="breadcrumb-item">
20
20
  <span aria-current="page">
21
- Articolo di prova
21
+ Sample article
22
22
  </span>
23
23
  </li>
24
24
  </ul>