@yamada-ui/use-descendant
Advanced tools
Comparing version 0.1.4 to 0.1.5
@@ -124,3 +124,7 @@ "use strict"; | ||
const enabledIndex = enabledIndexOf(target.node, filter); | ||
const prevEnabledIndex = getPrevIndex(enabledIndex, enabledCount(filter) - 1, loop); | ||
const prevEnabledIndex = getPrevIndex( | ||
enabledIndex, | ||
enabledCount(filter) - 1, | ||
loop | ||
); | ||
return enabledValue(prevEnabledIndex, filter); | ||
@@ -137,3 +141,7 @@ }; | ||
const enabledIndex = enabledIndexOf(target.node, filter); | ||
const nextEnabledIndex = getNextIndex(enabledIndex, enabledCount(filter), loop); | ||
const nextEnabledIndex = getNextIndex( | ||
enabledIndex, | ||
enabledCount(filter), | ||
loop | ||
); | ||
return enabledValue(nextEnabledIndex, filter); | ||
@@ -196,3 +204,6 @@ }; | ||
index, | ||
enabledIndex: descendants.enabledIndexOf(ref.current, options == null ? void 0 : options.filter), | ||
enabledIndex: descendants.enabledIndexOf( | ||
ref.current, | ||
options == null ? void 0 : options.filter | ||
), | ||
register: (0, import_utils.mergeRefs)(refCallback, ref) | ||
@@ -199,0 +210,0 @@ }; |
{ | ||
"name": "@yamada-ui/use-descendant", | ||
"version": "0.1.4", | ||
"version": "0.1.5", | ||
"description": "Yamada UI useDescendant custom hook", | ||
@@ -27,3 +27,3 @@ "keywords": [ | ||
"dependencies": { | ||
"@yamada-ui/utils": "0.1.3" | ||
"@yamada-ui/utils": "0.1.4" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
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
38762
545
+ Added@yamada-ui/utils@0.1.4(transitive)
- Removed@yamada-ui/utils@0.1.3(transitive)
Updated@yamada-ui/utils@0.1.4