uikit 3.20.10 → 3.20.11-dev.3a41e0fa6

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 (54) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/release.js +1 -1
  3. package/build/scope.js +4 -9
  4. package/dist/css/uikit-core-rtl.css +1 -1
  5. package/dist/css/uikit-core-rtl.min.css +1 -1
  6. package/dist/css/uikit-core.css +1 -1
  7. package/dist/css/uikit-core.min.css +1 -1
  8. package/dist/css/uikit-rtl.css +1 -1
  9. package/dist/css/uikit-rtl.min.css +1 -1
  10. package/dist/css/uikit.css +1 -1
  11. package/dist/css/uikit.min.css +1 -1
  12. package/dist/js/components/countdown.js +1 -1
  13. package/dist/js/components/countdown.min.js +1 -1
  14. package/dist/js/components/filter.js +2 -7
  15. package/dist/js/components/filter.min.js +1 -1
  16. package/dist/js/components/lightbox-panel.js +1 -1
  17. package/dist/js/components/lightbox-panel.min.js +1 -1
  18. package/dist/js/components/lightbox.js +1 -1
  19. package/dist/js/components/lightbox.min.js +1 -1
  20. package/dist/js/components/notification.js +1 -1
  21. package/dist/js/components/notification.min.js +1 -1
  22. package/dist/js/components/parallax.js +6 -6
  23. package/dist/js/components/parallax.min.js +1 -1
  24. package/dist/js/components/slider-parallax.js +6 -6
  25. package/dist/js/components/slider-parallax.min.js +1 -1
  26. package/dist/js/components/slider.js +9 -6
  27. package/dist/js/components/slider.min.js +1 -1
  28. package/dist/js/components/slideshow-parallax.js +6 -6
  29. package/dist/js/components/slideshow-parallax.min.js +1 -1
  30. package/dist/js/components/slideshow.js +9 -6
  31. package/dist/js/components/slideshow.min.js +1 -1
  32. package/dist/js/components/sortable.js +5 -8
  33. package/dist/js/components/sortable.min.js +1 -1
  34. package/dist/js/components/tooltip.js +1 -1
  35. package/dist/js/components/tooltip.min.js +1 -1
  36. package/dist/js/components/upload.js +1 -1
  37. package/dist/js/components/upload.min.js +1 -1
  38. package/dist/js/uikit-core.js +115 -111
  39. package/dist/js/uikit-core.min.js +1 -1
  40. package/dist/js/uikit-icons.js +1 -1
  41. package/dist/js/uikit-icons.min.js +1 -1
  42. package/dist/js/uikit.js +121 -122
  43. package/dist/js/uikit.min.js +1 -1
  44. package/package.json +4 -3
  45. package/src/js/api/observer.js +2 -2
  46. package/src/js/components/filter.js +1 -8
  47. package/src/js/components/sortable.js +7 -9
  48. package/src/js/core/icon.js +2 -1
  49. package/src/js/core/svg.js +7 -3
  50. package/src/js/mixin/media.js +1 -1
  51. package/src/js/mixin/parallax.js +2 -2
  52. package/src/js/mixin/slider-parallax.js +5 -0
  53. package/src/js/util/filter.js +3 -3
  54. package/src/js/util/selector.js +2 -2
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Fixed
6
+
7
+ - Fix regression in Sortable component
8
+
3
9
  ## 3.20.10 (May 13, 2024)
4
10
 
5
11
  ### Removed
package/build/release.js CHANGED
@@ -71,7 +71,7 @@ async function createPackage(version) {
71
71
  archive.pipe(fs.createWriteStream(dest));
72
72
 
73
73
  for (const file of await glob('dist/{js,css}/uikit?(-icons|-rtl)?(.min).{js,css}')) {
74
- archive.file(file, { name: file.substring(5) });
74
+ archive.file(file, { name: file.slice(5) });
75
75
  }
76
76
 
77
77
  await archive.finalize();
package/build/scope.js CHANGED
@@ -1,4 +1,5 @@
1
1
  import { glob } from 'glob';
2
+ import stripCssComments from 'strip-css-comments';
2
3
  import { args, minify, read, renderLess, replaceInFile, validClassName } from './util.js';
3
4
 
4
5
  if (args.h || args.help) {
@@ -62,7 +63,9 @@ function getNewScope() {
62
63
  async function scope(files, scope) {
63
64
  for (const file of files) {
64
65
  await replaceInFile(file, async (data) => {
65
- const output = await renderLess(`.${scope} {\n${stripComments(data)}\n}`);
66
+ const output = await renderLess(
67
+ `.${scope} {\n${stripCssComments(data, { preserve: false })}\n}`,
68
+ );
66
69
  return `/* scoped: ${scope} */\n${
67
70
  output.replace(
68
71
  new RegExp(
@@ -92,11 +95,3 @@ async function cleanup(files, scope) {
92
95
  );
93
96
  }
94
97
  }
95
-
96
- function stripComments(input) {
97
- return input
98
- .replace(/\/\*(.|\n)*?\*\//gm, '')
99
- .split('\n')
100
- .filter((line) => line.trim().substr(0, 2) !== '//')
101
- .join('\n');
102
- }
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.20.10 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
1
+ /*! UIkit 3.20.11-dev.3a41e0fa6 | https://www.getuikit.com | (c) 2014 - 2024 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */