uikit 3.10.1 → 3.11.1-dev.592c1431b
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 +46 -17
- package/build/icons.js +4 -4
- package/build/scope.js +4 -6
- package/build/scss.js +4 -4
- package/dist/css/uikit-core-rtl.css +10 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +10 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +10 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +10 -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 +257 -264
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +215 -257
- 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 +215 -257
- 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 +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 +38 -37
- 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 +294 -300
- package/dist/js/uikit.min.js +1 -1
- package/package.json +5 -5
- package/src/js/api/hooks.js +6 -10
- package/src/js/components/parallax.js +38 -8
- package/src/js/core/grid.js +2 -2
- package/src/js/core/scrollspy.js +1 -1
- package/src/js/core/svg.js +9 -7
- package/src/js/mixin/parallax.js +209 -242
- package/src/js/util/dimensions.js +4 -2
- package/src/js/util/lang.js +4 -0
- package/src/js/util/viewport.js +9 -13
- package/src/less/components/position.less +2 -0
- package/src/less/components/sticky.less +6 -0
- package/src/scss/components/position.scss +2 -0
- package/src/scss/components/sticky.scss +6 -0
- package/tests/index.html +1 -1
- package/tests/js/index.js +1 -1
- package/tests/notification.html +5 -5
- package/tests/parallax.html +66 -50
- package/tests/sticky-parallax.html +274 -0
- package/tests/sticky.html +2 -2
- package/tests/tab.html +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,34 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## WIP
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fix scoping css to exclude `:root` selector
|
|
8
|
+
- Fix `toPx()` correctly uses offsetHeight/Width
|
|
9
|
+
|
|
10
|
+
## 3.11.0 (February 7, 2022)
|
|
11
|
+
|
|
12
|
+
### Added
|
|
13
|
+
|
|
14
|
+
- Add `start` and `end` options to Parallax component
|
|
15
|
+
- Add negative z-index utility class to Position component
|
|
16
|
+
- Add Sticky Parallax test
|
|
17
|
+
|
|
18
|
+
### Deprecated
|
|
19
|
+
|
|
20
|
+
- Deprecate `viewport` option in Parallax component: Use `end` option instead
|
|
21
|
+
|
|
22
|
+
### Fixed
|
|
23
|
+
|
|
24
|
+
- Use same position context when uk-sticky sticks or not
|
|
25
|
+
- Fix interdependent computed properties being evaluated too often
|
|
26
|
+
- Fix `getIndex()` returns `-1` instead of `NaN` if called with empty elements parameter
|
|
27
|
+
- Fix Scrollspy component no longer sets class `false`
|
|
28
|
+
- Fix Parallax component no longer rounds values to two digits after comma
|
|
29
|
+
- Fix Parallax component running backwards with 'viewport' option set to a value < 1
|
|
30
|
+
- Fix Parallax component easing option for values < -1 || > 1
|
|
31
|
+
|
|
3
32
|
## 3.10.1 (January 19, 2022)
|
|
4
33
|
|
|
5
34
|
### Fixed
|
|
@@ -8,7 +37,7 @@
|
|
|
8
37
|
- Fix usage of `data-` prefix for Cover and Responsive component
|
|
9
38
|
- Fix pointer events for iframes in Cover component
|
|
10
39
|
- Fix Slideshow component no longer throws if items list does not exist
|
|
11
|
-
- Fix space key no longer triggers Toggle on
|
|
40
|
+
- Fix space key no longer triggers Toggle on `input` elements
|
|
12
41
|
|
|
13
42
|
## 3.10.0 (January 12, 2022)
|
|
14
43
|
|
|
@@ -62,7 +91,7 @@
|
|
|
62
91
|
|
|
63
92
|
### Changed
|
|
64
93
|
|
|
65
|
-
- Upgrade
|
|
94
|
+
- Upgrade Less to version 4
|
|
66
95
|
|
|
67
96
|
## 3.8.1 (November 5, 2021)
|
|
68
97
|
|
|
@@ -152,7 +181,7 @@
|
|
|
152
181
|
### Fixed
|
|
153
182
|
|
|
154
183
|
- Fix animation classes only partially being removed in Scrollspy component
|
|
155
|
-
- Fix scrollIntoView did not return Promise if element is hidden
|
|
184
|
+
- Fix scrollIntoView did not return Promise if element is hidden
|
|
156
185
|
|
|
157
186
|
## 3.7.0 (June 29, 2021)
|
|
158
187
|
|
|
@@ -252,7 +281,7 @@
|
|
|
252
281
|
|
|
253
282
|
### Added
|
|
254
283
|
|
|
255
|
-
- Add background-size modifier for width and height to Background component
|
|
284
|
+
- Add background-size modifier for width and height to Background component
|
|
256
285
|
|
|
257
286
|
### Fixed
|
|
258
287
|
|
|
@@ -299,7 +328,7 @@
|
|
|
299
328
|
|
|
300
329
|
- Fix IE11 compatibility
|
|
301
330
|
- Fix changing ratio does not correctly apply width and height in SVG component
|
|
302
|
-
- Fix issues from hiding an already hidden Modal
|
|
331
|
+
- Fix issues from hiding an already hidden Modal
|
|
303
332
|
|
|
304
333
|
## 3.6.11 (January 14, 2021)
|
|
305
334
|
|
|
@@ -533,7 +562,7 @@
|
|
|
533
562
|
### Added
|
|
534
563
|
|
|
535
564
|
- Add list marker utility support for WebKit
|
|
536
|
-
- Add `uk-text-default` to Text component
|
|
565
|
+
- Add `uk-text-default` to Text component
|
|
537
566
|
- Add multiple targets to Filter component
|
|
538
567
|
|
|
539
568
|
### Fixed
|
|
@@ -542,7 +571,7 @@
|
|
|
542
571
|
- Fix empty slider throws exception
|
|
543
572
|
- Fix pointer events ignored on SVGs in Sortable component
|
|
544
573
|
- Fix Grid component divider rendering
|
|
545
|
-
- Fix `<select>` closes Drop component in hover mode in Firefox
|
|
574
|
+
- Fix `<select>` closes Drop component in hover mode in Firefox
|
|
546
575
|
|
|
547
576
|
## 3.5.4 (June 12, 2020)
|
|
548
577
|
|
|
@@ -553,7 +582,7 @@
|
|
|
553
582
|
### Fixed
|
|
554
583
|
|
|
555
584
|
- Fix prop observer for dataSrc option in Image component
|
|
556
|
-
- Fix ajax function supports responseType 'json' in IE 11
|
|
585
|
+
- Fix ajax function supports responseType 'json' in IE 11
|
|
557
586
|
- Fix Accordion component with `multiple: true` and `collapsible: false`
|
|
558
587
|
|
|
559
588
|
## 3.5.3 (May 29, 2020)
|
|
@@ -606,7 +635,7 @@
|
|
|
606
635
|
|
|
607
636
|
### Added
|
|
608
637
|
|
|
609
|
-
- Add inBrowser check to enable server-side rendering
|
|
638
|
+
- Add inBrowser check to enable server-side rendering
|
|
610
639
|
|
|
611
640
|
### Fixed
|
|
612
641
|
|
|
@@ -666,7 +695,7 @@
|
|
|
666
695
|
|
|
667
696
|
### Changed
|
|
668
697
|
|
|
669
|
-
- Change default dimensions to 1920x1080 for YouTube in Lightbox component
|
|
698
|
+
- Change default dimensions to 1920x1080 for YouTube in Lightbox component
|
|
670
699
|
|
|
671
700
|
### Fixed
|
|
672
701
|
|
|
@@ -684,7 +713,7 @@
|
|
|
684
713
|
|
|
685
714
|
- Fix Height Match component not matching empty elements
|
|
686
715
|
- Fix Scrollspy Nav component activating wrong elements
|
|
687
|
-
- Fix Modal/Drop close on bgClick behaviour
|
|
716
|
+
- Fix Modal/Drop close on bgClick behaviour
|
|
688
717
|
- Fix `z-index` on Modal stacked dialogs
|
|
689
718
|
|
|
690
719
|
## 3.3.6 (March 12, 2020)
|
|
@@ -810,7 +839,7 @@
|
|
|
810
839
|
### Fixed
|
|
811
840
|
|
|
812
841
|
- Fix scrolling containers while dragging in Sortable component
|
|
813
|
-
- Fix show/hide behaviour in Drop component
|
|
842
|
+
- Fix show/hide behaviour in Drop component
|
|
814
843
|
- Fix Accordion component will scroll title into view if needed
|
|
815
844
|
- Fix component initialization without element
|
|
816
845
|
|
|
@@ -910,7 +939,7 @@
|
|
|
910
939
|
- Fix swipe gestures in Switcher component (Android)
|
|
911
940
|
- Ensure at most one Height Viewport component set to `expand` is active
|
|
912
941
|
- Height Viewport component no longer calculates its height if invisible
|
|
913
|
-
- Fix using Sortable in scrolling container
|
|
942
|
+
- Fix using Sortable in scrolling container
|
|
914
943
|
- Fix lazy loading images if parent element is fully clipped
|
|
915
944
|
- Fix clicking Slideshow with `draggable: false` no longer pauses autoplay
|
|
916
945
|
- Fix toggling modal while transition is in progress
|
|
@@ -954,7 +983,7 @@
|
|
|
954
983
|
- Fix selector engine
|
|
955
984
|
- Fix CSS selector in Lightbox component
|
|
956
985
|
- Fix Drop not closing when Toggle component is clicked
|
|
957
|
-
|
|
986
|
+
|
|
958
987
|
## 3.1.3 (April 23, 2019)
|
|
959
988
|
|
|
960
989
|
### Fixed
|
|
@@ -1873,7 +1902,7 @@
|
|
|
1873
1902
|
|
|
1874
1903
|
### Changed
|
|
1875
1904
|
|
|
1876
|
-
- IMPORTANT: Move
|
|
1905
|
+
- IMPORTANT: Move Less/Sass imports into one file. Use `components/_import.less`
|
|
1877
1906
|
- IMPORTANT: Renamed `transition` option to `easing` in Scroll component
|
|
1878
1907
|
- Improve flip behaviour in Drop component
|
|
1879
1908
|
- Improve `class` handling
|
|
@@ -2047,7 +2076,7 @@
|
|
|
2047
2076
|
|
|
2048
2077
|
### Fixed
|
|
2049
2078
|
|
|
2050
|
-
- Fix npm not watching
|
|
2079
|
+
- Fix npm not watching Less files
|
|
2051
2080
|
- Modal no longer closes immediately when toggled from custom `click` handler
|
|
2052
2081
|
- Fix Accordion component
|
|
2053
2082
|
- Fix container for Tooltip component
|
|
@@ -2144,7 +2173,7 @@
|
|
|
2144
2173
|
|
|
2145
2174
|
### Changed
|
|
2146
2175
|
|
|
2147
|
-
-
|
|
2176
|
+
- Less no longer uses component attribute selectors
|
|
2148
2177
|
- Accordion close and open icons using variables
|
|
2149
2178
|
|
|
2150
2179
|
### Removed
|
package/build/icons.js
CHANGED
|
@@ -2,16 +2,16 @@ import {args, compile, glob, icons} from './util.js';
|
|
|
2
2
|
|
|
3
3
|
if (args.h || args.help) {
|
|
4
4
|
console.log(`
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
Builds additional custom uikit icons found in './custom/*/icons'
|
|
7
|
-
|
|
7
|
+
|
|
8
8
|
usage:
|
|
9
9
|
|
|
10
10
|
icons.js [custom|name]
|
|
11
11
|
|
|
12
|
-
-c|--custom
|
|
12
|
+
-c|--custom
|
|
13
13
|
Specify custom folder to look for icons (default: './custom/*/icons')
|
|
14
|
-
-n|--name
|
|
14
|
+
-n|--name
|
|
15
15
|
Specify name regex to match against folder (default: '([a-z]+)/icons$')
|
|
16
16
|
|
|
17
17
|
`);
|
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
|
}
|
package/build/scss.js
CHANGED
|
@@ -77,7 +77,7 @@ for (const file of await glob('src/less/**/*.less')) {
|
|
|
77
77
|
|
|
78
78
|
const data = await read(file);
|
|
79
79
|
|
|
80
|
-
/* replace all
|
|
80
|
+
/* replace all Less stuff with SCSS */
|
|
81
81
|
let scssData = data.replace(/\/less\//g, '/scss/') // change less/ dir to scss/ on imports
|
|
82
82
|
.replace(/\.less/g, '.scss') // change .less extensions to .scss on imports
|
|
83
83
|
.replace(/@/g, '$') // convert variables
|
|
@@ -90,9 +90,9 @@ for (const file of await glob('src/less/**/*.less')) {
|
|
|
90
90
|
.replace(/@mixin ([\w-]*)\s*\((.*)\)\s*{\s*}/g, '// @mixin $1($2){}') // comment empty mixins
|
|
91
91
|
.replace(/\.(hook[a-zA-Z\-\d]+)(\(\))?;/g, '@if(mixin-exists($1)) {@include $1();}') // hook calls surrounded by a mixin-exists
|
|
92
92
|
.replace(/\$(import|supports|media|font-face|page|-ms-viewport|keyframes|-webkit-keyframes|-moz-document)/g, '@$1') // replace valid '@' statements
|
|
93
|
-
.replace(/tint\((\$[\w-]+),\s([^)]*)\)/g, 'mix(white, $1, $2)') // replace
|
|
94
|
-
.replace(/fade\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => { return `rgba(${p1}, ${p2 / 100})`;}) // replace
|
|
95
|
-
.replace(/fadeout\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => { return `fade-out(${p1}, ${p2 / 100})`;}) // replace
|
|
93
|
+
.replace(/tint\((\$[\w-]+),\s([^)]*)\)/g, 'mix(white, $1, $2)') // replace Less function tint with mix
|
|
94
|
+
.replace(/fade\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => { return `rgba(${p1}, ${p2 / 100})`;}) // replace Less function fade with rgba
|
|
95
|
+
.replace(/fadeout\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => { return `fade-out(${p1}, ${p2 / 100})`;}) // replace Less function fadeout with fade-out
|
|
96
96
|
.replace(/\.svg-fill/g, '@include svg-fill') // include svg-fill mixin
|
|
97
97
|
.replace(/(.*):extend\((\.[\w-\\@]*) all\) when \((\$[\w-]*) = ([\w]+)\) {}/g, '@if ( $3 == $4 ) { $1 { @extend $2 !optional;} }') // update conditional extend and add !optional to ignore warnings
|
|
98
98
|
.replace(/(\.[\w-\\@]+)\s*when\s*\((\$[\w-]*)\s*=\s*(\w+)\)\s*{\s*@if\(mixin-exists\(([\w-]*)\)\) {@include\s([\w-]*)\(\);\s*}\s*}/g, '@if ($2 == $3) { $1 { @if (mixin-exists($4)) {@include $4();}}}') // update conditional hook
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.
|
|
1
|
+
/*! UIkit 3.11.1-dev.592c1431b | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -3777,6 +3777,12 @@ select.uk-form-width-xsmall {
|
|
|
3777
3777
|
/* ========================================================================
|
|
3778
3778
|
Component: Sticky
|
|
3779
3779
|
========================================================================== */
|
|
3780
|
+
/*
|
|
3781
|
+
* Create position context so it's t the same like when fixed.
|
|
3782
|
+
*/
|
|
3783
|
+
.uk-sticky {
|
|
3784
|
+
position: relative;
|
|
3785
|
+
}
|
|
3780
3786
|
/*
|
|
3781
3787
|
* 1. Force new layer to resolve frame rate issues on devices with lower frame rates
|
|
3782
3788
|
*/
|
|
@@ -8612,6 +8618,9 @@ iframe[data-uk-cover] {
|
|
|
8612
8618
|
.uk-position-z-index {
|
|
8613
8619
|
z-index: 1;
|
|
8614
8620
|
}
|
|
8621
|
+
.uk-position-z-index-negative {
|
|
8622
|
+
z-index: -1;
|
|
8623
|
+
}
|
|
8615
8624
|
/* ========================================================================
|
|
8616
8625
|
Component: Transition
|
|
8617
8626
|
========================================================================== */
|