uikit 3.10.1-dev.2a182d8f9 → 3.10.2-dev.3a696ee97
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/.eslintrc.json +0 -1
- package/CHANGELOG.md +22 -11
- package/CONTRIBUTING.md +1 -1
- package/README.md +4 -2
- package/build/.eslintrc.json +10 -1
- package/build/less.js +1 -2
- package/build/scss.js +5 -5
- package/dist/css/uikit-core-rtl.css +8 -5
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +8 -5
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +8 -5
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +8 -5
- 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 +5 -5
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +2 -2
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +2 -2
- 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 +4 -4
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +5 -11
- 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 +5 -11
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +2 -2
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +5 -5
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +5 -4
- 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 +32 -32
- 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 +43 -48
- package/dist/js/uikit.min.js +1 -1
- package/package.json +3 -3
- package/src/js/api/component.js +3 -3
- package/src/js/api/hooks.js +6 -10
- package/src/js/api/state.js +3 -3
- package/src/js/components/slider-parallax.js +1 -7
- package/src/js/components/tooltip.js +2 -1
- package/src/js/core/navbar.js +1 -1
- package/src/js/core/sticky.js +1 -1
- package/src/js/core/toggle.js +4 -3
- package/src/js/mixin/animate.js +4 -4
- package/src/js/mixin/internal/slideshow-animations.js +1 -1
- package/src/js/mixin/parallax.js +3 -3
- package/src/js/mixin/position.js +3 -3
- package/src/js/util/dom.js +3 -3
- package/src/js/util/lang.js +5 -1
- package/src/js/util/viewport.js +3 -3
- package/src/less/components/cover.less +4 -2
- package/src/less/components/divider.less +1 -1
- package/src/less/components/utility.less +2 -1
- package/src/scss/components/cover.scss +4 -2
- package/src/scss/components/divider.scss +1 -1
- package/src/scss/components/utility.scss +2 -1
- package/tests/base.html +12 -12
- package/tests/button.html +1 -1
- package/tests/cover.html +5 -5
- package/tests/drop.html +2 -2
- package/tests/dropdown.html +1 -1
- package/tests/flex.html +1 -1
- package/tests/grid-masonry.html +1 -1
- package/tests/grid-parallax.html +1 -1
- package/tests/grid.html +1 -1
- package/tests/height.html +2 -2
- package/tests/js/index.js +3 -8
- package/tests/margin.html +1 -1
- package/tests/modal.html +2 -2
- package/tests/navbar.html +2 -2
- package/tests/padding.html +1 -1
- package/tests/parallax.html +1 -1
- package/tests/slider.html +1 -1
- package/tests/slideshow.html +2 -2
- package/tests/sticky.html +2 -2
- package/tests/switcher.html +1 -1
- package/tests/tab.html +1 -1
- package/tests/utility.html +1 -1
- package/tests/video.html +3 -3
- package/tests/width.html +1 -1
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -4,7 +4,18 @@
|
|
|
4
4
|
|
|
5
5
|
### Fixed
|
|
6
6
|
|
|
7
|
+
- Fix interdependent computed properties being evaluated too often
|
|
8
|
+
- Fix `getIndex()` returns `-1` instead of `NaN` if called with empty elements parameter
|
|
9
|
+
|
|
10
|
+
## 3.10.1 (January 19, 2022)
|
|
11
|
+
|
|
12
|
+
### Fixed
|
|
13
|
+
|
|
14
|
+
- Fix vertical divider width in Divider component
|
|
15
|
+
- Fix usage of `data-` prefix for Cover and Responsive component
|
|
16
|
+
- Fix pointer events for iframes in Cover component
|
|
7
17
|
- Fix Slideshow component no longer throws if items list does not exist
|
|
18
|
+
- Fix space key no longer triggers Toggle on <input> elements
|
|
8
19
|
|
|
9
20
|
## 3.10.0 (January 12, 2022)
|
|
10
21
|
|
|
@@ -44,7 +55,7 @@
|
|
|
44
55
|
|
|
45
56
|
### Fixed
|
|
46
57
|
|
|
47
|
-
- Fix build scripts for
|
|
58
|
+
- Fix build scripts for Windows users
|
|
48
59
|
- Fix css in Leader component
|
|
49
60
|
- Fix division deprecation warnings in Sass source
|
|
50
61
|
|
|
@@ -58,7 +69,7 @@
|
|
|
58
69
|
|
|
59
70
|
### Changed
|
|
60
71
|
|
|
61
|
-
- Upgrade
|
|
72
|
+
- Upgrade Less to version 4
|
|
62
73
|
|
|
63
74
|
## 3.8.1 (November 5, 2021)
|
|
64
75
|
|
|
@@ -69,7 +80,7 @@
|
|
|
69
80
|
### Changed
|
|
70
81
|
|
|
71
82
|
- Make padding large a little bigger on small devices
|
|
72
|
-
- Change logo color to emphasis
|
|
83
|
+
- Change logo color to 'emphasis'
|
|
73
84
|
|
|
74
85
|
### Fixed
|
|
75
86
|
|
|
@@ -444,7 +455,7 @@
|
|
|
444
455
|
|
|
445
456
|
### Changed
|
|
446
457
|
|
|
447
|
-
- Sorting starts after traversing half the
|
|
458
|
+
- Sorting starts after traversing half the item's height/width in Sortable component
|
|
448
459
|
|
|
449
460
|
## 3.5.12 (December 7, 2020)
|
|
450
461
|
|
|
@@ -513,7 +524,7 @@
|
|
|
513
524
|
|
|
514
525
|
### Changed
|
|
515
526
|
|
|
516
|
-
- Sticky component uses window.Date instead of window.performance
|
|
527
|
+
- Sticky component uses 'window.Date' instead of 'window.performance'
|
|
517
528
|
- Sticky component with sticky-on-up no longer hides when Dropdown shows
|
|
518
529
|
|
|
519
530
|
### Fixed
|
|
@@ -800,7 +811,7 @@
|
|
|
800
811
|
|
|
801
812
|
### Added
|
|
802
813
|
|
|
803
|
-
- Parallax, Scroll, Scrollspy Nav components work inside
|
|
814
|
+
- Parallax, Scroll, Scrollspy Nav components work inside scrollable container
|
|
804
815
|
- Expose `scrollIntoView` utility function
|
|
805
816
|
|
|
806
817
|
### Fixed
|
|
@@ -1548,7 +1559,7 @@
|
|
|
1548
1559
|
|
|
1549
1560
|
### Added
|
|
1550
1561
|
|
|
1551
|
-
- Add support to center elements outside
|
|
1562
|
+
- Add support to center elements outside a container to Position component
|
|
1552
1563
|
|
|
1553
1564
|
### Changed
|
|
1554
1565
|
|
|
@@ -1869,7 +1880,7 @@
|
|
|
1869
1880
|
|
|
1870
1881
|
### Changed
|
|
1871
1882
|
|
|
1872
|
-
- IMPORTANT: Move
|
|
1883
|
+
- IMPORTANT: Move Less/Sass imports into one file. Use `components/_import.less`
|
|
1873
1884
|
- IMPORTANT: Renamed `transition` option to `easing` in Scroll component
|
|
1874
1885
|
- Improve flip behaviour in Drop component
|
|
1875
1886
|
- Improve `class` handling
|
|
@@ -1955,7 +1966,7 @@
|
|
|
1955
1966
|
|
|
1956
1967
|
### Changed
|
|
1957
1968
|
|
|
1958
|
-
- IMPORTANT: Offcanvas requires
|
|
1969
|
+
- IMPORTANT: Offcanvas requires wrapping page in extra div
|
|
1959
1970
|
- Refactored Offcanvas component
|
|
1960
1971
|
- Update Instagram, Tumblr and Vimeo icons
|
|
1961
1972
|
- Component Constructor initializes multiple components at once
|
|
@@ -2043,7 +2054,7 @@
|
|
|
2043
2054
|
|
|
2044
2055
|
### Fixed
|
|
2045
2056
|
|
|
2046
|
-
- Fix npm not watching
|
|
2057
|
+
- Fix npm not watching Less files
|
|
2047
2058
|
- Modal no longer closes immediately when toggled from custom `click` handler
|
|
2048
2059
|
- Fix Accordion component
|
|
2049
2060
|
- Fix container for Tooltip component
|
|
@@ -2140,7 +2151,7 @@
|
|
|
2140
2151
|
|
|
2141
2152
|
### Changed
|
|
2142
2153
|
|
|
2143
|
-
-
|
|
2154
|
+
- Less no longer uses component attribute selectors
|
|
2144
2155
|
- Accordion close and open icons using variables
|
|
2145
2156
|
|
|
2146
2157
|
### Removed
|
package/CONTRIBUTING.md
CHANGED
|
@@ -83,7 +83,7 @@ UIkit adapts the [Vue's commit convention](https://github.com/vuejs/vue/blob/dev
|
|
|
83
83
|
- `fix:` A bug fix
|
|
84
84
|
- `perf:` A code change that improves performance
|
|
85
85
|
- `refactor:` A code change that neither fixes a bug nor adds a feature
|
|
86
|
-
- `style:` Changes that do not affect the meaning of the code (white-space, formatting, etc)
|
|
86
|
+
- `style:` Changes that do not affect the meaning of the code (white-space, formatting, etc.)
|
|
87
87
|
- `test:` Adding missing tests or correcting existing tests
|
|
88
88
|
|
|
89
89
|
## Versioning
|
package/README.md
CHANGED
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
# UIkit
|
|
4
4
|
|
|
5
5
|
[](https://discord.gg/NEt4Pv7)
|
|
6
|
+
[](https://circleci.com/gh/uikit/uikit)
|
|
7
|
+
[](https://www.jsdelivr.com/package/npm/uikit)
|
|
6
8
|
|
|
7
9
|
UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
|
|
8
10
|
|
|
@@ -51,8 +53,8 @@ UIkit is maintained by using the [Semantic Versioning Specification (SemVer)](ht
|
|
|
51
53
|
## Browser Support
|
|
52
54
|
|
|
53
55
|
|  |  |  |  |  |
|
|
54
|
-
|
|
55
|
-
| Latest ✔
|
|
56
|
+
|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
|
|
57
|
+
| Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
|
|
56
58
|
|
|
57
59
|
Tested With<br>[](https://www.browserstack.com)
|
|
58
60
|
|
package/build/.eslintrc.json
CHANGED
package/build/less.js
CHANGED
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
|
|
@@ -236,7 +236,7 @@ async function getVariablesFromFile(file, data) {
|
|
|
236
236
|
|
|
237
237
|
while (match) {
|
|
238
238
|
|
|
239
|
-
/* check if variable is
|
|
239
|
+
/* check if variable is a background icon, if so replace it directly by the SVG */
|
|
240
240
|
if (match[0].indexOf('../../images/backgrounds') >= 0) {
|
|
241
241
|
|
|
242
242
|
const iconregex = /(\$[\w-]+)\s*:\s*"\.\.\/\.\.\/images\/backgrounds\/([\w./-]+)" !default;/g;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.10.
|
|
1
|
+
/*! UIkit 3.10.2-dev.3a696ee97 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -726,7 +726,7 @@ a.uk-link-reset,
|
|
|
726
726
|
/* Vertical
|
|
727
727
|
========================================================================== */
|
|
728
728
|
.uk-divider-vertical {
|
|
729
|
-
width:
|
|
729
|
+
width: max-content;
|
|
730
730
|
height: 100px;
|
|
731
731
|
margin-right: auto;
|
|
732
732
|
margin-left: auto;
|
|
@@ -7142,7 +7142,8 @@ td.uk-text-break {
|
|
|
7142
7142
|
* is absolute positioned or if the container has a height
|
|
7143
7143
|
*/
|
|
7144
7144
|
/* 1 */
|
|
7145
|
-
[uk-cover]
|
|
7145
|
+
[uk-cover],
|
|
7146
|
+
[data-uk-cover] {
|
|
7146
7147
|
/* 2 */
|
|
7147
7148
|
max-width: none;
|
|
7148
7149
|
/* 3 */
|
|
@@ -7153,7 +7154,8 @@ td.uk-text-break {
|
|
|
7153
7154
|
--uk-position-translate-y: -50%;
|
|
7154
7155
|
transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
|
|
7155
7156
|
}
|
|
7156
|
-
iframe
|
|
7157
|
+
iframe[uk-cover],
|
|
7158
|
+
iframe[data-uk-cover] {
|
|
7157
7159
|
pointer-events: none;
|
|
7158
7160
|
}
|
|
7159
7161
|
/* Container
|
|
@@ -7616,7 +7618,8 @@ iframe.uk-cover {
|
|
|
7616
7618
|
/*
|
|
7617
7619
|
* Fix initial iframe width. Without the viewport is expanded on iOS devices
|
|
7618
7620
|
*/
|
|
7619
|
-
[uk-responsive]
|
|
7621
|
+
[uk-responsive],
|
|
7622
|
+
[data-uk-responsive] {
|
|
7620
7623
|
max-width: 100%;
|
|
7621
7624
|
}
|
|
7622
7625
|
/* Border
|