uikit 3.10.0 → 3.10.1

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 (94) hide show
  1. package/.eslintrc.json +0 -1
  2. package/CHANGELOG.md +17 -7
  3. package/CONTRIBUTING.md +1 -1
  4. package/README.md +4 -2
  5. package/build/.eslintrc.json +10 -1
  6. package/build/build.js +5 -5
  7. package/build/less.js +1 -2
  8. package/build/scss.js +1 -1
  9. package/dist/css/uikit-core-rtl.css +8 -5
  10. package/dist/css/uikit-core-rtl.min.css +1 -1
  11. package/dist/css/uikit-core.css +8 -5
  12. package/dist/css/uikit-core.min.css +1 -1
  13. package/dist/css/uikit-rtl.css +8 -5
  14. package/dist/css/uikit-rtl.min.css +1 -1
  15. package/dist/css/uikit.css +8 -5
  16. package/dist/css/uikit.min.css +1 -1
  17. package/dist/js/components/countdown.js +1 -1
  18. package/dist/js/components/countdown.min.js +1 -1
  19. package/dist/js/components/filter.js +5 -5
  20. package/dist/js/components/filter.min.js +1 -1
  21. package/dist/js/components/lightbox-panel.js +2 -2
  22. package/dist/js/components/lightbox-panel.min.js +1 -1
  23. package/dist/js/components/lightbox.js +2 -2
  24. package/dist/js/components/lightbox.min.js +1 -1
  25. package/dist/js/components/notification.js +1 -1
  26. package/dist/js/components/notification.min.js +1 -1
  27. package/dist/js/components/parallax.js +2 -2
  28. package/dist/js/components/parallax.min.js +1 -1
  29. package/dist/js/components/slider-parallax.js +3 -9
  30. package/dist/js/components/slider-parallax.min.js +1 -1
  31. package/dist/js/components/slider.js +2 -2
  32. package/dist/js/components/slider.min.js +1 -1
  33. package/dist/js/components/slideshow-parallax.js +3 -9
  34. package/dist/js/components/slideshow-parallax.min.js +1 -1
  35. package/dist/js/components/slideshow.js +6 -2
  36. package/dist/js/components/slideshow.min.js +1 -1
  37. package/dist/js/components/sortable.js +5 -5
  38. package/dist/js/components/sortable.min.js +1 -1
  39. package/dist/js/components/tooltip.js +5 -4
  40. package/dist/js/components/tooltip.min.js +1 -1
  41. package/dist/js/components/upload.js +1 -1
  42. package/dist/js/components/upload.min.js +1 -1
  43. package/dist/js/uikit-core.js +23 -22
  44. package/dist/js/uikit-core.min.js +1 -1
  45. package/dist/js/uikit-icons.js +1 -1
  46. package/dist/js/uikit-icons.min.js +1 -1
  47. package/dist/js/uikit.js +36 -36
  48. package/dist/js/uikit.min.js +1 -1
  49. package/package.json +3 -3
  50. package/src/js/api/component.js +3 -3
  51. package/src/js/api/state.js +3 -3
  52. package/src/js/components/slider-parallax.js +1 -7
  53. package/src/js/components/slideshow.js +4 -0
  54. package/src/js/components/tooltip.js +2 -1
  55. package/src/js/core/navbar.js +1 -1
  56. package/src/js/core/sticky.js +1 -1
  57. package/src/js/core/toggle.js +4 -3
  58. package/src/js/mixin/animate.js +4 -4
  59. package/src/js/mixin/internal/slideshow-animations.js +1 -1
  60. package/src/js/mixin/parallax.js +1 -1
  61. package/src/js/mixin/position.js +3 -3
  62. package/src/js/util/dom.js +3 -3
  63. package/src/js/util/lang.js +1 -1
  64. package/src/js/util/viewport.js +3 -3
  65. package/src/less/components/cover.less +4 -2
  66. package/src/less/components/divider.less +1 -1
  67. package/src/less/components/utility.less +2 -1
  68. package/src/scss/components/cover.scss +4 -2
  69. package/src/scss/components/divider.scss +1 -1
  70. package/src/scss/components/utility.scss +2 -1
  71. package/tests/base.html +12 -12
  72. package/tests/button.html +1 -1
  73. package/tests/cover.html +5 -5
  74. package/tests/drop.html +2 -2
  75. package/tests/dropdown.html +1 -1
  76. package/tests/flex.html +1 -1
  77. package/tests/grid-masonry.html +1 -1
  78. package/tests/grid-parallax.html +1 -1
  79. package/tests/grid.html +1 -1
  80. package/tests/height.html +2 -2
  81. package/tests/js/index.js +3 -8
  82. package/tests/margin.html +1 -1
  83. package/tests/modal.html +2 -2
  84. package/tests/navbar.html +2 -2
  85. package/tests/padding.html +1 -1
  86. package/tests/parallax.html +1 -1
  87. package/tests/slider.html +1 -1
  88. package/tests/slideshow.html +2 -2
  89. package/tests/sticky.html +2 -2
  90. package/tests/switcher.html +1 -1
  91. package/tests/tab.html +1 -1
  92. package/tests/utility.html +1 -1
  93. package/tests/video.html +3 -3
  94. 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
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## 3.10.1 (January 19, 2022)
4
+
5
+ ### Fixed
6
+
7
+ - Fix vertical divider width in Divider component
8
+ - Fix usage of `data-` prefix for Cover and Responsive component
9
+ - Fix pointer events for iframes in Cover component
10
+ - Fix Slideshow component no longer throws if items list does not exist
11
+ - Fix space key no longer triggers Toggle on <input> elements
12
+
3
13
  ## 3.10.0 (January 12, 2022)
4
14
 
5
15
  ### Added
@@ -38,7 +48,7 @@
38
48
 
39
49
  ### Fixed
40
50
 
41
- - Fix build scripts for windows users
51
+ - Fix build scripts for Windows users
42
52
  - Fix css in Leader component
43
53
  - Fix division deprecation warnings in Sass source
44
54
 
@@ -63,7 +73,7 @@
63
73
  ### Changed
64
74
 
65
75
  - Make padding large a little bigger on small devices
66
- - Change logo color to emphasis
76
+ - Change logo color to 'emphasis'
67
77
 
68
78
  ### Fixed
69
79
 
@@ -438,7 +448,7 @@
438
448
 
439
449
  ### Changed
440
450
 
441
- - Sorting starts after traversing half the items height/width in Sortable component
451
+ - Sorting starts after traversing half the item's height/width in Sortable component
442
452
 
443
453
  ## 3.5.12 (December 7, 2020)
444
454
 
@@ -507,7 +517,7 @@
507
517
 
508
518
  ### Changed
509
519
 
510
- - Sticky component uses window.Date instead of window.performance
520
+ - Sticky component uses 'window.Date' instead of 'window.performance'
511
521
  - Sticky component with sticky-on-up no longer hides when Dropdown shows
512
522
 
513
523
  ### Fixed
@@ -794,7 +804,7 @@
794
804
 
795
805
  ### Added
796
806
 
797
- - Parallax, Scroll, Scrollspy Nav components work inside of scrollable container
807
+ - Parallax, Scroll, Scrollspy Nav components work inside scrollable container
798
808
  - Expose `scrollIntoView` utility function
799
809
 
800
810
  ### Fixed
@@ -1542,7 +1552,7 @@
1542
1552
 
1543
1553
  ### Added
1544
1554
 
1545
- - Add support to center elements outside of a container to Position component
1555
+ - Add support to center elements outside a container to Position component
1546
1556
 
1547
1557
  ### Changed
1548
1558
 
@@ -1949,7 +1959,7 @@
1949
1959
 
1950
1960
  ### Changed
1951
1961
 
1952
- - IMPORTANT: Offcanvas requires to wrap page in extra div
1962
+ - IMPORTANT: Offcanvas requires wrapping page in extra div
1953
1963
  - Refactored Offcanvas component
1954
1964
  - Update Instagram, Tumblr and Vimeo icons
1955
1965
  - Component Constructor initializes multiple components at once
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/build.js CHANGED
@@ -4,9 +4,9 @@ import {args, compile, glob, icons} from './util.js';
4
4
 
5
5
  const bundles = getBundleTasks();
6
6
  const components = await getComponentTasks();
7
- const buildAll = args.all || Object.keys(args).filter(name =>
8
- ['d', 'debug', 'nominify', 'watch'].includes(name)
9
- ).length <= 1;
7
+ const buildAll = args.all || !Object.keys(args).filter(name =>
8
+ !['d', 'debug', 'nominify', 'watch', '_'].includes(name)
9
+ ).length;
10
10
 
11
11
  if (args.h || args.help) {
12
12
  console.log(`
@@ -16,8 +16,8 @@ if (args.h || args.help) {
16
16
 
17
17
  examples:
18
18
 
19
- build.js // builds all of uikit, including icons and does minification (implies 'all')
20
- build.js uikit icons -d // builds all of uikit and the icons, skipping the minification
19
+ build.js // builds all of uikit, including icons, components and does minification (implies 'all')
20
+ build.js uikit icons -d // builds uikit and the icons, skipping the minification and components
21
21
  build.js core lightbox -d // builds uikit-core and the lightbox, skipping the minification
22
22
 
23
23
  available components:
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
@@ -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.0 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.10.1 | 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