@floating-ui/react-dom-interactions
Advanced tools
Comparing version 0.1.0 to 0.1.1
{ | ||
"name": "@floating-ui/react-dom-interactions", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"@rollingversions": { | ||
@@ -5,0 +5,0 @@ "baseVersion": [ |
@@ -1,2 +0,2 @@ | ||
import React, { SetStateAction } from 'react'; | ||
import React from 'react'; | ||
import type { FloatingContext } from './types'; | ||
@@ -12,6 +12,7 @@ declare type Delay = number | Partial<{ | ||
} | ||
export declare const useDelayGroupContext: () => GroupState & { | ||
setCurrentId: (currentId: any) => void; | ||
setState: React.Dispatch<SetStateAction<GroupState>>; | ||
}; | ||
interface GroupContext extends GroupState { | ||
setCurrentId: React.Dispatch<React.SetStateAction<any>>; | ||
setState: React.Dispatch<React.SetStateAction<GroupState>>; | ||
} | ||
export declare const useDelayGroupContext: () => GroupContext; | ||
/** | ||
@@ -22,5 +23,6 @@ * Provides context for a group of floating elements that should share a | ||
*/ | ||
export declare const FloatingDelayGroup: React.FC<{ | ||
export declare const FloatingDelayGroup: ({ children, delay, }: { | ||
children?: React.ReactNode; | ||
delay: Delay; | ||
}>; | ||
}) => JSX.Element; | ||
interface UseGroupOptions { | ||
@@ -27,0 +29,0 @@ id: any; |
@@ -6,4 +6,5 @@ import React from 'react'; | ||
*/ | ||
export declare const FloatingPortal: React.FC<{ | ||
export declare const FloatingPortal: ({ children, id, }: { | ||
children?: React.ReactNode; | ||
id?: string; | ||
}>; | ||
}) => React.ReactPortal; |
import React from 'react'; | ||
import type { FloatingTreeType } from './types'; | ||
export declare const useFloatingParentNodeId: () => string; | ||
export declare const useFloatingTree: () => FloatingTreeType; | ||
export declare const useFloatingParentNodeId: () => string | null; | ||
export declare const useFloatingTree: () => FloatingTreeType | null; | ||
/** | ||
@@ -13,5 +13,6 @@ * Registers a node into the floating tree, returning its id. | ||
*/ | ||
export declare const FloatingNode: React.FC<{ | ||
export declare const FloatingNode: ({ children, id, }: { | ||
children?: React.ReactNode; | ||
id: string; | ||
}>; | ||
}) => JSX.Element; | ||
/** | ||
@@ -23,2 +24,4 @@ * Provides context for nested floating elements when they are not children of | ||
*/ | ||
export declare const FloatingTree: React.FC; | ||
export declare const FloatingTree: ({ children }: { | ||
children?: React.ReactNode; | ||
}) => JSX.Element; |
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
244782
5642