@chakra-ui/descendant
Advanced tools
Comparing version 0.0.0-dev-20221513279 to 0.0.0-dev-2022418165624
export type { DescendantsManager, Descendant, DescendantOptions, } from "./descendant"; | ||
export type { UseDescendantsReturn } from "./use-descendant"; | ||
export { createDescendantContext } from "./use-descendant"; | ||
export { createDescendantContext as default } from "./use-descendant"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -1,2 +0,2 @@ | ||
/// <reference types="react" /> | ||
import React from "react"; | ||
import { DescendantsManager, DescendantOptions } from "./descendant"; | ||
@@ -10,3 +10,3 @@ /** | ||
} | ||
export declare function createDescendantContext<T extends HTMLElement = HTMLElement, K = {}>(): readonly [import("react").Provider<DescendantsManager<T, K>>, () => DescendantsManager<T, K>, () => DescendantsManager<T, K>, (options?: DescendantOptions<K> | undefined) => { | ||
export declare function createDescendantContext<T extends HTMLElement = HTMLElement, K = {}>(): readonly [React.Provider<DescendantsManager<T, K>>, () => DescendantsManager<T, K>, () => DescendantsManager<T, K>, (options?: DescendantOptions<K> | undefined) => { | ||
descendants: UseDescendantsReturn; | ||
@@ -13,0 +13,0 @@ index: number; |
{ | ||
"name": "@chakra-ui/descendant", | ||
"version": "0.0.0-dev-20221513279", | ||
"version": "0.0.0-dev-2022418165624", | ||
"description": "Register child nodes of a react element for better accessibility", | ||
@@ -23,4 +23,3 @@ "keywords": [ | ||
"files": [ | ||
"dist", | ||
"src" | ||
"dist" | ||
], | ||
@@ -39,10 +38,10 @@ "publishConfig": { | ||
"dependencies": { | ||
"@chakra-ui/react-utils": "^0.0.0-dev-20221513279" | ||
"@chakra-ui/react-utils": "^2.0.0" | ||
}, | ||
"peerDependencies": { | ||
"react": ">=16.8.6" | ||
"react": ">=18" | ||
}, | ||
"devDependencies": { | ||
"react": "^17.0.1" | ||
"react": "^18.0.0" | ||
} | ||
} |
@@ -23,8 +23,8 @@ # Descendant | ||
Descendants observer is an utility hook for keeping track of descendant elements | ||
Descendants observer is a utility hook for keeping track of descendant elements | ||
and their relative indices. | ||
In short, this package allows each item in a list to know it's relative index | ||
and the parent of the list can keep track of each child, without needing to | ||
render in a loop and pass each component an index. | ||
In short, this package allows each item in a list to know its relative index and | ||
the parent of the list can keep track of each child, without needing to render | ||
in a loop and pass each component an index. | ||
@@ -31,0 +31,0 @@ This enables component composition: |
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
38363
15
897
+ Added@chakra-ui/react-utils@2.0.12(transitive)
+ Added@chakra-ui/utils@2.0.15(transitive)
+ Added@types/lodash.mergewith@4.6.7(transitive)
+ Addedcss-box-model@1.2.1(transitive)
+ Addedframesync@6.1.2(transitive)
+ Addedtiny-invariant@1.3.3(transitive)
+ Addedtslib@2.4.0(transitive)
- Removed@chakra-ui/react-utils@0.0.0-pr-202215132532(transitive)
- Removed@chakra-ui/utils@0.0.0-v3-20240109123510(transitive)
- Removed@types/lodash.mergewith@4.6.8(transitive)