uikit 3.11.2-dev.ada192797 → 3.11.2-dev.ae39176f2

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 (62) hide show
  1. package/CHANGELOG.md +9 -2
  2. package/build/scss.js +1 -1
  3. package/dist/css/uikit-core-rtl.css +42 -17
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +42 -17
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +42 -17
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +42 -17
  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 +5 -4
  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 +51 -42
  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 +55 -45
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +1 -1
  44. package/src/js/api/component.js +1 -1
  45. package/src/js/api/state.js +20 -24
  46. package/src/js/components/sortable.js +4 -3
  47. package/src/js/core/drop.js +1 -1
  48. package/src/js/core/navbar.js +6 -2
  49. package/src/js/core/sticky.js +22 -14
  50. package/src/less/components/flex.less +0 -9
  51. package/src/less/components/navbar.less +0 -7
  52. package/src/less/components/utility.less +22 -0
  53. package/src/scss/components/flex.scss +0 -9
  54. package/src/scss/components/form.scss +3 -3
  55. package/src/scss/components/icon.scss +2 -2
  56. package/src/scss/components/navbar.scss +0 -7
  57. package/src/scss/components/search.scss +1 -1
  58. package/src/scss/components/utility.scss +22 -0
  59. package/src/scss/variables-theme.scss +6 -6
  60. package/src/scss/variables.scss +6 -6
  61. package/tests/sticky-parallax.html +4 -4
  62. package/tests/sticky.html +14 -3
package/dist/js/uikit.js CHANGED
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.11.2-dev.ada192797 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
1
+ /*! UIkit 3.11.2-dev.ae39176f2 | https://www.getuikit.com | (c) 2014 - 2022 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -3156,11 +3156,11 @@
3156
3156
  on(
3157
3157
  el,
3158
3158
  name,
3159
- !delegate
3160
- ? null
3161
- : isString(delegate)
3159
+ delegate
3160
+ ? isString(delegate)
3162
3161
  ? delegate
3163
- : delegate.call(component),
3162
+ : delegate.call(component)
3163
+ : null,
3164
3164
  isString(handler) ? component[handler] : handler.bind(component),
3165
3165
  {passive: passive, capture: capture, self: self}
3166
3166
  )
@@ -3196,30 +3196,26 @@
3196
3196
  }
3197
3197
 
3198
3198
  function normalizeData(ref, ref$1) {
3199
- var data = ref.data;
3200
- var args = ref$1.args;
3199
+ var data = ref.data; if ( data === void 0 ) data = {};
3200
+ var args = ref$1.args; if ( args === void 0 ) args = [];
3201
3201
  var props = ref$1.props; if ( props === void 0 ) props = {};
3202
3202
 
3203
- data = isArray(data)
3204
- ? !isEmpty(args)
3205
- ? data.slice(0, args.length).reduce(function (data, value, index) {
3206
- if (isPlainObject(value)) {
3207
- assign(data, value);
3208
- } else {
3209
- data[args[index]] = value;
3210
- }
3211
- return data;
3212
- }, {})
3213
- : undefined
3214
- : data;
3215
-
3216
- if (data) {
3217
- for (var key in data) {
3218
- if (isUndefined(data[key])) {
3219
- delete data[key];
3203
+ if (isArray(data)) {
3204
+ data = data.slice(0, args.length).reduce(function (data, value, index) {
3205
+ if (isPlainObject(value)) {
3206
+ assign(data, value);
3220
3207
  } else {
3221
- data[key] = props[key] ? coerce(props[key], data[key]) : data[key];
3208
+ data[args[index]] = value;
3222
3209
  }
3210
+ return data;
3211
+ }, {});
3212
+ }
3213
+
3214
+ for (var key in data) {
3215
+ if (isUndefined(data[key])) {
3216
+ delete data[key];
3217
+ } else if (props[key]) {
3218
+ data[key] = coerce(props[key], data[key]);
3223
3219
  }
3224
3220
  }
3225
3221
 
@@ -3401,7 +3397,7 @@
3401
3397
 
3402
3398
  return component.options.functional
3403
3399
  ? new component({data: isPlainObject(element) ? element : [].concat( argsArray )})
3404
- : !element ? init(element) : $$(element).map(init)[0];
3400
+ : element ? $$(element).map(init)[0] : init();
3405
3401
 
3406
3402
  function init(element) {
3407
3403
 
@@ -3481,7 +3477,7 @@
3481
3477
  UIkit.data = '__uikit__';
3482
3478
  UIkit.prefix = 'uk-';
3483
3479
  UIkit.options = {};
3484
- UIkit.version = '3.11.2-dev.ada192797';
3480
+ UIkit.version = '3.11.2-dev.ae39176f2';
3485
3481
 
3486
3482
  globalAPI(UIkit);
3487
3483
  hooksAPI(UIkit);
@@ -4607,7 +4603,7 @@
4607
4603
  if (active$1) {
4608
4604
 
4609
4605
  if (delay && active$1.isDelaying) {
4610
- this.showTimer = setTimeout(this.show, 10);
4606
+ this.showTimer = setTimeout(function () { return matches(target, ':hover') && this$1$1.show(); }, 10);
4611
4607
  return;
4612
4608
  }
4613
4609
 
@@ -6739,7 +6735,7 @@
6739
6735
  var current = ref.current;
6740
6736
 
6741
6737
  var active = this.getActive();
6742
- if (active && includes(active.mode, 'hover') && active.target && !within(active.target, current) && !active.tracker.movesTo(active.$el)) {
6738
+ if (active && includes(active.mode, 'hover') && active.target && !within(active.target, current) && !active.isDelaying) {
6743
6739
  active.hide(false);
6744
6740
  }
6745
6741
  }
@@ -6914,7 +6910,11 @@
6914
6910
 
6915
6911
  var active = this.getActive();
6916
6912
 
6917
- if (matches(this.dropbar, ':hover') && active && active.$el === $el) {
6913
+ if (matches(this.dropbar, ':hover')
6914
+ && active
6915
+ && active.$el === $el
6916
+ && !this.toggles.some(function (el) { return active.target !== el && matches(el, ':focus'); })
6917
+ ) {
6918
6918
  e.preventDefault();
6919
6919
  }
6920
6920
  }
@@ -7743,7 +7743,7 @@
7743
7743
  var position = ref.position;
7744
7744
 
7745
7745
  return position === 'auto'
7746
- ? offset(this.isFixed ? this.placeholder : $el) > height(window)
7746
+ ? (this.isFixed ? this.placeholder : $el).offsetHeight > height(window)
7747
7747
  ? 'bottom'
7748
7748
  : 'top'
7749
7749
  : position;
@@ -7855,6 +7855,7 @@
7855
7855
 
7856
7856
  read: function(ref, types) {
7857
7857
  var height$1 = ref.height;
7858
+ var margin = ref.margin;
7858
7859
 
7859
7860
 
7860
7861
  this.inactive = !this.matchMedia || !isVisible(this.$el);
@@ -7863,13 +7864,19 @@
7863
7864
  return false;
7864
7865
  }
7865
7866
 
7866
- if (this.isActive && types.has('resize')) {
7867
+ var hide = this.isActive && types.has('resize');
7868
+ if (hide) {
7867
7869
  this.hide();
7870
+ }
7871
+
7872
+ if (!this.isActive) {
7868
7873
  height$1 = this.$el.offsetHeight;
7869
- this.show();
7874
+ margin = css(this.$el, 'margin');
7870
7875
  }
7871
7876
 
7872
- height$1 = this.isActive ? height$1 : this.$el.offsetHeight;
7877
+ if (hide) {
7878
+ this.show();
7879
+ }
7873
7880
 
7874
7881
  var overflow = Math.max(0, height$1 + this.offset - height(window));
7875
7882
 
@@ -7878,7 +7885,7 @@
7878
7885
  var offsetParentTop = offset(referenceElement.offsetParent).top;
7879
7886
 
7880
7887
  var top = parseProp(this.top, this.$el, topOffset);
7881
- var bottom = parseProp(this.bottom, this.$el, topOffset + height$1);
7888
+ var bottom = parseProp(this.bottom, this.$el, topOffset + height$1, true);
7882
7889
 
7883
7890
  var start = Math.max(top, topOffset) - this.offset;
7884
7891
  var end = bottom
@@ -7892,21 +7899,21 @@
7892
7899
  topOffset: topOffset,
7893
7900
  offsetParentTop: offsetParentTop,
7894
7901
  height: height$1,
7902
+ margin: margin,
7895
7903
  width: dimensions$1(isVisible(this.widthElement) ? this.widthElement : this.$el).width,
7896
- top: offsetPosition(this.placeholder)[0],
7897
- margins: css(this.$el, ['marginTop', 'marginBottom', 'marginLeft', 'marginRight'])
7904
+ top: offsetPosition(this.placeholder)[0]
7898
7905
  };
7899
7906
  },
7900
7907
 
7901
7908
  write: function(ref) {
7902
7909
  var height = ref.height;
7903
- var margins = ref.margins;
7910
+ var margin = ref.margin;
7904
7911
 
7905
7912
 
7906
7913
  var ref$1 = this;
7907
7914
  var placeholder = ref$1.placeholder;
7908
7915
 
7909
- css(placeholder, assign({height: height}, margins));
7916
+ css(placeholder, {height: height, margin: margin});
7910
7917
 
7911
7918
  if (!within(placeholder, document)) {
7912
7919
  after(this.$el, placeholder);
@@ -8057,7 +8064,7 @@
8057
8064
  var height = ref.height;
8058
8065
  var offsetParentTop = ref.offsetParentTop;
8059
8066
  var active = start !== 0 || scroll > start;
8060
- var top = Math.max(0, this.offset);
8067
+ var top = this.offset;
8061
8068
  var position = 'fixed';
8062
8069
 
8063
8070
  if (scroll > end) {
@@ -8085,7 +8092,7 @@
8085
8092
 
8086
8093
  };
8087
8094
 
8088
- function parseProp(value, el, propOffset) {
8095
+ function parseProp(value, el, propOffset, padding) {
8089
8096
 
8090
8097
  if (!value) {
8091
8098
  return 0;
@@ -8097,7 +8104,9 @@
8097
8104
 
8098
8105
  } else {
8099
8106
 
8100
- return offset(value === true ? parent(el) : query(value, el)).bottom;
8107
+ var refElement = value === true ? parent(el) : query(value, el);
8108
+ return offset(refElement).bottom
8109
+ - (padding && refElement && within(el, refElement) ? toFloat(css(refElement, 'paddingBottom')) : 0);
8101
8110
 
8102
8111
  }
8103
8112
  }
@@ -12270,11 +12279,12 @@
12270
12279
  var clone = append(container, element.outerHTML.replace(/(^<)(?:li|tr)|(?:li|tr)(\/>$)/g, '$1div$2'));
12271
12280
 
12272
12281
  css(clone, 'margin', '0', 'important');
12273
- css(clone, assign({
12282
+ css(clone, {
12274
12283
  boxSizing: 'border-box',
12275
12284
  width: element.offsetWidth,
12276
- height: element.offsetHeight
12277
- }, css(element, ['paddingLeft', 'paddingRight', 'paddingTop', 'paddingBottom'])));
12285
+ height: element.offsetHeight,
12286
+ padding: css(element, 'padding')
12287
+ });
12278
12288
 
12279
12289
  height(clone.firstElementChild, height(element.firstElementChild));
12280
12290