@zag-js/types 0.81.1 → 0.82.0

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/dist/index.d.mts CHANGED
@@ -1476,8 +1476,8 @@ interface CommonProperties {
1476
1476
  }
1477
1477
  type Style = JSX.CSSProperties;
1478
1478
  type EventKey = "ArrowDown" | "ArrowUp" | "ArrowLeft" | "ArrowRight" | "Space" | "Enter" | "Comma" | "Escape" | "Backspace" | "Delete" | "Home" | "End" | "Tab" | "PageUp" | "PageDown" | (string & {});
1479
- type EventKeyMap = {
1480
- [key in EventKey]?: (event: JSX.KeyboardEvent) => void;
1479
+ type EventKeyMap<T extends HTMLElement = HTMLElement> = {
1480
+ [key in EventKey]?: (event: JSX.KeyboardEvent<T>) => void;
1481
1481
  };
1482
1482
  interface Point {
1483
1483
  x: number;
package/dist/index.d.ts CHANGED
@@ -1476,8 +1476,8 @@ interface CommonProperties {
1476
1476
  }
1477
1477
  type Style = JSX.CSSProperties;
1478
1478
  type EventKey = "ArrowDown" | "ArrowUp" | "ArrowLeft" | "ArrowRight" | "Space" | "Enter" | "Comma" | "Escape" | "Backspace" | "Delete" | "Home" | "End" | "Tab" | "PageUp" | "PageDown" | (string & {});
1479
- type EventKeyMap = {
1480
- [key in EventKey]?: (event: JSX.KeyboardEvent) => void;
1479
+ type EventKeyMap<T extends HTMLElement = HTMLElement> = {
1480
+ [key in EventKey]?: (event: JSX.KeyboardEvent<T>) => void;
1481
1481
  };
1482
1482
  interface Point {
1483
1483
  x: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/types",
3
- "version": "0.81.1",
3
+ "version": "0.82.0",
4
4
  "keywords": [
5
5
  "js",
6
6
  "utils",