react-modal-sheet 2.2.1 → 3.1.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/context.d.ts DELETED
@@ -1,9 +0,0 @@
1
- import * as React from 'react';
2
- import { SheetScrollerContextType, SheetContextType } from './types';
3
- export declare const SheetContext: React.Context<SheetContextType | undefined>;
4
- export declare const useSheetContext: () => SheetContextType;
5
- export declare const SheetScrollerContext: React.Context<SheetScrollerContextType | undefined>;
6
- export declare function SheetScrollerContextProvider({ children, }: {
7
- children: React.ReactNode;
8
- }): React.JSX.Element;
9
- export declare const useSheetScrollerContext: () => SheetScrollerContextType;
package/dist/hooks.d.ts DELETED
@@ -1,15 +0,0 @@
1
- import * as React from 'react';
2
- import { SheetEvents } from './types';
3
- import { BoundingBox } from 'framer-motion';
4
- export declare const useIsomorphicLayoutEffect: typeof React.useEffect;
5
- export declare function useModalEffect(isOpen: boolean, rootId?: string): void;
6
- export declare function useEventCallbacks(isOpen: boolean, callbacks: React.MutableRefObject<SheetEvents>): {
7
- handleAnimationComplete: () => void;
8
- };
9
- export declare function useWindowHeight(): number;
10
- export declare function usePrevious<T>(state: T): T | undefined;
11
- export declare function useEvent<T extends (...args: any[]) => any>(handler: T): T;
12
- export declare function useDragConstraints(): {
13
- constraintsRef: React.MutableRefObject<any>;
14
- onMeasureDragConstraints: () => BoundingBox;
15
- };