uikit 3.16.23-dev.a371e7b76 → 3.16.24-dev.7484d4196

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 (55) hide show
  1. package/CHANGELOG.md +9 -1
  2. package/dist/css/uikit-core-rtl.css +4 -3
  3. package/dist/css/uikit-core-rtl.min.css +1 -1
  4. package/dist/css/uikit-core.css +4 -3
  5. package/dist/css/uikit-core.min.css +1 -1
  6. package/dist/css/uikit-rtl.css +4 -3
  7. package/dist/css/uikit-rtl.min.css +1 -1
  8. package/dist/css/uikit.css +4 -3
  9. package/dist/css/uikit.min.css +1 -1
  10. package/dist/js/components/countdown.js +1 -1
  11. package/dist/js/components/countdown.min.js +1 -1
  12. package/dist/js/components/filter.js +1 -1
  13. package/dist/js/components/filter.min.js +1 -1
  14. package/dist/js/components/lightbox-panel.js +1 -1
  15. package/dist/js/components/lightbox-panel.min.js +1 -1
  16. package/dist/js/components/lightbox.js +1 -1
  17. package/dist/js/components/lightbox.min.js +1 -1
  18. package/dist/js/components/notification.js +1 -1
  19. package/dist/js/components/notification.min.js +1 -1
  20. package/dist/js/components/parallax.js +1 -1
  21. package/dist/js/components/parallax.min.js +1 -1
  22. package/dist/js/components/slider-parallax.js +1 -1
  23. package/dist/js/components/slider-parallax.min.js +1 -1
  24. package/dist/js/components/slider.js +1 -1
  25. package/dist/js/components/slider.min.js +1 -1
  26. package/dist/js/components/slideshow-parallax.js +1 -1
  27. package/dist/js/components/slideshow-parallax.min.js +1 -1
  28. package/dist/js/components/slideshow.js +1 -1
  29. package/dist/js/components/slideshow.min.js +1 -1
  30. package/dist/js/components/sortable.js +1 -1
  31. package/dist/js/components/sortable.min.js +1 -1
  32. package/dist/js/components/tooltip.js +1 -1
  33. package/dist/js/components/tooltip.min.js +1 -1
  34. package/dist/js/components/upload.js +1 -1
  35. package/dist/js/components/upload.min.js +1 -1
  36. package/dist/js/uikit-core.js +27 -25
  37. package/dist/js/uikit-core.min.js +1 -1
  38. package/dist/js/uikit-icons.js +2 -2
  39. package/dist/js/uikit-icons.min.js +1 -1
  40. package/dist/js/uikit.js +27 -25
  41. package/dist/js/uikit.min.js +1 -1
  42. package/package.json +1 -1
  43. package/src/images/icons/question.svg +2 -2
  44. package/src/js/core/dropnav.js +20 -12
  45. package/src/js/core/toggle.js +0 -1
  46. package/src/js/util/dimensions.js +7 -12
  47. package/src/less/components/slider.less +3 -2
  48. package/src/less/theme/nav.less +9 -9
  49. package/src/scss/components/slider.scss +3 -2
  50. package/src/scss/mixins-theme.scss +4 -4
  51. package/src/scss/variables-theme.scss +5 -5
  52. package/tests/drop.html +1 -1
  53. package/tests/dropnav.html +1 -1
  54. package/tests/navbar.html +1 -1
  55. package/tests/scrollspy.html +9 -3
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.16.23-dev.a371e7b76",
5
+ "version": "3.16.24-dev.7484d4196",
6
6
  "main": "dist/js/uikit.js",
7
7
  "style": "dist/css/uikit.css",
8
8
  "sideEffects": [
@@ -1,5 +1,5 @@
1
1
  <svg width="20" height="20" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg">
2
2
  <circle fill="none" stroke="#000" stroke-width="1.1" cx="10" cy="10" r="9" />
3
- <circle cx="10.44" cy="14.42" r="1.05" />
4
- <path fill="none" stroke="#000" stroke-width="1.2" d="M8.17,7.79 C8.17,4.75 12.72,4.73 12.72,7.72 C12.72,8.67 11.81,9.15 11.23,9.75 C10.75,10.24 10.51,10.73 10.45,11.4 C10.44,11.53 10.43,11.64 10.43,11.75" />
3
+ <circle cx="9.99" cy="14.24" r="1.05" />
4
+ <path fill="none" stroke="#000" stroke-width="1.2" d="m7.72,7.61c0-3.04,4.55-3.06,4.55-.07,0,.95-.91,1.43-1.49,2.03-.48.49-.72.98-.78,1.65-.01.13-.02.24-.02.35" />
5
5
  </svg>
@@ -112,21 +112,15 @@ export default {
112
112
  );
113
113
  },
114
114
 
115
- dropdowns(dropdowns) {
116
- this.$create(
117
- 'drop',
118
- dropdowns.filter((el) => !this.getDropdown(el)),
119
- {
120
- ...this.$props,
121
- flip: false,
122
- shift: true,
123
- pos: `bottom-${this.align}`,
124
- boundary: this.boundary === true ? this.$el : this.boundary,
125
- }
126
- );
115
+ dropdowns() {
116
+ this.initializeDropdowns();
127
117
  },
128
118
  },
129
119
 
120
+ connected() {
121
+ this.initializeDropdowns();
122
+ },
123
+
130
124
  disconnected() {
131
125
  remove(this._dropbar);
132
126
  delete this._dropbar;
@@ -394,6 +388,20 @@ export default {
394
388
  isDropbarDrop(el) {
395
389
  return this.getDropdown(el) && hasClass(el, this.clsDrop);
396
390
  },
391
+
392
+ initializeDropdowns() {
393
+ this.$create(
394
+ 'drop',
395
+ this.dropdowns.filter((el) => !this.getDropdown(el)),
396
+ {
397
+ ...this.$props,
398
+ flip: false,
399
+ shift: true,
400
+ pos: `bottom-${this.align}`,
401
+ boundary: this.boundary === true ? this.$el : this.boundary,
402
+ },
403
+ );
404
+ },
397
405
  },
398
406
  };
399
407
 
@@ -114,7 +114,6 @@ export default {
114
114
  if (
115
115
  !show &&
116
116
  (!isBoolean(this._showState) ||
117
- expanded === this._showState ||
118
117
  (e.type === pointerLeave && matches(this.$el, ':focus')) ||
119
118
  (e.type === 'blur' && matches(this.$el, ':hover')))
120
119
  ) {
@@ -2,7 +2,6 @@ import { on } from './event';
2
2
  import { css } from './style';
3
3
  import { $, append, remove } from './dom';
4
4
  import {
5
- each,
6
5
  isDocument,
7
6
  isElement,
8
7
  isString,
@@ -37,6 +36,10 @@ export function dimensions(element) {
37
36
  }
38
37
 
39
38
  export function offset(element, coordinates) {
39
+ if (coordinates) {
40
+ css(element, { left: 0, top: 0 });
41
+ }
42
+
40
43
  const currentOffset = dimensions(element);
41
44
 
42
45
  if (element) {
@@ -54,17 +57,9 @@ export function offset(element, coordinates) {
54
57
  return currentOffset;
55
58
  }
56
59
 
57
- const pos = css(element, 'position');
58
-
59
- each(css(element, ['left', 'top']), (value, prop) =>
60
- css(
61
- element,
62
- prop,
63
- coordinates[prop] -
64
- Math.round(currentOffset[prop] * 1000) / 1000 + // round to 3 digits because css top property is 3 digits precise, while getBoundingClientRect() is 4 digits precise
65
- toFloat(pos === 'absolute' && value === 'auto' ? position(element)[prop] : value)
66
- )
67
- );
60
+ for (const prop of ['left', 'top']) {
61
+ css(element, prop, coordinates[prop] - currentOffset[prop]);
62
+ }
68
63
  }
69
64
 
70
65
  export function position(element) {
@@ -95,14 +95,15 @@
95
95
  /*
96
96
  * 1. Let items take content dimensions (0 0 auto)
97
97
  * `max-width` needed to keep image responsiveness and prevent content overflow
98
- * 3. Create position context
98
+ * 2. Create position context
99
99
  */
100
100
 
101
101
  .uk-slider-items > * {
102
102
  /* 1 */
103
103
  flex: none;
104
+ box-sizing: border-box;
104
105
  max-width: 100%;
105
- /* 3 */
106
+ /* 2 */
106
107
  position: relative;
107
108
  }
108
109
 
@@ -15,11 +15,11 @@
15
15
  // New
16
16
  //
17
17
 
18
- @nav-background-margin-top: 0;
19
- @nav-background-item-padding-horizontal: 10px;
20
- @nav-background-item-padding-vertical: 10px;
21
- @nav-background-item-hover-background: @global-muted-background;
22
- @nav-background-item-active-background: @global-muted-background;
18
+ @nav-secondary-margin-top: 0;
19
+ @nav-secondary-item-padding-horizontal: 10px;
20
+ @nav-secondary-item-padding-vertical: 10px;
21
+ @nav-secondary-item-hover-background: @global-muted-background;
22
+ @nav-secondary-item-active-background: @global-muted-background;
23
23
 
24
24
 
25
25
  // Sublists
@@ -80,14 +80,14 @@
80
80
  // ========================================================================
81
81
 
82
82
  .hook-nav-secondary() {
83
- > :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: @nav-background-margin-top; }
83
+ > :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: @nav-secondary-margin-top; }
84
84
  }
85
85
 
86
- .hook-nav-secondary-item() { padding: @nav-background-item-padding-vertical @nav-background-item-padding-horizontal; }
86
+ .hook-nav-secondary-item() { padding: @nav-secondary-item-padding-vertical @nav-secondary-item-padding-horizontal; }
87
87
 
88
- .hook-nav-secondary-item-hover() { background-color: @nav-background-item-hover-background; }
88
+ .hook-nav-secondary-item-hover() { background-color: @nav-secondary-item-hover-background; }
89
89
 
90
- .hook-nav-secondary-item-active() { background-color: @nav-background-item-active-background; }
90
+ .hook-nav-secondary-item-active() { background-color: @nav-secondary-item-active-background; }
91
91
 
92
92
  .hook-nav-secondary-subtitle() {}
93
93
 
@@ -91,14 +91,15 @@
91
91
  /*
92
92
  * 1. Let items take content dimensions (0 0 auto)
93
93
  * `max-width` needed to keep image responsiveness and prevent content overflow
94
- * 3. Create position context
94
+ * 2. Create position context
95
95
  */
96
96
 
97
97
  .uk-slider-items > * {
98
98
  /* 1 */
99
99
  flex: none;
100
+ box-sizing: border-box;
100
101
  max-width: 100%;
101
- /* 3 */
102
+ /* 2 */
102
103
  position: relative;
103
104
  }
104
105
 
@@ -1784,11 +1784,11 @@
1784
1784
  @mixin hook-nav-primary-header(){}
1785
1785
  @mixin hook-nav-primary-divider(){}
1786
1786
  @mixin hook-nav-secondary(){
1787
- > :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: $nav-background-margin-top; }
1787
+ > :not(.uk-nav-divider) + :not(.uk-nav-header, .uk-nav-divider) { margin-top: $nav-secondary-margin-top; }
1788
1788
  }
1789
- @mixin hook-nav-secondary-item(){ padding: $nav-background-item-padding-vertical $nav-background-item-padding-horizontal; }
1790
- @mixin hook-nav-secondary-item-hover(){ background-color: $nav-background-item-hover-background; }
1791
- @mixin hook-nav-secondary-item-active(){ background-color: $nav-background-item-active-background; }
1789
+ @mixin hook-nav-secondary-item(){ padding: $nav-secondary-item-padding-vertical $nav-secondary-item-padding-horizontal; }
1790
+ @mixin hook-nav-secondary-item-hover(){ background-color: $nav-secondary-item-hover-background; }
1791
+ @mixin hook-nav-secondary-item-active(){ background-color: $nav-secondary-item-active-background; }
1792
1792
  @mixin hook-nav-secondary-subtitle(){}
1793
1793
  @mixin hook-nav-secondary-subtitle-hover(){}
1794
1794
  @mixin hook-nav-secondary-subtitle-active(){}
@@ -1237,11 +1237,11 @@ $modal-footer-border: $global-border !default;
1237
1237
  $modal-close-full-padding: 10px !default;
1238
1238
  $modal-close-full-background: $modal-dialog-background !default;
1239
1239
  $modal-close-full-padding-m: $global-margin !default;
1240
- $nav-background-margin-top: 0 !default;
1241
- $nav-background-item-padding-horizontal: 10px !default;
1242
- $nav-background-item-padding-vertical: 10px !default;
1243
- $nav-background-item-hover-background: $global-muted-background !default;
1244
- $nav-background-item-active-background: $global-muted-background !default;
1240
+ $nav-secondary-margin-top: 0 !default;
1241
+ $nav-secondary-item-padding-horizontal: 10px !default;
1242
+ $nav-secondary-item-padding-vertical: 10px !default;
1243
+ $nav-secondary-item-hover-background: $global-muted-background !default;
1244
+ $nav-secondary-item-active-background: $global-muted-background !default;
1245
1245
  $inverse-nav-background-item-hover-background: $inverse-global-muted-background !default;
1246
1246
  $inverse-nav-background-item-active-background: $inverse-global-muted-background !default;
1247
1247
  $navbar-gap-m: 30px !default;
package/tests/drop.html CHANGED
@@ -621,7 +621,7 @@
621
621
  <tr>
622
622
  <td><code>stretch</code></td>
623
623
  <td>false|true|'x'|'y'</td>
624
- <td>true</td>
624
+ <td>false</td>
625
625
  <td>Stretch drop on both (true) or given axis.</td>
626
626
  </tr>
627
627
  <tr>
@@ -747,7 +747,7 @@
747
747
  <tr>
748
748
  <td><code>stretch</code></td>
749
749
  <td>false|true|'x'|'y'</td>
750
- <td>true</td>
750
+ <td>false</td>
751
751
  <td>Stretch drop on both (true) or given axis.</td>
752
752
  </tr>
753
753
  <tr>
package/tests/navbar.html CHANGED
@@ -2616,7 +2616,7 @@
2616
2616
  <tr>
2617
2617
  <td><code>stretch</code></td>
2618
2618
  <td>false|true|'x'|'y'</td>
2619
- <td>true</td>
2619
+ <td>false</td>
2620
2620
  <td>Stretch drop on both (true) or given axis.</td>
2621
2621
  </tr>
2622
2622
  <tr>
@@ -506,6 +506,12 @@
506
506
  <td>``</td>
507
507
  <td>Class to toggle when the element enters/leaves viewport.</td>
508
508
  </tr>
509
+ <tr>
510
+ <td><code>target</code></td>
511
+ <td>Boolean, CSS selector</td>
512
+ <td>false</td>
513
+ <td>Target to apply the scrollspy to. Defaults to the element itself.</td>
514
+ </tr>
509
515
  <tr>
510
516
  <td><code>hidden</code></td>
511
517
  <td>Boolean</td>
@@ -555,9 +561,9 @@
555
561
  </tr>
556
562
  <tr>
557
563
  <td><code>closest</code></td>
558
- <td>String</td>
559
- <td>uk-scrollspy-init-inview</td>
560
- <td>Target to apply the class to.</td>
564
+ <td>Boolean, CSS selector</td>
565
+ <td>false</td>
566
+ <td>Target to apply the class to. Defaults to the element itself.</td>
561
567
  </tr>
562
568
  <tr>
563
569
  <td><code>scroll</code></td>