uikit 3.11.2-dev.ada192797 → 3.11.2-dev.ae39176f2

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 (62) hide show
  1. package/CHANGELOG.md +9 -2
  2. package/build/scss.js +1 -1
  3. package/dist/css/uikit-core-rtl.css +42 -17
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +42 -17
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +42 -17
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +42 -17
  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 +1 -1
  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 +1 -1
  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 +5 -4
  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 +51 -42
  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 +55 -45
  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/sortable.js +4 -3
  47. package/src/js/core/drop.js +1 -1
  48. package/src/js/core/navbar.js +6 -2
  49. package/src/js/core/sticky.js +22 -14
  50. package/src/less/components/flex.less +0 -9
  51. package/src/less/components/navbar.less +0 -7
  52. package/src/less/components/utility.less +22 -0
  53. package/src/scss/components/flex.scss +0 -9
  54. package/src/scss/components/form.scss +3 -3
  55. package/src/scss/components/icon.scss +2 -2
  56. package/src/scss/components/navbar.scss +0 -7
  57. package/src/scss/components/search.scss +1 -1
  58. package/src/scss/components/utility.scss +22 -0
  59. package/src/scss/variables-theme.scss +6 -6
  60. package/src/scss/variables.scss +6 -6
  61. package/tests/sticky-parallax.html +4 -4
  62. package/tests/sticky.html +14 -3
package/CHANGELOG.md CHANGED
@@ -4,15 +4,22 @@
4
4
 
5
5
  ### Added
6
6
 
7
- - Add `position` option to Sticky component
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
+ - Add object fit and position classes to Utility component
8
10
 
9
11
  ### Changed
10
12
 
11
- - Scroll Sticky component's content if it's higher than viewport
13
+ - Improve sticky behavior if sticky content is larger than the viewport
14
+ - Sticky component's `bottom` option checks for bottom padding if sticky element is within referenced element
12
15
 
13
16
  ### Fixed
14
17
 
15
18
  - Fix infinite sliding in Slider component with equally sized slides
19
+ - Fix Sticky component setting wrong margin for placeholder
20
+ - Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
21
+ - Fix dropdown no longer closes if pointer is still moving towards it
22
+ - Fix `fadein` not transformed correctly to `fade-in` in scss build
16
23
 
17
24
  ## 3.11.1 (February 7, 2022)
18
25
 
package/build/scss.js CHANGED
@@ -92,7 +92,7 @@ for (const file of await glob('src/less/**/*.less')) {
92
92
  .replace(/\$(import|supports|media|font-face|page|-ms-viewport|keyframes|-webkit-keyframes|-moz-document)/g, '@$1') // replace valid '@' statements
93
93
  .replace(/tint\((\$[\w-]+),\s([^)]*)\)/g, 'mix(white, $1, $2)') // replace Less function tint with mix
94
94
  .replace(/fade\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => { return `rgba(${p1}, ${p2 / 100})`;}) // replace Less function fade with rgba
95
- .replace(/fadeout\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => { return `fade-out(${p1}, ${p2 / 100})`;}) // replace Less function fadeout with fade-out
95
+ .replace(/fade(in|out)\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2, p3) => { return `fade-${p1}(${p2}, ${p3 / 100})`;}) // replace Less function fadeout with fade-out
96
96
  .replace(/\.svg-fill/g, '@include svg-fill') // include svg-fill mixin
97
97
  .replace(/(.*):extend\((\.[\w-\\@]*) all\) when \((\$[\w-]*) = ([\w]+)\) {}/g, '@if ( $3 == $4 ) { $1 { @extend $2 !optional;} }') // update conditional extend and add !optional to ignore warnings
98
98
  .replace(/(\.[\w-\\@]+)\s*when\s*\((\$[\w-]*)\s*=\s*(\w+)\)\s*{\s*@if\(mixin-exists\(([\w-]*)\)\) {@include\s([\w-]*)\(\);\s*}\s*}/g, '@if ($2 == $3) { $1 { @if (mixin-exists($4)) {@include $4();}}}') // update conditional hook
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.11.2-dev.ada192797 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.ae39176f2 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -4899,13 +4899,6 @@ ul.uk-nav-sub {
4899
4899
  .uk-navbar-container:not(.uk-navbar-transparent) {
4900
4900
  background: #f8f8f8;
4901
4901
  }
4902
- /*
4903
- * Remove pseudo elements created by micro clearfix as precaution (if Container component is used)
4904
- */
4905
- .uk-navbar-container > ::before,
4906
- .uk-navbar-container > ::after {
4907
- display: none !important;
4908
- }
4909
4902
  /* Groups
4910
4903
  ========================================================================== */
4911
4904
  /*
@@ -7628,6 +7621,47 @@ iframe[data-uk-cover] {
7628
7621
  [data-uk-responsive] {
7629
7622
  max-width: 100%;
7630
7623
  }
7624
+ /* Object
7625
+ ========================================================================== */
7626
+ .uk-object-fit-none {
7627
+ object-fit: none;
7628
+ }
7629
+ .uk-object-fit-cover {
7630
+ object-fit: cover;
7631
+ }
7632
+ .uk-object-fit-contain {
7633
+ object-fit: contain;
7634
+ }
7635
+ /*
7636
+ * Position
7637
+ */
7638
+ .uk-object-top-right {
7639
+ object-position: 100% 0;
7640
+ }
7641
+ .uk-object-top-center {
7642
+ object-position: 50% 0;
7643
+ }
7644
+ .uk-object-top-left {
7645
+ object-position: 0% 0;
7646
+ }
7647
+ .uk-object-center-right {
7648
+ object-position: 100% 50%;
7649
+ }
7650
+ .uk-object-center-center {
7651
+ object-position: 50% 50%;
7652
+ }
7653
+ .uk-object-center-left {
7654
+ object-position: 0% 50%;
7655
+ }
7656
+ .uk-object-bottom-right {
7657
+ object-position: 100% 100%;
7658
+ }
7659
+ .uk-object-bottom-center {
7660
+ object-position: 50% 100%;
7661
+ }
7662
+ .uk-object-bottom-left {
7663
+ object-position: 0% 100%;
7664
+ }
7631
7665
  /* Border
7632
7666
  ========================================================================== */
7633
7667
  .uk-border-circle {
@@ -7878,15 +7912,6 @@ iframe[data-uk-cover] {
7878
7912
  .uk-flex-inline {
7879
7913
  display: inline-flex;
7880
7914
  }
7881
- /*
7882
- * Remove pseudo elements created by micro clearfix as precaution
7883
- */
7884
- .uk-flex::before,
7885
- .uk-flex::after,
7886
- .uk-flex-inline::before,
7887
- .uk-flex-inline::after {
7888
- display: none;
7889
- }
7890
7915
  /* Alignment
7891
7916
  ========================================================================== */
7892
7917
  /*