uikit 3.13.5 → 3.13.6-dev.aac70c00c
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 +13 -0
- package/dist/css/uikit-core-rtl.css +7 -12
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +7 -12
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +7 -12
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +7 -12
- 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 +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +2 -2
- 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 +2 -2
- 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 +53 -19
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +3 -2
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +175 -199
- 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 +177 -200
- package/dist/js/uikit.min.js +1 -1
- package/package.json +7 -7
- package/src/js/components/slider-parallax.js +1 -1
- package/src/js/components/upload.js +2 -1
- package/src/js/core/height-viewport.js +4 -2
- package/src/js/core/img.js +0 -57
- package/src/js/mixin/position.js +1 -1
- package/src/less/components/drop.less +1 -1
- package/src/less/components/dropdown.less +1 -1
- package/src/less/components/nav.less +1 -5
- package/src/less/components/navbar.less +2 -2
- package/src/less/components/tooltip.less +1 -1
- package/src/scss/components/drop.scss +1 -1
- package/src/scss/components/dropdown.scss +1 -1
- package/src/scss/components/nav.scss +1 -5
- package/src/scss/components/navbar.scss +2 -2
- package/src/scss/components/tooltip.scss +1 -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.13.
|
|
5
|
+
"version": "3.13.6-dev.aac70c00c",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -38,22 +38,22 @@
|
|
|
38
38
|
"@babel/preset-env": "^7.16.4",
|
|
39
39
|
"@rollup/plugin-alias": "^3.1.9",
|
|
40
40
|
"@rollup/plugin-babel": "^5.3.1",
|
|
41
|
-
"@rollup/plugin-replace": "^
|
|
41
|
+
"@rollup/plugin-replace": "^4.0.0",
|
|
42
42
|
"archiver": "^5.3.0",
|
|
43
43
|
"camelcase": "^6.3.0",
|
|
44
44
|
"clean-css": "^5.2.4",
|
|
45
45
|
"dateformat": "^5.0.3",
|
|
46
|
-
"esbuild": "^0.14.
|
|
47
|
-
"eslint": "^8.
|
|
46
|
+
"esbuild": "^0.14.28",
|
|
47
|
+
"eslint": "^8.12.0",
|
|
48
48
|
"eslint-config-prettier": "^8.5.0",
|
|
49
49
|
"fs-extra": "^10.0.1",
|
|
50
50
|
"glob": "^7.2.0",
|
|
51
|
-
"inquirer": "^8.2.
|
|
51
|
+
"inquirer": "^8.2.2",
|
|
52
52
|
"less": "^4.1.2",
|
|
53
|
-
"minimist": "^1.2.
|
|
53
|
+
"minimist": "^1.2.6",
|
|
54
54
|
"number-precision": "^1.5.2",
|
|
55
55
|
"p-limit": "^4.0.0",
|
|
56
|
-
"prettier": "^2.6.
|
|
56
|
+
"prettier": "^2.6.1",
|
|
57
57
|
"rollup": "^2.70.1",
|
|
58
58
|
"rollup-plugin-esbuild": "^4.8.2",
|
|
59
59
|
"rollup-plugin-html": "^0.2.1",
|
|
@@ -92,6 +92,8 @@ export default {
|
|
|
92
92
|
|
|
93
93
|
methods: {
|
|
94
94
|
async upload(files) {
|
|
95
|
+
files = toArray(files);
|
|
96
|
+
|
|
95
97
|
if (!files.length) {
|
|
96
98
|
return;
|
|
97
99
|
}
|
|
@@ -178,7 +180,6 @@ function match(pattern, path) {
|
|
|
178
180
|
}
|
|
179
181
|
|
|
180
182
|
function chunk(files, size) {
|
|
181
|
-
files = toArray(files);
|
|
182
183
|
const chunks = [];
|
|
183
184
|
for (let i = 0; i < files.length; i += size) {
|
|
184
185
|
chunks.push(files.slice(i, i + size));
|
|
@@ -46,11 +46,13 @@ export default {
|
|
|
46
46
|
const box = boxModelAdjust(this.$el, 'height', 'content-box');
|
|
47
47
|
|
|
48
48
|
if (this.expand) {
|
|
49
|
-
minHeight =
|
|
49
|
+
minHeight = Math.max(
|
|
50
50
|
height(window) -
|
|
51
51
|
(dimensions(document.documentElement).height -
|
|
52
52
|
dimensions(this.$el).height) -
|
|
53
|
-
box
|
|
53
|
+
box,
|
|
54
|
+
0
|
|
55
|
+
);
|
|
54
56
|
} else {
|
|
55
57
|
// on mobile devices (iOS and Android) window.innerHeight !== 100vh
|
|
56
58
|
minHeight = 'calc(100vh';
|
package/src/js/core/img.js
CHANGED
|
@@ -19,7 +19,6 @@ import {
|
|
|
19
19
|
queryAll,
|
|
20
20
|
removeAttr,
|
|
21
21
|
startsWith,
|
|
22
|
-
toFloat,
|
|
23
22
|
toPx,
|
|
24
23
|
trigger,
|
|
25
24
|
} from 'uikit-util';
|
|
@@ -89,25 +88,6 @@ export default {
|
|
|
89
88
|
}
|
|
90
89
|
},
|
|
91
90
|
|
|
92
|
-
update: {
|
|
93
|
-
write(store) {
|
|
94
|
-
if (!this.observer || isImg(this.$el)) {
|
|
95
|
-
return false;
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
const srcset = data(this.$el, 'data-srcset');
|
|
99
|
-
if (srcset && window.devicePixelRatio !== 1) {
|
|
100
|
-
const bgSize = css(this.$el, 'backgroundSize');
|
|
101
|
-
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) === store.bgSize) {
|
|
102
|
-
store.bgSize = getSourceSize(srcset, data(this.$el, 'sizes'));
|
|
103
|
-
css(this.$el, 'backgroundSize', `${store.bgSize}px`);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
},
|
|
107
|
-
|
|
108
|
-
events: ['resize'],
|
|
109
|
-
},
|
|
110
|
-
|
|
111
91
|
methods: {
|
|
112
92
|
load() {
|
|
113
93
|
if (this._data.image) {
|
|
@@ -197,43 +177,6 @@ function parseSources(sources) {
|
|
|
197
177
|
return sources.filter((source) => !isEmpty(source));
|
|
198
178
|
}
|
|
199
179
|
|
|
200
|
-
const sizesRe = /\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;
|
|
201
|
-
function sizesToPixel(sizes) {
|
|
202
|
-
let matches;
|
|
203
|
-
|
|
204
|
-
sizesRe.lastIndex = 0;
|
|
205
|
-
|
|
206
|
-
while ((matches = sizesRe.exec(sizes))) {
|
|
207
|
-
if (!matches[1] || window.matchMedia(matches[1]).matches) {
|
|
208
|
-
matches = evaluateSize(matches[2]);
|
|
209
|
-
break;
|
|
210
|
-
}
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
return matches || '100vw';
|
|
214
|
-
}
|
|
215
|
-
|
|
216
|
-
const sizeRe = /\d+(?:\w+|%)/g;
|
|
217
|
-
const additionRe = /[+-]?(\d+)/g;
|
|
218
|
-
function evaluateSize(size) {
|
|
219
|
-
return startsWith(size, 'calc')
|
|
220
|
-
? size
|
|
221
|
-
.slice(5, -1)
|
|
222
|
-
.replace(sizeRe, (size) => toPx(size))
|
|
223
|
-
.replace(/ /g, '')
|
|
224
|
-
.match(additionRe)
|
|
225
|
-
.reduce((a, b) => a + +b, 0)
|
|
226
|
-
: size;
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
const srcSetRe = /\s+\d+w\s*(?:,|$)/g;
|
|
230
|
-
function getSourceSize(srcset, sizes) {
|
|
231
|
-
const srcSize = toPx(sizesToPixel(sizes));
|
|
232
|
-
const descriptors = (srcset.match(srcSetRe) || []).map(toFloat).sort((a, b) => a - b);
|
|
233
|
-
|
|
234
|
-
return descriptors.filter((size) => size >= srcSize)[0] || descriptors.pop() || '';
|
|
235
|
-
}
|
|
236
|
-
|
|
237
180
|
function ensureSrcAttribute(el) {
|
|
238
181
|
if (isImg(el) && !hasAttr(el, 'src')) {
|
|
239
182
|
attr(el, 'src', 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
|
package/src/js/mixin/position.js
CHANGED
|
@@ -43,7 +43,7 @@ export default {
|
|
|
43
43
|
getOffset(target)[axis === 'x' ? 'right' : 'bottom']
|
|
44
44
|
: 0;
|
|
45
45
|
}
|
|
46
|
-
offset = toPx(offset) + toPx(getCssVar('position-
|
|
46
|
+
offset = toPx(offset) + toPx(getCssVar('position-offset', element));
|
|
47
47
|
|
|
48
48
|
positionAt(element, target, {
|
|
49
49
|
boundary,
|
|
@@ -94,7 +94,6 @@
|
|
|
94
94
|
* 1. Center content vertically, e.g. an icon
|
|
95
95
|
* 2. Imitate white space gap when using flexbox
|
|
96
96
|
* 3. Reset link
|
|
97
|
-
* 4. Space is allocated solely based on content dimensions: 0 0 auto
|
|
98
97
|
*/
|
|
99
98
|
|
|
100
99
|
.uk-nav li > a {
|
|
@@ -107,9 +106,6 @@
|
|
|
107
106
|
text-decoration: none;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
/* 4 */
|
|
111
|
-
.uk-nav li > a > * { flex: none; }
|
|
112
|
-
|
|
113
109
|
/*
|
|
114
110
|
* Items
|
|
115
111
|
* Must target `a` elements to exclude other elements (e.g. lists)
|
|
@@ -177,7 +173,7 @@ ul.uk-nav-sub {
|
|
|
177
173
|
/* Divider
|
|
178
174
|
========================================================================== */
|
|
179
175
|
|
|
180
|
-
.uk-nav
|
|
176
|
+
.uk-nav .uk-nav-divider {
|
|
181
177
|
margin: @nav-divider-margin-vertical @nav-divider-margin-horizontal;
|
|
182
178
|
.hook-nav-divider();
|
|
183
179
|
}
|
|
@@ -349,7 +349,7 @@
|
|
|
349
349
|
/* 2 */
|
|
350
350
|
position: absolute;
|
|
351
351
|
z-index: @navbar-dropdown-z-index;
|
|
352
|
-
--uk-position-
|
|
352
|
+
--uk-position-offset: @navbar-dropdown-margin;
|
|
353
353
|
/* 3 */
|
|
354
354
|
box-sizing: border-box;
|
|
355
355
|
width: @navbar-dropdown-width;
|
|
@@ -397,7 +397,7 @@
|
|
|
397
397
|
|
|
398
398
|
.uk-navbar-dropdown-dropbar {
|
|
399
399
|
/* 1 */
|
|
400
|
-
--uk-position-
|
|
400
|
+
--uk-position-offset: @navbar-dropdown-dropbar-margin-top;
|
|
401
401
|
/* 2 */
|
|
402
402
|
margin-bottom: @navbar-dropdown-dropbar-margin-bottom;
|
|
403
403
|
padding: @navbar-dropdown-dropbar-padding;
|
|
@@ -53,7 +53,7 @@ $dropdown-nav-sublist-item-hover-color: $global-color !default;
|
|
|
53
53
|
/* 2 */
|
|
54
54
|
position: absolute;
|
|
55
55
|
z-index: $dropdown-z-index;
|
|
56
|
-
--uk-position-
|
|
56
|
+
--uk-position-offset: #{$dropdown-margin};
|
|
57
57
|
/* 3 */
|
|
58
58
|
box-sizing: border-box;
|
|
59
59
|
min-width: $dropdown-min-width;
|
|
@@ -94,7 +94,6 @@ $internal-nav-parent-open-image: "data:image/svg+xml;charset=UTF-8,%3Csvg%20widt
|
|
|
94
94
|
* 1. Center content vertically, e.g. an icon
|
|
95
95
|
* 2. Imitate white space gap when using flexbox
|
|
96
96
|
* 3. Reset link
|
|
97
|
-
* 4. Space is allocated solely based on content dimensions: 0 0 auto
|
|
98
97
|
*/
|
|
99
98
|
|
|
100
99
|
.uk-nav li > a {
|
|
@@ -107,9 +106,6 @@ $internal-nav-parent-open-image: "data:image/svg+xml;charset=UTF-8,%3Csvg%20widt
|
|
|
107
106
|
text-decoration: none;
|
|
108
107
|
}
|
|
109
108
|
|
|
110
|
-
/* 4 */
|
|
111
|
-
.uk-nav li > a > * { flex: none; }
|
|
112
|
-
|
|
113
109
|
/*
|
|
114
110
|
* Items
|
|
115
111
|
* Must target `a` elements to exclude other elements (e.g. lists)
|
|
@@ -177,7 +173,7 @@ ul.uk-nav-sub {
|
|
|
177
173
|
/* Divider
|
|
178
174
|
========================================================================== */
|
|
179
175
|
|
|
180
|
-
.uk-nav
|
|
176
|
+
.uk-nav .uk-nav-divider {
|
|
181
177
|
margin: $nav-divider-margin-vertical $nav-divider-margin-horizontal;
|
|
182
178
|
@if(mixin-exists(hook-nav-divider)) {@include hook-nav-divider();}
|
|
183
179
|
}
|
|
@@ -349,7 +349,7 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
349
349
|
/* 2 */
|
|
350
350
|
position: absolute;
|
|
351
351
|
z-index: $navbar-dropdown-z-index;
|
|
352
|
-
--uk-position-
|
|
352
|
+
--uk-position-offset: #{$navbar-dropdown-margin};
|
|
353
353
|
/* 3 */
|
|
354
354
|
box-sizing: border-box;
|
|
355
355
|
width: $navbar-dropdown-width;
|
|
@@ -397,7 +397,7 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
397
397
|
|
|
398
398
|
.uk-navbar-dropdown-dropbar {
|
|
399
399
|
/* 1 */
|
|
400
|
-
--uk-position-
|
|
400
|
+
--uk-position-offset: #{$navbar-dropdown-dropbar-margin-top};
|
|
401
401
|
/* 2 */
|
|
402
402
|
margin-bottom: $navbar-dropdown-dropbar-margin-bottom;
|
|
403
403
|
padding: $navbar-dropdown-dropbar-padding;
|