uikit 3.12.0 → 3.12.3-dev.ebebb4f57

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 +31 -2
  2. package/build/scss.js +9 -17
  3. package/dist/css/uikit-core-rtl.css +20 -82
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +20 -82
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +20 -82
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +20 -82
  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 +11 -9
  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 +11 -9
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/core/scrollspy.js +7 -4
  45. package/src/js/core/sticky.js +1 -2
  46. package/src/js/util/style.js +1 -1
  47. package/src/less/components/base.less +0 -19
  48. package/src/less/components/form.less +1 -9
  49. package/src/less/components/icon.less +6 -0
  50. package/src/less/components/list.less +6 -1
  51. package/src/less/components/search.less +0 -3
  52. package/src/less/components/slider.less +3 -0
  53. package/src/less/components/slideshow.less +3 -0
  54. package/src/less/components/utility.less +0 -9
  55. package/src/scss/components/base.scss +0 -19
  56. package/src/scss/components/form.scss +1 -7
  57. package/src/scss/components/icon.scss +6 -0
  58. package/src/scss/components/list.scss +6 -1
  59. package/src/scss/components/search.scss +0 -1
  60. package/src/scss/components/slider.scss +3 -0
  61. package/src/scss/components/slideshow.scss +3 -0
  62. package/src/scss/components/utility.scss +0 -9
  63. package/src/scss/mixins-theme.scss +0 -4
  64. package/src/scss/mixins.scss +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,34 @@
1
1
  # Changelog
2
2
 
3
+ ## WIP
4
+
5
+ ### Added
6
+
7
+ - Add support for `<img>` element to icon image class in Icon component
8
+
9
+ ### Removed
10
+
11
+ - Remove Edge Legacy (EdgeHTML) support
12
+ - Remove Safari fallback for `focus-visible`
13
+
14
+ ### Fixed
15
+
16
+ - Fix list bullet regression in List component
17
+ - Fix Sticky component notices change in its offset parent's position
18
+ - Fix Scrollspy component does not apply animation classes on hide
19
+
20
+ ## 3.12.2 (March 14, 2022)
21
+
22
+ ### Fixed
23
+
24
+ - Fix regression in Slider/Slideshow touch gestures
25
+
26
+ ## 3.12.1 (March 14, 2022)
27
+
28
+ ### Fixed
29
+
30
+ - Fix List component used with flex utility classes
31
+
3
32
  ## 3.12.0 (March 14, 2022)
4
33
 
5
34
  ### Added
@@ -28,7 +57,7 @@
28
57
 
29
58
  - Deprecate `uk-img` for `<img>` element: Use native `loading="lazy"` attribute instead
30
59
 
31
- ## Removed
60
+ ### Removed
32
61
 
33
62
  - Remove IE11 support
34
63
  - Removed `data-width` and `data-height` for `<img>` element from Image component. Use native attributes instead.
@@ -1111,7 +1140,7 @@
1111
1140
 
1112
1141
  - Image Component uses IntersectionObserver now
1113
1142
 
1114
- ## Removed
1143
+ ### Removed
1115
1144
 
1116
1145
  - Remove `isReady` function
1117
1146
  - Form Custom component no longer sets `uk-hover` and `uk-focus` classes
package/build/scss.js CHANGED
@@ -92,10 +92,7 @@ for (const file of await glob('src/less/**/*.less')) {
92
92
  .replace(/(\$[\w-]*)\s*:(.*);/g, '$1: $2 !default;') // make variables optional
93
93
  .replace(/@mixin ([\w-]*)\s*\((.*)\)\s*{\s*}/g, '// @mixin $1($2){}') // comment empty mixins
94
94
  .replace(/\.(hook[a-zA-Z\-\d]+)(\(\))?;/g, '@if(mixin-exists($1)) {@include $1();}') // hook calls surrounded by a mixin-exists
95
- .replace(
96
- /\$(import|supports|media|font-face|page|-ms-viewport|keyframes|-webkit-keyframes|-moz-document)/g,
97
- '@$1'
98
- ) // replace valid '@' statements
95
+ .replace(/\$(import|supports|media|font-face|page|keyframes|-moz-document)/g, '@$1') // replace valid '@' statements
99
96
  .replace(/tint\((\$[\w-]+),\s([^)]*)\)/g, 'mix(white, $1, $2)') // replace Less function tint with mix
100
97
  .replace(/fade\((\$[\w-]*), ([0-9]+)%\)/g, (match, p1, p2) => {
101
98
  return `rgba(${p1}, ${p2 / 100})`;
@@ -191,19 +188,14 @@ await write('src/scss/variables-theme.scss', Array.from(compactThemeVar).join('\
191
188
  * @return Set with all the dependencies.
192
189
  */
193
190
  function getAllDependencies(allVariables, currentKey, dependencies = new Set()) {
194
- if (!allVariables[currentKey].dependencies.length) {
195
- dependencies.add(`${currentKey}: ${allVariables[currentKey].value}`);
196
- return Array.from(dependencies);
197
- } else {
198
- allVariables[currentKey].dependencies.forEach((dependecy) => {
199
- getAllDependencies(allVariables, dependecy, dependencies).forEach((newDependency) =>
200
- dependencies.add(newDependency)
201
- );
202
- });
203
-
204
- dependencies.add(`${currentKey}: ${allVariables[currentKey].value}`);
205
- return Array.from(dependencies);
206
- }
191
+ allVariables[currentKey].dependencies?.forEach((dependency) =>
192
+ getAllDependencies(allVariables, dependency, dependencies).forEach((newDependency) =>
193
+ dependencies.add(newDependency)
194
+ )
195
+ );
196
+
197
+ dependencies.add(`${currentKey}: ${allVariables[currentKey].value}`);
198
+ return Array.from(dependencies);
207
199
  }
208
200
 
209
201
  /*
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.12.0 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.12.3-dev.ebebb4f57 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -380,27 +380,9 @@ pre code {
380
380
  }
381
381
  /* Focus
382
382
  ========================================================================== */
383
- /*
384
- * Safari doesn't support `:focus-visible` yet. It also doesn't set focus if clicking a button or anchor.
385
- * 1. Fallback: Remove `:focus` for a negative tabindexes.
386
- * 2. Fallback: Set `:focus` style but not for negative tabindexes.
387
- * 3. Fallback: Remove `:focus` style for browsers which support `:focus-visible`.
388
- * 4. Set `:focus-visible` style for browsers which support it.
389
- */
390
- /* 1 */
391
383
  :focus {
392
384
  outline: none;
393
385
  }
394
- /* 2 */
395
- :focus:not([tabindex^='-']) {
396
- outline: 2px dotted #333;
397
- outline-offset: 1px;
398
- }
399
- /* 3 */
400
- :focus:not(:focus-visible) {
401
- outline: none;
402
- }
403
- /* 4 */
404
386
  :focus-visible {
405
387
  outline: 2px dotted #333;
406
388
  }
@@ -745,7 +727,11 @@ a.uk-link-reset,
745
727
  .uk-list-decimal > * {
746
728
  counter-increment: decimal;
747
729
  }
748
- [class*='uk-list'] > ::before {
730
+ .uk-list-disc > ::before,
731
+ .uk-list-circle > ::before,
732
+ .uk-list-square > ::before,
733
+ .uk-list-decimal > ::before,
734
+ .uk-list-hyphen > ::before {
749
735
  content: "";
750
736
  position: relative;
751
737
  right: -30px;
@@ -793,6 +779,7 @@ a.uk-link-reset,
793
779
  }
794
780
  .uk-list-bullet > ::before {
795
781
  content: "";
782
+ display: list-item;
796
783
  position: relative;
797
784
  right: -30px;
798
785
  width: 30px;
@@ -1130,14 +1117,20 @@ button.uk-icon:not(:disabled) {
1130
1117
  ========================================================================== */
1131
1118
  /*
1132
1119
  * Display images in icon dimensions
1120
+ * 1. Required for `span` with background image
1121
+ * 2. Required for `image`
1133
1122
  */
1134
1123
  .uk-icon-image {
1135
1124
  width: 20px;
1136
1125
  height: 20px;
1126
+ /* 1 */
1137
1127
  background-position: 50% 50%;
1138
1128
  background-repeat: no-repeat;
1139
1129
  background-size: contain;
1140
1130
  vertical-align: middle;
1131
+ /* 2 */
1132
+ object-fit: scale-down;
1133
+ max-width: none;
1141
1134
  }
1142
1135
  /* Style modifiers
1143
1136
  ========================================================================== */
@@ -1449,15 +1442,9 @@ button.uk-icon:not(:disabled) {
1449
1442
  /*
1450
1443
  * Placeholder
1451
1444
  */
1452
- .uk-input::-ms-input-placeholder {
1453
- color: #999 !important;
1454
- }
1455
1445
  .uk-input::placeholder {
1456
1446
  color: #999;
1457
1447
  }
1458
- .uk-textarea::-ms-input-placeholder {
1459
- color: #999 !important;
1460
- }
1461
1448
  .uk-textarea::placeholder {
1462
1449
  color: #999;
1463
1450
  }
@@ -1553,8 +1540,7 @@ select.uk-form-width-xsmall {
1553
1540
  /*
1554
1541
  * 1. Remove default style. Also works in Firefox
1555
1542
  * 2. Style
1556
- * 3. Remove default style in IE 10/11
1557
- * 4. Set `color` for options in the select dropdown, because the inherited `color` might be too light.
1543
+ * 3. Set `color` for options in the select dropdown, because the inherited `color` might be too light.
1558
1544
  */
1559
1545
  .uk-select:not([multiple]):not([size]) {
1560
1546
  /* 1 */
@@ -1567,10 +1553,6 @@ select.uk-form-width-xsmall {
1567
1553
  background-position: 0% 50%;
1568
1554
  }
1569
1555
  /* 3 */
1570
- .uk-select:not([multiple]):not([size])::-ms-expand {
1571
- display: none;
1572
- }
1573
- /* 4 */
1574
1556
  .uk-select:not([multiple]):not([size]) option {
1575
1557
  color: #666;
1576
1558
  }
@@ -3060,9 +3042,6 @@ select.uk-form-width-xsmall {
3060
3042
  outline: none;
3061
3043
  }
3062
3044
  /* Placeholder */
3063
- .uk-search-input:-ms-input-placeholder {
3064
- color: #999 !important;
3065
- }
3066
3045
  .uk-search-input::placeholder {
3067
3046
  color: #999;
3068
3047
  }
@@ -3571,6 +3550,7 @@ select.uk-form-width-xsmall {
3571
3550
  * 2. Reset list
3572
3551
  * 3. Clip child elements
3573
3552
  * 4. Prevent displaying the callout information on iOS.
3553
+ * 5. Disable horizontal panning gestures
3574
3554
  */
3575
3555
  .uk-slideshow-items {
3576
3556
  /* 1 */
@@ -3584,6 +3564,8 @@ select.uk-form-width-xsmall {
3584
3564
  overflow: hidden;
3585
3565
  /* 4 */
3586
3566
  -webkit-touch-callout: none;
3567
+ /* 5 */
3568
+ touch-action: pan-y;
3587
3569
  }
3588
3570
  /* Item
3589
3571
  ========================================================================== */
@@ -3642,12 +3624,15 @@ select.uk-form-width-xsmall {
3642
3624
  /*
3643
3625
  * 1. Optimize animation
3644
3626
  * 2. Create a containing block. In Safari it's neither created by `transform` nor `will-change`.
3627
+ * 3. Disable horizontal panning gestures
3645
3628
  */
3646
3629
  .uk-slider-items {
3647
3630
  /* 1 */
3648
3631
  will-change: transform;
3649
3632
  /* 2 */
3650
3633
  position: relative;
3634
+ /* 3 */
3635
+ touch-action: pan-y;
3651
3636
  }
3652
3637
  /*
3653
3638
  * 1. Reset list style without interfering with grid
@@ -7657,8 +7642,6 @@ iframe[data-uk-cover] {
7657
7642
  * https://bugzilla.mozilla.org/show_bug.cgi?id=214004
7658
7643
  * 2. In Firefox, a floating `::first-letter` doesn't have a line box and there for no `line-height`
7659
7644
  * https://bugzilla.mozilla.org/show_bug.cgi?id=317933
7660
- * 3. Caused by 1.: Edge creates two nested `::first-letter` containers, one for each selector
7661
- * This doubles the `font-size` exponential when using the `em` unit.
7662
7645
  */
7663
7646
  .uk-dropcap::first-letter,
7664
7647
  .uk-dropcap > p:first-of-type::first-letter {
@@ -7675,12 +7658,6 @@ iframe[data-uk-cover] {
7675
7658
  margin-top: 1.1%;
7676
7659
  }
7677
7660
  }
7678
- /* 3 */
7679
- @supports (-ms-ime-align: auto) {
7680
- .uk-dropcap > p:first-of-type::first-letter {
7681
- font-size: 1em;
7682
- }
7683
- }
7684
7661
  /* Logo
7685
7662
  ========================================================================== */
7686
7663
  /*
@@ -9787,19 +9764,6 @@ iframe[data-uk-cover] {
9787
9764
  background-color: rgba(255, 255, 255, 0.15);
9788
9765
  color: rgba(255, 255, 255, 0.7);
9789
9766
  }
9790
- .uk-light .uk-input::-ms-input-placeholder,
9791
- .uk-section-primary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9792
- .uk-section-secondary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9793
- .uk-tile-primary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9794
- .uk-tile-secondary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9795
- .uk-card-primary.uk-card-body .uk-input::-ms-input-placeholder,
9796
- .uk-card-primary > :not([class*='uk-card-media']) .uk-input::-ms-input-placeholder,
9797
- .uk-card-secondary.uk-card-body .uk-input::-ms-input-placeholder,
9798
- .uk-card-secondary > :not([class*='uk-card-media']) .uk-input::-ms-input-placeholder,
9799
- .uk-overlay-primary .uk-input::-ms-input-placeholder,
9800
- .uk-offcanvas-bar .uk-input::-ms-input-placeholder {
9801
- color: rgba(255, 255, 255, 0.5) !important;
9802
- }
9803
9767
  .uk-light .uk-input::placeholder,
9804
9768
  .uk-section-primary:not(.uk-preserve-color) .uk-input::placeholder,
9805
9769
  .uk-section-secondary:not(.uk-preserve-color) .uk-input::placeholder,
@@ -9813,19 +9777,6 @@ iframe[data-uk-cover] {
9813
9777
  .uk-offcanvas-bar .uk-input::placeholder {
9814
9778
  color: rgba(255, 255, 255, 0.5);
9815
9779
  }
9816
- .uk-light .uk-textarea::-ms-input-placeholder,
9817
- .uk-section-primary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9818
- .uk-section-secondary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9819
- .uk-tile-primary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9820
- .uk-tile-secondary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9821
- .uk-card-primary.uk-card-body .uk-textarea::-ms-input-placeholder,
9822
- .uk-card-primary > :not([class*='uk-card-media']) .uk-textarea::-ms-input-placeholder,
9823
- .uk-card-secondary.uk-card-body .uk-textarea::-ms-input-placeholder,
9824
- .uk-card-secondary > :not([class*='uk-card-media']) .uk-textarea::-ms-input-placeholder,
9825
- .uk-overlay-primary .uk-textarea::-ms-input-placeholder,
9826
- .uk-offcanvas-bar .uk-textarea::-ms-input-placeholder {
9827
- color: rgba(255, 255, 255, 0.5) !important;
9828
- }
9829
9780
  .uk-light .uk-textarea::placeholder,
9830
9781
  .uk-section-primary:not(.uk-preserve-color) .uk-textarea::placeholder,
9831
9782
  .uk-section-secondary:not(.uk-preserve-color) .uk-textarea::placeholder,
@@ -10443,19 +10394,6 @@ iframe[data-uk-cover] {
10443
10394
  .uk-offcanvas-bar .uk-search-input {
10444
10395
  color: rgba(255, 255, 255, 0.7);
10445
10396
  }
10446
- .uk-light .uk-search-input:-ms-input-placeholder,
10447
- .uk-section-primary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10448
- .uk-section-secondary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10449
- .uk-tile-primary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10450
- .uk-tile-secondary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10451
- .uk-card-primary.uk-card-body .uk-search-input:-ms-input-placeholder,
10452
- .uk-card-primary > :not([class*='uk-card-media']) .uk-search-input:-ms-input-placeholder,
10453
- .uk-card-secondary.uk-card-body .uk-search-input:-ms-input-placeholder,
10454
- .uk-card-secondary > :not([class*='uk-card-media']) .uk-search-input:-ms-input-placeholder,
10455
- .uk-overlay-primary .uk-search-input:-ms-input-placeholder,
10456
- .uk-offcanvas-bar .uk-search-input:-ms-input-placeholder {
10457
- color: rgba(255, 255, 255, 0.5) !important;
10458
- }
10459
10397
  .uk-light .uk-search-input::placeholder,
10460
10398
  .uk-section-primary:not(.uk-preserve-color) .uk-search-input::placeholder,
10461
10399
  .uk-section-secondary:not(.uk-preserve-color) .uk-search-input::placeholder,