@massimo-cassandro/minimo 1.24.4 → 1.24.6
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/package.json +1 -1
- package/src/components/autocomplete/autocomplete.css +4 -1
- package/src/components/modal-popup/modal-popup.module.css +4 -1
- package/src/components/slide-up-down-toggle/slide-up-down-toggle.module.css +6 -3
- package/src/components/unsplash-page/unsplash-page.module.css +8 -2
- package/src/css/forms/switch.css +5 -3
- package/src/utilities/dom-builder-helpers/form-tags.js +3 -1
package/package.json
CHANGED
|
@@ -54,7 +54,10 @@
|
|
|
54
54
|
padding: .3rem .5rem;
|
|
55
55
|
background-color: var(--ac-list-item-bg);
|
|
56
56
|
border-radius: .35rem;
|
|
57
|
-
|
|
57
|
+
|
|
58
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
59
|
+
transition: all .2s ease;
|
|
60
|
+
}
|
|
58
61
|
|
|
59
62
|
.badge {
|
|
60
63
|
color: #fff;
|
|
@@ -21,7 +21,10 @@
|
|
|
21
21
|
border-radius: var(--mpopup-border-radius);
|
|
22
22
|
box-shadow: var(--mpopup-drop-shadow);
|
|
23
23
|
scale: 0;
|
|
24
|
-
|
|
24
|
+
|
|
25
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
26
|
+
transition: scale .2s ease-out;
|
|
27
|
+
}
|
|
25
28
|
|
|
26
29
|
&::backdrop {
|
|
27
30
|
overscroll-behavior: contain;
|
|
@@ -56,9 +56,12 @@
|
|
|
56
56
|
display: block !important;
|
|
57
57
|
height: auto;
|
|
58
58
|
overflow: hidden;
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
59
|
+
|
|
60
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
61
|
+
transition:
|
|
62
|
+
height var(--slide-duration) ease,
|
|
63
|
+
display var(--slide-duration) allow-discrete;
|
|
64
|
+
}
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
/* collapsed state: height animates to 0, then display snaps to none */
|
|
@@ -122,7 +122,10 @@ html, body {
|
|
|
122
122
|
|
|
123
123
|
.unsplashPhoto, .credits {
|
|
124
124
|
opacity: 0;
|
|
125
|
-
|
|
125
|
+
|
|
126
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
127
|
+
transition: opacity .3s linear;
|
|
128
|
+
}
|
|
126
129
|
|
|
127
130
|
.show & {
|
|
128
131
|
opacity: 1;
|
|
@@ -154,7 +157,10 @@ html, body {
|
|
|
154
157
|
max-width: 90dvw;
|
|
155
158
|
padding: 1rem 2rem;
|
|
156
159
|
text-align: center;
|
|
157
|
-
|
|
160
|
+
|
|
161
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
162
|
+
transition: translate .3s ease-in-out;
|
|
163
|
+
}
|
|
158
164
|
|
|
159
165
|
h1 {
|
|
160
166
|
margin: 0;
|
package/src/css/forms/switch.css
CHANGED
|
@@ -82,9 +82,11 @@ background-image.
|
|
|
82
82
|
|
|
83
83
|
@media (prefers-reduced-motion: no-preference) {
|
|
84
84
|
.form-switch .form-check-input {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
85
|
+
@media screen and (prefers-reduced-motion: no-preference) {
|
|
86
|
+
transition:
|
|
87
|
+
background-color var(--form-switch-transition-duration) linear,
|
|
88
|
+
background-position var(--form-switch-transition-duration) ease-in-out;
|
|
89
|
+
}
|
|
88
90
|
}
|
|
89
91
|
}
|
|
90
92
|
|
|
@@ -110,6 +110,7 @@ export function buildInput({
|
|
|
110
110
|
* @param {string | null} [args.wrapperClass=null] - optional class to be added to the `.form-group` wrapper.
|
|
111
111
|
* @param {string | null} [args.className=null] - optional class to be added to the `input`.
|
|
112
112
|
* @param {boolean} [args.condition=true] - When false, the function returns `null` without building anything.
|
|
113
|
+
* @param {boolean} [args.useBsClass=false] - When true, uses BS5 class (`form-select`) instead of `form-control`
|
|
113
114
|
* @param {string | HTMLElement | null} args.help - Optional help text.
|
|
114
115
|
* @param {(function(HTMLElement): void) | null} args.callback - Optional callback function.
|
|
115
116
|
* @param {Record<string, any> | null} [args.attrs={}] - Optional attributes object.
|
|
@@ -124,6 +125,7 @@ export function buildSelect({
|
|
|
124
125
|
addEmptyOption = true,
|
|
125
126
|
wrapperClass = null,
|
|
126
127
|
className = null,
|
|
128
|
+
useBsClass = false,
|
|
127
129
|
condition = true,
|
|
128
130
|
help = null,
|
|
129
131
|
attrs = {},
|
|
@@ -158,7 +160,7 @@ export function buildSelect({
|
|
|
158
160
|
`label.form-label[for:${id}] ${label}`,
|
|
159
161
|
{
|
|
160
162
|
tag: 'select',
|
|
161
|
-
className: classnames('form-control', className, attrs?.class),
|
|
163
|
+
className: classnames(useBsClass? 'form-select' : 'form-control', className, attrs?.class),
|
|
162
164
|
id: id,
|
|
163
165
|
attrs: {
|
|
164
166
|
...(attrs??{}),
|