uikit 3.11.2-dev.bbaa4362f → 3.11.2-dev.c08a5b5f0

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 (64) hide show
  1. package/CHANGELOG.md +18 -0
  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 +36 -1
  30. package/dist/js/components/slideshow.min.js +1 -1
  31. package/dist/js/components/sortable.js +1 -1
  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 +156 -160
  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 +191 -160
  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/slideshow.js +32 -1
  47. package/src/js/core/drop.js +1 -1
  48. package/src/js/core/img.js +128 -108
  49. package/src/js/core/navbar.js +1 -1
  50. package/src/js/util/options.js +4 -4
  51. package/src/less/components/flex.less +0 -9
  52. package/src/less/components/navbar.less +0 -7
  53. package/src/less/components/utility.less +22 -0
  54. package/src/scss/components/flex.scss +0 -9
  55. package/src/scss/components/form.scss +3 -3
  56. package/src/scss/components/icon.scss +2 -2
  57. package/src/scss/components/navbar.scss +0 -7
  58. package/src/scss/components/search.scss +1 -1
  59. package/src/scss/components/utility.scss +22 -0
  60. package/src/scss/variables-theme.scss +6 -6
  61. package/src/scss/variables.scss +6 -6
  62. package/tests/image.html +33 -37
  63. package/tests/images/test.avif +0 -0
  64. package/tests/images/test.webp +0 -0
package/CHANGELOG.md CHANGED
@@ -1,11 +1,27 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP Picture element
4
+
5
+ ### Added
6
+
7
+ - Add support for <picture> element in Img component
8
+ - Add `sources` option to Image component to allow for multiple image sources for background images
9
+ - Add `loading` option to Image component (Avoid lazy loading images that are in first visible viewport)
10
+
11
+ ### Changed
12
+
13
+ - Using Image component is deprecated for image elements (use native loading="lazy" instead)
14
+ - The placeholder image, set by the Image component, no longer has a width/height. `data-` prefixed height/width attributes are ignored. (Use height/width attributes instead for the browser to infer the intrinsic size of the image being loaded)
15
+ - Image component no longer relies on session storage to check for cached images to immediately show an image
16
+ - Slideshow removes native loading="lazy" attribute from adjacent slides (Previously handled by Img component and its `target` option)
17
+
3
18
  ## WIP
4
19
 
5
20
  ### Added
6
21
 
7
22
  - Add `position` option with `top`, `bottom` and `auto` values to Sticky component
8
23
  - Add support for basic math operands in `offset` option of Sticky component
24
+ - Add object fit and position classes to Utility component
9
25
 
10
26
  ### Changed
11
27
 
@@ -16,6 +32,8 @@
16
32
  - Fix infinite sliding in Slider component with equally sized slides
17
33
  - Fix Sticky component setting wrong margin for placeholder
18
34
  - Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
35
+ - Fix dropdown no longer closes if pointer is still moving towards it
36
+ - Fix `fadein` not transformed correctly to `fade-in` in scss build
19
37
 
20
38
  ## 3.11.1 (February 7, 2022)
21
39
 
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.bbaa4362f | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.c08a5b5f0 | 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
  /*