uikit 3.25.8 → 3.25.10-dev.17473f4

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 (49) hide show
  1. package/CHANGELOG.md +13 -0
  2. package/build/scss.js +1 -3
  3. package/dist/css/uikit-core-rtl.css +4 -1
  4. package/dist/css/uikit-core-rtl.min.css +1 -1
  5. package/dist/css/uikit-core.css +4 -1
  6. package/dist/css/uikit-core.min.css +1 -1
  7. package/dist/css/uikit-rtl.css +4 -1
  8. package/dist/css/uikit-rtl.min.css +1 -1
  9. package/dist/css/uikit.css +4 -1
  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 +4 -3
  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 +2 -2
  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 +4 -3
  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 +30 -22
  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 +31 -23
  42. package/dist/js/uikit.min.js +1 -1
  43. package/package.json +4 -4
  44. package/src/js/components/slider.js +1 -1
  45. package/src/js/core/height-viewport.js +1 -2
  46. package/src/js/core/margin.js +4 -2
  47. package/src/js/core/switcher.js +27 -18
  48. package/src/less/components/lightbox.less +2 -0
  49. package/src/scss/components/lightbox.scss +2 -0
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.25.8 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
1
+ /*! UIkit 3.25.10-dev.17473f4 | https://www.getuikit.com | (c) 2014 - 2026 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2163,7 +2163,7 @@
2163
2163
  };
2164
2164
  App.util = util;
2165
2165
  App.options = {};
2166
- App.version = "3.25.8";
2166
+ App.version = "3.25.10-dev.17473f4";
2167
2167
 
2168
2168
  const PREFIX = "uk-";
2169
2169
  const DATA = "__uikit__";
@@ -3964,13 +3964,14 @@
3964
3964
  resize({
3965
3965
  handler(mutations) {
3966
3966
  for (const {
3967
+ target,
3967
3968
  borderBoxSize: [{ inlineSize, blockSize }]
3968
3969
  } of mutations) {
3969
- if (inlineSize || blockSize) {
3970
- this.$emit("resize");
3970
+ if (target === this.$el && !inlineSize && !blockSize) {
3971
3971
  return;
3972
3972
  }
3973
3973
  }
3974
+ this.$emit("resize");
3974
3975
  },
3975
3976
  target: ({ $el }) => [$el, ...children($el)]
3976
3977
  })
@@ -4353,7 +4354,6 @@
4353
4354
  if (!this.matchMedia) {
4354
4355
  return { minHeight: false };
4355
4356
  }
4356
- let minHeight = "";
4357
4357
  const box = boxModelAdjust(this.$el, "height", "content-box");
4358
4358
  const { body, scrollingElement } = document;
4359
4359
  const scrollElement = scrollParent(this.$el);
@@ -4361,7 +4361,7 @@
4361
4361
  scrollElement === body ? scrollingElement : scrollElement
4362
4362
  );
4363
4363
  const isScrollingElement = scrollingElement === scrollElement || body === scrollElement;
4364
- minHeight = `calc(${isScrollingElement ? "100vh" : `${viewportHeight}px`}`;
4364
+ let minHeight = `calc(${isScrollingElement ? "100vh" : `${viewportHeight}px`}`;
4365
4365
  if (this.expand) {
4366
4366
  const diff = dimensions(scrollElement).height - dimensions(this.$el).height;
4367
4367
  minHeight += ` - ${diff}px`;
@@ -6436,10 +6436,10 @@
6436
6436
  }
6437
6437
  this.$emit();
6438
6438
  },
6439
- toggles(toggles) {
6439
+ toggles() {
6440
6440
  this.$emit();
6441
6441
  const active = this.index();
6442
- this.show(~active ? active : toggles[this.active] || toggles[0]);
6442
+ this.show(~active ? active : this.next(this.active));
6443
6443
  }
6444
6444
  },
6445
6445
  connected() {
@@ -6469,8 +6469,7 @@
6469
6469
  let i = keyCode === keyMap.HOME ? 0 : keyCode === keyMap.END ? "last" : keyCode === keyMap.LEFT && !isVertical || keyCode === keyMap.UP && isVertical ? "previous" : keyCode === keyMap.RIGHT && !isVertical || keyCode === keyMap.DOWN && isVertical ? "next" : -1;
6470
6470
  if (~i) {
6471
6471
  e.preventDefault();
6472
- const toggles = this.toggles.filter((el) => !matches(el, selDisabled));
6473
- const next = toggles[getIndex(i, toggles, toggles.indexOf(current))];
6472
+ const next = this.toggles[this.next(i, this.toggles.indexOf(current))];
6474
6473
  next.focus();
6475
6474
  if (this.followFocus) {
6476
6475
  this.show(next);
@@ -6524,29 +6523,38 @@
6524
6523
  index() {
6525
6524
  return findIndex(this.children, (el) => hasClass(el, this.cls));
6526
6525
  },
6527
- show(item) {
6526
+ next(item, prev = this.index()) {
6527
+ if (isNumeric(item)) {
6528
+ for (let i = 0; i < this.toggles.length; i++) {
6529
+ let index = getIndex(i + +item, this.toggles);
6530
+ if (!matches(this.toggles[index], selDisabled)) {
6531
+ return index;
6532
+ }
6533
+ }
6534
+ }
6528
6535
  const toggles = this.toggles.filter((el) => !matches(el, selDisabled));
6529
- const prev = this.index();
6530
- const next = getIndex(
6531
- !isNode(item) || includes(toggles, item) ? item : 0,
6532
- toggles,
6533
- getIndex(this.toggles[prev], toggles)
6536
+ return getIndex(
6537
+ toggles[getIndex(item, toggles, toggles.indexOf(this.toggles[prev]))],
6538
+ this.toggles
6534
6539
  );
6535
- const active = getIndex(toggles[next], this.toggles);
6540
+ },
6541
+ show(item) {
6542
+ const prev = this.index();
6543
+ const next = this.next(item);
6536
6544
  this.children.forEach((child, i) => {
6537
- toggleClass(child, this.cls, active === i);
6545
+ toggleClass(child, this.cls, next === i);
6538
6546
  attr(this.toggles[i], {
6539
- "aria-selected": active === i,
6540
- tabindex: active === i ? null : -1
6547
+ "aria-selected": next === i,
6548
+ tabindex: next === i ? null : -1
6541
6549
  });
6542
6550
  });
6543
6551
  const animate = prev >= 0 && prev !== next;
6544
6552
  this.connects.forEach(async ({ children: children2 }) => {
6545
6553
  const actives = toArray(children2).filter(
6546
- (child, i) => i !== active && hasClass(child, this.cls)
6554
+ (child, i) => i !== next && hasClass(child, this.cls)
6547
6555
  );
6548
6556
  if (await this.toggleElement(actives, false, animate)) {
6549
- await this.toggleElement(children2[active], true, animate);
6557
+ await this.toggleElement(children2[next], true, animate);
6550
6558
  }
6551
6559
  });
6552
6560
  }