uikit 3.11.0 → 3.11.2-dev.57792c7e7

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 (46) hide show
  1. package/CHANGELOG.md +11 -0
  2. package/build/scope.js +4 -6
  3. package/dist/css/uikit-core-rtl.css +1 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +1 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +1 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +1 -1
  10. package/dist/css/uikit.min.css +1 -1
  11. package/dist/js/components/countdown.js +1 -1
  12. package/dist/js/components/countdown.min.js +1 -1
  13. package/dist/js/components/filter.js +1 -1
  14. package/dist/js/components/filter.min.js +1 -1
  15. package/dist/js/components/lightbox-panel.js +1 -1
  16. package/dist/js/components/lightbox-panel.min.js +1 -1
  17. package/dist/js/components/lightbox.js +1 -1
  18. package/dist/js/components/lightbox.min.js +1 -1
  19. package/dist/js/components/notification.js +1 -1
  20. package/dist/js/components/notification.min.js +1 -1
  21. package/dist/js/components/parallax.js +2 -2
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +1 -1
  24. package/dist/js/components/slider-parallax.min.js +1 -1
  25. package/dist/js/components/slider.js +2 -2
  26. package/dist/js/components/slider.min.js +1 -1
  27. package/dist/js/components/slideshow-parallax.js +1 -1
  28. package/dist/js/components/slideshow-parallax.min.js +1 -1
  29. package/dist/js/components/slideshow.js +1 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  32. package/dist/js/components/sortable.min.js +1 -1
  33. package/dist/js/components/tooltip.js +1 -1
  34. package/dist/js/components/tooltip.min.js +1 -1
  35. package/dist/js/components/upload.js +1 -1
  36. package/dist/js/components/upload.min.js +1 -1
  37. package/dist/js/uikit-core.js +3 -3
  38. package/dist/js/uikit-core.min.js +1 -1
  39. package/dist/js/uikit-icons.js +1 -1
  40. package/dist/js/uikit-icons.min.js +1 -1
  41. package/dist/js/uikit.js +5 -5
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/components/parallax.js +1 -1
  45. package/src/js/components/slider.js +1 -1
  46. package/src/js/util/dimensions.js +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,16 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ - Fix infinite sliding in Slider component with equally sized slides
6
+
7
+ ## 3.11.1 (February 7, 2022)
8
+
9
+ ### Fixed
10
+
11
+ - Fix scoping css to exclude `:root` selector
12
+ - Fix `toPx()` correctly uses offsetHeight/Width
13
+
3
14
  ## 3.11.0 (February 7, 2022)
4
15
 
5
16
  ### Added
package/build/scope.js CHANGED
@@ -15,7 +15,7 @@ if (args.h || args.help) {
15
15
  `);
16
16
  process.exit(0);
17
17
  }
18
- const currentScopeRe = /\/\* scoped: ([^*]*) \*\//;
18
+ const currentScopeRe = /\/\* scoped: ([^*]*) \*\/\n/;
19
19
  const currentScopeLegacyRe = /\.(uk-scope)/;
20
20
 
21
21
  const files = await glob('dist/**/!(*.min).css');
@@ -65,9 +65,7 @@ async function scope(files, scope) {
65
65
  await replaceInFile(file, async data => {
66
66
  const output = await renderLess(`.${scope} {\n${stripComments(data)}\n}`);
67
67
  return `/* scoped: ${scope} */\n${
68
- output
69
- .replace(new RegExp(`.${scope} ${/{(.|[\r\n])*?}/.source}`), '')
70
- .replace(new RegExp(`.${scope}${/\s((\.(uk-(drag|modal-page|offcanvas-page|offcanvas-flip)))|html)/.source}`, 'g'), '$1')
68
+ output.replace(new RegExp(`.${scope}\\s((\\.(uk-(drag|modal-page|offcanvas-page|offcanvas-flip)))|html|:root)`, 'g'), '$1') // unescape
71
69
  }`;
72
70
  });
73
71
  await minify(file);
@@ -78,8 +76,8 @@ async function cleanup(files, scope) {
78
76
  const string = scope.split(' ').map(scope => `.${scope}`).join(' ');
79
77
  for (const file of files) {
80
78
  await replaceInFile(file, data => data
81
- .replace(new RegExp(/ */.source + string + / ({[\s\S]*?})?/.source, 'g'), '') // replace classes
82
- .replace(new RegExp(currentScopeRe.source, 'g'), '') // remove scope comment
79
+ .replace(currentScopeRe, '') // remove scope comment
80
+ .replace(new RegExp(` *${string} ({[\\s\\S]*?})?`, 'g'), '') // replace classes
83
81
  );
84
82
  }
85
83
  }
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.11.0 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.57792c7e7 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */