uikit 3.12.2 → 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 (60) hide show
  1. package/CHANGELOG.md +19 -2
  2. package/build/scss.js +9 -17
  3. package/dist/css/uikit-core-rtl.css +9 -81
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +9 -81
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +9 -81
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +9 -81
  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 +1 -0
  51. package/src/less/components/search.less +0 -3
  52. package/src/less/components/utility.less +0 -9
  53. package/src/scss/components/base.scss +0 -19
  54. package/src/scss/components/form.scss +1 -7
  55. package/src/scss/components/icon.scss +6 -0
  56. package/src/scss/components/list.scss +1 -0
  57. package/src/scss/components/search.scss +0 -1
  58. package/src/scss/components/utility.scss +0 -9
  59. package/src/scss/mixins-theme.scss +0 -4
  60. package/src/scss/mixins.scss +0 -4
package/CHANGELOG.md CHANGED
@@ -1,5 +1,22 @@
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
+
3
20
  ## 3.12.2 (March 14, 2022)
4
21
 
5
22
  ### Fixed
@@ -40,7 +57,7 @@
40
57
 
41
58
  - Deprecate `uk-img` for `<img>` element: Use native `loading="lazy"` attribute instead
42
59
 
43
- ## Removed
60
+ ### Removed
44
61
 
45
62
  - Remove IE11 support
46
63
  - Removed `data-width` and `data-height` for `<img>` element from Image component. Use native attributes instead.
@@ -1123,7 +1140,7 @@
1123
1140
 
1124
1141
  - Image Component uses IntersectionObserver now
1125
1142
 
1126
- ## Removed
1143
+ ### Removed
1127
1144
 
1128
1145
  - Remove `isReady` function
1129
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.2 | 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
  }
@@ -797,6 +779,7 @@ a.uk-link-reset,
797
779
  }
798
780
  .uk-list-bullet > ::before {
799
781
  content: "";
782
+ display: list-item;
800
783
  position: relative;
801
784
  right: -30px;
802
785
  width: 30px;
@@ -1134,14 +1117,20 @@ button.uk-icon:not(:disabled) {
1134
1117
  ========================================================================== */
1135
1118
  /*
1136
1119
  * Display images in icon dimensions
1120
+ * 1. Required for `span` with background image
1121
+ * 2. Required for `image`
1137
1122
  */
1138
1123
  .uk-icon-image {
1139
1124
  width: 20px;
1140
1125
  height: 20px;
1126
+ /* 1 */
1141
1127
  background-position: 50% 50%;
1142
1128
  background-repeat: no-repeat;
1143
1129
  background-size: contain;
1144
1130
  vertical-align: middle;
1131
+ /* 2 */
1132
+ object-fit: scale-down;
1133
+ max-width: none;
1145
1134
  }
1146
1135
  /* Style modifiers
1147
1136
  ========================================================================== */
@@ -1453,15 +1442,9 @@ button.uk-icon:not(:disabled) {
1453
1442
  /*
1454
1443
  * Placeholder
1455
1444
  */
1456
- .uk-input::-ms-input-placeholder {
1457
- color: #999 !important;
1458
- }
1459
1445
  .uk-input::placeholder {
1460
1446
  color: #999;
1461
1447
  }
1462
- .uk-textarea::-ms-input-placeholder {
1463
- color: #999 !important;
1464
- }
1465
1448
  .uk-textarea::placeholder {
1466
1449
  color: #999;
1467
1450
  }
@@ -1557,8 +1540,7 @@ select.uk-form-width-xsmall {
1557
1540
  /*
1558
1541
  * 1. Remove default style. Also works in Firefox
1559
1542
  * 2. Style
1560
- * 3. Remove default style in IE 10/11
1561
- * 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.
1562
1544
  */
1563
1545
  .uk-select:not([multiple]):not([size]) {
1564
1546
  /* 1 */
@@ -1571,10 +1553,6 @@ select.uk-form-width-xsmall {
1571
1553
  background-position: 0% 50%;
1572
1554
  }
1573
1555
  /* 3 */
1574
- .uk-select:not([multiple]):not([size])::-ms-expand {
1575
- display: none;
1576
- }
1577
- /* 4 */
1578
1556
  .uk-select:not([multiple]):not([size]) option {
1579
1557
  color: #666;
1580
1558
  }
@@ -3064,9 +3042,6 @@ select.uk-form-width-xsmall {
3064
3042
  outline: none;
3065
3043
  }
3066
3044
  /* Placeholder */
3067
- .uk-search-input:-ms-input-placeholder {
3068
- color: #999 !important;
3069
- }
3070
3045
  .uk-search-input::placeholder {
3071
3046
  color: #999;
3072
3047
  }
@@ -7667,8 +7642,6 @@ iframe[data-uk-cover] {
7667
7642
  * https://bugzilla.mozilla.org/show_bug.cgi?id=214004
7668
7643
  * 2. In Firefox, a floating `::first-letter` doesn't have a line box and there for no `line-height`
7669
7644
  * https://bugzilla.mozilla.org/show_bug.cgi?id=317933
7670
- * 3. Caused by 1.: Edge creates two nested `::first-letter` containers, one for each selector
7671
- * This doubles the `font-size` exponential when using the `em` unit.
7672
7645
  */
7673
7646
  .uk-dropcap::first-letter,
7674
7647
  .uk-dropcap > p:first-of-type::first-letter {
@@ -7685,12 +7658,6 @@ iframe[data-uk-cover] {
7685
7658
  margin-top: 1.1%;
7686
7659
  }
7687
7660
  }
7688
- /* 3 */
7689
- @supports (-ms-ime-align: auto) {
7690
- .uk-dropcap > p:first-of-type::first-letter {
7691
- font-size: 1em;
7692
- }
7693
- }
7694
7661
  /* Logo
7695
7662
  ========================================================================== */
7696
7663
  /*
@@ -9797,19 +9764,6 @@ iframe[data-uk-cover] {
9797
9764
  background-color: rgba(255, 255, 255, 0.15);
9798
9765
  color: rgba(255, 255, 255, 0.7);
9799
9766
  }
9800
- .uk-light .uk-input::-ms-input-placeholder,
9801
- .uk-section-primary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9802
- .uk-section-secondary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9803
- .uk-tile-primary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9804
- .uk-tile-secondary:not(.uk-preserve-color) .uk-input::-ms-input-placeholder,
9805
- .uk-card-primary.uk-card-body .uk-input::-ms-input-placeholder,
9806
- .uk-card-primary > :not([class*='uk-card-media']) .uk-input::-ms-input-placeholder,
9807
- .uk-card-secondary.uk-card-body .uk-input::-ms-input-placeholder,
9808
- .uk-card-secondary > :not([class*='uk-card-media']) .uk-input::-ms-input-placeholder,
9809
- .uk-overlay-primary .uk-input::-ms-input-placeholder,
9810
- .uk-offcanvas-bar .uk-input::-ms-input-placeholder {
9811
- color: rgba(255, 255, 255, 0.5) !important;
9812
- }
9813
9767
  .uk-light .uk-input::placeholder,
9814
9768
  .uk-section-primary:not(.uk-preserve-color) .uk-input::placeholder,
9815
9769
  .uk-section-secondary:not(.uk-preserve-color) .uk-input::placeholder,
@@ -9823,19 +9777,6 @@ iframe[data-uk-cover] {
9823
9777
  .uk-offcanvas-bar .uk-input::placeholder {
9824
9778
  color: rgba(255, 255, 255, 0.5);
9825
9779
  }
9826
- .uk-light .uk-textarea::-ms-input-placeholder,
9827
- .uk-section-primary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9828
- .uk-section-secondary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9829
- .uk-tile-primary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9830
- .uk-tile-secondary:not(.uk-preserve-color) .uk-textarea::-ms-input-placeholder,
9831
- .uk-card-primary.uk-card-body .uk-textarea::-ms-input-placeholder,
9832
- .uk-card-primary > :not([class*='uk-card-media']) .uk-textarea::-ms-input-placeholder,
9833
- .uk-card-secondary.uk-card-body .uk-textarea::-ms-input-placeholder,
9834
- .uk-card-secondary > :not([class*='uk-card-media']) .uk-textarea::-ms-input-placeholder,
9835
- .uk-overlay-primary .uk-textarea::-ms-input-placeholder,
9836
- .uk-offcanvas-bar .uk-textarea::-ms-input-placeholder {
9837
- color: rgba(255, 255, 255, 0.5) !important;
9838
- }
9839
9780
  .uk-light .uk-textarea::placeholder,
9840
9781
  .uk-section-primary:not(.uk-preserve-color) .uk-textarea::placeholder,
9841
9782
  .uk-section-secondary:not(.uk-preserve-color) .uk-textarea::placeholder,
@@ -10453,19 +10394,6 @@ iframe[data-uk-cover] {
10453
10394
  .uk-offcanvas-bar .uk-search-input {
10454
10395
  color: rgba(255, 255, 255, 0.7);
10455
10396
  }
10456
- .uk-light .uk-search-input:-ms-input-placeholder,
10457
- .uk-section-primary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10458
- .uk-section-secondary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10459
- .uk-tile-primary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10460
- .uk-tile-secondary:not(.uk-preserve-color) .uk-search-input:-ms-input-placeholder,
10461
- .uk-card-primary.uk-card-body .uk-search-input:-ms-input-placeholder,
10462
- .uk-card-primary > :not([class*='uk-card-media']) .uk-search-input:-ms-input-placeholder,
10463
- .uk-card-secondary.uk-card-body .uk-search-input:-ms-input-placeholder,
10464
- .uk-card-secondary > :not([class*='uk-card-media']) .uk-search-input:-ms-input-placeholder,
10465
- .uk-overlay-primary .uk-search-input:-ms-input-placeholder,
10466
- .uk-offcanvas-bar .uk-search-input:-ms-input-placeholder {
10467
- color: rgba(255, 255, 255, 0.5) !important;
10468
- }
10469
10397
  .uk-light .uk-search-input::placeholder,
10470
10398
  .uk-section-primary:not(.uk-preserve-color) .uk-search-input::placeholder,
10471
10399
  .uk-section-secondary:not(.uk-preserve-color) .uk-search-input::placeholder,