@chakra-ui/hooks
Advanced tools
Comparing version 0.0.0-v2-latest-20241002175335 to 0.0.0-v2-latest-20241107153126
@@ -7,2 +7,3 @@ export { useAnimationState } from "./use-animation-state"; | ||
export type { UseClipboardOptions } from "./use-clipboard"; | ||
export { useConst } from "./use-const"; | ||
export { useControllableProp, useControllableState, } from "./use-controllable-state"; | ||
@@ -17,2 +18,3 @@ export type { UseControllableStateProps } from "./use-controllable-state"; | ||
export * from "./use-focus-on-pointer-down"; | ||
export * from "./use-id"; | ||
export { useInterval } from "./use-interval"; | ||
@@ -19,0 +21,0 @@ export { useLatestRef } from "./use-latest-ref"; |
@@ -7,3 +7,3 @@ type InitialState = boolean | (() => boolean); | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-boolean | ||
* @see Docs https://v2.chakra-ui.com/docs/hooks/use-boolean | ||
*/ | ||
@@ -10,0 +10,0 @@ export declare function useBoolean(initialState?: InitialState): readonly [boolean, { |
@@ -20,3 +20,3 @@ export interface UseClipboardOptions { | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-clipboard | ||
* @see Docs https://v2.chakra-ui.com/docs/hooks/use-clipboard | ||
*/ | ||
@@ -26,4 +26,4 @@ export declare function useClipboard(value: string, optionsOrTimeout?: number | UseClipboardOptions): { | ||
setValue: import("react").Dispatch<import("react").SetStateAction<string>>; | ||
onCopy: () => void; | ||
onCopy: (valueToCopy?: any) => void; | ||
hasCopied: boolean; | ||
}; |
/** | ||
* Given a prop value and state value, the useControllableProp hook is used to determine whether a component is controlled or uncontrolled, and also returns the computed value. | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-controllable#usecontrollableprop | ||
* @see Docs https://v2.chakra-ui.com/docs/hooks/use-controllable#usecontrollableprop | ||
*/ | ||
@@ -16,4 +16,4 @@ export declare function useControllableProp<T>(prop: T | undefined, state: T): [boolean, T]; | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-controllable#usecontrollablestate | ||
* @see Docs https://v2.chakra-ui.com/docs/hooks/use-controllable#usecontrollablestate | ||
*/ | ||
export declare function useControllableState<T>(props: UseControllableStateProps<T>): [T, import("react").Dispatch<import("react").SetStateAction<T>>]; |
@@ -14,3 +14,3 @@ import React from "react"; | ||
* | ||
* @see Docs https://chakra-ui.com/docs/hooks/use-disclosure | ||
* @see Docs https://v2.chakra-ui.com/docs/hooks/use-disclosure | ||
*/ | ||
@@ -17,0 +17,0 @@ export declare function useDisclosure(props?: UseDisclosureProps): { |
import { ElementSize } from "@zag-js/element-size"; | ||
export declare function useSizes<T extends HTMLElement | null>({ getNodes, observeMutation, }: { | ||
export interface UseSizesProps<T> { | ||
getNodes: () => T[]; | ||
observeMutation?: boolean; | ||
}): (ElementSize | undefined)[]; | ||
export declare function useSize<T extends HTMLElement | null>(subject: T | React.RefObject<T>): ElementSize | undefined; | ||
enabled?: boolean; | ||
fallback?: ElementSize[]; | ||
} | ||
export declare function useSizes<T extends HTMLElement | null>(props: UseSizesProps<T>): (ElementSize | undefined)[]; | ||
export interface UseSizeProps { | ||
observeMutation?: boolean; | ||
enabled?: boolean; | ||
fallback?: ElementSize; | ||
} | ||
export declare function useSize<T extends HTMLElement | null>(subject: T | React.RefObject<T>, options?: UseSizeProps): ElementSize | undefined; |
{ | ||
"name": "@chakra-ui/hooks", | ||
"version": "0.0.0-v2-latest-20241002175335", | ||
"version": "0.0.0-v2-latest-20241107153126", | ||
"description": "React hooks for Chakra components", | ||
@@ -36,3 +36,3 @@ "keywords": [ | ||
"framesync": "6.1.2", | ||
"@chakra-ui/utils": "0.0.0-v2-latest-20241002175335" | ||
"@chakra-ui/utils": "0.0.0-v2-latest-20241107153126" | ||
}, | ||
@@ -39,0 +39,0 @@ "peerDependencies": { |
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
79055
81
2410
+ Added@chakra-ui/utils@0.0.0-v2-latest-20241107153126(transitive)
- Removed@chakra-ui/utils@0.0.0-v2-latest-20241002175335(transitive)