uikit 3.24.1 → 3.24.2-dev.0c818599c

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 (45) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/build/build.js +3 -1
  3. package/build/icons.js +1 -1
  4. package/build/util.js +15 -13
  5. package/dist/css/uikit-core-rtl.css +1 -1
  6. package/dist/css/uikit-core-rtl.min.css +1 -1
  7. package/dist/css/uikit-core.css +1 -1
  8. package/dist/css/uikit-core.min.css +1 -1
  9. package/dist/css/uikit-rtl.css +1 -1
  10. package/dist/css/uikit-rtl.min.css +1 -1
  11. package/dist/css/uikit.css +1 -1
  12. package/dist/css/uikit.min.css +1 -1
  13. package/dist/js/components/countdown.js +1 -1
  14. package/dist/js/components/countdown.min.js +1 -1
  15. package/dist/js/components/filter.js +1 -1
  16. package/dist/js/components/filter.min.js +1 -1
  17. package/dist/js/components/lightbox-panel.js +1 -1
  18. package/dist/js/components/lightbox-panel.min.js +1 -1
  19. package/dist/js/components/lightbox.js +1 -1
  20. package/dist/js/components/lightbox.min.js +1 -1
  21. package/dist/js/components/notification.js +1 -1
  22. package/dist/js/components/notification.min.js +1 -1
  23. package/dist/js/components/parallax.js +1 -1
  24. package/dist/js/components/parallax.min.js +1 -1
  25. package/dist/js/components/slider-parallax.js +1 -1
  26. package/dist/js/components/slider-parallax.min.js +1 -1
  27. package/dist/js/components/slider.js +1 -1
  28. package/dist/js/components/slider.min.js +1 -1
  29. package/dist/js/components/slideshow-parallax.js +1 -1
  30. package/dist/js/components/slideshow-parallax.min.js +1 -1
  31. package/dist/js/components/slideshow.js +1 -1
  32. package/dist/js/components/slideshow.min.js +1 -1
  33. package/dist/js/components/sortable.js +1 -1
  34. package/dist/js/components/sortable.min.js +1 -1
  35. package/dist/js/components/tooltip.js +1 -1
  36. package/dist/js/components/tooltip.min.js +1 -1
  37. package/dist/js/components/upload.js +1 -1
  38. package/dist/js/components/upload.min.js +1 -1
  39. package/dist/js/uikit-core.js +2 -2
  40. package/dist/js/uikit-core.min.js +1 -1
  41. package/dist/js/uikit-icons.js +161 -161
  42. package/dist/js/uikit-icons.min.js +1 -1
  43. package/dist/js/uikit.js +2 -2
  44. package/dist/js/uikit.min.js +1 -1
  45. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Fixed
6
+
7
+ - Fix overwriting default icons
8
+
3
9
  ## 3.24.1 (October 6, 2025)
4
10
 
5
11
  ### Fixed
package/build/build.js CHANGED
@@ -57,7 +57,9 @@ function getBundleTasks() {
57
57
  icons: async () =>
58
58
  compile('build/wrapper/icons.js', 'dist/js/uikit-icons', {
59
59
  name: 'icons',
60
- replaces: { ICONS: await icons('{src/images,custom}/icons/*.svg') },
60
+ replaces: {
61
+ ICONS: await icons('custom/icons/*.svg', 'src/images/icons/*.svg'),
62
+ },
61
63
  }),
62
64
 
63
65
  tests: async () =>
package/build/icons.js CHANGED
@@ -29,7 +29,7 @@ async function compileIcons(folder) {
29
29
  return compile('build/wrapper/icons.js', `dist/js/uikit-icons-${name}`, {
30
30
  name,
31
31
  replaces: {
32
- ICONS: await icons(`{src/images/icons,${folder}}/*.svg`),
32
+ ICONS: await icons(`${folder}/*.svg`, 'src/images/icons/*.svg'),
33
33
  },
34
34
  });
35
35
  }
package/build/util.js CHANGED
@@ -170,20 +170,22 @@ export async function compile(file, dest, { external, globals, name, aliases, re
170
170
  }
171
171
  }
172
172
 
173
- export async function icons(src) {
174
- const files = await glob(src);
175
- const icons = await Promise.all(
176
- files.map((file) => limit(async () => optimizeSvg(await read(file)))),
177
- );
173
+ export async function icons(...src) {
174
+ let files = {};
175
+ for (const pattern of src) {
176
+ for (const file of await glob(pattern)) {
177
+ files[path.basename(file, '.svg')] ??= limit(
178
+ async () => await optimizeSvg(await read(file)),
179
+ );
180
+ }
181
+ }
178
182
 
179
- return JSON.stringify(
180
- files.reduce((result, file, i) => {
181
- result[path.basename(file, '.svg')] = icons[i];
182
- return result;
183
- }, {}),
184
- null,
185
- ' ',
186
- );
183
+ const sorted = {};
184
+ for (const key of Object.keys(files).sort()) {
185
+ sorted[key] = await files[key];
186
+ }
187
+
188
+ return JSON.stringify(sorted, null, ' ');
187
189
  }
188
190
 
189
191
  export function ucfirst(str) {
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.24.1 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 3.24.2-dev.0c818599c | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */