uikit 3.24.1 → 3.24.2-dev.36b5f74cf

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 (50) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/build/build.js +3 -1
  3. package/build/icons.js +1 -1
  4. package/build/scope.js +10 -1
  5. package/build/util.js +15 -13
  6. package/dist/css/uikit-core-rtl.css +4 -1
  7. package/dist/css/uikit-core-rtl.min.css +1 -1
  8. package/dist/css/uikit-core.css +4 -1
  9. package/dist/css/uikit-core.min.css +1 -1
  10. package/dist/css/uikit-rtl.css +4 -1
  11. package/dist/css/uikit-rtl.min.css +1 -1
  12. package/dist/css/uikit.css +4 -1
  13. package/dist/css/uikit.min.css +1 -1
  14. package/dist/js/components/countdown.js +1 -1
  15. package/dist/js/components/countdown.min.js +1 -1
  16. package/dist/js/components/filter.js +1 -1
  17. package/dist/js/components/filter.min.js +1 -1
  18. package/dist/js/components/lightbox-panel.js +2 -2
  19. package/dist/js/components/lightbox-panel.min.js +1 -1
  20. package/dist/js/components/lightbox.js +2 -2
  21. package/dist/js/components/lightbox.min.js +1 -1
  22. package/dist/js/components/notification.js +1 -1
  23. package/dist/js/components/notification.min.js +1 -1
  24. package/dist/js/components/parallax.js +1 -1
  25. package/dist/js/components/parallax.min.js +1 -1
  26. package/dist/js/components/slider-parallax.js +1 -1
  27. package/dist/js/components/slider-parallax.min.js +1 -1
  28. package/dist/js/components/slider.js +1 -1
  29. package/dist/js/components/slider.min.js +1 -1
  30. package/dist/js/components/slideshow-parallax.js +1 -1
  31. package/dist/js/components/slideshow-parallax.min.js +1 -1
  32. package/dist/js/components/slideshow.js +1 -1
  33. package/dist/js/components/slideshow.min.js +1 -1
  34. package/dist/js/components/sortable.js +1 -1
  35. package/dist/js/components/sortable.min.js +1 -1
  36. package/dist/js/components/tooltip.js +1 -1
  37. package/dist/js/components/tooltip.min.js +1 -1
  38. package/dist/js/components/upload.js +1 -1
  39. package/dist/js/components/upload.min.js +1 -1
  40. package/dist/js/uikit-core.js +4 -4
  41. package/dist/js/uikit-core.min.js +1 -1
  42. package/dist/js/uikit-icons.js +161 -161
  43. package/dist/js/uikit-icons.min.js +1 -1
  44. package/dist/js/uikit.js +4 -4
  45. package/dist/js/uikit.min.js +1 -1
  46. package/package.json +1 -1
  47. package/src/js/util/player.js +2 -1
  48. package/src/js/util/scroll.js +2 -2
  49. package/src/less/components/width.less +2 -0
  50. package/src/scss/components/width.scss +2 -0
package/CHANGELOG.md CHANGED
@@ -1,5 +1,18 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Added
6
+
7
+ - Add fit content width to Width component
8
+
9
+ ### Fixed
10
+
11
+ - Fix overwriting default icons
12
+ - Fix scrollbar gutter stays visible in Modal component even though page is not scrollable
13
+ - Fix lazy loading YouTube/Vimeo videos in Video component in Safari
14
+ - Fix scoping css to handle `attr()` with `type()` function
15
+
3
16
  ## 3.24.1 (October 6, 2025)
4
17
 
5
18
  ### 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/scope.js CHANGED
@@ -64,7 +64,7 @@ async function scope(files, scope) {
64
64
  for (const file of files) {
65
65
  await replaceInFile(file, async (data) => {
66
66
  const output = await renderLess(
67
- `.${scope} {\n${stripCssComments(data, { preserve: false })}\n}`,
67
+ `.${scope} {\n${wrapAttrWithTypeNotation(stripCssComments(data, { preserve: false }))}\n}`,
68
68
  );
69
69
  return `/* scoped: ${scope} */\n${
70
70
  output.replace(
@@ -95,3 +95,12 @@ async function cleanup(files, scope) {
95
95
  );
96
96
  }
97
97
  }
98
+
99
+ function wrapAttrWithTypeNotation(content) {
100
+ return content.replace(
101
+ /([a-zA-Z-]+)\s*:\s*([^;]*attr[^;]*type\(<[^;]+)(;|$)/g,
102
+ (m, prop, attr, end) => {
103
+ return `${prop}: ~'${attr}'${end}`;
104
+ },
105
+ );
106
+ }
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.36b5f74cf | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -7177,6 +7177,9 @@ ul.uk-nav-sub {
7177
7177
  }
7178
7178
  /* Intrinsic Widths
7179
7179
  ========================================================================== */
7180
+ .uk-width-fit-content {
7181
+ width: fit-content;
7182
+ }
7180
7183
  .uk-width-max-content {
7181
7184
  width: max-content;
7182
7185
  }