@mantine/hooks
Advanced tools
Comparing version 7.6.1 to 7.6.2
export declare const isFixed: (current: number, fixedAt: number) => boolean; | ||
export declare const isPinned: (current: number, previous: number) => boolean; | ||
export declare const isReleased: (current: number, previous: number, fixedAt: number) => boolean; | ||
export declare const isPinnedOrReleased: (current: number, fixedAt: number, isCurrentlyPinnedRef: React.MutableRefObject<boolean>, isScrollingUp: boolean, onPin?: () => void, onRelease?: () => void) => void; | ||
export declare const useScrollDirection: () => boolean; | ||
interface UseHeadroomInput { | ||
@@ -5,0 +7,0 @@ /** Number in px at which element should be fixed */ |
type ObserverRect = Omit<DOMRectReadOnly, 'toJSON'>; | ||
export declare function useResizeObserver<T extends HTMLElement = any>(options?: ResizeObserverOptions): readonly [any, ObserverRect]; | ||
export declare function useResizeObserver<T extends HTMLElement = any>(options?: ResizeObserverOptions): readonly [import("react").RefObject<T>, ObserverRect]; | ||
export declare function useElementSize<T extends HTMLElement = any>(options?: ResizeObserverOptions): { | ||
ref: any; | ||
ref: import("react").RefObject<T>; | ||
width: number; | ||
@@ -6,0 +6,0 @@ height: number; |
{ | ||
"name": "@mantine/hooks", | ||
"version": "7.6.1", | ||
"version": "7.6.2", | ||
"description": "A collection of 50+ hooks for state and UI management", | ||
@@ -5,0 +5,0 @@ "homepage": "https://mantine.dev", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
914830
5243