@yamada-ui/use-descendant
Advanced tools
Comparing version 0.0.0-dev-20231125142739 to 0.0.0-dev-20231130115355
@@ -29,4 +29,4 @@ import { Provider } from 'react'; | ||
enabledIndexOf: (node: T | null, filter?: FilterDescendant<T, K> | undefined) => number; | ||
enabledfirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledlastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledFirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledLastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledPrevValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
@@ -53,4 +53,4 @@ enabledNextValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
enabledIndexOf: (node: T | null, filter?: FilterDescendant<T, K> | undefined) => number; | ||
enabledfirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledlastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledFirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledLastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledPrevValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
@@ -75,4 +75,4 @@ enabledNextValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
enabledIndexOf: (node: T | null, filter?: FilterDescendant<T, K> | undefined) => number; | ||
enabledfirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledlastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledFirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledLastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledPrevValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
@@ -97,4 +97,4 @@ enabledNextValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
enabledIndexOf: (node: T | null, filter?: FilterDescendant<T, K> | undefined) => number; | ||
enabledfirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledlastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledFirstValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledLastValue: (filter?: FilterDescendant<T, K> | undefined) => Descendant<T, K> | undefined; | ||
enabledPrevValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
@@ -120,4 +120,4 @@ enabledNextValue: (index: number, filter?: FilterDescendant<T, K> | undefined, loop?: boolean) => Descendant<T, K> | undefined; | ||
enabledIndexOf: (node: HTMLElement | null, filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined) => number; | ||
enabledfirstValue: (filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined) => Descendant<HTMLElement, Record<string, any>> | undefined; | ||
enabledlastValue: (filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined) => Descendant<HTMLElement, Record<string, any>> | undefined; | ||
enabledFirstValue: (filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined) => Descendant<HTMLElement, Record<string, any>> | undefined; | ||
enabledLastValue: (filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined) => Descendant<HTMLElement, Record<string, any>> | undefined; | ||
enabledPrevValue: (index: number, filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => Descendant<HTMLElement, Record<string, any>> | undefined; | ||
@@ -124,0 +124,0 @@ enabledNextValue: (index: number, filter?: FilterDescendant<HTMLElement, Record<string, any>> | undefined, loop?: boolean) => Descendant<HTMLElement, Record<string, any>> | undefined; |
@@ -113,5 +113,5 @@ "use client" | ||
const firstValue = (filter) => value(0, filter); | ||
const enabledfirstValue = (filter) => enabledValue(0, filter); | ||
const enabledFirstValue = (filter) => enabledValue(0, filter); | ||
const lastValue = (filter) => value(descendants.size - 1, filter); | ||
const enabledlastValue = (filter) => enabledValue(enabledValues(filter).length - 1, filter); | ||
const enabledLastValue = (filter) => enabledValue(enabledValues(filter).length - 1, filter); | ||
const prevValue = (index, filter, loop = true) => { | ||
@@ -165,4 +165,4 @@ const prev = getPrevIndex(index, count(filter) - 1, loop); | ||
enabledIndexOf, | ||
enabledfirstValue, | ||
enabledlastValue, | ||
enabledFirstValue, | ||
enabledLastValue, | ||
enabledPrevValue, | ||
@@ -169,0 +169,0 @@ enabledNextValue |
{ | ||
"name": "@yamada-ui/use-descendant", | ||
"version": "0.0.0-dev-20231125142739", | ||
"version": "0.0.0-dev-20231130115355", | ||
"description": "Yamada UI useDescendant custom hook", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet