uikit 3.9.3-dev.5bb6fc46c → 3.9.4
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 +1 -2
- package/CHANGELOG.md +12 -0
- package/build/build.js +4 -1
- package/build/util.js +23 -12
- package/dist/css/uikit-core-rtl.css +5 -2
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +5 -2
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +5 -2
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +5 -2
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -3
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -3
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -3
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -3
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -3
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -3
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -3
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -3
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -3
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -3
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -3
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -3
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -3
- package/dist/js/uikit-core.js +5 -4
- package/dist/js/uikit-core.min.js +1 -3
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -3
- package/dist/js/uikit.js +5 -4
- package/dist/js/uikit.min.js +1 -3
- package/package.json +8 -8
- package/src/js/core/sticky.js +3 -2
- package/src/less/components/utility.less +3 -1
- package/src/scss/components/utility.scss +2 -0
- package/src/scss/mixins-theme.scss +1 -1
- package/src/scss/mixins.scss +1 -1
- package/tests/comment.html +1 -1
package/.eslintrc.json
CHANGED
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,17 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 3.9.4 (November 25, 2021)
|
|
4
|
+
|
|
5
|
+
### Fixed
|
|
6
|
+
|
|
7
|
+
- Fix Sticky position when bottom option is used
|
|
8
|
+
|
|
9
|
+
## 3.9.3 (November 18, 2021)
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fix logo image alignment if logo line-height is larger than the image
|
|
14
|
+
|
|
3
15
|
## 3.9.2 (November 11, 2021)
|
|
4
16
|
|
|
5
17
|
### Fixed
|
package/build/build.js
CHANGED
|
@@ -4,6 +4,9 @@ import {args, compile, glob, icons} from './util.js';
|
|
|
4
4
|
|
|
5
5
|
const bundles = getBundleTasks();
|
|
6
6
|
const components = await getComponentTasks();
|
|
7
|
+
const buildAll = args.all || Object.keys(args).filter(name =>
|
|
8
|
+
['d', 'debug', 'nominify', 'watch'].includes(name)
|
|
9
|
+
).length <= 1;
|
|
7
10
|
|
|
8
11
|
if (args.h || args.help) {
|
|
9
12
|
console.log(`
|
|
@@ -28,7 +31,7 @@ if (args.h || args.help) {
|
|
|
28
31
|
|
|
29
32
|
let tasks;
|
|
30
33
|
const allTasks = {...bundles, ...components};
|
|
31
|
-
if (
|
|
34
|
+
if (buildAll) {
|
|
32
35
|
tasks = allTasks;
|
|
33
36
|
} else if (args.components) {
|
|
34
37
|
tasks = components;
|
package/build/util.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import less from 'less';
|
|
2
2
|
import fs from 'fs-extra';
|
|
3
|
+
import pLimit from 'p-limit';
|
|
3
4
|
import postcss from 'postcss';
|
|
4
5
|
import globImport from 'glob';
|
|
5
6
|
import {optimize} from 'svgo';
|
|
@@ -10,11 +11,13 @@ import html from 'rollup-plugin-html';
|
|
|
10
11
|
import buble from '@rollup/plugin-buble';
|
|
11
12
|
import alias from '@rollup/plugin-alias';
|
|
12
13
|
import modify from 'rollup-plugin-modify';
|
|
13
|
-
import {uglify} from 'rollup-plugin-uglify';
|
|
14
14
|
import replace from '@rollup/plugin-replace';
|
|
15
15
|
import {basename, dirname, join} from 'path';
|
|
16
16
|
import {exec as execImport} from 'child_process';
|
|
17
17
|
import {rollup, watch as rollupWatch} from 'rollup';
|
|
18
|
+
import {minify as rollupMinify} from 'rollup-plugin-esbuild';
|
|
19
|
+
|
|
20
|
+
const limit = pLimit(Number(process.env.cpus || 2));
|
|
18
21
|
|
|
19
22
|
export const exec = promisify(execImport);
|
|
20
23
|
export const glob = promisify(globImport);
|
|
@@ -58,12 +61,12 @@ export async function logFile(file) {
|
|
|
58
61
|
|
|
59
62
|
export async function minify(file) {
|
|
60
63
|
|
|
61
|
-
const {styles} = await new CleanCSS({
|
|
64
|
+
const {styles} = await limit(() => new CleanCSS({
|
|
62
65
|
advanced: false,
|
|
63
66
|
keepSpecialComments: 0,
|
|
64
67
|
rebase: false,
|
|
65
68
|
returnPromise: true
|
|
66
|
-
}).minify([file]);
|
|
69
|
+
}).minify([file]));
|
|
67
70
|
|
|
68
71
|
await write(`${join(dirname(file), basename(file, '.css'))}.min.css`, styles);
|
|
69
72
|
|
|
@@ -71,8 +74,8 @@ export async function minify(file) {
|
|
|
71
74
|
|
|
72
75
|
}
|
|
73
76
|
|
|
74
|
-
export
|
|
75
|
-
return postcss()
|
|
77
|
+
export function renderLess(data, options) {
|
|
78
|
+
return limit(async () => postcss()
|
|
76
79
|
.use({
|
|
77
80
|
postcssPlugin: 'calc',
|
|
78
81
|
Once(root) {
|
|
@@ -89,7 +92,8 @@ export async function renderLess(data, options) {
|
|
|
89
92
|
}
|
|
90
93
|
})
|
|
91
94
|
.process((await less.render(data, options)).css)
|
|
92
|
-
.css
|
|
95
|
+
.css
|
|
96
|
+
);
|
|
93
97
|
}
|
|
94
98
|
|
|
95
99
|
export async function compile(file, dest, {external, globals, name, aliases, replaces} = {}) {
|
|
@@ -149,7 +153,7 @@ export async function compile(file, dest, {external, globals, name, aliases, rep
|
|
|
149
153
|
output.push({
|
|
150
154
|
...outputOptions,
|
|
151
155
|
file: `${dest}.min.js`,
|
|
152
|
-
plugins: [minify ?
|
|
156
|
+
plugins: [minify ? rollupMinify() : undefined]
|
|
153
157
|
});
|
|
154
158
|
}
|
|
155
159
|
|
|
@@ -157,12 +161,15 @@ export async function compile(file, dest, {external, globals, name, aliases, rep
|
|
|
157
161
|
const bundle = await rollup(inputOptions);
|
|
158
162
|
|
|
159
163
|
for (const options of output) {
|
|
160
|
-
await bundle.write(options);
|
|
164
|
+
await limit(() => bundle.write(options));
|
|
161
165
|
logFile(options.file);
|
|
162
166
|
}
|
|
163
167
|
|
|
164
168
|
await bundle.close();
|
|
165
169
|
} else {
|
|
170
|
+
|
|
171
|
+
console.log('UIkit is watching the files...');
|
|
172
|
+
|
|
166
173
|
const watcher = rollupWatch({
|
|
167
174
|
...inputOptions,
|
|
168
175
|
output
|
|
@@ -210,9 +217,13 @@ export async function icons(src) {
|
|
|
210
217
|
};
|
|
211
218
|
|
|
212
219
|
const files = await glob(src, {nosort: true});
|
|
213
|
-
const icons = await Promise.all(
|
|
214
|
-
(
|
|
215
|
-
|
|
220
|
+
const icons = await Promise.all(
|
|
221
|
+
files.map(file =>
|
|
222
|
+
limit(async () =>
|
|
223
|
+
(await optimize(await read(file), options)).data
|
|
224
|
+
)
|
|
225
|
+
)
|
|
226
|
+
);
|
|
216
227
|
|
|
217
228
|
return JSON.stringify(files.reduce((result, file, i) => {
|
|
218
229
|
result[basename(file, '.svg')] = icons[i];
|
|
@@ -222,7 +233,7 @@ export async function icons(src) {
|
|
|
222
233
|
}
|
|
223
234
|
|
|
224
235
|
export async function run(cmd, options) {
|
|
225
|
-
const {stdout, stderr} = await exec(cmd, options);
|
|
236
|
+
const {stdout, stderr} = await limit(() => exec(cmd, options));
|
|
226
237
|
|
|
227
238
|
stdout && console.log(stdout.trim());
|
|
228
239
|
stderr && console.log(stderr.trim());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.4 | https://www.getuikit.com | (c) 2014 - 2021 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|
|
@@ -7730,6 +7730,9 @@ iframe.uk-cover {
|
|
|
7730
7730
|
/* 1 */
|
|
7731
7731
|
text-decoration: none;
|
|
7732
7732
|
}
|
|
7733
|
+
.uk-logo > :where(img, svg, video) {
|
|
7734
|
+
display: block;
|
|
7735
|
+
}
|
|
7733
7736
|
.uk-logo-inverse {
|
|
7734
7737
|
display: none;
|
|
7735
7738
|
}
|
|
@@ -11567,7 +11570,7 @@ iframe.uk-cover {
|
|
|
11567
11570
|
.uk-card-secondary > :not([class*='uk-card-media']) .uk-logo-inverse,
|
|
11568
11571
|
.uk-overlay-primary .uk-logo-inverse,
|
|
11569
11572
|
.uk-offcanvas-bar .uk-logo-inverse {
|
|
11570
|
-
display:
|
|
11573
|
+
display: block;
|
|
11571
11574
|
}
|
|
11572
11575
|
/* ========================================================================
|
|
11573
11576
|
Component: Print
|