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,49 +1,49 @@
1
- <!-- File generato automaticamente da templates/html/components/summary.html. Modificare templates/html/components/summary.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/summary.html. Edit templates/html/components/summary.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Summary
4
4
 
5
- Componente che limita inizialmente un testo lungo a tre righe e mostra il controllo di espansione solo quando il contenuto eccede tale altezza.
5
+ Summary markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `summary`: identifica il root inizializzato dal modulo summary.
10
- - `summary-content`: identifica il contenuto misurato e ridimensionato.
11
- - `summary-button`: identifica il controllo per mostrare più o meno contenuto.
9
+ - `summary`: identifies the summary element used by Summary.
10
+ - `summary-content`: identifies the summary-content element used by Summary.
11
+ - `summary-button`: identifies the summary-button element used by Summary.
12
12
 
13
13
  ## PGS States
14
14
 
15
- - `overflow`: indica che il contenuto supera l'altezza contratta e richiede il controllo.
16
- - `open`: indica che tutto il contenuto è espanso e visibile.
15
+ - `overflow`: identifies the overflow element used by Summary.
16
+ - `open`: identifies the open element used by Summary.
17
17
 
18
- ## API JavaScript
18
+ ## JavaScript API
19
19
 
20
- - `pgs.summary.init(root)`: inizializza i summary non ancora registrati dentro Document o Element indicato.
21
- - `pgs.summary.api(element)`: restituisce l'istanza associata a un root summary inizializzato.
22
- - `instance.open()`: espande il contenuto quando supera l'altezza contratta.
23
- - `instance.close()`: richiude il contenuto alla dimensione prevista.
24
- - `instance.toggle()`: inverte lo stato espanso o contratto.
25
- - `instance.refresh()`: ricalcola overflow e altezza conservando lo stato corrente.
26
- - `instance.isOpen()`: restituisce true quando il contenuto è espanso.
20
+ - `pgs.summary.init(root)`: initializes matching elements within the specified root.
21
+ - `pgs.summary.api(element)`: returns the instance associated with the specified initialized element.
22
+ - `instance.open()`: opens the component.
23
+ - `instance.close()`: closes the component.
24
+ - `instance.toggle()`: toggles the component state.
25
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
26
+ - `instance.isOpen()`: returns true when the component is open.
27
27
 
28
28
  ## Output
29
29
 
30
- Struttura HTML con contenuto espandibile e pulsante sincronizzato tramite ARIA.
30
+ Complete HTML markup and usage example for Summary.
31
31
 
32
- ## Esempio
32
+ ## Example
33
33
 
34
34
  ```html
35
35
  <div pgs="summary">
36
36
  <div pgs="summary-content">
37
37
  <p>
38
- Questo testo dimostrativo e' abbastanza lungo da occupare piu righe e mostrare il comportamento del componente summary. Il contenuto puo includere testo, link e altri elementi inline senza richiedere markup aggiuntivo.
38
+ This demonstration text is long enough to span multiple lines and show the summary component behavior. Content can include text, links, and other inline elements without requiring additional markup.
39
39
  </p>
40
40
  <p>
41
- Quando il contenuto supera tre righe viene mostrato un pulsante per espandere o richiudere l'area visibile.
41
+ When content exceeds three lines, a button is shown to expand or collapse the visible area.
42
42
  </p>
43
43
  </div>
44
44
 
45
45
  <button pgs="summary-button" type="button">
46
- Mostra di più
46
+ Show more
47
47
  </button>
48
48
  </div>
49
49
  ```
@@ -1,25 +1,25 @@
1
- <!-- File generato automaticamente da templates/html/components/table.html. Modificare templates/html/components/table.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/table.html. Edit templates/html/components/table.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Table
4
4
 
5
- Contenitore responsive per una tabella semantica con intestazioni e righe di dati coerenti con gli stili del design system.
5
+ Responsive container for a semantic table with headers and data rows consistent with the design system styles.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `table`: identifica il wrapper che gestisce presentazione e scorrimento della tabella nativa.
9
+ - `table`: identifies the wrapper that manages presentation and scrolling for the native table.
10
10
 
11
11
  ## Output
12
12
 
13
- Tabella HTML completa racchiusa nel contenitore PGS dedicato.
13
+ Complete HTML table wrapped in the dedicated PGS container.
14
14
 
15
- ## Esempio
15
+ ## Example
16
16
 
17
17
  ```html
18
18
  <div pgs="table">
19
19
  <table>
20
20
  <thead>
21
21
  <tr>
22
- <th>Nome</th>
22
+ <th>Name</th>
23
23
  <th>Stato</th>
24
24
  <th>Data</th>
25
25
  </tr>
@@ -28,7 +28,7 @@ Tabella HTML completa racchiusa nel contenitore PGS dedicato.
28
28
  <tbody>
29
29
  <tr>
30
30
  <td>Elemento uno</td>
31
- <td>Attivo</td>
31
+ <td>Active</td>
32
32
  <td>2026-01-01</td>
33
33
  </tr>
34
34
  <tr>
@@ -1,45 +1,45 @@
1
- <!-- File generato automaticamente da templates/html/components/tooltip.html. Modificare templates/html/components/tooltip.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/components/tooltip.html. Edit templates/html/components/tooltip.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Tooltip
4
4
 
5
- Variante compatta del dropdown che mostra un breve pannello informativo controllato da un pulsante a icona.
5
+ Tooltip markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `tooltip`: identifica il root della variante tooltip.
10
- - `tooltip-button`: identifica il controllo specifico del tooltip.
11
- - `tooltip-content`: identifica il contenuto informativo del tooltip.
9
+ - `tooltip`: identifies the tooltip element used by Tooltip.
10
+ - `tooltip-button`: identifies the tooltip-button element used by Tooltip.
11
+ - `tooltip-content`: identifies the tooltip-content element used by Tooltip.
12
12
 
13
13
  ## PGS Options
14
14
 
15
- - `position`: può essere applicata al root condiviso con sintassi position[lato allineamento] per modificare la posizione ereditata dal dropdown.
15
+ - `position`: identifies the position element used by Tooltip.
16
16
 
17
17
  ## PGS States
18
18
 
19
- - `open`: viene gestito dal modulo dropdown sul root per mostrare o nascondere il tooltip.
19
+ - `open`: identifies the open element used by Tooltip.
20
20
 
21
- ## API JavaScript
21
+ ## JavaScript API
22
22
 
23
- - `pgs.dropdown.init(root)`: inizializza il tooltip perché il suo root condivide il token dropdown.
24
- - `pgs.dropdown.api(element)`: restituisce l'istanza dropdown associata al root del tooltip.
25
- - `instance.open()`: apre il contenuto informativo.
26
- - `instance.close()`: chiude il contenuto informativo.
27
- - `instance.toggle()`: inverte la visibilità del tooltip.
28
- - `instance.refresh()`: reinizializza il contesto e ricalcola il posizionamento.
29
- - `instance.isOpen()`: restituisce true quando il tooltip è aperto.
23
+ - `pgs.dropdown.init(root)`: initializes matching elements within the specified root.
24
+ - `pgs.dropdown.api(element)`: returns the instance associated with the specified initialized element.
25
+ - `instance.open()`: opens the component.
26
+ - `instance.close()`: closes the component.
27
+ - `instance.toggle()`: toggles the component state.
28
+ - `instance.refresh()`: refreshes the component and returns its updated instance.
29
+ - `instance.isOpen()`: returns true when the component is open.
30
30
 
31
- ## Elementi correlati
31
+ ## Related elements
32
32
 
33
- - `dropdown`: fornisce apertura, chiusura e posizionamento del tooltip.
34
- - `dropdown-button`: collega il pulsante al comportamento dropdown.
35
- - `dropdown-content`: collega il pannello al comportamento dropdown.
36
- - `buttonMini`: presenta il controllo come pulsante a icona di dimensione minima.
33
+ - `dropdown`: uses the related dropdown component or utility in this example.
34
+ - `dropdown-button`: uses the related dropdown-button component or utility in this example.
35
+ - `dropdown-content`: uses the related dropdown-content component or utility in this example.
36
+ - `buttonMini`: uses the related buttonMini component or utility in this example.
37
37
 
38
38
  ## Output
39
39
 
40
- Tooltip HTML composto tramite i token condivisi del dropdown.
40
+ Complete HTML markup and usage example for Tooltip.
41
41
 
42
- ## Esempio
42
+ ## Example
43
43
 
44
44
  ```html
45
45
  <span pgs="dropdown tooltip">
@@ -1,12 +1,12 @@
1
- # Convenzioni
1
+ # Conventions
2
2
 
3
- - Usa `pgs` come prima scelta per markup, layout, componenti e comportamenti.
4
- - Mantieni coerenti i token tra template, SCSS e JS.
5
- - Usa `pgs-state` per stati runtime.
6
- - Usa `pgs-option` per opzioni dichiarative.
7
- - Preferisci custom properties e mixin a CSS hardcoded.
8
- - Non duplicare componenti gia' presenti nella libreria.
9
- - Non inventare API: verifica i sorgenti in `assets/javascript/`.
10
- - Mantieni in `mypgs` solo stili e comportamenti riutilizzabili.
11
- - Mantieni nel progetto finale le personalizzazioni specifiche del progetto.
12
- - Aggiorna `AGENTS.md` quando introduci pattern importanti.
3
+ - Use `pgs` as the first choice for markup, layouts, components, and behaviors.
4
+ - Keep tokens consistent across templates, SCSS, and JavaScript.
5
+ - Use `pgs-state` for runtime states.
6
+ - Use `pgs-option` for declarative options.
7
+ - Prefer custom properties and mixins to hardcoded CSS.
8
+ - Do not duplicate components that already exist in the library.
9
+ - Do not invent APIs: verify the sources in `assets/javascript/`.
10
+ - Keep only reusable styles and behaviors in `mypgs`.
11
+ - Keep project-specific customizations in the consuming project.
12
+ - Update `AGENTS.md` when introducing important patterns.
@@ -36,7 +36,7 @@ Uso sorgente SCSS:
36
36
 
37
37
  ## Sviluppo
38
38
 
39
- Build una tantum:
39
+ One-time build:
40
40
 
41
41
  ```bash
42
42
  npm run start
@@ -54,7 +54,7 @@ Creare un pacchetto locale:
54
54
  npm pack
55
55
  ```
56
56
 
57
- Flusso consigliato quando modifichi la libreria:
57
+ Recommended workflow when modifying the library:
58
58
 
59
59
  1. modifica i sorgenti in `assets/`;
60
60
  2. aggiorna template o documentazione se cambia il modo d'uso;
@@ -67,7 +67,7 @@ Nota: se la build Webpack fallisce, non modificare manualmente `dist/javascript`
67
67
 
68
68
  ## Aggiungere un nuovo modulo
69
69
 
70
- Esempio componente:
70
+ Component example:
71
71
 
72
72
  ```js
73
73
  export function PGS_myComponent_init(root = document) {
@@ -1,4 +1,4 @@
1
- # Helper JavaScript
1
+ # JavaScript helper
2
2
 
3
3
  `pgs(root)` permette di cercare e modificare token PGS senza scrivere selettori manuali:
4
4
 
@@ -18,7 +18,7 @@ Ricerca disponibile su `Document` ed `Element`:
18
18
  - `pgs(root).querySelector(token)`: restituisce il primo discendente che contiene il token `pgs` richiesto.
19
19
  - `pgs(root).querySelectorAll(token)`: restituisce tutti i discendenti corrispondenti; accetta anche un array o token separati da virgola.
20
20
 
21
- Manipolazione disponibile quando `root` è un `Element`:
21
+ Manipulation available when `root` è un `Element`:
22
22
 
23
23
  - `pgs(element).add(...tokens)`: aggiunge token evitando duplicati e restituisce l'helper.
24
24
  - `pgs(element).remove(...tokens)`: rimuove i token indicati e restituisce l'helper.
@@ -55,14 +55,14 @@ pgs(modal).option.getValueBrackets("containerID");
55
55
  - `option.setValueBrackets(key, value)`: imposta o sostituisce una singola opzione parametrizzata.
56
56
  - `option.value`: legge o sostituisce l'intero attributo `pgs-option`.
57
57
 
58
- Esempio markup con opzioni:
58
+ Example markup with options:
59
59
 
60
60
  ```html
61
61
  <div pgs="modal" pgs-option="containerID[modal-container]"></div>
62
62
  <div pgs="slides" pgs-option="singleScroll shadowDesktop"></div>
63
63
  ```
64
64
 
65
- ## JavaScript inizializzato automaticamente
65
+ ## Automatically initialized JavaScript
66
66
 
67
67
  Importando `mypgs`, l'entrypoint inizializza:
68
68
 
@@ -118,7 +118,7 @@ pgs.dropdown.api(dropdownEl)?.close();
118
118
  pgs.slides.api(slidesEl)?.next();
119
119
  ```
120
120
 
121
- Shortcut disponibili dopo `import "mypgs"`:
121
+ Shortcuts available after `import "mypgs"`:
122
122
 
123
123
  - `pgs.svg`
124
124
  - `pgs.accordion`
@@ -134,7 +134,7 @@ Shortcut disponibili dopo `import "mypgs"`:
134
134
  - `pgs.formValidate`
135
135
  - `pgs.scrollHorizontal`
136
136
 
137
- ## Riferimento API per componente
137
+ ## Component API reference
138
138
 
139
139
  Le firme, i parametri e la funzione di ogni metodo sono generati dai commenti nei template:
140
140
 
@@ -160,7 +160,7 @@ I componenti non elencati non espongono attualmente un'API JavaScript specifica.
160
160
  - `pgs.svg.applyColorsLottie(isDarkMode)`: aggiorna i colori degli SVG interni ai player Lottie marcati con `lottieChangeColor`.
161
161
  - `pgs.svg.eventChangeColor`: contiene il nome dell'evento `pgs:svg:changeColor` ascoltato dal modulo SVG.
162
162
 
163
- ## Struttura dei moduli componente
163
+ ## Component module structure
164
164
 
165
165
  I componenti con istanze seguono questo schema:
166
166
 
@@ -1,27 +1,27 @@
1
- <!-- File generato automaticamente da templates/html/layout/body.html. Modificare templates/html/layout/body.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/layout/body.html. Edit templates/html/layout/body.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Body
4
4
 
5
- Documento HTML di base che abilita MyPGS, configura i metadati essenziali e applica al body le varianti condivise di sfondo, testo e titoli.
5
+ Base HTML document that enables MyPGS, configures essential metadata, and applies shared background, text, and heading variants to the body.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `htmlBase`: applica le regole fondamentali all'elemento html.
10
- - `initP`: abilita gli stili di layout, componenti e pattern racchiusi nel namespace MyPGS.
11
- - `bodyBase`: applica struttura e spaziatura di base al body.
12
- - `bodyImg`: abilita le regole condivise per le immagini contenute nella pagina.
13
- - `bodyText`: abilita tipografia e spaziatura del testo.
14
- - `bodyHeading`: abilita la gerarchia tipografica dei titoli.
9
+ - `htmlBase`: applies the fundamental rules to the html element.
10
+ - `initP`: enables layout, component, and pattern styles scoped to the MyPGS namespace.
11
+ - `bodyBase`: applies the base structure and spacing to the body.
12
+ - `bodyImg`: enables shared rules for images contained in the page.
13
+ - `bodyText`: enables text typography and spacing.
14
+ - `bodyHeading`: enables the typographic heading hierarchy.
15
15
 
16
16
  ## PGS States
17
17
 
18
- - `darkmode`: viene applicato dinamicamente a html e body per attivare il tema scuro.
18
+ - `darkmode`: is applied dynamically to html and body to activate the dark theme.
19
19
 
20
20
  ## Output
21
21
 
22
- Scheletro HTML completo necessario per inizializzare la libreria MyPGS.
22
+ Complete HTML skeleton required to initialize the MyPGS library.
23
23
 
24
- ## Esempio
24
+ ## Example
25
25
 
26
26
  ```html
27
27
  <!DOCTYPE html>
@@ -1,116 +1,116 @@
1
- <!-- File generato automaticamente da templates/html/layout/flex.html. Modificare templates/html/layout/flex.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/layout/flex.html. Edit templates/html/layout/flex.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Flex
4
4
 
5
- Esempi di layout flex responsive che distribuiscono da due a sei elementi per riga adattando automaticamente la disposizione allo spazio disponibile.
5
+ Flex markup, configuration, behavior, and usage example.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `flex-2`: crea una distribuzione responsive fino a due elementi per riga.
10
- - `flex-3`: crea una distribuzione responsive fino a tre elementi per riga.
11
- - `flex-4`: crea una distribuzione responsive fino a quattro elementi per riga.
12
- - `flex-6`: crea una distribuzione responsive fino a sei elementi per riga.
9
+ - `flex-2`: identifies the flex-2 element used by Flex.
10
+ - `flex-3`: identifies the flex-3 element used by Flex.
11
+ - `flex-4`: identifies the flex-4 element used by Flex.
12
+ - `flex-6`: identifies the flex-6 element used by Flex.
13
13
 
14
- ## Elementi correlati
14
+ ## Related elements
15
15
 
16
- - `container`: definisce il contesto contenitore dell'introduzione.
17
- - `flexColumnTexts`: organizza verticalmente e distanzia testi e contenuti delle card.
18
- - `card`: rende visibili le celle dimostrative del layout flex.
16
+ - `container`: defines the container context for the introduction.
17
+ - `flexColumnTexts`: vertically organizes and spaces card text and content.
18
+ - `card`: makes the demonstration cells of the flex layout visible.
19
19
 
20
20
  ## Output
21
21
 
22
- Raccolta HTML dei layout flex responsive a due, tre, quattro e sei elementi.
22
+ HTML collection of responsive flex layouts with two, three, four, and six items.
23
23
 
24
- ## Esempio
24
+ ## Example
25
25
 
26
26
  ```html
27
27
  <div pgs="container 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
 
32
32
 
33
33
  <div pgs="flex-2">
34
34
  <article pgs="card flexColumnTexts">
35
- <strong>Colonna uno</strong>
36
- <p>Contenuto della prima colonna.</p>
35
+ <strong>Column one</strong>
36
+ <p>First column content.</p>
37
37
  </article>
38
38
 
39
39
  <article pgs="card flexColumnTexts">
40
- <strong>Colonna due</strong>
41
- <p>Contenuto della seconda colonna.</p>
40
+ <strong>Column two</strong>
41
+ <p>Second column content.</p>
42
42
  </article>
43
43
  </div>
44
44
 
45
45
 
46
46
  <div pgs="flex-3">
47
47
  <article pgs="card flexColumnTexts">
48
- <strong>Colonna uno</strong>
49
- <p>Contenuto della prima colonna.</p>
48
+ <strong>Column one</strong>
49
+ <p>First column content.</p>
50
50
  </article>
51
51
 
52
52
  <article pgs="card flexColumnTexts">
53
- <strong>Colonna due</strong>
54
- <p>Contenuto della seconda colonna.</p>
53
+ <strong>Column two</strong>
54
+ <p>Second column content.</p>
55
55
  </article>
56
56
 
57
57
  <article pgs="card flexColumnTexts">
58
- <strong>Colonna tre</strong>
59
- <p>Contenuto della terza colonna.</p>
58
+ <strong>Column three</strong>
59
+ <p>Third column content.</p>
60
60
  </article>
61
61
  </div>
62
62
 
63
63
 
64
64
  <div pgs="flex-4">
65
65
  <article pgs="card flexColumnTexts">
66
- <strong>Colonna uno</strong>
67
- <p>Contenuto della prima colonna.</p>
66
+ <strong>Column one</strong>
67
+ <p>First column content.</p>
68
68
  </article>
69
69
 
70
70
  <article pgs="card flexColumnTexts">
71
- <strong>Colonna due</strong>
72
- <p>Contenuto della seconda colonna.</p>
71
+ <strong>Column two</strong>
72
+ <p>Second column content.</p>
73
73
  </article>
74
74
 
75
75
  <article pgs="card flexColumnTexts">
76
- <strong>Colonna tre</strong>
77
- <p>Contenuto della terza colonna.</p>
76
+ <strong>Column three</strong>
77
+ <p>Third column content.</p>
78
78
  </article>
79
79
  <article pgs="card flexColumnTexts">
80
- <strong>Colonna quattro</strong>
81
- <p>Contenuto della quarta colonna.</p>
80
+ <strong>Column four</strong>
81
+ <p>Fourth column content.</p>
82
82
  </article>
83
83
  </div>
84
84
 
85
85
  <div pgs="flex-6">
86
86
  <article pgs="card flexColumnTexts">
87
- <strong>Colonna uno</strong>
88
- <p>Contenuto della prima colonna.</p>
87
+ <strong>Column one</strong>
88
+ <p>First column content.</p>
89
89
  </article>
90
90
 
91
91
  <article pgs="card flexColumnTexts">
92
- <strong>Colonna due</strong>
93
- <p>Contenuto della seconda colonna.</p>
92
+ <strong>Column two</strong>
93
+ <p>Second column content.</p>
94
94
  </article>
95
95
 
96
96
  <article pgs="card flexColumnTexts">
97
- <strong>Colonna tre</strong>
98
- <p>Contenuto della terza colonna.</p>
97
+ <strong>Column three</strong>
98
+ <p>Third column content.</p>
99
99
  </article>
100
100
 
101
101
  <article pgs="card flexColumnTexts">
102
- <strong>Colonna quattro</strong>
103
- <p>Contenuto della quarta colonna.</p>
102
+ <strong>Column four</strong>
103
+ <p>Fourth column content.</p>
104
104
  </article>
105
105
 
106
106
  <article pgs="card flexColumnTexts">
107
- <strong>Colonna cinque</strong>
108
- <p>Contenuto della quinta colonna.</p>
107
+ <strong>Column five</strong>
108
+ <p>Fifth column content.</p>
109
109
  </article>
110
110
 
111
111
  <article pgs="card flexColumnTexts">
112
- <strong>Colonna sei</strong>
113
- <p>Contenuto della sesta colonna.</p>
112
+ <strong>Column six</strong>
113
+ <p>Sixth column content.</p>
114
114
  </article>
115
115
  </div
116
116
  ```
@@ -1,39 +1,39 @@
1
- <!-- File generato automaticamente da templates/html/layout/footer.html. Modificare templates/html/layout/footer.html e rieseguire npm run docs:generate. -->
1
+ <!-- Automatically generated from templates/html/layout/footer.html. Edit templates/html/layout/footer.html and run npm run docs:generate again. -->
2
2
 
3
3
  # Footer
4
4
 
5
- Piè di pagina completo con controllo tema, area di brand, navigazione, contenuti informativi e collegamento alle preferenze cookie.
5
+ Complete footer with theme control, brand area, navigation, informational content, and a link to cookie preferences.
6
6
 
7
7
  ## PGS
8
8
 
9
- - `footer`: identifica il contenitore principale del piè di pagina.
10
- - `footer-top`: identifica la sezione superiore con brand e contenuti.
11
- - `footer-top-content`: identifica il layout interno responsive della sezione superiore.
12
- - `footer-brand`: identifica il gruppo dedicato al marchio.
13
- - `footer-brand-motto`: identifica il testo descrittivo associato al marchio.
14
- - `footer-content`: identifica una colonna informativa del footer.
15
- - `footer-legal`: identifica la sezione inferiore dedicata alle informazioni legali.
16
- - `footer-legal-content`: identifica il contenuto della sezione legale.
9
+ - `footer`: identifies the main footer container.
10
+ - `footer-top`: identifies the upper section containing the brand and content.
11
+ - `footer-top-content`: identifies the responsive inner layout of the upper section.
12
+ - `footer-brand`: identifies the group dedicated to the brand.
13
+ - `footer-brand-motto`: identifies the descriptive text associated with the brand.
14
+ - `footer-content`: identifies an informational footer column.
15
+ - `footer-legal`: identifies the lower section dedicated to legal information.
16
+ - `footer-legal-content`: identifies the content of the legal section.
17
17
 
18
- ## Elementi correlati
18
+ ## Related elements
19
19
 
20
- - `button`: presenta i controlli del tema e delle preferenze cookie come pulsanti.
21
- - `toggleDarkmode`: collega il controllo al gestore globale del tema chiaro o scuro.
22
- - `section`: applica alle aree superiore e legale la struttura condivisa delle sezioni.
23
- - `flex-3`: distribuisce in modo responsive le colonne della parte superiore.
24
- - `logo`: inserisce il marchio nel footer.
25
- - `logo-text`: usa la variante testuale del logo.
26
- - `cookieConsent-actionOpen`: apre il pannello delle preferenze del pattern Cookie Consent.
20
+ - `button`: presents theme and cookie preference controls as buttons.
21
+ - `toggleDarkmode`: connects the control to the global light or dark theme handler.
22
+ - `section`: applies the shared section structure to the upper and legal areas.
23
+ - `flex-3`: distributes the upper columns responsively.
24
+ - `logo`: inserts the brand into the footer.
25
+ - `logo-text`: uses the text variant of the logo.
26
+ - `cookieConsent-actionOpen`: opens the Cookie Consent preference panel.
27
27
 
28
28
  ## Output
29
29
 
30
- Struttura HTML completa del footer con brand, menu e area legale.
30
+ Complete footer HTML structure with brand, menu, and legal area.
31
31
 
32
- ## Esempio
32
+ ## Example
33
33
 
34
34
  ```html
35
35
  <footer pgs="footer">
36
- <button pgs="button toggleDarkmode" type="button" aria-label="Cambia tema">
36
+ <button pgs="button toggleDarkmode" type="button" aria-label="Change theme">
37
37
  <i class="fa-solid fa-moon"></i>
38
38
  </button>
39
39
 
@@ -60,11 +60,11 @@ Struttura HTML completa del footer con brand, menu e area legale.
60
60
 
61
61
  <section pgs="footer-legal section">
62
62
  <div pgs="footer-legal-content">
63
- <button type="button" pgs="button cookieConsent-actionOpen">Preferenze cookie</button>
63
+ <button type="button" pgs="button cookieConsent-actionOpen">Cookie preferences</button>
64
64
  <p><a href="">Privacy Policy</a></p>
65
65
  <p><a href="">Cookie Policy</a></p>
66
66
  <p><a href="">Termini e Condizioni</a></p>
67
- <p>© 2026 MyPgs. Nessun diritto riservato.</p>
67
+ <p>© 2026 MyPgs. No rights reserved.</p>
68
68
  </div>
69
69
  </section>
70
70
  </footer>