@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 +2 -2
- package/dist/index.d.ts +2 -2
- package/package.json +1 -1
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;
|