uikit 3.25.11 → 3.25.12-dev.b282cd2
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/CHANGELOG.md +6 -0
- package/dist/css/uikit-core-rtl.css +4 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +4 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +4 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +4 -1
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +3 -21
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +3 -21
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +3 -9
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +88 -104
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +88 -104
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/accordion.js +10 -18
- package/src/js/mixin/modal.js +1 -4
- package/src/js/mixin/position.js +1 -7
- package/src/js/mixin/togglable.js +3 -4
- package/src/less/components/accordion.less +3 -1
- package/src/less/components/utility.less +7 -1
- package/src/scss/components/accordion.scss +3 -1
- package/src/scss/components/utility.scss +7 -1
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.25.
|
|
5
|
+
"version": "3.25.12-dev.b282cd2",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/accordion.js
CHANGED
|
@@ -83,15 +83,7 @@ export default {
|
|
|
83
83
|
this.$emit();
|
|
84
84
|
},
|
|
85
85
|
|
|
86
|
-
contents(
|
|
87
|
-
for (const el of items) {
|
|
88
|
-
const isOpen = hasClass(
|
|
89
|
-
this.items.find((item) => item.contains(el)),
|
|
90
|
-
this.clsOpen,
|
|
91
|
-
);
|
|
92
|
-
|
|
93
|
-
hide(el, !isOpen);
|
|
94
|
-
}
|
|
86
|
+
contents() {
|
|
95
87
|
this.$emit();
|
|
96
88
|
},
|
|
97
89
|
},
|
|
@@ -183,7 +175,6 @@ export default {
|
|
|
183
175
|
toggleClass(el, this.clsOpen, show);
|
|
184
176
|
|
|
185
177
|
if (animate === false || !this.animation) {
|
|
186
|
-
hide($(this.content, el), !show);
|
|
187
178
|
return;
|
|
188
179
|
}
|
|
189
180
|
|
|
@@ -195,10 +186,6 @@ export default {
|
|
|
195
186
|
},
|
|
196
187
|
};
|
|
197
188
|
|
|
198
|
-
function hide(el, hide) {
|
|
199
|
-
el && (el.hidden = hide);
|
|
200
|
-
}
|
|
201
|
-
|
|
202
189
|
async function transition(el, show, { content, duration, velocity, transition }) {
|
|
203
190
|
content = el._wrapper?.firstElementChild || $(content, el);
|
|
204
191
|
|
|
@@ -206,12 +193,19 @@ async function transition(el, show, { content, duration, velocity, transition })
|
|
|
206
193
|
el._wrapper = wrapAll(content, '<div>');
|
|
207
194
|
}
|
|
208
195
|
|
|
196
|
+
if (!show) {
|
|
197
|
+
css(content, 'display', 'flow-root');
|
|
198
|
+
}
|
|
199
|
+
|
|
209
200
|
const wrapper = el._wrapper;
|
|
210
201
|
css(wrapper, 'overflow', 'hidden');
|
|
211
202
|
const currentHeight = toFloat(css(wrapper, 'height'));
|
|
212
203
|
|
|
213
204
|
await Transition.cancel(wrapper);
|
|
214
|
-
|
|
205
|
+
|
|
206
|
+
if (show) {
|
|
207
|
+
css(content, 'display', 'flow-root');
|
|
208
|
+
}
|
|
215
209
|
|
|
216
210
|
const endHeight =
|
|
217
211
|
sumBy(['marginTop', 'marginBottom'], (prop) => css(content, prop)) +
|
|
@@ -226,9 +220,7 @@ async function transition(el, show, { content, duration, velocity, transition })
|
|
|
226
220
|
unwrap(content);
|
|
227
221
|
delete el._wrapper;
|
|
228
222
|
|
|
229
|
-
|
|
230
|
-
hide(content, true);
|
|
231
|
-
}
|
|
223
|
+
css(content, 'display', '');
|
|
232
224
|
}
|
|
233
225
|
|
|
234
226
|
function keepScrollPosition(el) {
|
package/src/js/mixin/modal.js
CHANGED
|
@@ -23,7 +23,6 @@ import { preventBackgroundScroll } from '../util/scroll';
|
|
|
23
23
|
import Class from './class';
|
|
24
24
|
import Container from './container';
|
|
25
25
|
import { maybeDefaultPreventClick } from './event';
|
|
26
|
-
import { storeScrollPosition } from './position';
|
|
27
26
|
import Togglable from './togglable';
|
|
28
27
|
|
|
29
28
|
const active = [];
|
|
@@ -197,9 +196,7 @@ export default {
|
|
|
197
196
|
|
|
198
197
|
queueMicrotask(() => {
|
|
199
198
|
if (isFocusable(target)) {
|
|
200
|
-
|
|
201
|
-
target.focus();
|
|
202
|
-
restoreScrollPosition();
|
|
199
|
+
target.focus({ preventScroll: true });
|
|
203
200
|
}
|
|
204
201
|
});
|
|
205
202
|
}
|
package/src/js/mixin/position.js
CHANGED
|
@@ -99,15 +99,9 @@ export function storeScrollPosition(element) {
|
|
|
99
99
|
const scrollElement = scrollParent(element);
|
|
100
100
|
const { scrollTop } = scrollElement;
|
|
101
101
|
|
|
102
|
-
|
|
102
|
+
return () => {
|
|
103
103
|
if (scrollTop !== scrollElement.scrollTop) {
|
|
104
104
|
scrollElement.scrollTop = scrollTop;
|
|
105
105
|
}
|
|
106
106
|
};
|
|
107
|
-
|
|
108
|
-
return () => {
|
|
109
|
-
restore();
|
|
110
|
-
// setTimeout is needed for iOS Safari
|
|
111
|
-
setTimeout(restore);
|
|
112
|
-
};
|
|
113
107
|
}
|
|
@@ -20,7 +20,6 @@ import {
|
|
|
20
20
|
unwrap,
|
|
21
21
|
wrapInner,
|
|
22
22
|
} from 'uikit-util';
|
|
23
|
-
import { storeScrollPosition } from './position';
|
|
24
23
|
|
|
25
24
|
export default {
|
|
26
25
|
props: {
|
|
@@ -82,9 +81,9 @@ export default {
|
|
|
82
81
|
trigger(el, show ? 'shown' : 'hidden', [this]);
|
|
83
82
|
|
|
84
83
|
if (show) {
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
$$('[autofocus]', el)
|
|
85
|
+
.find(isVisible)
|
|
86
|
+
?.focus({ preventScroll: true });
|
|
88
87
|
}
|
|
89
88
|
};
|
|
90
89
|
|
|
@@ -180,7 +180,13 @@
|
|
|
180
180
|
-webkit-overflow-scrolling: touch;
|
|
181
181
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
182
182
|
/* 2 */
|
|
183
|
-
mask-image: linear-gradient(
|
|
183
|
+
mask-image: linear-gradient(
|
|
184
|
+
to var(--uk-overflow-fade-direction),
|
|
185
|
+
rgba(0,0,0,var(--uk-overflow-fade-start-opacity)),
|
|
186
|
+
#000 @overflow-fade-size,
|
|
187
|
+
#000 ~'calc(100% - @{overflow-fade-size})',
|
|
188
|
+
rgba(0,0,0,var(--uk-overflow-fade-end-opacity))
|
|
189
|
+
);
|
|
184
190
|
/* 3 */
|
|
185
191
|
scrollbar-width: none;
|
|
186
192
|
}
|
|
@@ -163,7 +163,13 @@
|
|
|
163
163
|
-webkit-overflow-scrolling: touch;
|
|
164
164
|
-ms-overflow-style: -ms-autohiding-scrollbar;
|
|
165
165
|
/* 2 */
|
|
166
|
-
mask-image: linear-gradient(
|
|
166
|
+
mask-image: linear-gradient(
|
|
167
|
+
to var(--uk-overflow-fade-direction),
|
|
168
|
+
rgba(0,0,0,var(--uk-overflow-fade-start-opacity)),
|
|
169
|
+
#000 $overflow-fade-size,
|
|
170
|
+
#000 string.unquote('calc(100% - #{$overflow-fade-size})'),
|
|
171
|
+
rgba(0,0,0,var(--uk-overflow-fade-end-opacity))
|
|
172
|
+
);
|
|
167
173
|
/* 3 */
|
|
168
174
|
scrollbar-width: none;
|
|
169
175
|
}
|