uikit 3.11.2-dev.03e47c2ff → 3.11.2-dev.06fe7f1d0

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 (72) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/dist/css/uikit-core-rtl.css +12 -6
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +12 -6
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +12 -6
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +12 -6
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +3 -3
  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 +4 -14
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +4 -14
  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 +8 -9
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +8 -9
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +59 -78
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +8 -9
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +23 -45
  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 +2 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +357 -264
  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 +414 -361
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/js/api/hooks.js +2 -2
  44. package/src/js/api/state.js +173 -140
  45. package/src/js/components/countdown.js +2 -2
  46. package/src/js/components/internal/slider-preload.js +4 -32
  47. package/src/js/components/slider.js +39 -42
  48. package/src/js/components/upload.js +2 -1
  49. package/src/js/core/accordion.js +6 -1
  50. package/src/js/core/core.js +2 -75
  51. package/src/js/core/cover.js +5 -1
  52. package/src/js/core/drop.js +3 -1
  53. package/src/js/core/form-custom.js +2 -2
  54. package/src/js/core/height-viewport.js +3 -0
  55. package/src/js/core/img.js +16 -24
  56. package/src/js/core/offcanvas.js +2 -1
  57. package/src/js/core/sticky.js +27 -33
  58. package/src/js/core/switcher.js +11 -3
  59. package/src/js/core/toggle.js +3 -1
  60. package/src/js/core/video.js +13 -1
  61. package/src/js/mixin/lazyload.js +20 -0
  62. package/src/js/mixin/parallax.js +8 -9
  63. package/src/js/mixin/slider.js +0 -6
  64. package/src/js/mixin/slideshow.js +0 -4
  65. package/src/js/mixin/swipe.js +72 -0
  66. package/src/js/util/index.js +1 -0
  67. package/src/js/util/observer.js +36 -0
  68. package/src/less/components/utility.less +6 -3
  69. package/src/scss/components/utility.scss +6 -3
  70. package/tests/parallax.html +2 -2
  71. package/tests/sticky-parallax.html +1 -1
  72. package/tests/utility.html +17 -0
package/CHANGELOG.md CHANGED
@@ -18,9 +18,11 @@
18
18
 
19
19
  - Image elements need `width` and `height` attributes to prevent layout shifts
20
20
  - Image component no longer relies on session storage to check for cached images to immediately show an image
21
- - Slideshow and Slider remove native `loading="lazy"` attribute from adjacent slides
21
+ - Slider and Switcher remove native `loading="lazy"` attribute from adjacent slides
22
+ - Accordion, Drop, Switcher and Toggle remove native `loading="lazy"` attribute from their children when entering the viewport
22
23
  - Improve sticky behavior if sticky content is larger than the viewport
23
24
  - Sticky component's `bottom` option checks for bottom padding if sticky element is within referenced element
25
+ - Height Viewport component sets `uk-height-viewport` class to reduce initial layout shifts
24
26
 
25
27
  ### Deprecated
26
28
 
@@ -34,6 +36,7 @@
34
36
  ### Fixed
35
37
 
36
38
  - Fix infinite sliding in Slider component with equally sized slides
39
+ - Fix Slider component sets calculation
37
40
  - Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
38
41
  - Fix dropdown no longer closes if pointer is still moving towards it
39
42
  - Fix `fadein` not transformed correctly to `fade-in` in scss build
@@ -41,6 +44,7 @@
41
44
  - Fix Sticky placeholder sets height with fraction
42
45
  - Fix Sticky component does not animate in if scroll position equals top offset
43
46
  - Fix Sticky component prevents transition on `selTarget` if forced to hide for recalculation
47
+ - Fix Parallax component initial jump in background image
44
48
 
45
49
  ## 3.11.1 (February 7, 2022)
46
50
 
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.11.2-dev.03e47c2ff | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.06fe7f1d0 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -7524,15 +7524,21 @@ iframe[data-uk-cover] {
7524
7524
  }
7525
7525
  /* Object
7526
7526
  ========================================================================== */
7527
- .uk-object-fit-none {
7528
- object-fit: none;
7529
- }
7530
- .uk-object-fit-cover {
7527
+ .uk-object-cover {
7531
7528
  object-fit: cover;
7532
7529
  }
7533
- .uk-object-fit-contain {
7530
+ .uk-object-contain {
7534
7531
  object-fit: contain;
7535
7532
  }
7533
+ .uk-object-fill {
7534
+ object-fit: fill;
7535
+ }
7536
+ .uk-object-none {
7537
+ object-fit: none;
7538
+ }
7539
+ .uk-object-scale-down {
7540
+ object-fit: scale-down;
7541
+ }
7536
7542
  /*
7537
7543
  * Position
7538
7544
  */