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
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
@mixin _hoverColor() {
|
|
2
|
+
$color: var(--color-primary-strong);
|
|
3
|
+
$colorTxtSafari: var(--color-white);
|
|
4
|
+
--hover-color: #{$colorTxtSafari};
|
|
5
|
+
--hover-background: #{$color};
|
|
6
|
+
color: var(--hover-color);
|
|
7
|
+
--fa-primary-color: var(--hover-color);
|
|
8
|
+
--fa-secondary-color: var(--hover-color);
|
|
9
|
+
background: var(--hover-background);
|
|
10
|
+
|
|
11
|
+
:is(h1, h2, h3, h4, h5, h6, p) {
|
|
12
|
+
color: var(--hover-color);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
//+ HOVER
|
|
17
|
+
@mixin _hoverContent1() {
|
|
18
|
+
@media (hover: hover) and (pointer: fine) {
|
|
19
|
+
|
|
20
|
+
&:focus-visible,
|
|
21
|
+
&:hover {
|
|
22
|
+
box-shadow: 0px 0px 38px 0px var(--hover-shadow-color);
|
|
23
|
+
// outline-color: var(--color-primary);
|
|
24
|
+
@include _hoverColor();
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
@mixin _hoverContent2() {
|
|
30
|
+
@media (hover: hover) and (pointer: fine) {
|
|
31
|
+
|
|
32
|
+
&:focus-visible,
|
|
33
|
+
&:hover {
|
|
34
|
+
$n: var(--hover-shadow-displacement);
|
|
35
|
+
$-n: calc(var(--hover-shadow-displacement) * -1);
|
|
36
|
+
box-shadow: $-n $n 0 var(--color-black);
|
|
37
|
+
transform: translate($n, $-n);
|
|
38
|
+
outline-color: transparent;
|
|
39
|
+
@include _hoverColor();
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
//= HOVER
|
|
45
|
+
@mixin hover() {
|
|
46
|
+
transition: all 200ms;
|
|
47
|
+
cursor: pointer;
|
|
48
|
+
text-decoration: none;
|
|
49
|
+
--hover-shadow-color: var(--color-primary);
|
|
50
|
+
--hover-shadow-displacement: 0.25rem;
|
|
51
|
+
$color: var(--color-primary-strong);
|
|
52
|
+
$colorTxtSafari: var(--color-whiteFixed);
|
|
53
|
+
|
|
54
|
+
&:not(:disabled) {
|
|
55
|
+
&:not([pgs-option~=buttonStyle-2]) {
|
|
56
|
+
@include _hoverContent1();
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
&[pgs-option~=buttonStyle-2] {
|
|
60
|
+
@include _hoverContent2();
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&:hover {
|
|
64
|
+
--fa-secondary-opacity: 0.5;
|
|
65
|
+
--hover-color: var(--color-whiteFixed);
|
|
66
|
+
color: var(--hover-color);
|
|
67
|
+
--fa-primary-color: var(--hover-color);
|
|
68
|
+
--fa-secondary-color: var(--hover-color);
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
&:is(a):hover {
|
|
73
|
+
text-decoration: none;
|
|
74
|
+
}
|
|
75
|
+
}
|
package/demo/demo.js
CHANGED
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
const demoRenderer = {
|
|
5
5
|
templateFiles: [
|
|
6
6
|
"components/form.html",
|
|
7
|
+
"components/formAddon.html",
|
|
7
8
|
"components/search.html",
|
|
8
9
|
"components/summary.html",
|
|
9
10
|
"components/menu.html",
|
|
@@ -214,9 +215,9 @@ function configureFormDemo() {
|
|
|
214
215
|
|
|
215
216
|
const formValidate = new pgsApi.formValidate(form, {
|
|
216
217
|
message: {
|
|
217
|
-
fieldError: "
|
|
218
|
-
fieldsError: "
|
|
219
|
-
success: "
|
|
218
|
+
fieldError: "Please complete this field",
|
|
219
|
+
fieldsError: "Please complete all required fields",
|
|
220
|
+
success: "Sent successfully"
|
|
220
221
|
}
|
|
221
222
|
});
|
|
222
223
|
|