uikit 3.25.17-dev.a3cda79 → 3.25.18-dev.2b210cb
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 +1 -1
- package/build/build.js +6 -7
- package/build/icons.js +1 -2
- package/build/scope.js +2 -3
- package/build/scss.js +1 -2
- package/build/util.js +12 -10
- package/dist/css/uikit-core-rtl.css +1 -1
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +1 -1
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +1 -1
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +1 -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 +2 -7
- 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 +1 -1
- 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 +1 -1
- 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 +2 -7
- 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 +2 -2
- 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 +3 -8
- package/dist/js/uikit.min.js +1 -1
- package/package.json +4 -4
- package/pnpm-workspace.yaml +2 -0
- package/src/js/mixin/internal/animate-slide.js +1 -11
package/CHANGELOG.md
CHANGED
package/build/build.js
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import camelize from 'camelcase';
|
|
2
|
-
import { glob } from 'glob';
|
|
3
2
|
import path from 'node:path';
|
|
4
3
|
import pLimit from 'p-limit';
|
|
5
|
-
import { args, compile, icons } from './util.js';
|
|
4
|
+
import { args, compile, glob, icons } from './util.js';
|
|
6
5
|
|
|
7
6
|
const limit = pLimit(Number(process.env.cpus || 2));
|
|
8
7
|
|
|
@@ -71,9 +70,9 @@ function getBundleTasks() {
|
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
async function getComponentTasks() {
|
|
74
|
-
const components =
|
|
73
|
+
const components = {};
|
|
75
74
|
|
|
76
|
-
|
|
75
|
+
for (const file of await glob('src/js/components/*.js', ['**/index.js'])) {
|
|
77
76
|
const name = path.basename(file, '.js');
|
|
78
77
|
|
|
79
78
|
components[name] = () =>
|
|
@@ -84,12 +83,12 @@ async function getComponentTasks() {
|
|
|
84
83
|
aliases: { component: path.resolve('src/js/components', name) },
|
|
85
84
|
virtualModules: { 'virtual:name': `'${camelize(name)}'` },
|
|
86
85
|
});
|
|
86
|
+
}
|
|
87
87
|
|
|
88
|
-
|
|
89
|
-
}, {});
|
|
88
|
+
return components;
|
|
90
89
|
}
|
|
91
90
|
|
|
92
91
|
async function getTestFiles() {
|
|
93
|
-
const files = await glob('tests
|
|
92
|
+
const files = await glob('tests/*.html', ['**/index.html']);
|
|
94
93
|
return JSON.stringify(files.sort().map((file) => path.basename(file, '.html')));
|
|
95
94
|
}
|
package/build/icons.js
CHANGED
package/build/scope.js
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
import { glob } from 'glob';
|
|
2
1
|
import stripCssComments from 'strip-css-comments';
|
|
3
|
-
import { args, minify, read, renderLess, replaceInFile } from './util.js';
|
|
2
|
+
import { args, glob, minify, read, renderLess, replaceInFile } from './util.js';
|
|
4
3
|
|
|
5
4
|
if (args.h || args.help) {
|
|
6
5
|
console.log(`
|
|
@@ -20,7 +19,7 @@ if (args.h || args.help) {
|
|
|
20
19
|
const currentScopeRe = /\/\* scoped: ([^*]*) \*\/\n/;
|
|
21
20
|
const currentScopeLegacyRe = /\.(uk-scope)/;
|
|
22
21
|
|
|
23
|
-
const files = await glob('dist
|
|
22
|
+
const files = await glob('dist/**/*.css', ['**/*.min.css']);
|
|
24
23
|
const prevScope = await getScope(files);
|
|
25
24
|
|
|
26
25
|
if (args.cleanup && prevScope) {
|
package/build/scss.js
CHANGED
package/build/util.js
CHANGED
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import alias from '@rollup/plugin-alias';
|
|
2
2
|
import CleanCSS from 'clean-css';
|
|
3
3
|
import less from 'less';
|
|
4
|
+
import minimist from 'minimist';
|
|
4
5
|
import fs from 'node:fs/promises';
|
|
5
6
|
import path from 'node:path';
|
|
6
|
-
import {
|
|
7
|
+
import { styleText } from 'node:util';
|
|
7
8
|
import pLimit from 'p-limit';
|
|
8
9
|
import { rollup, watch as rollupWatch } from 'rollup';
|
|
9
10
|
import { default as esbuild, minify as esbuildMinify } from 'rollup-plugin-esbuild';
|
|
@@ -13,17 +14,14 @@ const limit = pLimit(Number(process.env.cpus || 2));
|
|
|
13
14
|
|
|
14
15
|
export const banner = `/*! UIkit ${await getVersion()} | https://www.getuikit.com | (c) 2014 - ${new Date().getFullYear()} YOOtheme | MIT License */\n`;
|
|
15
16
|
|
|
16
|
-
const
|
|
17
|
-
args: process.argv.slice(2),
|
|
18
|
-
allowPositionals: true,
|
|
19
|
-
strict: false,
|
|
20
|
-
});
|
|
17
|
+
const argv = minimist(process.argv.slice(2));
|
|
21
18
|
|
|
22
|
-
|
|
19
|
+
argv._.forEach((arg) => {
|
|
23
20
|
const tokens = arg.split('=');
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
21
|
+
argv[tokens[0]] = tokens[1] || true;
|
|
22
|
+
});
|
|
23
|
+
|
|
24
|
+
export const args = argv;
|
|
27
25
|
|
|
28
26
|
export function read(file) {
|
|
29
27
|
return fs.readFile(file, 'utf8');
|
|
@@ -38,6 +36,10 @@ export async function write(dest, data) {
|
|
|
38
36
|
return dest;
|
|
39
37
|
}
|
|
40
38
|
|
|
39
|
+
export async function glob(pattern, exclude = []) {
|
|
40
|
+
return Array.fromAsync(fs.glob(pattern, { exclude }));
|
|
41
|
+
}
|
|
42
|
+
|
|
41
43
|
export async function logFile(file) {
|
|
42
44
|
const { size } = await fs.stat(file);
|
|
43
45
|
console.log(`${styleText(['cyan', 'bold'], file)} ${formatSize(size)}`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/*! UIkit 3.25.
|
|
1
|
+
/*! UIkit 3.25.18-dev.2b210cb | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
|
|
2
2
|
/* ========================================================================
|
|
3
3
|
Component: Base
|
|
4
4
|
========================================================================== */
|