@vanduo-oss/framework 1.5.0 → 1.5.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.
@@ -1,4 +1,4 @@
1
- /*! Vanduo v1.5.0 | Built: 2026-06-18T19:13:58.613Z | git:8f0e1b5 | development */
1
+ /*! Vanduo v1.5.1 | Built: 2026-06-20T15:00:18.257Z | git:baf8178 | development */
2
2
 
3
3
  // js/utils/lifecycle.js
4
4
  (function() {
@@ -176,7 +176,7 @@
176
176
  // js/vanduo.js
177
177
  (function() {
178
178
  "use strict";
179
- const VANDUO_VERSION = true ? "1.5.0" : "0.0.0-dev";
179
+ const VANDUO_VERSION = true ? "1.5.1" : "0.0.0-dev";
180
180
  const hasOwn = Object.prototype.hasOwnProperty;
181
181
  const Vanduo2 = {
182
182
  version: VANDUO_VERSION,
@@ -7763,7 +7763,7 @@
7763
7763
  setActive(card);
7764
7764
  };
7765
7765
  const onKeydown = function(e) {
7766
- if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "Home" && e.key !== "End") {
7766
+ if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.key !== "Home" && e.key !== "End") {
7767
7767
  return;
7768
7768
  }
7769
7769
  const cards = getCards().filter(function(c) {
@@ -7778,10 +7778,14 @@
7778
7778
  });
7779
7779
  }
7780
7780
  if (idx < 0) idx = 0;
7781
- if (e.key === "ArrowLeft") {
7781
+ const isVertical = window.getComputedStyle(container).flexDirection === "column";
7782
+ if (!isVertical && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
7783
+ return;
7784
+ }
7785
+ if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
7782
7786
  e.preventDefault();
7783
7787
  setActive(cards[Math.max(0, idx - 1)]);
7784
- } else if (e.key === "ArrowRight") {
7788
+ } else if (e.key === "ArrowRight" || e.key === "ArrowDown") {
7785
7789
  e.preventDefault();
7786
7790
  setActive(cards[Math.min(cards.length - 1, idx + 1)]);
7787
7791
  } else if (e.key === "Home") {