@mantine/hooks 7.0.0-alpha.13 → 7.0.0-alpha.15

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,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare function useHover<T extends HTMLElement = HTMLDivElement>(): {
2
3
  ref: import("react").RefObject<T>;
3
4
  hovered: boolean;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export declare function useMouse<T extends HTMLElement = any>(options?: {
2
3
  resetOnExit?: boolean;
3
4
  }): {
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  export interface UseMovePosition {
2
3
  x: number;
3
4
  y: number;
@@ -1,3 +1,4 @@
1
+ /// <reference types="react" />
1
2
  interface ScrollIntoViewAnimation {
2
3
  /** target element alignment relatively to parent based on current axis */
3
4
  alignment?: 'start' | 'end' | 'center';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mantine/hooks",
3
- "version": "7.0.0-alpha.13",
3
+ "version": "7.0.0-alpha.15",
4
4
  "types": "./lib/index.d.ts",
5
5
  "exports": {
6
6
  ".": {
@@ -29,7 +29,7 @@
29
29
  "state"
30
30
  ],
31
31
  "peerDependencies": {
32
- "react": ">=16.8.0"
32
+ "react": ">=18.0.0"
33
33
  },
34
34
  "dependencies": {
35
35
  "tslib": "^2.5.2"