uikit 3.11.0 → 3.11.2-dev.0e5febb2b

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 (59) hide show
  1. package/CHANGELOG.md +25 -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 +37 -41
  22. package/dist/js/components/parallax.min.js +1 -1
  23. package/dist/js/components/slider-parallax.js +32 -25
  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 +32 -25
  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 +2 -3
  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 +169 -102
  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 +232 -170
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/api/component.js +1 -1
  45. package/src/js/api/state.js +20 -24
  46. package/src/js/components/parallax.js +5 -16
  47. package/src/js/components/slider.js +1 -1
  48. package/src/js/components/sortable.js +1 -2
  49. package/src/js/core/core.js +2 -2
  50. package/src/js/core/drop.js +1 -1
  51. package/src/js/core/height-viewport.js +2 -2
  52. package/src/js/core/navbar.js +6 -2
  53. package/src/js/core/sticky.js +82 -50
  54. package/src/js/mixin/parallax.js +32 -21
  55. package/src/js/util/dimensions.js +28 -12
  56. package/src/js/util/fastdom.js +2 -2
  57. package/src/js/util/viewport.js +7 -3
  58. package/tests/sticky-parallax.html +44 -41
  59. package/tests/sticky.html +56 -24
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Added
6
+
7
+ - Add `position` option with `top`, `bottom` and `auto` values to Sticky component
8
+ - Add support for basic math operands in `offset` option of Sticky component
9
+
10
+ ### Changed
11
+
12
+ - Improve sticky behavior if sticky content is larger than the viewport
13
+
14
+ ### Fixed
15
+
16
+ - Fix infinite sliding in Slider component with equally sized slides
17
+ - Fix Sticky component setting wrong margin for placeholder
18
+ - Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
19
+ - Fix dropdown no longer closes if pointer is still moving towards it
20
+
21
+ ## 3.11.1 (February 7, 2022)
22
+
23
+ ### Fixed
24
+
25
+ - Fix scoping css to exclude `:root` selector
26
+ - Fix `toPx()` correctly uses offsetHeight/Width
27
+
3
28
  ## 3.11.0 (February 7, 2022)
4
29
 
5
30
  ### 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.0e5febb2b | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */