uikit 3.25.17-dev.3d4b967 → 3.25.17-dev.43d6808

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.
Files changed (49) hide show
  1. package/build/build.js +6 -7
  2. package/build/icons.js +1 -2
  3. package/build/release.js +2 -2
  4. package/build/scope.js +2 -3
  5. package/build/scss.js +1 -2
  6. package/build/util.js +12 -10
  7. package/dist/css/uikit-core-rtl.css +1 -1
  8. package/dist/css/uikit-core-rtl.min.css +1 -1
  9. package/dist/css/uikit-core.css +1 -1
  10. package/dist/css/uikit-core.min.css +1 -1
  11. package/dist/css/uikit-rtl.css +1 -1
  12. package/dist/css/uikit-rtl.min.css +1 -1
  13. package/dist/css/uikit.css +1 -1
  14. package/dist/css/uikit.min.css +1 -1
  15. package/dist/js/components/countdown.js +1 -1
  16. package/dist/js/components/countdown.min.js +1 -1
  17. package/dist/js/components/filter.js +2 -7
  18. package/dist/js/components/filter.min.js +1 -1
  19. package/dist/js/components/lightbox-panel.js +1 -1
  20. package/dist/js/components/lightbox-panel.min.js +1 -1
  21. package/dist/js/components/lightbox.js +1 -1
  22. package/dist/js/components/lightbox.min.js +1 -1
  23. package/dist/js/components/notification.js +1 -1
  24. package/dist/js/components/notification.min.js +1 -1
  25. package/dist/js/components/parallax.js +1 -1
  26. package/dist/js/components/parallax.min.js +1 -1
  27. package/dist/js/components/slider-parallax.js +1 -1
  28. package/dist/js/components/slider-parallax.min.js +1 -1
  29. package/dist/js/components/slider.js +1 -1
  30. package/dist/js/components/slider.min.js +1 -1
  31. package/dist/js/components/slideshow-parallax.js +1 -1
  32. package/dist/js/components/slideshow-parallax.min.js +1 -1
  33. package/dist/js/components/slideshow.js +1 -1
  34. package/dist/js/components/slideshow.min.js +1 -1
  35. package/dist/js/components/sortable.js +2 -7
  36. package/dist/js/components/sortable.min.js +1 -1
  37. package/dist/js/components/tooltip.js +1 -1
  38. package/dist/js/components/tooltip.min.js +1 -1
  39. package/dist/js/components/upload.js +1 -1
  40. package/dist/js/components/upload.min.js +1 -1
  41. package/dist/js/uikit-core.js +2 -2
  42. package/dist/js/uikit-core.min.js +1 -1
  43. package/dist/js/uikit-icons.js +1 -1
  44. package/dist/js/uikit-icons.min.js +1 -1
  45. package/dist/js/uikit.js +3 -8
  46. package/dist/js/uikit.min.js +1 -1
  47. package/package.json +4 -4
  48. package/pnpm-workspace.yaml +2 -0
  49. package/src/js/mixin/internal/animate-slide.js +1 -11
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 = await glob('src/js/components/!(index).js');
73
+ const components = {};
75
74
 
76
- return components.reduce((components, file) => {
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
- return components;
89
- }, {});
88
+ return components;
90
89
  }
91
90
 
92
91
  async function getTestFiles() {
93
- const files = await glob('tests/!(index).html');
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
@@ -1,5 +1,4 @@
1
- import { glob } from 'glob';
2
- import { args, compile, icons } from './util.js';
1
+ import { args, compile, glob, icons } from './util.js';
3
2
 
4
3
  if (args.h || args.help) {
5
4
  console.log(`
package/build/release.js CHANGED
@@ -1,4 +1,4 @@
1
- import archiver from 'archiver';
1
+ import { ZipArchive } from 'archiver';
2
2
  import { $ } from 'execa';
3
3
  import inquirer from 'inquirer';
4
4
  import fs from 'node:fs';
@@ -62,7 +62,7 @@ function raiseVersion(version) {
62
62
 
63
63
  async function createPackage(version) {
64
64
  const dest = `dist/uikit-${version}.zip`;
65
- const archive = archiver('zip');
65
+ const archive = new ZipArchive({ zlib: { level: 9 } });
66
66
 
67
67
  const output = fs.createWriteStream(dest);
68
68
  const closed = new Promise((resolve, reject) => {
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/**/!(*.min).css');
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
@@ -1,7 +1,6 @@
1
- import { glob } from 'glob';
2
1
  import fs from 'node:fs/promises';
3
2
  import path from 'node:path';
4
- import { read, write } from './util.js';
3
+ import { glob, read, write } from './util.js';
5
4
 
6
5
  const coreMixins = {};
7
6
  const themeMixins = {};
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 { parseArgs, styleText } from 'node:util';
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 { positionals, values } = parseArgs({
17
- args: process.argv.slice(2),
18
- allowPositionals: true,
19
- strict: false,
20
- });
17
+ const argv = minimist(process.argv.slice(2));
21
18
 
22
- export const args = positionals.reduce((args, arg) => {
19
+ argv._.forEach((arg) => {
23
20
  const tokens = arg.split('=');
24
- args[tokens[0]] = tokens[1] || true;
25
- return args;
26
- }, values);
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.17-dev.3d4b967 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
1
+ /*! UIkit 3.25.17-dev.43d6808 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */