@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
  var __defProp = Object.defineProperty;
3
3
  var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
4
  var __getOwnPropNames = Object.getOwnPropertyNames;
@@ -201,7 +201,7 @@ module.exports = __toCommonJS(index_exports);
201
201
  // js/vanduo.js
202
202
  (function() {
203
203
  "use strict";
204
- const VANDUO_VERSION = true ? "1.5.0" : "0.0.0-dev";
204
+ const VANDUO_VERSION = true ? "1.5.1" : "0.0.0-dev";
205
205
  const hasOwn = Object.prototype.hasOwnProperty;
206
206
  const Vanduo2 = {
207
207
  version: VANDUO_VERSION,
@@ -7788,7 +7788,7 @@ module.exports = __toCommonJS(index_exports);
7788
7788
  setActive(card);
7789
7789
  };
7790
7790
  const onKeydown = function(e) {
7791
- if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "Home" && e.key !== "End") {
7791
+ if (e.key !== "ArrowLeft" && e.key !== "ArrowRight" && e.key !== "ArrowUp" && e.key !== "ArrowDown" && e.key !== "Home" && e.key !== "End") {
7792
7792
  return;
7793
7793
  }
7794
7794
  const cards = getCards().filter(function(c) {
@@ -7803,10 +7803,14 @@ module.exports = __toCommonJS(index_exports);
7803
7803
  });
7804
7804
  }
7805
7805
  if (idx < 0) idx = 0;
7806
- if (e.key === "ArrowLeft") {
7806
+ const isVertical = window.getComputedStyle(container).flexDirection === "column";
7807
+ if (!isVertical && (e.key === "ArrowUp" || e.key === "ArrowDown")) {
7808
+ return;
7809
+ }
7810
+ if (e.key === "ArrowLeft" || e.key === "ArrowUp") {
7807
7811
  e.preventDefault();
7808
7812
  setActive(cards[Math.max(0, idx - 1)]);
7809
- } else if (e.key === "ArrowRight") {
7813
+ } else if (e.key === "ArrowRight" || e.key === "ArrowDown") {
7810
7814
  e.preventDefault();
7811
7815
  setActive(cards[Math.min(cards.length - 1, idx + 1)]);
7812
7816
  } else if (e.key === "Home") {