uikit 3.11.2-dev.a08b20474 → 3.11.2-dev.c2430c233

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 (59) hide show
  1. package/CHANGELOG.md +2 -11
  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 +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 +121 -115
  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 +121 -115
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/core/img.js +95 -111
  45. package/src/js/util/options.js +4 -4
  46. package/src/less/components/flex.less +0 -9
  47. package/src/less/components/navbar.less +0 -7
  48. package/src/less/components/utility.less +22 -0
  49. package/src/scss/components/flex.scss +0 -9
  50. package/src/scss/components/form.scss +3 -3
  51. package/src/scss/components/icon.scss +2 -2
  52. package/src/scss/components/navbar.scss +0 -7
  53. package/src/scss/components/search.scss +1 -1
  54. package/src/scss/components/utility.scss +22 -0
  55. package/src/scss/variables-theme.scss +6 -6
  56. package/src/scss/variables.scss +6 -6
  57. package/tests/image.html +41 -31
  58. package/tests/images/test.avif +0 -0
  59. package/tests/images/test.webp +0 -0
package/CHANGELOG.md CHANGED
@@ -1,22 +1,12 @@
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 Img component
9
-
10
- ### Changed
11
-
12
- - Img component no longer sets a placeholder (use height/width instead)
13
-
14
3
  ## WIP
15
4
 
16
5
  ### Added
17
6
 
18
7
  - Add `position` option with `top`, `bottom` and `auto` values to Sticky component
19
8
  - Add support for basic math operands in `offset` option of Sticky component
9
+ - Add object fit and position classes to Utility component
20
10
 
21
11
  ### Changed
22
12
 
@@ -28,6 +18,7 @@
28
18
  - Fix Sticky component setting wrong margin for placeholder
29
19
  - Fix dropdowns not closing in Navbar component when hovering dropbar and navigation with keyboard
30
20
  - Fix dropdown no longer closes if pointer is still moving towards it
21
+ - Fix `fadein` not transformed correctly to `fade-in` in scss build
31
22
 
32
23
  ## 3.11.1 (February 7, 2022)
33
24
 
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.a08b20474 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.c2430c233 | 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
  /*