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/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "uikit",
3
3
  "title": "UIkit",
4
4
  "description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
5
- "version": "3.10.0",
5
+ "version": "3.10.1",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -42,7 +42,7 @@
42
42
  "clean-css": "^5.2.2",
43
43
  "dateformat": "^5.0.2",
44
44
  "esbuild": "^0.14.11",
45
- "eslint": "^8.6.0",
45
+ "eslint": "^8.7.0",
46
46
  "fs-extra": "^10.0.0",
47
47
  "glob": "^7.2.0",
48
48
  "inquirer": "^8.2.0",
@@ -50,7 +50,7 @@
50
50
  "minimist": "^1.2.5",
51
51
  "number-precision": "^1.5.1",
52
52
  "p-limit": "^4.0.0",
53
- "rollup": "^2.63.0",
53
+ "rollup": "^2.64.0",
54
54
  "rollup-plugin-esbuild": "^4.8.2",
55
55
  "rollup-plugin-html": "^0.2.1",
56
56
  "rollup-plugin-modify": "^3.0.0",
@@ -35,10 +35,10 @@ export default function (UIkit) {
35
35
  const instance = UIkit.getComponent(element, name);
36
36
 
37
37
  if (instance) {
38
- if (!data) {
39
- return instance;
40
- } else {
38
+ if (data) {
41
39
  instance.$destroy();
40
+ } else {
41
+ return instance;
42
42
  }
43
43
  }
44
44
 
@@ -87,12 +87,12 @@ export default function (UIkit) {
87
87
 
88
88
  events.forEach(event => {
89
89
 
90
- if (!hasOwn(event, 'handler')) {
90
+ if (hasOwn(event, 'handler')) {
91
+ registerEvent(this, event);
92
+ } else {
91
93
  for (const key in event) {
92
94
  registerEvent(this, event[key], key);
93
95
  }
94
- } else {
95
- registerEvent(this, event);
96
96
  }
97
97
 
98
98
  });
@@ -86,11 +86,5 @@ function getCurrentPercent(type, dir, percent) {
86
86
 
87
87
  percent /= 2;
88
88
 
89
- return !isIn(type)
90
- ? dir < 0
91
- ? percent
92
- : 1 - percent
93
- : dir < 0
94
- ? 1 - percent
95
- : percent;
89
+ return isIn(type) ^ dir < 0 ? percent : 1 - percent;
96
90
  }
@@ -28,6 +28,10 @@ export default {
28
28
 
29
29
  read() {
30
30
 
31
+ if (!this.list) {
32
+ return false;
33
+ }
34
+
31
35
  let [width, height] = this.ratio.split(':').map(Number);
32
36
 
33
37
  height = height * this.list.offsetWidth / width || 0;
@@ -67,7 +67,8 @@ export default {
67
67
  }
68
68
 
69
69
  this.toggleElement(this.tooltip, false, false).then(() => {
70
- this.tooltip = remove(this.tooltip);
70
+ remove(this.tooltip);
71
+ this.tooltip = null;
71
72
  this._unbind();
72
73
  });
73
74
  },
@@ -28,7 +28,7 @@ export default {
28
28
 
29
29
  data: {
30
30
  dropdown: navItem,
31
- align: !isRtl ? 'left' : 'right',
31
+ align: isRtl ? 'right' : 'left',
32
32
  clsDrop: 'uk-navbar-dropdown',
33
33
  mode: undefined,
34
34
  offset: undefined,
@@ -144,7 +144,7 @@ export default {
144
144
  this.show();
145
145
  }
146
146
 
147
- height = !this.isActive ? this.$el.offsetHeight : height;
147
+ height = this.isActive ? height : this.$el.offsetHeight;
148
148
 
149
149
  if (height + this.offset > getHeight(window)) {
150
150
  this.inactive = true;
@@ -2,6 +2,8 @@ import Media from '../mixin/media';
2
2
  import Togglable from '../mixin/togglable';
3
3
  import {attr, closest, hasClass, includes, isBoolean, isFocusable, isTouch, matches, once, pointerDown, pointerEnter, pointerLeave, queryAll, trigger, within} from 'uikit-util';
4
4
 
5
+ const KEY_SPACE = 32;
6
+
5
7
  export default {
6
8
 
7
9
  mixins: [Media, Togglable],
@@ -119,12 +121,11 @@ export default {
119
121
  name: 'keydown',
120
122
 
121
123
  filter() {
122
- return includes(this.mode, 'click');
124
+ return includes(this.mode, 'click') && this.$el.tagName !== 'INPUT';
123
125
  },
124
126
 
125
127
  handler(e) {
126
- // Space
127
- if (e.keyCode === 32) {
128
+ if (e.keyCode === KEY_SPACE) {
128
129
  e.preventDefault();
129
130
  this.$el.click();
130
131
  }
@@ -23,12 +23,12 @@ export default {
23
23
  ? fade
24
24
  : name === 'delayed-fade'
25
25
  ? (...args) => fade(...args, 40)
26
- : !name
27
- ? () => {
26
+ : name
27
+ ? slide
28
+ : () => {
28
29
  action();
29
30
  return Promise.resolve();
30
- }
31
- : slide;
31
+ };
32
32
 
33
33
  return animationFn(action, target, this.duration)
34
34
  .then(() => this.$update(target, 'resize'), noop);
@@ -32,7 +32,7 @@ export function translated(el) {
32
32
 
33
33
  export function translate(value = 0, unit = '%') {
34
34
  value += value ? unit : '';
35
- return isIE ? `translateX(${value})` : `translate3d(${value}, 0, 0)`; // currently not translate3d in IE, translate3d within translate3d does not work while transitioning
35
+ return isIE ? `translateX(${value})` : `translate3d(${value}, 0, 0)`; // currently, not translate3d in IE, translate3d within translate3d does not work while transitioning
36
36
  }
37
37
 
38
38
  export function scale3d(value) {
@@ -254,7 +254,7 @@ export default {
254
254
 
255
255
  css[prop] = `rgba(${
256
256
  start.map((value, i) => {
257
- value = value + p * (end[i] - value);
257
+ value += p * (end[i] - value);
258
258
  return i === 3 ? toFloat(value) : parseInt(value, 10);
259
259
  }).join(',')
260
260
  })`;
@@ -1,4 +1,4 @@
1
- import {$, flipPosition, offset as getOffset, includes, isNumeric, isRtl, positionAt, removeClasses, toggleClass} from 'uikit-util';
1
+ import {$, flipPosition, offset as getOffset, isNumeric, isRtl, positionAt, removeClasses, toggleClass} from 'uikit-util';
2
2
 
3
3
  export default {
4
4
 
@@ -10,7 +10,7 @@ export default {
10
10
  },
11
11
 
12
12
  data: {
13
- pos: `bottom-${!isRtl ? 'left' : 'right'}`,
13
+ pos: `bottom-${isRtl ? 'right' : 'left'}`,
14
14
  flip: true,
15
15
  offset: false,
16
16
  clsPos: ''
@@ -19,7 +19,7 @@ export default {
19
19
  computed: {
20
20
 
21
21
  pos({pos}) {
22
- return (pos + (!includes(pos, '-') ? '-center' : '')).split('-');
22
+ return pos.split('-').concat('center').slice(0, 2);
23
23
  },
24
24
 
25
25
  dir() {
@@ -30,10 +30,10 @@ export function prepend(parent, element) {
30
30
 
31
31
  parent = $(parent);
32
32
 
33
- if (!parent.hasChildNodes()) {
34
- return append(parent, element);
35
- } else {
33
+ if (parent.hasChildNodes()) {
36
34
  return insertNodes(element, element => parent.insertBefore(element, parent.firstChild));
35
+ } else {
36
+ return append(parent, element);
37
37
  }
38
38
  }
39
39
 
@@ -138,7 +138,7 @@ export function toBoolean(value) {
138
138
 
139
139
  export function toNumber(value) {
140
140
  const number = Number(value);
141
- return !isNaN(number) ? number : false;
141
+ return isNaN(number) ? false : number;
142
142
  }
143
143
 
144
144
  export function toFloat(value) {
@@ -82,10 +82,10 @@ export function scrollIntoView(element, {offset: offsetBy = 0} = {}) {
82
82
  scrollTop(element, scroll + top * percent);
83
83
 
84
84
  // scroll more if we have not reached our destination
85
- if (percent !== 1) {
86
- requestAnimationFrame(step);
87
- } else {
85
+ if (percent === 1) {
88
86
  resolve();
87
+ } else {
88
+ requestAnimationFrame(step);
89
89
  }
90
90
 
91
91
  })();
@@ -22,7 +22,8 @@
22
22
  */
23
23
 
24
24
  /* 1 */
25
- [uk-cover] {
25
+ [uk-cover],
26
+ [data-uk-cover] {
26
27
  /* 2 */
27
28
  max-width: none;
28
29
  /* 3 */
@@ -34,7 +35,8 @@
34
35
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
35
36
  }
36
37
 
37
- iframe.uk-cover { pointer-events: none; }
38
+ iframe[uk-cover],
39
+ iframe[data-uk-cover] { pointer-events: none; }
38
40
 
39
41
 
40
42
  /* Container
@@ -114,7 +114,7 @@
114
114
  ========================================================================== */
115
115
 
116
116
  .uk-divider-vertical {
117
- width: 1px;
117
+ width: max-content;
118
118
  height: @divider-vertical-height;
119
119
  margin-left: auto;
120
120
  margin-right: auto;
@@ -247,7 +247,8 @@
247
247
  * Fix initial iframe width. Without the viewport is expanded on iOS devices
248
248
  */
249
249
 
250
- [uk-responsive] { max-width: 100%; }
250
+ [uk-responsive],
251
+ [data-uk-responsive] { max-width: 100%; }
251
252
 
252
253
 
253
254
  /* Border
@@ -22,7 +22,8 @@
22
22
  */
23
23
 
24
24
  /* 1 */
25
- [uk-cover] {
25
+ [uk-cover],
26
+ [data-uk-cover] {
26
27
  /* 2 */
27
28
  max-width: none;
28
29
  /* 3 */
@@ -34,7 +35,8 @@
34
35
  transform: translate(var(--uk-position-translate-x), var(--uk-position-translate-y));
35
36
  }
36
37
 
37
- iframe.uk-cover { pointer-events: none; }
38
+ iframe[uk-cover],
39
+ iframe[data-uk-cover] { pointer-events: none; }
38
40
 
39
41
 
40
42
  /* Container
@@ -114,7 +114,7 @@ $divider-vertical-border: $global-border !default;
114
114
  ========================================================================== */
115
115
 
116
116
  .uk-divider-vertical {
117
- width: 1px;
117
+ width: max-content;
118
118
  height: $divider-vertical-height;
119
119
  margin-left: auto;
120
120
  margin-right: auto;
@@ -247,7 +247,8 @@ $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3)
247
247
  * Fix initial iframe width. Without the viewport is expanded on iOS devices
248
248
  */
249
249
 
250
- [uk-responsive] { max-width: 100%; }
250
+ [uk-responsive],
251
+ [data-uk-responsive] { max-width: 100%; }
251
252
 
252
253
 
253
254
  /* Border
package/tests/base.html CHANGED
@@ -15,13 +15,13 @@
15
15
  <div uk-grid>
16
16
  <div class="uk-width-2-3@m">
17
17
 
18
- <h1>This is a H1 heading</h1>
18
+ <h1>this is an H1 heading</h1>
19
19
 
20
20
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
21
21
 
22
22
  <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
23
23
 
24
- <h2>This is a H2 heading</h2>
24
+ <h2>this is an H2 heading</h2>
25
25
 
26
26
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
27
27
 
@@ -36,7 +36,7 @@
36
36
 
37
37
  <p>Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
38
38
 
39
- <h3>This is a H3 heading</h3>
39
+ <h3>this is an H3 heading</h3>
40
40
 
41
41
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
42
42
 
@@ -44,7 +44,7 @@
44
44
 
45
45
  <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
46
46
 
47
- <h4>This is a H4 heading</h4>
47
+ <h4>this is an H4 heading</h4>
48
48
 
49
49
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
50
50
 
@@ -55,7 +55,7 @@
55
55
 
56
56
  <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
57
57
 
58
- <h5>This is a H5 heading</h5>
58
+ <h5>this is an H5 heading</h5>
59
59
 
60
60
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
61
61
 
@@ -63,7 +63,7 @@
63
63
 
64
64
  <p>Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum. Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris.</p>
65
65
 
66
- <h6>This is a H6 heading</h6>
66
+ <h6>this is an H6 heading</h6>
67
67
 
68
68
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum.</p>
69
69
 
@@ -71,27 +71,27 @@
71
71
 
72
72
  <hr>
73
73
 
74
- <h1>This is a H1 heading<br>with some more text</h1>
74
+ <h1>this is an H1 heading<br>with some more text</h1>
75
75
 
76
76
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
77
77
 
78
- <h2>This is a H2 heading<br>with some more text</h2>
78
+ <h2>this is an H2 heading<br>with some more text</h2>
79
79
 
80
80
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
81
81
 
82
- <h3>This is a H3 heading<br>with some more text</h3>
82
+ <h3>this is an H3 heading<br>with some more text</h3>
83
83
 
84
84
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
85
85
 
86
- <h4>This is a H4 heading<br>with some more text</h4>
86
+ <h4>this is an H4 heading<br>with some more text</h4>
87
87
 
88
88
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
89
89
 
90
- <h5>This is a H5 heading<br>with some more text</h5>
90
+ <h5>this is an H5 heading<br>with some more text</h5>
91
91
 
92
92
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
93
93
 
94
- <h6>This is a H6 heading<br>with some more text</h6>
94
+ <h6>this is an H6 heading<br>with some more text</h6>
95
95
 
96
96
  <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.</p>
97
97
 
package/tests/button.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Button - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  body { padding-bottom: 500px; }
12
12
 
package/tests/cover.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Cover - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .test-height { height: 300px; }
12
12
 
@@ -51,7 +51,7 @@
51
51
  <h3>Iframe (YouTube)</h3>
52
52
 
53
53
  <div class="test-height uk-cover-container uk-light">
54
- <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" frameborder="0" allowfullscreen uk-cover></iframe>
54
+ <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
55
55
  <div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
56
56
  <h1>Heading</h1>
57
57
  </div>
@@ -63,7 +63,7 @@
63
63
  <h3>Iframe (Vimeo)</h3>
64
64
 
65
65
  <div class="test-height uk-cover-container uk-light">
66
- <iframe src="https://player.vimeo.com/video/1084537?title=0&amp;byline=0&amp;autoplay=1&amp;loop=1&amp;setVolume=0" width="500" height="281" frameborder="0" allowfullscreen uk-cover></iframe>
66
+ <iframe src="https://player.vimeo.com/video/1084537?title=0&amp;byline=0&amp;autoplay=1&amp;loop=1&amp;setVolume=0" width="500" height="281" allowfullscreen uk-cover></iframe>
67
67
  <div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
68
68
  <h1>Heading</h1>
69
69
  </div>
@@ -94,7 +94,7 @@
94
94
 
95
95
  <div class="uk-cover-container uk-light">
96
96
  <canvas width="600" height="400"></canvas>
97
- <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" frameborder="0" allowfullscreen uk-cover></iframe>
97
+ <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
98
98
  <div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
99
99
  <h1>Heading</h1>
100
100
  </div>
@@ -123,7 +123,7 @@
123
123
  <h3>Iframe (YouTube)</h3>
124
124
 
125
125
  <div class="uk-cover-container uk-light" uk-height-viewport>
126
- <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" frameborder="0" allowfullscreen uk-cover></iframe>
126
+ <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA?autoplay=1&amp;controls=0&amp;showinfo=0&amp;rel=0&amp;loop=1&amp;modestbranding=1&amp;wmode=transparent&amp;playsinline=1" width="1920" height="1080" allowfullscreen uk-cover></iframe>
127
127
  <div class="uk-position-cover uk-flex uk-flex-center uk-flex-middle">
128
128
  <h1>Heading</h1>
129
129
  </div>
package/tests/drop.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Drop - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .boundary { border: 1px dashed rgba(0,0,0,0.2); }
12
12
 
@@ -381,7 +381,7 @@
381
381
  <td><code>boundary</code></td>
382
382
  <td>CSS selector</td>
383
383
  <td>true</td>
384
- <td>Referenced element to keep Drop's visibility. By default it's the window.</td>
384
+ <td>Referenced element to keep Drop's visibility. By default, it's the window.</td>
385
385
  </tr>
386
386
  <tr>
387
387
  <td><code>boundary-align</code></td>
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Dropdown - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .test {
12
12
  display: block;
package/tests/flex.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Flex - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .uk-flex > * {
12
12
  padding: 10px;
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Grid Masonry - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  :nth-child(7n-6) > .uk-panel { height: 120px; background: rgba(0,0,0,0.1); }
12
12
  :nth-child(7n-5) > .uk-panel { height: 180px; background: rgba(0,0,0,0.15); }
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Grid Parallax - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .uk-panel { height: 300px; }
12
12
 
package/tests/grid.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Grid - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .uk-panel {
12
12
  padding: 10px;
package/tests/height.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Height - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  [uk-height-match] > * > .uk-panel {
12
12
  padding: 10px;
@@ -86,7 +86,7 @@
86
86
  <td><code>target</code></td>
87
87
  <td>CSS selector</td>
88
88
  <td><code>> *</code></td>
89
- <td>Elements that should match. By default the children will match.</td>
89
+ <td>Elements that should match. By default, the children will match.</td>
90
90
  </tr>
91
91
  <tr>
92
92
  <td><code>row</code></td>
package/tests/js/index.js CHANGED
@@ -1,10 +1,5 @@
1
1
  /* global UIkit, TESTS */
2
- import {on} from '../../src/js/util/event';
3
- import {css} from '../../src/js/util/style';
4
- import {ucfirst} from '../../src/js/util/lang';
5
- import {prepend} from '../../src/js/util/dom';
6
- import {addClass, removeClass} from '../../src/js/util/class';
7
- import {fastdom} from '../../src/js/util/fastdom';
2
+ import {addClass, css, fastdom, on, prepend, removeClass, ucfirst} from 'uikit-util';
8
3
 
9
4
  const tests = TESTS;
10
5
  const storage = window.sessionStorage;
@@ -105,7 +100,7 @@ on(window, 'load', () => setTimeout(() => fastdom.write(() => {
105
100
 
106
101
  if ($inverse.value) {
107
102
 
108
- removeClass(document.querySelectorAll('*'), [
103
+ removeClass(document.querySelectorAll('*'),
109
104
  'uk-navbar-container',
110
105
  'uk-card-default',
111
106
  'uk-card-muted',
@@ -121,7 +116,7 @@ on(window, 'load', () => setTimeout(() => fastdom.write(() => {
121
116
  'uk-section-secondary',
122
117
  'uk-overlay-default',
123
118
  'uk-overlay-primary'
124
- ]);
119
+ );
125
120
 
126
121
  css(docEl, 'background', $inverse.value === 'dark' ? '#fff' : '#222');
127
122
  addClass($body, `uk-${$inverse.value}`);
package/tests/margin.html CHANGED
@@ -6,7 +6,7 @@
6
6
  <meta name="viewport" content="width=device-width, initial-scale=1">
7
7
  <title>Margin - UIkit tests</title>
8
8
  <script src="js/test.js"></script>
9
- <style type="text/css">
9
+ <style>
10
10
 
11
11
  .uk-panel {
12
12
  padding: 20px;
package/tests/modal.html CHANGED
@@ -384,14 +384,14 @@
384
384
  <div id="modal-media-youtube" class="uk-flex-top" uk-modal>
385
385
  <div class="uk-modal-dialog uk-width-auto uk-margin-auto-vertical">
386
386
  <button class="uk-modal-close-outside" type="button" uk-close></button>
387
- <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA" width="1920" height="1080" frameborder="0" uk-video></iframe>
387
+ <iframe src="https://www.youtube-nocookie.com/embed/c2pz2mlSfXA" width="1920" height="1080" uk-video></iframe>
388
388
  </div>
389
389
  </div>
390
390
 
391
391
  <div id="modal-media-vimeo" class="uk-flex-top" uk-modal>
392
392
  <div class="uk-modal-dialog uk-width-auto uk-margin-auto-vertical">
393
393
  <button class="uk-modal-close-outside" type="button" uk-close></button>
394
- <iframe src="https://player.vimeo.com/video/1084537" width="500" height="281" frameborder="0" uk-video></iframe>
394
+ <iframe src="https://player.vimeo.com/video/1084537" width="500" height="281" uk-video></iframe>
395
395
  </div>
396
396
  </div>
397
397