mypgs 1.6.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/AGENTS.md +2 -2
- package/README.md +25 -25
- package/assets/javascript/components/_accordion.js +2 -2
- package/assets/javascript/components/_modals.js +159 -136
- package/assets/javascript/components/_notifications.js +19 -9
- package/assets/javascript/components/_search.js +2 -2
- package/assets/javascript/components/_slides.js +66 -32
- package/assets/javascript/components/_stepTabs.js +4 -4
- package/assets/javascript/components/_steps.js +2 -2
- package/assets/javascript/components/_summary.js +2 -2
- package/assets/javascript/functions/_formValidate.js +97 -53
- package/assets/javascript/functions/_scrollY.js +10 -10
- package/assets/javascript/layout/_header.js +3 -0
- package/assets/scss/base/_html.scss +2 -2
- package/assets/scss/base/_variables.scss +2 -2
- package/assets/scss/components/_accordion.scss +0 -2
- package/assets/scss/components/_button.scss +1 -1
- package/assets/scss/components/_form.scss +2 -18
- package/assets/scss/components/_formAddon.scss +18 -0
- package/assets/scss/components/_modals.scss +5 -3
- package/assets/scss/components/_notification.scss +23 -30
- package/assets/scss/components/_search.scss +29 -23
- 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 +24 -17
- 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 +10 -12
- 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/{templates/html → demo}/demo.html +1 -1
- package/demo/demo.js +241 -0
- package/dist/css/index.css +1317 -1674
- package/dist/css/index.css.map +1 -1
- package/dist/css/index.min.css +1 -1
- package/dist/javascript/index.js +356 -255
- package/dist/javascript/index.js.map +1 -1
- package/dist/javascript/index.min.js +1 -1
- package/docs/componenti-e-markup.md +32 -32
- package/docs/components/accordion.md +61 -0
- package/docs/components/badges.md +67 -0
- package/docs/components/breadcumbs.md +43 -0
- package/docs/components/button.md +59 -0
- package/docs/components/card.md +50 -0
- package/docs/components/dropdown.md +135 -0
- package/docs/components/form.md +136 -0
- package/docs/components/formAddon.md +79 -0
- package/docs/components/logo.md +36 -0
- package/docs/components/menu.md +90 -0
- package/docs/components/modal.md +131 -0
- package/docs/components/notification.md +81 -0
- package/docs/components/search.md +118 -0
- package/docs/components/slides.md +85 -0
- package/docs/components/stepTabs.md +93 -0
- package/docs/components/steps.md +56 -0
- package/docs/components/summary.md +49 -0
- package/docs/components/table.md +42 -0
- package/docs/components/tooltip.md +53 -0
- package/docs/convenzioni.md +11 -11
- package/docs/export-e-sviluppo.md +3 -3
- package/docs/helper-javascript.md +73 -8
- package/docs/layout/body.md +41 -0
- package/docs/layout/flex.md +116 -0
- package/docs/layout/footer.md +71 -0
- package/docs/layout/grid.md +116 -0
- package/docs/layout/header.md +116 -0
- package/docs/layout/pageShell.md +94 -0
- package/docs/layout/section.md +69 -0
- package/docs/patterns/cookieConsent.md +89 -0
- package/docs/utilizzo-css-scss.md +8 -8
- package/package.json +2 -1
- package/scripts/generate-component-docs.js +557 -0
- package/templates/html/components/accordion.html +36 -7
- package/templates/html/components/badges.html +28 -5
- package/templates/html/components/breadcumbs.html +15 -1
- package/templates/html/components/button.html +28 -6
- package/templates/html/components/card.html +28 -8
- package/templates/html/components/dropdown.html +42 -8
- package/templates/html/components/form.html +110 -9
- package/templates/html/components/formAddon.html +72 -0
- package/templates/html/components/logo.html +22 -1
- package/templates/html/components/menu.html +33 -6
- package/templates/html/components/modal.html +58 -14
- package/templates/html/components/notification.html +68 -32
- package/templates/html/components/search.html +85 -8
- package/templates/html/components/slides.html +46 -3
- package/templates/html/components/stepTabs.html +55 -8
- package/templates/html/components/steps.html +24 -0
- package/templates/html/components/summary.html +30 -3
- package/templates/html/components/table.html +14 -2
- package/templates/html/components/tooltip.html +35 -0
- package/templates/html/layout/body.html +20 -6
- package/templates/html/layout/flex.html +53 -33
- package/templates/html/layout/footer.html +32 -4
- package/templates/html/layout/grid.html +53 -33
- package/templates/html/layout/header.html +47 -6
- package/templates/html/layout/pageShell.html +19 -0
- package/templates/html/layout/section.html +41 -19
- package/templates/html/patterns/cookieConsent.html +44 -13
- 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 +5 -5
- package/templates/react/components/modal.jsx +14 -14
- package/templates/react/components/notification.jsx +7 -7
- 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 +4 -4
- package/templates/react/patterns/header.jsx +3 -3
- package/templates/html/demo.js +0 -130
- /package/{templates/html → demo}/demo.css +0 -0
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
<!-- Automatically generated from templates/html/layout/pageShell.html. Edit templates/html/layout/pageShell.html and run npm run docs:generate again. -->
|
|
2
|
+
|
|
3
|
+
# Page Shell
|
|
4
|
+
|
|
5
|
+
Responsive page layout that combines main content with zero, one, or two scrollable sidebars and adapts their width and position.
|
|
6
|
+
|
|
7
|
+
## PGS
|
|
8
|
+
|
|
9
|
+
- `pageShell`: identifies the container that calculates the main and aside composition.
|
|
10
|
+
- `pageShell-aside`: identifies a sidebar that can be placed before or after the content.
|
|
11
|
+
- `pageShell-aside-scroll`: identifies the inner area that can remain visible while scrolling.
|
|
12
|
+
- `pageShell-content`: identifies the main page content.
|
|
13
|
+
|
|
14
|
+
## Related elements
|
|
15
|
+
|
|
16
|
+
- `flexColumnTexts`: organizes text contained in the sidebars.
|
|
17
|
+
- `flexColumnElements`: vertically organizes elements in the main sections.
|
|
18
|
+
|
|
19
|
+
## Output
|
|
20
|
+
|
|
21
|
+
Four page-shell HTML configurations with two, one, or no sidebars.
|
|
22
|
+
|
|
23
|
+
## Example
|
|
24
|
+
|
|
25
|
+
```html
|
|
26
|
+
<div pgs="pageShell">
|
|
27
|
+
<aside pgs="pageShell-aside">
|
|
28
|
+
<div pgs="pageShell-aside-scroll">
|
|
29
|
+
<div pgs="flexColumnTexts">
|
|
30
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab modi ut sunt est illum accusantium dolores eum aut cum itaque.</p>
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</aside>
|
|
34
|
+
|
|
35
|
+
<main pgs="pageShell-content">
|
|
36
|
+
<section pgs="flexColumnElements" id="sezione-uno">
|
|
37
|
+
<strong>Lorem ipsum</strong>
|
|
38
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem dolore veniam nulla hic voluptatum harum illo voluptatem quos. Id quibusdam nemo, mollitia iusto quisquam tenetur doloremque corrupti natus nisi est sed consectetur deserunt? Fugiat consectetur iure aut id voluptate unde autem eius facilis dolorum? Eveniet, sit, excepturi iusto porro eos temporibus illum non ut sunt ex aut earum neque. Iure harum similique autem commodi ratione enim quisquam soluta rem, eius dolor officiis necessitatibus voluptatibus obcaecati vel sint iusto. Eligendi reiciendis aut error rem? Hic aliquid tenetur porro itaque quaerat excepturi consequatur veniam, et alias molestiae, eius odio quae maiores suscipit iure voluptatibus sed dolor facere ipsa quod libero necessitatibus, placeat natus. Doloribus esse nobis culpa ab ut dolorem id expedita nesciunt necessitatibus ipsam natus accusantium eius eveniet eum, distinctio quos modi perspiciatis earum sequi nostrum consequatur quibusdam? Blanditiis iusto possimus officia odio animi repudiandae? Repellendus autem ut soluta facere accusamus magni aut architecto cumque cupiditate. Nostrum officiis, tenetur consequuntur quaerat alias animi debitis? Quae quas placeat iure alias totam quaerat fugit recusandae sed, earum ipsa nihil molestiae quam odit itaque, odio asperiores, mollitia porro ratione tempora laboriosam. Incidunt aliquam nobis sunt ut molestiae nam animi placeat neque vero ratione? Eaque?</p>
|
|
39
|
+
</section>
|
|
40
|
+
</main>
|
|
41
|
+
|
|
42
|
+
<aside pgs="pageShell-aside">
|
|
43
|
+
<div pgs="pageShell-aside-scroll">
|
|
44
|
+
<div pgs="flexColumnTexts">
|
|
45
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab modi ut sunt est illum accusantium dolores eum aut cum itaque.</p>
|
|
46
|
+
</div>
|
|
47
|
+
</div>
|
|
48
|
+
</aside>
|
|
49
|
+
</div>
|
|
50
|
+
<div pgs="pageShell">
|
|
51
|
+
<aside pgs="pageShell-aside">
|
|
52
|
+
<div pgs="pageShell-aside-scroll">
|
|
53
|
+
<div pgs="flexColumnTexts">
|
|
54
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab modi ut sunt est illum accusantium dolores eum aut cum itaque.</p>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</aside>
|
|
58
|
+
|
|
59
|
+
<main pgs="pageShell-content">
|
|
60
|
+
<section pgs="flexColumnElements" id="sezione-uno">
|
|
61
|
+
<strong>Lorem ipsum</strong>
|
|
62
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem dolore veniam nulla hic voluptatum harum illo voluptatem quos. Id quibusdam nemo, mollitia iusto quisquam tenetur doloremque corrupti natus nisi est sed consectetur deserunt? Fugiat consectetur iure aut id voluptate unde autem eius facilis dolorum? Eveniet, sit, excepturi iusto porro eos temporibus illum non ut sunt ex aut earum neque. Iure harum similique autem commodi ratione enim quisquam soluta rem, eius dolor officiis necessitatibus voluptatibus obcaecati vel sint iusto. Eligendi reiciendis aut error rem? Hic aliquid tenetur porro itaque quaerat excepturi consequatur veniam, et alias molestiae, eius odio quae maiores suscipit iure voluptatibus sed dolor facere ipsa quod libero necessitatibus, placeat natus. Doloribus esse nobis culpa ab ut dolorem id expedita nesciunt necessitatibus ipsam natus accusantium eius eveniet eum, distinctio quos modi perspiciatis earum sequi nostrum consequatur quibusdam? Blanditiis iusto possimus officia odio animi repudiandae? Repellendus autem ut soluta facere accusamus magni aut architecto cumque cupiditate. Nostrum officiis, tenetur consequuntur quaerat alias animi debitis? Quae quas placeat iure alias totam quaerat fugit recusandae sed, earum ipsa nihil molestiae quam odit itaque, odio asperiores, mollitia porro ratione tempora laboriosam. Incidunt aliquam nobis sunt ut molestiae nam animi placeat neque vero ratione? Eaque?</p>
|
|
63
|
+
</section>
|
|
64
|
+
</main>
|
|
65
|
+
</div>
|
|
66
|
+
|
|
67
|
+
<div pgs="pageShell">
|
|
68
|
+
|
|
69
|
+
<main pgs="pageShell-content">
|
|
70
|
+
<section pgs="flexColumnElements" id="sezione-uno">
|
|
71
|
+
<strong>Lorem ipsum</strong>
|
|
72
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem dolore veniam nulla hic voluptatum harum illo voluptatem quos. Id quibusdam nemo, mollitia iusto quisquam tenetur doloremque corrupti natus nisi est sed consectetur deserunt? Fugiat consectetur iure aut id voluptate unde autem eius facilis dolorum? Eveniet, sit, excepturi iusto porro eos temporibus illum non ut sunt ex aut earum neque. Iure harum similique autem commodi ratione enim quisquam soluta rem, eius dolor officiis necessitatibus voluptatibus obcaecati vel sint iusto. Eligendi reiciendis aut error rem? Hic aliquid tenetur porro itaque quaerat excepturi consequatur veniam, et alias molestiae, eius odio quae maiores suscipit iure voluptatibus sed dolor facere ipsa quod libero necessitatibus, placeat natus. Doloribus esse nobis culpa ab ut dolorem id expedita nesciunt necessitatibus ipsam natus accusantium eius eveniet eum, distinctio quos modi perspiciatis earum sequi nostrum consequatur quibusdam? Blanditiis iusto possimus officia odio animi repudiandae? Repellendus autem ut soluta facere accusamus magni aut architecto cumque cupiditate. Nostrum officiis, tenetur consequuntur quaerat alias animi debitis? Quae quas placeat iure alias totam quaerat fugit recusandae sed, earum ipsa nihil molestiae quam odit itaque, odio asperiores, mollitia porro ratione tempora laboriosam. Incidunt aliquam nobis sunt ut molestiae nam animi placeat neque vero ratione? Eaque?</p>
|
|
73
|
+
</section>
|
|
74
|
+
</main>
|
|
75
|
+
|
|
76
|
+
<aside pgs="pageShell-aside">
|
|
77
|
+
<div pgs="pageShell-aside-scroll">
|
|
78
|
+
<div pgs="flexColumnTexts">
|
|
79
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ab modi ut sunt est illum accusantium dolores eum aut cum itaque.</p>
|
|
80
|
+
</div>
|
|
81
|
+
</div>
|
|
82
|
+
</aside>
|
|
83
|
+
</div>
|
|
84
|
+
|
|
85
|
+
<div pgs="pageShell">
|
|
86
|
+
|
|
87
|
+
<main pgs="pageShell-content">
|
|
88
|
+
<section pgs="flexColumnElements" id="sezione-uno">
|
|
89
|
+
<strong>Lorem ipsum</strong>
|
|
90
|
+
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Quidem dolore veniam nulla hic voluptatum harum illo voluptatem quos. Id quibusdam nemo, mollitia iusto quisquam tenetur doloremque corrupti natus nisi est sed consectetur deserunt? Fugiat consectetur iure aut id voluptate unde autem eius facilis dolorum? Eveniet, sit, excepturi iusto porro eos temporibus illum non ut sunt ex aut earum neque. Iure harum similique autem commodi ratione enim quisquam soluta rem, eius dolor officiis necessitatibus voluptatibus obcaecati vel sint iusto. Eligendi reiciendis aut error rem? Hic aliquid tenetur porro itaque quaerat excepturi consequatur veniam, et alias molestiae, eius odio quae maiores suscipit iure voluptatibus sed dolor facere ipsa quod libero necessitatibus, placeat natus. Doloribus esse nobis culpa ab ut dolorem id expedita nesciunt necessitatibus ipsam natus accusantium eius eveniet eum, distinctio quos modi perspiciatis earum sequi nostrum consequatur quibusdam? Blanditiis iusto possimus officia odio animi repudiandae? Repellendus autem ut soluta facere accusamus magni aut architecto cumque cupiditate. Nostrum officiis, tenetur consequuntur quaerat alias animi debitis? Quae quas placeat iure alias totam quaerat fugit recusandae sed, earum ipsa nihil molestiae quam odit itaque, odio asperiores, mollitia porro ratione tempora laboriosam. Incidunt aliquam nobis sunt ut molestiae nam animi placeat neque vero ratione? Eaque?</p>
|
|
91
|
+
</section>
|
|
92
|
+
</main>
|
|
93
|
+
</div>
|
|
94
|
+
```
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
<!-- Automatically generated from templates/html/layout/section.html. Edit templates/html/layout/section.html and run npm run docs:generate again. -->
|
|
2
|
+
|
|
3
|
+
# Section
|
|
4
|
+
|
|
5
|
+
Section variants that control width, padding, and specific content treatment while preserving shared vertical spacing.
|
|
6
|
+
|
|
7
|
+
## PGS
|
|
8
|
+
|
|
9
|
+
- `section`: identifies the standard section with centered content.
|
|
10
|
+
- `sectionFull`: identifies a section that spans the full available width.
|
|
11
|
+
- `sectionSpecificity`: identifies a section that applies a specific structure to its child.
|
|
12
|
+
- `sectionSpecificity-child`: identifies child content managed by the sectionSpecificity variant.
|
|
13
|
+
- `sectionMax`: identifies a section with an extended maximum width.
|
|
14
|
+
- `sectionNoPadding`: identifies a section without standard padding.
|
|
15
|
+
|
|
16
|
+
## Related elements
|
|
17
|
+
|
|
18
|
+
- `flexColumnSections`: vertically spaces all sections in the example.
|
|
19
|
+
- `flexColumnElements`: vertically organizes the main elements of each section.
|
|
20
|
+
- `flexColumnTexts`: organizes and spaces inner content.
|
|
21
|
+
- `card-img`: reuses card image treatment in the demonstration sections.
|
|
22
|
+
- `imgCover`: scales images to the section width.
|
|
23
|
+
|
|
24
|
+
## Output
|
|
25
|
+
|
|
26
|
+
HTML collection of the available section variants.
|
|
27
|
+
|
|
28
|
+
## Example
|
|
29
|
+
|
|
30
|
+
```html
|
|
31
|
+
<div pgs="flexColumnSections">
|
|
32
|
+
<section pgs="section flexColumnElements">
|
|
33
|
+
<div pgs="flexColumnTexts">
|
|
34
|
+
<strong>Standard section</strong>
|
|
35
|
+
<p>Centered content inside a MyPGS section.</p>
|
|
36
|
+
</div>
|
|
37
|
+
</section>
|
|
38
|
+
|
|
39
|
+
<section pgs="sectionFull flexColumnElements">
|
|
40
|
+
<div pgs="flexColumnTexts">
|
|
41
|
+
<strong>Full-width section</strong>
|
|
42
|
+
<p>Centered content inside a MyPGS section.</p>
|
|
43
|
+
</div>
|
|
44
|
+
</section>
|
|
45
|
+
|
|
46
|
+
<section pgs="sectionSpecificity flexColumnElements">
|
|
47
|
+
<div pgs="flexColumnTexts">
|
|
48
|
+
<img pgs="card-img imgCover" src="https://placehold.co/800x200?text=Hero" alt="Placeholder image">
|
|
49
|
+
</div>
|
|
50
|
+
<div pgs="sectionSpecificity-child flexColumnTexts">
|
|
51
|
+
<strong>Specificity-child section</strong>
|
|
52
|
+
<p>Centered content inside a MyPGS section.</p>
|
|
53
|
+
</div>
|
|
54
|
+
</section>
|
|
55
|
+
|
|
56
|
+
<section pgs="sectionMax flexColumnElements" style="background-color: var(--color-primary-soft)">
|
|
57
|
+
<div pgs="flexColumnTexts">
|
|
58
|
+
<strong>Max-width section</strong>
|
|
59
|
+
<p>Centered content inside a MyPGS section.</p>
|
|
60
|
+
</div>
|
|
61
|
+
</section>
|
|
62
|
+
|
|
63
|
+
<section pgs="sectionNoPadding flexColumnElements">
|
|
64
|
+
<div pgs="flexColumnTexts">
|
|
65
|
+
<img pgs="card-img imgCover" src="https://placehold.co/800x500?text=HI!" alt="Placeholder image">
|
|
66
|
+
</div>
|
|
67
|
+
</section>
|
|
68
|
+
</div>
|
|
69
|
+
```
|
|
@@ -0,0 +1,89 @@
|
|
|
1
|
+
<!-- Automatically generated from templates/html/patterns/cookieConsent.html. Edit templates/html/patterns/cookieConsent.html and run npm run docs:generate again. -->
|
|
2
|
+
|
|
3
|
+
# Cookie Consent
|
|
4
|
+
|
|
5
|
+
Accessible pattern for collecting and storing analytics cookie consent, applying preferences, and loading Google Analytics only when authorized.
|
|
6
|
+
|
|
7
|
+
## PGS
|
|
8
|
+
|
|
9
|
+
- `cookieConsent`: identifies the main panel initialized by the JavaScript pattern.
|
|
10
|
+
- `cookieConsent-panel`: identifies the configurable preference group.
|
|
11
|
+
- `cookieConsent-featureEssential`: identifies the row of always-active essential cookies.
|
|
12
|
+
- `cookieConsent-panel-badge`: identifies the essential-cookie status indicator.
|
|
13
|
+
- `cookieConsent-featureAnalytics`: identifies the optional analytics-cookie row.
|
|
14
|
+
- `cookieConsent-toggleAnalytics`: identifies the control that enables analytics consent.
|
|
15
|
+
- `cookieConsent-actionReject`: applies selected preferences without automatically accepting analytics.
|
|
16
|
+
- `cookieConsent-actionAccept`: accepts all available cookies.
|
|
17
|
+
- `cookieConsent-actionOpen`: identifies external controls that reopen the preference panel.
|
|
18
|
+
- `cookieConsent-gaUnavailable`: runtime token applied to the root when no usable measurement ID is available.
|
|
19
|
+
- `cookieConsent-accepted`: runtime token applied to the root when analytics is allowed.
|
|
20
|
+
- `cookieConsent-declined`: runtime token applied to the root when analytics is not allowed.
|
|
21
|
+
|
|
22
|
+
## Related elements
|
|
23
|
+
|
|
24
|
+
- `flexColumn`: vertically organizes the preference panel.
|
|
25
|
+
- `flexRow`: arranges panel rows and actions.
|
|
26
|
+
- `nowrap`: prevents wrapping in the essential-cookie row.
|
|
27
|
+
- `toggle`: presents analytics consent as a switch.
|
|
28
|
+
- `button`: presents the selection action with standard styling.
|
|
29
|
+
- `buttonStrong`: presents full acceptance as the primary action.
|
|
30
|
+
|
|
31
|
+
## Output
|
|
32
|
+
|
|
33
|
+
Consent panel HTML with essential and analytics preferences, actions, and accessible attributes.
|
|
34
|
+
|
|
35
|
+
## Example
|
|
36
|
+
|
|
37
|
+
```html
|
|
38
|
+
<section id="pgs-cookieConsent" pgs="cookieConsent" role="dialog" aria-modal="true" data-ga-id="G-XXXXXXXXXX" hidden tabindex="-1">
|
|
39
|
+
<p><i class="fa-duotone fa-solid fa-cookie-bite"></i> Cookies and privacy <br></p>
|
|
40
|
+
<h2>Your privacy comes first</h2>
|
|
41
|
+
|
|
42
|
+
<p>
|
|
43
|
+
We use essential cookies to provide the service and, with your consent, analytics cookies from
|
|
44
|
+
<strong>Google Analytics</strong> to measure traffic anonymously and improve our content.
|
|
45
|
+
You can change your choice at any time.
|
|
46
|
+
</p>
|
|
47
|
+
|
|
48
|
+
<p>
|
|
49
|
+
<a href="/privacy-policy/" target="_blank" rel="noopener">Privacy Policy</a> -
|
|
50
|
+
<a href="/cookie-policy/" target="_blank" rel="noopener">Cookie Policy</a>
|
|
51
|
+
</p>
|
|
52
|
+
|
|
53
|
+
<div pgs="cookieConsent-panel flexColumn" role="group" aria-label="Cookie preferences">
|
|
54
|
+
<div pgs="flexRow nowrap cookieConsent-featureEssential">
|
|
55
|
+
<div>
|
|
56
|
+
<p>
|
|
57
|
+
<strong>Essential cookies</strong>
|
|
58
|
+
<br>
|
|
59
|
+
<small>Always active to ensure the website works correctly.</small>
|
|
60
|
+
</p>
|
|
61
|
+
</div>
|
|
62
|
+
|
|
63
|
+
<span pgs="cookieConsent-panel-badge">Active</span>
|
|
64
|
+
</div>
|
|
65
|
+
|
|
66
|
+
<div pgs="flexRow cookieConsent-featureAnalytics">
|
|
67
|
+
<label pgs="toggle">
|
|
68
|
+
<p>
|
|
69
|
+
<strong>Analytics</strong>
|
|
70
|
+
<br>
|
|
71
|
+
<small>Browsing data collected in aggregate form for anonymous statistics.</small>
|
|
72
|
+
</p>
|
|
73
|
+
|
|
74
|
+
<input type="checkbox" pgs="cookieConsent-toggleAnalytics" aria-label="Enable Google Analytics">
|
|
75
|
+
</label>
|
|
76
|
+
</div>
|
|
77
|
+
</div>
|
|
78
|
+
|
|
79
|
+
<div pgs="flexRow">
|
|
80
|
+
<button type="button" pgs="button cookieConsent-actionReject">
|
|
81
|
+
<i class="fa-solid fa-duotone fa-sliders"></i>Selected only
|
|
82
|
+
</button>
|
|
83
|
+
|
|
84
|
+
<button type="button" pgs="buttonStrong cookieConsent-actionAccept">
|
|
85
|
+
<i class="fa-solid fa-check"></i> Accept all
|
|
86
|
+
</button>
|
|
87
|
+
</div>
|
|
88
|
+
</section>
|
|
89
|
+
```
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# CSS/SCSS usage
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The library exposes many custom properties that should be preferred to hardcoded values, for example:
|
|
4
4
|
|
|
5
5
|
```scss
|
|
6
6
|
:root {
|
|
@@ -13,7 +13,7 @@ La libreria espone molte custom properties da preferire agli hardcode, per esemp
|
|
|
13
13
|
}
|
|
14
14
|
```
|
|
15
15
|
|
|
16
|
-
|
|
16
|
+
Recommended override:
|
|
17
17
|
|
|
18
18
|
```scss
|
|
19
19
|
#danger-action {
|
|
@@ -22,15 +22,15 @@ Override consigliato:
|
|
|
22
22
|
}
|
|
23
23
|
```
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
Avoid rewriting padding, gaps, border radii, or colors from scratch when a suitable variable or PGS token already exists.
|
|
26
26
|
|
|
27
|
-
##
|
|
27
|
+
## The `pgs` system
|
|
28
28
|
|
|
29
|
-
|
|
29
|
+
Markup uses space-separated tokens inside the `pgs` attribute:
|
|
30
30
|
|
|
31
31
|
```html
|
|
32
|
-
<button pgs="button buttonStrong" type="button">
|
|
32
|
+
<button pgs="button buttonStrong" type="button">Save</button>
|
|
33
33
|
<section pgs="section flexColumnElements"></section>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
-
|
|
36
|
+
The same tokens connect HTML, SCSS, and JavaScript.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mypgs",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "2.1.0",
|
|
4
4
|
"description": "MyPGS frontend theme and UI behaviors, with bundled JavaScript and CSS assets.",
|
|
5
5
|
"main": "./dist/javascript/index.js",
|
|
6
6
|
"module": "./assets/javascript/index.js",
|
|
@@ -21,6 +21,7 @@
|
|
|
21
21
|
},
|
|
22
22
|
"style": "./dist/css/index.css",
|
|
23
23
|
"scripts": {
|
|
24
|
+
"docs:generate": "node scripts/generate-component-docs.js",
|
|
24
25
|
"start": "webpack",
|
|
25
26
|
"start watch": "webpack --watch",
|
|
26
27
|
"syncmaster-forzato": "git fetch origin && git checkout dev && git pull --rebase origin dev && git rebase origin/master && git push --force-with-lease origin dev && git checkout master && git pull --ff-only origin master && git merge --ff-only dev && git push origin master && git checkout dev",
|