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.
- package/README.md +25 -25
- package/assets/scss/components/_accordion.scss +0 -2
- package/assets/scss/components/_button.scss +1 -1
- package/assets/scss/components/_form.scss +0 -16
- package/assets/scss/components/_formAddon.scss +18 -0
- package/assets/scss/components/_modals.scss +5 -3
- package/assets/scss/components/_search.scss +2 -2
- package/assets/scss/components/_slides.scss +0 -1
- package/assets/scss/components/_tooltip.scss +0 -1
- package/assets/scss/index.scss +1 -0
- package/assets/scss/layout/_footer.scss +0 -2
- package/assets/scss/layout/_header.scss +9 -1
- package/assets/scss/layout/_pageShell.scss +6 -2
- package/assets/scss/mixin/_mx-button.scss +30 -76
- package/assets/scss/mixin/_mx-card.scss +11 -9
- package/assets/scss/mixin/_mx-form.scss +3 -5
- package/assets/scss/mixin/{_mx-form-addon.scss → _mx-formAddon.scss} +23 -26
- package/assets/scss/mixin/_mx-hover.scss +75 -0
- package/assets/scss/mixin/_settings.scss +2 -1
- package/assets/scss/mixin/mixin.scss +2 -1
- package/demo/demo.js +4 -3
- package/dist/css/index.css +1166 -1517
- package/dist/css/index.css.map +1 -1
- package/dist/css/index.min.css +1 -1
- package/docs/componenti-e-markup.md +6 -5
- package/docs/components/accordion.md +22 -22
- package/docs/components/badges.md +19 -19
- package/docs/components/breadcumbs.md +8 -8
- package/docs/components/button.md +17 -17
- package/docs/components/card.md +19 -19
- package/docs/components/dropdown.md +29 -29
- package/docs/components/form.md +63 -40
- package/docs/components/formAddon.md +79 -0
- package/docs/components/logo.md +11 -11
- package/docs/components/menu.md +20 -20
- package/docs/components/modal.md +46 -46
- package/docs/components/notification.md +34 -34
- package/docs/components/search.md +51 -50
- package/docs/components/slides.md +39 -39
- package/docs/components/stepTabs.md +41 -41
- package/docs/components/steps.md +16 -16
- package/docs/components/summary.md +20 -20
- package/docs/components/table.md +7 -7
- package/docs/components/tooltip.md +22 -22
- package/docs/convenzioni.md +11 -11
- package/docs/export-e-sviluppo.md +3 -3
- package/docs/helper-javascript.md +7 -7
- package/docs/layout/body.md +11 -11
- package/docs/layout/flex.md +44 -44
- package/docs/layout/footer.md +23 -23
- package/docs/layout/grid.md +44 -44
- package/docs/layout/header.md +34 -34
- package/docs/layout/pageShell.md +11 -11
- package/docs/layout/section.md +26 -26
- package/docs/patterns/cookieConsent.md +38 -38
- package/docs/utilizzo-css-scss.md +8 -8
- package/package.json +1 -1
- package/scripts/generate-component-docs.js +5 -5
- package/templates/html/components/accordion.html +19 -19
- package/templates/html/components/badges.html +17 -17
- package/templates/html/components/breadcumbs.html +6 -6
- package/templates/html/components/button.html +15 -15
- package/templates/html/components/card.html +17 -17
- package/templates/html/components/dropdown.html +25 -25
- package/templates/html/components/form.html +58 -35
- package/templates/html/components/formAddon.html +72 -0
- package/templates/html/components/logo.html +9 -9
- package/templates/html/components/menu.html +16 -16
- package/templates/html/components/modal.html +42 -42
- package/templates/html/components/notification.html +30 -30
- package/templates/html/components/search.html +43 -42
- package/templates/html/components/slides.html +31 -31
- package/templates/html/components/stepTabs.html +37 -37
- package/templates/html/components/steps.html +13 -13
- package/templates/html/components/summary.html +17 -17
- package/templates/html/components/table.html +5 -5
- package/templates/html/components/tooltip.html +18 -18
- package/templates/html/layout/body.html +9 -10
- package/templates/html/layout/flex.html +42 -42
- package/templates/html/layout/footer.html +20 -20
- package/templates/html/layout/grid.html +42 -42
- package/templates/html/layout/header.html +32 -32
- package/templates/html/layout/pageShell.html +8 -8
- package/templates/html/layout/section.html +24 -24
- package/templates/html/patterns/cookieConsent.html +33 -33
- package/templates/react/components/accordion.jsx +4 -4
- package/templates/react/components/breadcumbs.jsx +1 -1
- package/templates/react/components/button.jsx +5 -5
- package/templates/react/components/card.jsx +4 -4
- package/templates/react/components/dropdown.jsx +8 -8
- package/templates/react/components/form.jsx +2 -2
- package/templates/react/components/modal.jsx +14 -14
- package/templates/react/components/notification.jsx +3 -3
- package/templates/react/components/search.jsx +5 -5
- package/templates/react/components/slides.jsx +3 -3
- package/templates/react/components/stepTabs.jsx +8 -8
- package/templates/react/components/summary.jsx +3 -3
- package/templates/react/components/table.jsx +2 -2
- package/templates/react/layout/flex.jsx +8 -8
- package/templates/react/layout/grid.jsx +8 -8
- package/templates/react/layout/section.jsx +12 -12
- package/templates/react/patterns/cookieConsent.jsx +8 -8
- package/templates/react/patterns/footer.jsx +3 -3
- package/templates/react/patterns/header.jsx +3 -3
|
@@ -1,49 +1,49 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Summary markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `summary`:
|
|
10
|
-
- `summary-content`:
|
|
11
|
-
- `summary-button`:
|
|
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`:
|
|
16
|
-
- `open`:
|
|
15
|
+
- `overflow`: identifies the overflow element used by Summary.
|
|
16
|
+
- `open`: identifies the open element used by Summary.
|
|
17
17
|
|
|
18
|
-
## API
|
|
18
|
+
## JavaScript API
|
|
19
19
|
|
|
20
|
-
- `pgs.summary.init(root)`:
|
|
21
|
-
- `pgs.summary.api(element)`:
|
|
22
|
-
- `instance.open()`:
|
|
23
|
-
- `instance.close()`:
|
|
24
|
-
- `instance.toggle()`:
|
|
25
|
-
- `instance.refresh()`:
|
|
26
|
-
- `instance.isOpen()`:
|
|
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
|
-
|
|
30
|
+
Complete HTML markup and usage example for Summary.
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Example
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
35
|
<div pgs="summary">
|
|
36
36
|
<div pgs="summary-content">
|
|
37
37
|
<p>
|
|
38
|
-
|
|
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
|
-
|
|
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
|
-
|
|
46
|
+
Show more
|
|
47
47
|
</button>
|
|
48
48
|
</div>
|
|
49
49
|
```
|
package/docs/components/table.md
CHANGED
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
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`:
|
|
9
|
+
- `table`: identifies the wrapper that manages presentation and scrolling for the native table.
|
|
10
10
|
|
|
11
11
|
## Output
|
|
12
12
|
|
|
13
|
-
|
|
13
|
+
Complete HTML table wrapped in the dedicated PGS container.
|
|
14
14
|
|
|
15
|
-
##
|
|
15
|
+
## Example
|
|
16
16
|
|
|
17
17
|
```html
|
|
18
18
|
<div pgs="table">
|
|
19
19
|
<table>
|
|
20
20
|
<thead>
|
|
21
21
|
<tr>
|
|
22
|
-
<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>
|
|
31
|
+
<td>Active</td>
|
|
32
32
|
<td>2026-01-01</td>
|
|
33
33
|
</tr>
|
|
34
34
|
<tr>
|
|
@@ -1,45 +1,45 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Tooltip markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `tooltip`:
|
|
10
|
-
- `tooltip-button`:
|
|
11
|
-
- `tooltip-content`:
|
|
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`:
|
|
15
|
+
- `position`: identifies the position element used by Tooltip.
|
|
16
16
|
|
|
17
17
|
## PGS States
|
|
18
18
|
|
|
19
|
-
- `open`:
|
|
19
|
+
- `open`: identifies the open element used by Tooltip.
|
|
20
20
|
|
|
21
|
-
## API
|
|
21
|
+
## JavaScript API
|
|
22
22
|
|
|
23
|
-
- `pgs.dropdown.init(root)`:
|
|
24
|
-
- `pgs.dropdown.api(element)`:
|
|
25
|
-
- `instance.open()`:
|
|
26
|
-
- `instance.close()`:
|
|
27
|
-
- `instance.toggle()`:
|
|
28
|
-
- `instance.refresh()`:
|
|
29
|
-
- `instance.isOpen()`:
|
|
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
|
-
##
|
|
31
|
+
## Related elements
|
|
32
32
|
|
|
33
|
-
- `dropdown`:
|
|
34
|
-
- `dropdown-button`:
|
|
35
|
-
- `dropdown-content`:
|
|
36
|
-
- `buttonMini`:
|
|
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
|
-
|
|
40
|
+
Complete HTML markup and usage example for Tooltip.
|
|
41
41
|
|
|
42
|
-
##
|
|
42
|
+
## Example
|
|
43
43
|
|
|
44
44
|
```html
|
|
45
45
|
<span pgs="dropdown tooltip">
|
package/docs/convenzioni.md
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Conventions
|
|
2
2
|
|
|
3
|
-
-
|
|
4
|
-
-
|
|
5
|
-
-
|
|
6
|
-
-
|
|
7
|
-
-
|
|
8
|
-
-
|
|
9
|
-
-
|
|
10
|
-
-
|
|
11
|
-
-
|
|
12
|
-
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
70
|
+
Component example:
|
|
71
71
|
|
|
72
72
|
```js
|
|
73
73
|
export function PGS_myComponent_init(root = document) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
|
|
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
|
-
##
|
|
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
|
-
##
|
|
163
|
+
## Component module structure
|
|
164
164
|
|
|
165
165
|
I componenti con istanze seguono questo schema:
|
|
166
166
|
|
package/docs/layout/body.md
CHANGED
|
@@ -1,27 +1,27 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
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`:
|
|
10
|
-
- `initP`:
|
|
11
|
-
- `bodyBase`:
|
|
12
|
-
- `bodyImg`:
|
|
13
|
-
- `bodyText`:
|
|
14
|
-
- `bodyHeading`:
|
|
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`:
|
|
18
|
+
- `darkmode`: is applied dynamically to html and body to activate the dark theme.
|
|
19
19
|
|
|
20
20
|
## Output
|
|
21
21
|
|
|
22
|
-
|
|
22
|
+
Complete HTML skeleton required to initialize the MyPGS library.
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Example
|
|
25
25
|
|
|
26
26
|
```html
|
|
27
27
|
<!DOCTYPE html>
|
package/docs/layout/flex.md
CHANGED
|
@@ -1,116 +1,116 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
5
|
+
Flex markup, configuration, behavior, and usage example.
|
|
6
6
|
|
|
7
7
|
## PGS
|
|
8
8
|
|
|
9
|
-
- `flex-2`:
|
|
10
|
-
- `flex-3`:
|
|
11
|
-
- `flex-4`:
|
|
12
|
-
- `flex-6`:
|
|
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
|
-
##
|
|
14
|
+
## Related elements
|
|
15
15
|
|
|
16
|
-
- `container`:
|
|
17
|
-
- `flexColumnTexts`:
|
|
18
|
-
- `card`:
|
|
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
|
-
|
|
22
|
+
HTML collection of responsive flex layouts with two, three, four, and six items.
|
|
23
23
|
|
|
24
|
-
##
|
|
24
|
+
## Example
|
|
25
25
|
|
|
26
26
|
```html
|
|
27
27
|
<div pgs="container flexColumnTexts">
|
|
28
|
-
<strong>
|
|
29
|
-
<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>
|
|
36
|
-
<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>
|
|
41
|
-
<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>
|
|
49
|
-
<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>
|
|
54
|
-
<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>
|
|
59
|
-
<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>
|
|
67
|
-
<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>
|
|
72
|
-
<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>
|
|
77
|
-
<p>
|
|
76
|
+
<strong>Column three</strong>
|
|
77
|
+
<p>Third column content.</p>
|
|
78
78
|
</article>
|
|
79
79
|
<article pgs="card flexColumnTexts">
|
|
80
|
-
<strong>
|
|
81
|
-
<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>
|
|
88
|
-
<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>
|
|
93
|
-
<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>
|
|
98
|
-
<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>
|
|
103
|
-
<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>
|
|
108
|
-
<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>
|
|
113
|
-
<p>
|
|
112
|
+
<strong>Column six</strong>
|
|
113
|
+
<p>Sixth column content.</p>
|
|
114
114
|
</article>
|
|
115
115
|
</div
|
|
116
116
|
```
|
package/docs/layout/footer.md
CHANGED
|
@@ -1,39 +1,39 @@
|
|
|
1
|
-
<!--
|
|
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
|
-
|
|
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`:
|
|
10
|
-
- `footer-top`:
|
|
11
|
-
- `footer-top-content`:
|
|
12
|
-
- `footer-brand`:
|
|
13
|
-
- `footer-brand-motto`:
|
|
14
|
-
- `footer-content`:
|
|
15
|
-
- `footer-legal`:
|
|
16
|
-
- `footer-legal-content`:
|
|
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
|
-
##
|
|
18
|
+
## Related elements
|
|
19
19
|
|
|
20
|
-
- `button`:
|
|
21
|
-
- `toggleDarkmode`:
|
|
22
|
-
- `section`:
|
|
23
|
-
- `flex-3`:
|
|
24
|
-
- `logo`:
|
|
25
|
-
- `logo-text`:
|
|
26
|
-
- `cookieConsent-actionOpen`:
|
|
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
|
-
|
|
30
|
+
Complete footer HTML structure with brand, menu, and legal area.
|
|
31
31
|
|
|
32
|
-
##
|
|
32
|
+
## Example
|
|
33
33
|
|
|
34
34
|
```html
|
|
35
35
|
<footer pgs="footer">
|
|
36
|
-
<button pgs="button toggleDarkmode" type="button" aria-label="
|
|
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">
|
|
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.
|
|
67
|
+
<p>© 2026 MyPgs. No rights reserved.</p>
|
|
68
68
|
</div>
|
|
69
69
|
</section>
|
|
70
70
|
</footer>
|