uikit 3.9.3-dev.770c92c8a → 3.9.5-dev.1c5ab040d
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 +18 -0
- package/build/build.js +4 -1
- package/build/util.js +24 -13
- 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 -2
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -2
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -2
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -2
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -2
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -2
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -2
- package/dist/js/components/slider.js +1 -1
- package/dist/js/components/slider.min.js +1 -2
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -2
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -2
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -2
- package/dist/js/components/tooltip.js +1 -1
- package/dist/js/components/tooltip.min.js +1 -2
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -2
- package/dist/js/uikit-core.js +56 -46
- package/dist/js/uikit-core.min.js +1 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -2
- package/dist/js/uikit.js +56 -46
- package/dist/js/uikit.min.js +1 -2
- package/package.json +6 -3
- package/src/js/core/img.js +53 -38
- 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/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,23 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## WIP
|
|
4
|
+
|
|
5
|
+
### Added
|
|
6
|
+
|
|
7
|
+
- Add support for <picture> element in Img component
|
|
8
|
+
|
|
9
|
+
## 3.9.4 (November 25, 2021)
|
|
10
|
+
|
|
11
|
+
### Fixed
|
|
12
|
+
|
|
13
|
+
- Fix Sticky position when bottom option is used
|
|
14
|
+
|
|
15
|
+
## 3.9.3 (November 18, 2021)
|
|
16
|
+
|
|
17
|
+
### Fixed
|
|
18
|
+
|
|
19
|
+
- Fix logo image alignment if logo line-height is larger than the image
|
|
20
|
+
|
|
3
21
|
## 3.9.2 (November 11, 2021)
|
|
4
22
|
|
|
5
23
|
### 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 {terser} from 'rollup-plugin-terser';
|
|
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,7 +161,7 @@ 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
|
|
|
@@ -171,7 +175,7 @@ export async function compile(file, dest, {external, globals, name, aliases, rep
|
|
|
171
175
|
output
|
|
172
176
|
});
|
|
173
177
|
|
|
174
|
-
watcher.on('event', ({code, result, output}) => {
|
|
178
|
+
watcher.on('event', ({code, result, output, error}) => {
|
|
175
179
|
if (result) {
|
|
176
180
|
result.close();
|
|
177
181
|
|
|
@@ -179,6 +183,9 @@ export async function compile(file, dest, {external, globals, name, aliases, rep
|
|
|
179
183
|
if (code === 'BUNDLE_END' && output) {
|
|
180
184
|
output.map(logFile);
|
|
181
185
|
}
|
|
186
|
+
if (error) {
|
|
187
|
+
console.error(error);
|
|
188
|
+
}
|
|
182
189
|
});
|
|
183
190
|
|
|
184
191
|
watcher.close();
|
|
@@ -213,9 +220,13 @@ export async function icons(src) {
|
|
|
213
220
|
};
|
|
214
221
|
|
|
215
222
|
const files = await glob(src, {nosort: true});
|
|
216
|
-
const icons = await Promise.all(
|
|
217
|
-
(
|
|
218
|
-
|
|
223
|
+
const icons = await Promise.all(
|
|
224
|
+
files.map(file =>
|
|
225
|
+
limit(async () =>
|
|
226
|
+
(await optimize(await read(file), options)).data
|
|
227
|
+
)
|
|
228
|
+
)
|
|
229
|
+
);
|
|
219
230
|
|
|
220
231
|
return JSON.stringify(files.reduce((result, file, i) => {
|
|
221
232
|
result[basename(file, '.svg')] = icons[i];
|
|
@@ -225,7 +236,7 @@ export async function icons(src) {
|
|
|
225
236
|
}
|
|
226
237
|
|
|
227
238
|
export async function run(cmd, options) {
|
|
228
|
-
const {stdout, stderr} = await exec(cmd, options);
|
|
239
|
+
const {stdout, stderr} = await limit(() => exec(cmd, options));
|
|
229
240
|
|
|
230
241
|
stdout && console.log(stdout.trim());
|
|
231
242
|
stderr && console.log(stderr.trim());
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.9.
|
|
1
|
+
/*! UIkit 3.9.5-dev.1c5ab040d | 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
|