uikit 3.15.15 → 3.15.16-dev.8230e5aaa

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 +10 -3
  2. package/dist/css/uikit-core-rtl.css +4 -1
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +4 -1
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +4 -1
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +4 -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 +10 -19
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +10 -19
  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 +1 -1
  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 +1 -1
  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 +1 -1
  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 +11 -20
  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 +11 -20
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/mixin/modal.js +6 -14
  44. package/src/less/components/offcanvas.less +6 -1
  45. package/src/scss/components/offcanvas.scss +6 -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.15.15",
5
+ "version": "3.15.16-dev.8230e5aaa",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -9,6 +9,7 @@ import {
9
9
  includes,
10
10
  isFocusable,
11
11
  last,
12
+ matches,
12
13
  noop,
13
14
  on,
14
15
  once,
@@ -72,23 +73,11 @@ export default {
72
73
  name: 'click',
73
74
 
74
75
  delegate() {
75
- return this.selClose;
76
+ return `${this.selClose},a[href*="#"]`;
76
77
  },
77
78
 
78
79
  handler(e) {
79
- e.preventDefault();
80
- this.hide();
81
- },
82
- },
83
-
84
- {
85
- name: 'click',
86
-
87
- delegate() {
88
- return 'a[href*="#"]';
89
- },
90
-
91
- handler({ current, defaultPrevented }) {
80
+ const { current, defaultPrevented } = e;
92
81
  const { hash } = current;
93
82
  if (
94
83
  !defaultPrevented &&
@@ -98,6 +87,9 @@ export default {
98
87
  $(hash, document.body)
99
88
  ) {
100
89
  this.hide();
90
+ } else if (matches(current, this.selClose)) {
91
+ e.preventDefault();
92
+ this.hide();
101
93
  }
102
94
  },
103
95
  },
@@ -270,10 +270,15 @@
270
270
  /*
271
271
  * Prevent horizontal scrollbar when the content is slide-out
272
272
  * Has to be on the `html` element too to make it work on the `body`
273
+ * 1. `clip` is needed for `position: sticky` elements to keep their position
273
274
  */
274
275
 
275
276
  .uk-offcanvas-page,
276
- .uk-offcanvas-container { overflow-x: hidden; }
277
+ .uk-offcanvas-container {
278
+ overflow-x: hidden;
279
+ /* 1 */
280
+ overflow-x: clip;
281
+ }
277
282
 
278
283
 
279
284
  /* Container
@@ -270,10 +270,15 @@ $offcanvas-overlay-background: rgba(0,0,0,0.1) !default;
270
270
  /*
271
271
  * Prevent horizontal scrollbar when the content is slide-out
272
272
  * Has to be on the `html` element too to make it work on the `body`
273
+ * 1. `clip` is needed for `position: sticky` elements to keep their position
273
274
  */
274
275
 
275
276
  .uk-offcanvas-page,
276
- .uk-offcanvas-container { overflow-x: hidden; }
277
+ .uk-offcanvas-container {
278
+ overflow-x: hidden;
279
+ /* 1 */
280
+ overflow-x: clip;
281
+ }
277
282
 
278
283
 
279
284
  /* Container