uikit 3.11.0 → 3.11.2-dev.0e5febb2b
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 +25 -0
- package/build/scope.js +4 -6
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -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 +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- 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 +37 -41
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +32 -25
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +2 -2
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +32 -25
- 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 +2 -3
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +1 -1
- 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 +169 -102
- 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 +232 -170
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/api/component.js +1 -1
- package/src/js/api/state.js +20 -24
- package/src/js/components/parallax.js +5 -16
- package/src/js/components/slider.js +1 -1
- package/src/js/components/sortable.js +1 -2
- package/src/js/core/core.js +2 -2
- package/src/js/core/drop.js +1 -1
- package/src/js/core/height-viewport.js +2 -2
- package/src/js/core/navbar.js +6 -2
- package/src/js/core/sticky.js +82 -50
- package/src/js/mixin/parallax.js +32 -21
- package/src/js/util/dimensions.js +28 -12
- package/src/js/util/fastdom.js +2 -2
- package/src/js/util/viewport.js +7 -3
- package/tests/sticky-parallax.html +44 -41
- package/tests/sticky.html +56 -24
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,30 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## WIP
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add `position` option with `top`, `bottom` and `auto` values to Sticky component
|
|
8
|
+
- Add support for basic math operands in `offset` option of Sticky component
|
|
9
|
+
|
|
10
|
+
### Changed
|
|
11
|
+
|
|
12
|
+
- Improve sticky behavior if sticky content is larger than the viewport
|
|
13
|
+
|
|
14
|
+
### Fixed
|
|
15
|
+
|
|
16
|
+
- Fix infinite sliding in Slider component with equally sized slides
|
|
17
|
+
- Fix Sticky component setting wrong margin for placeholder
|
|
18
|
+
- Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
|
|
19
|
+
- Fix dropdown no longer closes if pointer is still moving towards it
|
|
20
|
+
|
|
21
|
+
## 3.11.1 (February 7, 2022)
|
|
22
|
+
|
|
23
|
+
### Fixed
|
|
24
|
+
|
|
25
|
+
- Fix scoping css to exclude `:root` selector
|
|
26
|
+
- Fix `toPx()` correctly uses offsetHeight/Width
|
|
27
|
+
|
|
3
28
|
## 3.11.0 (February 7, 2022)
|
|
4
29
|
|
|
5
30
|
### Added
|
package/build/scope.js
CHANGED
|
@@ -15,7 +15,7 @@ if (args.h || args.help) {
|
|
|
15
15
|
`);
|
|
16
16
|
process.exit(0);
|
|
17
17
|
}
|
|
18
|
-
const currentScopeRe = /\/\* scoped: ([^*]*)
|
|
18
|
+
const currentScopeRe = /\/\* scoped: ([^*]*) \*\/\n/;
|
|
19
19
|
const currentScopeLegacyRe = /\.(uk-scope)/;
|
|
20
20
|
|
|
21
21
|
const files = await glob('dist/**/!(*.min).css');
|
|
@@ -65,9 +65,7 @@ async function scope(files, scope) {
|
|
|
65
65
|
await replaceInFile(file, async data => {
|
|
66
66
|
const output = await renderLess(`.${scope} {\n${stripComments(data)}\n}`);
|
|
67
67
|
return `/* scoped: ${scope} */\n${
|
|
68
|
-
output
|
|
69
|
-
.replace(new RegExp(`.${scope} ${/{(.|[\r\n])*?}/.source}`), '')
|
|
70
|
-
.replace(new RegExp(`.${scope}${/\s((\.(uk-(drag|modal-page|offcanvas-page|offcanvas-flip)))|html)/.source}`, 'g'), '$1')
|
|
68
|
+
output.replace(new RegExp(`.${scope}\\s((\\.(uk-(drag|modal-page|offcanvas-page|offcanvas-flip)))|html|:root)`, 'g'), '$1') // unescape
|
|
71
69
|
}`;
|
|
72
70
|
});
|
|
73
71
|
await minify(file);
|
|
@@ -78,8 +76,8 @@ async function cleanup(files, scope) {
|
|
|
78
76
|
const string = scope.split(' ').map(scope => `.${scope}`).join(' ');
|
|
79
77
|
for (const file of files) {
|
|
80
78
|
await replaceInFile(file, data => data
|
|
81
|
-
.replace(
|
|
82
|
-
.replace(new RegExp(
|
|
79
|
+
.replace(currentScopeRe, '') // remove scope comment
|
|
80
|
+
.replace(new RegExp(` *${string} ({[\\s\\S]*?})?`, 'g'), '') // replace classes
|
|
83
81
|
);
|
|
84
82
|
}
|
|
85
83
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.11.
|
|
1
|
+
/*! UIkit 3.11.2-dev.0e5febb2b | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|