uikit 3.18.2 → 3.18.3-dev.454229dfd

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 (48) hide show
  1. package/CHANGELOG.md +10 -1
  2. package/dist/css/uikit-core-rtl.css +1 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +1 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +1 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +1 -1
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +2 -2
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +2 -2
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +2 -2
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +2 -2
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +3 -3
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +16 -13
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +1 -1
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +17 -14
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/core/drop.js +1 -1
  44. package/src/js/core/dropnav.js +3 -3
  45. package/src/js/core/height-placeholder.js +2 -2
  46. package/src/js/core/navbar.js +10 -8
  47. package/src/js/mixin/position.js +2 -2
  48. package/src/js/mixin/slider-autoplay.js +3 -1
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.18.2",
5
+ "version": "3.18.3-dev.454229dfd",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -432,7 +432,7 @@ export default {
432
432
 
433
433
  for (const [i, [axis, prop, start, end]] of dirs) {
434
434
  if (this.axis === axis && includes([axis, true], this.stretch)) {
435
- const positionOffset = Math.abs(this.getPositionOffset(this.$el));
435
+ const positionOffset = Math.abs(this.getPositionOffset());
436
436
  const targetOffset = offset(this.target[i]);
437
437
  const elOffset = offset(this.$el);
438
438
 
@@ -289,7 +289,7 @@ export default {
289
289
  .map((el) => offset(el).bottom),
290
290
  );
291
291
 
292
- css(this.dropbar, 'top', this.getDropbarOffset(drop.$el));
292
+ offset(this.dropbar, this.getDropbarOffset(drop.$el));
293
293
  this.transitionTo(
294
294
  maxBottom - offset(this.dropbar).top + toFloat(css(target, 'marginBottom')),
295
295
  target,
@@ -397,8 +397,8 @@ export default {
397
397
 
398
398
  getDropbarOffset(el) {
399
399
  const { $el, target, targetY } = this;
400
- const { offsetTop, offsetHeight } = query(targetY || target || $el, $el);
401
- return offsetTop + offsetHeight + this.getDropdown(el)?.getPositionOffset(el);
400
+ const { top, height } = offset(query(targetY || target || $el, $el));
401
+ return { left: 0, top: top + height + this.getDropdown(el)?.getPositionOffset() };
402
402
  },
403
403
 
404
404
  initializeDropdowns() {
@@ -1,4 +1,4 @@
1
- import { css, height, query } from 'uikit-util';
1
+ import { css, query } from 'uikit-util';
2
2
  import { resize } from '../api/observables';
3
3
 
4
4
  export default {
@@ -20,7 +20,7 @@ export default {
20
20
 
21
21
  update: {
22
22
  read() {
23
- return { height: height(this.target) };
23
+ return { height: this.target.offsetHeight };
24
24
  },
25
25
 
26
26
  write({ height }) {
@@ -1,4 +1,4 @@
1
- import { $$, addClass, css, hasClass, removeClass } from 'uikit-util';
1
+ import { $$, addClass, css, hasClass, offset, removeClass } from 'uikit-util';
2
2
  import Dropnav from './dropnav';
3
3
 
4
4
  const clsNavbarTransparent = 'uk-navbar-transparent';
@@ -89,13 +89,15 @@ export default {
89
89
  },
90
90
 
91
91
  getDropbarOffset(el) {
92
- const { offsetTop, offsetHeight } = this.navbarContainer;
93
- return (
94
- offsetTop +
95
- (this.dropbarTransparentMode === 'behind'
96
- ? 0
97
- : offsetHeight + this.getDropdown(el)?.getPositionOffset(el))
98
- );
92
+ const { top, height } = offset(this.navbarContainer);
93
+ return {
94
+ left: 0,
95
+ top:
96
+ top +
97
+ (this.dropbarTransparentMode === 'behind'
98
+ ? 0
99
+ : height + this.getDropdown(el)?.getPositionOffset()),
100
+ };
99
101
  },
100
102
  },
101
103
  };
@@ -67,7 +67,7 @@ export default {
67
67
  restoreScrollPosition();
68
68
  },
69
69
 
70
- getPositionOffset(element) {
70
+ getPositionOffset(element = this.$el) {
71
71
  return (
72
72
  toPx(
73
73
  this.offset === false ? css(element, '--uk-position-offset') : this.offset,
@@ -79,7 +79,7 @@ export default {
79
79
  );
80
80
  },
81
81
 
82
- getShiftOffset(element) {
82
+ getShiftOffset(element = this.$el) {
83
83
  return this.align === 'center'
84
84
  ? 0
85
85
  : toPx(
@@ -54,7 +54,9 @@ export default {
54
54
  if (
55
55
  !(
56
56
  this.stack.length ||
57
- (this.draggable && matches(this.$el, ':focus-within')) ||
57
+ (this.draggable &&
58
+ matches(this.$el, ':focus-within') &&
59
+ !matches(this.$el, ':focus')) ||
58
60
  (this.pauseOnHover && matches(this.$el, ':hover'))
59
61
  )
60
62
  ) {