uikit 3.10.1-dev.2a182d8f9 → 3.10.2-dev.3a696ee97

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 (93) hide show
  1. package/.eslintrc.json +0 -1
  2. package/CHANGELOG.md +22 -11
  3. package/CONTRIBUTING.md +1 -1
  4. package/README.md +4 -2
  5. package/build/.eslintrc.json +10 -1
  6. package/build/less.js +1 -2
  7. package/build/scss.js +5 -5
  8. package/dist/css/uikit-core-rtl.css +8 -5
  9. package/dist/css/uikit-core-rtl.min.css +1 -1
  10. package/dist/css/uikit-core.css +8 -5
  11. package/dist/css/uikit-core.min.css +1 -1
  12. package/dist/css/uikit-rtl.css +8 -5
  13. package/dist/css/uikit-rtl.min.css +1 -1
  14. package/dist/css/uikit.css +8 -5
  15. package/dist/css/uikit.min.css +1 -1
  16. package/dist/js/components/countdown.js +1 -1
  17. package/dist/js/components/countdown.min.js +1 -1
  18. package/dist/js/components/filter.js +5 -5
  19. package/dist/js/components/filter.min.js +1 -1
  20. package/dist/js/components/lightbox-panel.js +2 -2
  21. package/dist/js/components/lightbox-panel.min.js +1 -1
  22. package/dist/js/components/lightbox.js +2 -2
  23. package/dist/js/components/lightbox.min.js +1 -1
  24. package/dist/js/components/notification.js +1 -1
  25. package/dist/js/components/notification.min.js +1 -1
  26. package/dist/js/components/parallax.js +4 -4
  27. package/dist/js/components/parallax.min.js +1 -1
  28. package/dist/js/components/slider-parallax.js +5 -11
  29. package/dist/js/components/slider-parallax.min.js +1 -1
  30. package/dist/js/components/slider.js +2 -2
  31. package/dist/js/components/slider.min.js +1 -1
  32. package/dist/js/components/slideshow-parallax.js +5 -11
  33. package/dist/js/components/slideshow-parallax.min.js +1 -1
  34. package/dist/js/components/slideshow.js +2 -2
  35. package/dist/js/components/slideshow.min.js +1 -1
  36. package/dist/js/components/sortable.js +5 -5
  37. package/dist/js/components/sortable.min.js +1 -1
  38. package/dist/js/components/tooltip.js +5 -4
  39. package/dist/js/components/tooltip.min.js +1 -1
  40. package/dist/js/components/upload.js +1 -1
  41. package/dist/js/components/upload.min.js +1 -1
  42. package/dist/js/uikit-core.js +32 -32
  43. package/dist/js/uikit-core.min.js +1 -1
  44. package/dist/js/uikit-icons.js +1 -1
  45. package/dist/js/uikit-icons.min.js +1 -1
  46. package/dist/js/uikit.js +43 -48
  47. package/dist/js/uikit.min.js +1 -1
  48. package/package.json +3 -3
  49. package/src/js/api/component.js +3 -3
  50. package/src/js/api/hooks.js +6 -10
  51. package/src/js/api/state.js +3 -3
  52. package/src/js/components/slider-parallax.js +1 -7
  53. package/src/js/components/tooltip.js +2 -1
  54. package/src/js/core/navbar.js +1 -1
  55. package/src/js/core/sticky.js +1 -1
  56. package/src/js/core/toggle.js +4 -3
  57. package/src/js/mixin/animate.js +4 -4
  58. package/src/js/mixin/internal/slideshow-animations.js +1 -1
  59. package/src/js/mixin/parallax.js +3 -3
  60. package/src/js/mixin/position.js +3 -3
  61. package/src/js/util/dom.js +3 -3
  62. package/src/js/util/lang.js +5 -1
  63. package/src/js/util/viewport.js +3 -3
  64. package/src/less/components/cover.less +4 -2
  65. package/src/less/components/divider.less +1 -1
  66. package/src/less/components/utility.less +2 -1
  67. package/src/scss/components/cover.scss +4 -2
  68. package/src/scss/components/divider.scss +1 -1
  69. package/src/scss/components/utility.scss +2 -1
  70. package/tests/base.html +12 -12
  71. package/tests/button.html +1 -1
  72. package/tests/cover.html +5 -5
  73. package/tests/drop.html +2 -2
  74. package/tests/dropdown.html +1 -1
  75. package/tests/flex.html +1 -1
  76. package/tests/grid-masonry.html +1 -1
  77. package/tests/grid-parallax.html +1 -1
  78. package/tests/grid.html +1 -1
  79. package/tests/height.html +2 -2
  80. package/tests/js/index.js +3 -8
  81. package/tests/margin.html +1 -1
  82. package/tests/modal.html +2 -2
  83. package/tests/navbar.html +2 -2
  84. package/tests/padding.html +1 -1
  85. package/tests/parallax.html +1 -1
  86. package/tests/slider.html +1 -1
  87. package/tests/slideshow.html +2 -2
  88. package/tests/sticky.html +2 -2
  89. package/tests/switcher.html +1 -1
  90. package/tests/tab.html +1 -1
  91. package/tests/utility.html +1 -1
  92. package/tests/video.html +3 -3
  93. package/tests/width.html +1 -1
package/.eslintrc.json CHANGED
@@ -30,7 +30,6 @@
30
30
  "linebreak-style": ["error", "unix"],
31
31
  "no-array-constructor": "error",
32
32
  "no-case-declarations": "warn",
33
- "no-console": "off",
34
33
  "no-duplicate-imports": "error",
35
34
  "no-empty": ["error", {"allowEmptyCatch": true}],
36
35
  "no-extend-native": "error",
package/CHANGELOG.md CHANGED
@@ -4,7 +4,18 @@
4
4
 
5
5
  ### Fixed
6
6
 
7
+ - Fix interdependent computed properties being evaluated too often
8
+ - Fix `getIndex()` returns `-1` instead of `NaN` if called with empty elements parameter
9
+
10
+ ## 3.10.1 (January 19, 2022)
11
+
12
+ ### Fixed
13
+
14
+ - Fix vertical divider width in Divider component
15
+ - Fix usage of `data-` prefix for Cover and Responsive component
16
+ - Fix pointer events for iframes in Cover component
7
17
  - Fix Slideshow component no longer throws if items list does not exist
18
+ - Fix space key no longer triggers Toggle on <input> elements
8
19
 
9
20
  ## 3.10.0 (January 12, 2022)
10
21
 
@@ -44,7 +55,7 @@
44
55
 
45
56
  ### Fixed
46
57
 
47
- - Fix build scripts for windows users
58
+ - Fix build scripts for Windows users
48
59
  - Fix css in Leader component
49
60
  - Fix division deprecation warnings in Sass source
50
61
 
@@ -58,7 +69,7 @@
58
69
 
59
70
  ### Changed
60
71
 
61
- - Upgrade LESS to version 4
72
+ - Upgrade Less to version 4
62
73
 
63
74
  ## 3.8.1 (November 5, 2021)
64
75
 
@@ -69,7 +80,7 @@
69
80
  ### Changed
70
81
 
71
82
  - Make padding large a little bigger on small devices
72
- - Change logo color to emphasis
83
+ - Change logo color to 'emphasis'
73
84
 
74
85
  ### Fixed
75
86
 
@@ -444,7 +455,7 @@
444
455
 
445
456
  ### Changed
446
457
 
447
- - Sorting starts after traversing half the items height/width in Sortable component
458
+ - Sorting starts after traversing half the item's height/width in Sortable component
448
459
 
449
460
  ## 3.5.12 (December 7, 2020)
450
461
 
@@ -513,7 +524,7 @@
513
524
 
514
525
  ### Changed
515
526
 
516
- - Sticky component uses window.Date instead of window.performance
527
+ - Sticky component uses 'window.Date' instead of 'window.performance'
517
528
  - Sticky component with sticky-on-up no longer hides when Dropdown shows
518
529
 
519
530
  ### Fixed
@@ -800,7 +811,7 @@
800
811
 
801
812
  ### Added
802
813
 
803
- - Parallax, Scroll, Scrollspy Nav components work inside of scrollable container
814
+ - Parallax, Scroll, Scrollspy Nav components work inside scrollable container
804
815
  - Expose `scrollIntoView` utility function
805
816
 
806
817
  ### Fixed
@@ -1548,7 +1559,7 @@
1548
1559
 
1549
1560
  ### Added
1550
1561
 
1551
- - Add support to center elements outside of a container to Position component
1562
+ - Add support to center elements outside a container to Position component
1552
1563
 
1553
1564
  ### Changed
1554
1565
 
@@ -1869,7 +1880,7 @@
1869
1880
 
1870
1881
  ### Changed
1871
1882
 
1872
- - IMPORTANT: Move LESS/Sass imports into one file. Use `components/_import.less`
1883
+ - IMPORTANT: Move Less/Sass imports into one file. Use `components/_import.less`
1873
1884
  - IMPORTANT: Renamed `transition` option to `easing` in Scroll component
1874
1885
  - Improve flip behaviour in Drop component
1875
1886
  - Improve `class` handling
@@ -1955,7 +1966,7 @@
1955
1966
 
1956
1967
  ### Changed
1957
1968
 
1958
- - IMPORTANT: Offcanvas requires to wrap page in extra div
1969
+ - IMPORTANT: Offcanvas requires wrapping page in extra div
1959
1970
  - Refactored Offcanvas component
1960
1971
  - Update Instagram, Tumblr and Vimeo icons
1961
1972
  - Component Constructor initializes multiple components at once
@@ -2043,7 +2054,7 @@
2043
2054
 
2044
2055
  ### Fixed
2045
2056
 
2046
- - Fix npm not watching LESS
2057
+ - Fix npm not watching Less files
2047
2058
  - Modal no longer closes immediately when toggled from custom `click` handler
2048
2059
  - Fix Accordion component
2049
2060
  - Fix container for Tooltip component
@@ -2140,7 +2151,7 @@
2140
2151
 
2141
2152
  ### Changed
2142
2153
 
2143
- - LESS no longer uses component attribute selectors
2154
+ - Less no longer uses component attribute selectors
2144
2155
  - Accordion close and open icons using variables
2145
2156
 
2146
2157
  ### Removed
package/CONTRIBUTING.md CHANGED
@@ -83,7 +83,7 @@ UIkit adapts the [Vue's commit convention](https://github.com/vuejs/vue/blob/dev
83
83
  - `fix:` A bug fix
84
84
  - `perf:` A code change that improves performance
85
85
  - `refactor:` A code change that neither fixes a bug nor adds a feature
86
- - `style:` Changes that do not affect the meaning of the code (white-space, formatting, etc)
86
+ - `style:` Changes that do not affect the meaning of the code (white-space, formatting, etc.)
87
87
  - `test:` Adding missing tests or correcting existing tests
88
88
 
89
89
  ## Versioning
package/README.md CHANGED
@@ -3,6 +3,8 @@
3
3
  # UIkit
4
4
 
5
5
  [![Discord](https://img.shields.io/badge/chat-on%20discord-7289da.svg)](https://discord.gg/NEt4Pv7)
6
+ [![Build](https://circleci.com/gh/uikit/uikit.svg?style=shield)](https://circleci.com/gh/uikit/uikit)
7
+ [![jsdelivr](https://data.jsdelivr.com/v1/package/npm/uikit/badge?style=rounded)](https://www.jsdelivr.com/package/npm/uikit)
6
8
 
7
9
  UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.
8
10
 
@@ -51,8 +53,8 @@ UIkit is maintained by using the [Semantic Versioning Specification (SemVer)](ht
51
53
  ## Browser Support
52
54
 
53
55
  | ![Firefox](https://raw.github.com/alrra/browser-logos/main/src/firefox/firefox_48x48.png) | ![Safari](https://raw.github.com/alrra/browser-logos/main/src/safari/safari_48x48.png) | ![Chrome](https://raw.github.com/alrra/browser-logos/main/src/chrome/chrome_48x48.png) | ![Edge](https://raw.github.com/alrra/browser-logos/main/src/edge/edge_48x48.png) | ![Opera](https://raw.github.com/alrra/browser-logos/main/src/opera/opera_48x48.png) |
54
- | -------- | -------- | -------- | -------- | -------- |
55
- | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
56
+ |-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------|----------------------------------------------------------------------------------|-------------------------------------------------------------------------------------|
57
+ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ | Latest ✔ |
56
58
 
57
59
  Tested With<br>[![BrowserStack](https://user-images.githubusercontent.com/355427/27389060-9f716c82-569d-11e7-923c-bd5fe7f1c55a.png)](https://www.browserstack.com)
58
60
 
@@ -11,5 +11,14 @@
11
11
  ],
12
12
  "parserOptions": {
13
13
  "ecmaVersion": 2022
14
- }
14
+ },
15
+ "overrides": [
16
+ {
17
+ "files": ["wrapper/*.js"],
18
+ "env": {
19
+ "browser": true,
20
+ "node": false
21
+ }
22
+ }
23
+ ]
15
24
  }
package/build/less.js CHANGED
@@ -69,8 +69,7 @@ async function compile(file, dist, develop, rtl) {
69
69
  action(prop, value, context) {
70
70
  return {prop, value: context.util.negate(value)};
71
71
  }
72
- },
73
-
72
+ }
74
73
  ]
75
74
  }
76
75
  ],
package/build/scss.js CHANGED
@@ -77,7 +77,7 @@ for (const file of await glob('src/less/**/*.less')) {
77
77
 
78
78
  const data = await read(file);
79
79
 
80
- /* replace all LESS stuff with SCSS */
80
+ /* replace all Less stuff with SCSS */
81
81
  let scssData = data.replace(/\/less\//g, '/scss/') // change less/ dir to scss/ on imports
82
82
  .replace(/\.less/g, '.scss') // change .less extensions to .scss on imports
83
83
  .replace(/@/g, '$') // convert variables
@@ -90,9 +90,9 @@ for (const file of await glob('src/less/**/*.less')) {
90
90
  .replace(/@mixin ([\w-]*)\s*\((.*)\)\s*{\s*}/g, '// @mixin $1($2){}') // comment empty mixins
91
91
  .replace(/\.(hook[a-zA-Z\-\d]+)(\(\))?;/g, '@if(mixin-exists($1)) {@include $1();}') // hook calls surrounded by a mixin-exists
92
92
  .replace(/\$(import|supports|media|font-face|page|-ms-viewport|keyframes|-webkit-keyframes|-moz-document)/g, '@$1') // replace valid '@' statements
93
- .replace(/tint\((\$[\w-]+),\s([^)]*)\)/g, 'mix(white, $1, $2)') // replace LESS function tint with mix
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
93
+ .replace(/tint\((\$[\w-]+),\s([^)]*)\)/g, 'mix(white, $1, $2)') // replace Less function tint with mix
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
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
@@ -236,7 +236,7 @@ async function getVariablesFromFile(file, data) {
236
236
 
237
237
  while (match) {
238
238
 
239
- /* check if variable is an background icon, if so replace it directly by the SVG */
239
+ /* check if variable is a background icon, if so replace it directly by the SVG */
240
240
  if (match[0].indexOf('../../images/backgrounds') >= 0) {
241
241
 
242
242
  const iconregex = /(\$[\w-]+)\s*:\s*"\.\.\/\.\.\/images\/backgrounds\/([\w./-]+)" !default;/g;
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.10.1-dev.2a182d8f9 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.2-dev.3a696ee97 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
  /* ========================================================================
3
3
  Component: Base
4
4
  ========================================================================== */
@@ -726,7 +726,7 @@ a.uk-link-reset,
726
726
  /* Vertical
727
727
  ========================================================================== */
728
728
  .uk-divider-vertical {
729
- width: 1px;
729
+ width: max-content;
730
730
  height: 100px;
731
731
  margin-right: auto;
732
732
  margin-left: auto;
@@ -7142,7 +7142,8 @@ td.uk-text-break {
7142
7142
  * is absolute positioned or if the container has a height
7143
7143
  */
7144
7144
  /* 1 */
7145
- [uk-cover] {
7145
+ [uk-cover],
7146
+ [data-uk-cover] {
7146
7147
  /* 2 */
7147
7148
  max-width: none;
7148
7149
  /* 3 */
@@ -7153,7 +7154,8 @@ td.uk-text-break {
7153
7154
  --uk-position-translate-y: -50%;
7154
7155
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
7155
7156
  }
7156
- iframe.uk-cover {
7157
+ iframe[uk-cover],
7158
+ iframe[data-uk-cover] {
7157
7159
  pointer-events: none;
7158
7160
  }
7159
7161
  /* Container
@@ -7616,7 +7618,8 @@ iframe.uk-cover {
7616
7618
  /*
7617
7619
  * Fix initial iframe width. Without the viewport is expanded on iOS devices
7618
7620
  */
7619
- [uk-responsive] {
7621
+ [uk-responsive],
7622
+ [data-uk-responsive] {
7620
7623
  max-width: 100%;
7621
7624
  }
7622
7625
  /* Border