@trackunit/react-components 6.1.5 → 6.1.6

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.
package/index.cjs.js CHANGED
@@ -8445,6 +8445,9 @@ const useMenuItemBehavior = ({ className, label, children, selected, disabled, o
8445
8445
  if (stopPropagation) {
8446
8446
  e.stopPropagation();
8447
8447
  }
8448
+ // `onClick` often moves focus, e.g. back to the menu trigger or a text field. Without this, the
8449
+ // same key press then lands there: it clicks the trigger again or types a line break.
8450
+ e.preventDefault();
8448
8451
  // eslint-disable-next-line @trackunit/no-typescript-assertion
8449
8452
  onClick(e);
8450
8453
  }
package/index.esm.js CHANGED
@@ -8444,6 +8444,9 @@ const useMenuItemBehavior = ({ className, label, children, selected, disabled, o
8444
8444
  if (stopPropagation) {
8445
8445
  e.stopPropagation();
8446
8446
  }
8447
+ // `onClick` often moves focus, e.g. back to the menu trigger or a text field. Without this, the
8448
+ // same key press then lands there: it clicks the trigger again or types a line break.
8449
+ e.preventDefault();
8447
8450
  // eslint-disable-next-line @trackunit/no-typescript-assertion
8448
8451
  onClick(e);
8449
8452
  }
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@trackunit/react-router-components",
3
- "version": "1.3.55",
3
+ "version": "1.3.56",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "engines": {
7
7
  "node": ">=24.x"
8
8
  },
9
9
  "dependencies": {
10
- "@trackunit/css-class-variance-utilities": "2.6.53",
11
- "@trackunit/i18n-library-translation": "2.14.46",
12
- "@trackunit/react-components": "6.1.5",
13
- "@trackunit/react-drawer": "2.17.52",
14
- "@trackunit/shared-utils": "1.22.53",
10
+ "@trackunit/css-class-variance-utilities": "2.6.54",
11
+ "@trackunit/i18n-library-translation": "2.14.47",
12
+ "@trackunit/react-components": "6.1.6",
13
+ "@trackunit/react-drawer": "2.17.53",
14
+ "@trackunit/shared-utils": "1.22.54",
15
15
  "dequal": "^2.0.3",
16
16
  "zod": "^3.25.76"
17
17
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@trackunit/react-components",
3
- "version": "6.1.5",
3
+ "version": "6.1.6",
4
4
  "repository": "https://github.com/Trackunit/manager",
5
5
  "license": "SEE LICENSE IN LICENSE.txt",
6
6
  "migrations": "./migrations.json",
@@ -14,15 +14,15 @@
14
14
  "@floating-ui/react": "^0.26.25",
15
15
  "string-ts": "^2.0.0",
16
16
  "tailwind-merge": "^3.7.0",
17
- "@trackunit/ui-design-tokens": "1.21.51",
18
- "@trackunit/css-class-variance-utilities": "2.6.53",
19
- "@trackunit/shared-utils": "1.22.53",
20
- "@trackunit/ui-icons": "1.20.51",
17
+ "@trackunit/ui-design-tokens": "1.21.52",
18
+ "@trackunit/css-class-variance-utilities": "2.6.54",
19
+ "@trackunit/shared-utils": "1.22.54",
20
+ "@trackunit/ui-icons": "1.20.52",
21
21
  "es-toolkit": "^1.52.0",
22
22
  "@tanstack/react-virtual": "^3.14.13",
23
23
  "fflate": "^0.8.3",
24
24
  "zod": "^3.25.76",
25
- "@trackunit/i18n-library-translation": "2.14.46"
25
+ "@trackunit/i18n-library-translation": "2.14.47"
26
26
  },
27
27
  "peerDependencies": {
28
28
  "react": "^19.0.0",