uikit 3.23.8-dev.97ee4c1bb → 3.23.8-dev.c5680eb20

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 (45) hide show
  1. package/dist/css/uikit-core-rtl.css +1 -1
  2. package/dist/css/uikit-core-rtl.min.css +1 -1
  3. package/dist/css/uikit-core.css +1 -1
  4. package/dist/css/uikit-core.min.css +1 -1
  5. package/dist/css/uikit-rtl.css +1 -1
  6. package/dist/css/uikit-rtl.min.css +1 -1
  7. package/dist/css/uikit.css +1 -1
  8. package/dist/css/uikit.min.css +1 -1
  9. package/dist/js/components/countdown.js +1 -1
  10. package/dist/js/components/countdown.min.js +1 -1
  11. package/dist/js/components/filter.js +1 -1
  12. package/dist/js/components/filter.min.js +1 -1
  13. package/dist/js/components/lightbox-panel.js +8 -1
  14. package/dist/js/components/lightbox-panel.min.js +1 -1
  15. package/dist/js/components/lightbox.js +8 -1
  16. package/dist/js/components/lightbox.min.js +1 -1
  17. package/dist/js/components/notification.js +1 -1
  18. package/dist/js/components/notification.min.js +1 -1
  19. package/dist/js/components/parallax.js +1 -1
  20. package/dist/js/components/parallax.min.js +1 -1
  21. package/dist/js/components/slider-parallax.js +1 -1
  22. package/dist/js/components/slider-parallax.min.js +1 -1
  23. package/dist/js/components/slider.js +1 -1
  24. package/dist/js/components/slider.min.js +1 -1
  25. package/dist/js/components/slideshow-parallax.js +1 -1
  26. package/dist/js/components/slideshow-parallax.min.js +1 -1
  27. package/dist/js/components/slideshow.js +1 -1
  28. package/dist/js/components/slideshow.min.js +1 -1
  29. package/dist/js/components/sortable.js +1 -1
  30. package/dist/js/components/sortable.min.js +1 -1
  31. package/dist/js/components/tooltip.js +1 -1
  32. package/dist/js/components/tooltip.min.js +1 -1
  33. package/dist/js/components/upload.js +1 -1
  34. package/dist/js/components/upload.min.js +1 -1
  35. package/dist/js/uikit-core.js +23 -8
  36. package/dist/js/uikit-core.min.js +1 -1
  37. package/dist/js/uikit-icons.js +1 -1
  38. package/dist/js/uikit-icons.min.js +1 -1
  39. package/dist/js/uikit.js +23 -8
  40. package/dist/js/uikit.min.js +1 -1
  41. package/package.json +1 -1
  42. package/src/js/core/drop.js +3 -2
  43. package/src/js/core/icon.js +5 -0
  44. package/src/js/core/toggle.js +15 -9
  45. package/src/js/mixin/modal.js +11 -0
@@ -1,4 +1,4 @@
1
- /*! UIkit 3.23.8-dev.97ee4c1bb | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
1
+ /*! UIkit 3.23.8-dev.c5680eb20 | https://www.getuikit.com | (c) 2014 - 2025 YOOtheme | MIT License */
2
2
 
3
3
  (function (global, factory) {
4
4
  typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
@@ -2158,7 +2158,7 @@
2158
2158
  };
2159
2159
  App.util = util;
2160
2160
  App.options = {};
2161
- App.version = "3.23.8-dev.97ee4c1bb";
2161
+ App.version = "3.23.8-dev.c5680eb20";
2162
2162
 
2163
2163
  const PREFIX = "uk-";
2164
2164
  const DATA = "__uikit__";
@@ -3250,6 +3250,7 @@
3250
3250
  if (this.toggle && !this.targetEl) {
3251
3251
  this.targetEl = createToggleComponent(this);
3252
3252
  }
3253
+ attr(this.targetEl, "aria-expanded", false);
3253
3254
  this._style = pick(this.$el.style, ["width", "height"]);
3254
3255
  },
3255
3256
  disconnected() {
@@ -3380,7 +3381,7 @@
3380
3381
  }
3381
3382
  active$1 = this.isActive() ? null : active$1;
3382
3383
  this.tracker.cancel();
3383
- attr(this.targetEl, "aria-expanded", null);
3384
+ attr(this.targetEl, "aria-expanded", false);
3384
3385
  }
3385
3386
  }
3386
3387
  ],
@@ -3504,7 +3505,7 @@
3504
3505
  target: drop.$el,
3505
3506
  mode: drop.mode
3506
3507
  });
3507
- attr($el, "aria-haspopup", true);
3508
+ $el.ariaHasPopup = true;
3508
3509
  return $el;
3509
3510
  }
3510
3511
  function listenForResize(drop) {
@@ -4584,7 +4585,10 @@
4584
4585
  };
4585
4586
  const NavbarToggleIcon = {
4586
4587
  extends: ButtonComponent,
4587
- i18n: { label: "Open menu" }
4588
+ i18n: { label: "Open menu" },
4589
+ beforeConnect() {
4590
+ this.$el.ariaExpanded = false;
4591
+ }
4588
4592
  };
4589
4593
  const Close = {
4590
4594
  extends: ButtonComponent,
@@ -5067,6 +5071,7 @@
5067
5071
  { self: true }
5068
5072
  );
5069
5073
  addClass(document.documentElement, this.clsPage);
5074
+ setAriaExpanded(this.target, true);
5070
5075
  }
5071
5076
  },
5072
5077
  {
@@ -5095,6 +5100,7 @@
5095
5100
  if (isFocusable(this.target)) {
5096
5101
  this.target.focus();
5097
5102
  }
5103
+ setAriaExpanded(this.target, false);
5098
5104
  this.target = null;
5099
5105
  }
5100
5106
  }
@@ -5179,6 +5185,11 @@
5179
5185
  }
5180
5186
  });
5181
5187
  }
5188
+ function setAriaExpanded(el, toggled) {
5189
+ if (el == null ? void 0 : el.ariaExpanded) {
5190
+ el.ariaExpanded = toggled;
5191
+ }
5192
+ }
5182
5193
 
5183
5194
  var modal = {
5184
5195
  install,
@@ -6504,11 +6515,15 @@
6504
6515
  name: "click",
6505
6516
  filter: ({ mode }) => ["click", "hover"].some((m) => includes(mode, m)),
6506
6517
  handler(e) {
6507
- let link;
6508
- if (this._preventClick || e.target.closest('a[href="#"], a[href=""]') || (link = e.target.closest("a[href]")) && (!this.isToggled(this.target) || link.hash && matches(this.target, link.hash))) {
6518
+ if (e.defaultPrevented) {
6519
+ return;
6520
+ }
6521
+ const link = e.target.closest("a");
6522
+ const isButtonLike = isSameSiteAnchor(link) && (!link.hash || matches(this.target, link.hash));
6523
+ if (this._preventClick || isButtonLike || link && !this.isToggled(this.target)) {
6509
6524
  e.preventDefault();
6510
6525
  }
6511
- if (!this._preventClick && includes(this.mode, "click")) {
6526
+ if (!this._preventClick && includes(this.mode, "click") && (!link || isButtonLike || e.defaultPrevented)) {
6512
6527
  this.toggle();
6513
6528
  }
6514
6529
  }