@react-aria/menu
Advanced tools
Comparing version 3.1.3-nightly.2445 to 3.1.3-nightly.2448
@@ -8,2 +8,6 @@ var { | ||
var { | ||
getItemCount | ||
} = require("@react-stately/collections"); | ||
var { | ||
useSelectableList, | ||
@@ -176,3 +180,3 @@ useSelectableItem | ||
ariaProps['aria-posinset'] = state.collection.getItem(key).index; | ||
ariaProps['aria-setsize'] = state.collection.size; | ||
ariaProps['aria-setsize'] = getItemCount(state.collection); | ||
} | ||
@@ -179,0 +183,0 @@ |
import { isFocusVisible, useHover, usePress } from "@react-aria/interactions"; | ||
import { getItemCount } from "@react-stately/collections"; | ||
import { useSelectableList, useSelectableItem } from "@react-aria/selection"; | ||
@@ -148,3 +149,3 @@ import _babelRuntimeHelpersEsmObjectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose"; | ||
ariaProps['aria-posinset'] = state.collection.getItem(key).index; | ||
ariaProps['aria-setsize'] = state.collection.size; | ||
ariaProps['aria-setsize'] = getItemCount(state.collection); | ||
} | ||
@@ -151,0 +152,0 @@ |
{ | ||
"name": "@react-aria/menu", | ||
"version": "3.1.3-nightly.2445+df4650ba", | ||
"version": "3.1.3-nightly.2448+28ceccbf", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,12 +21,12 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/interactions": "3.0.0-nightly.767+df4650ba", | ||
"@react-aria/overlays": "3.0.0-nightly.767+df4650ba", | ||
"@react-aria/selection": "3.0.0-nightly.767+df4650ba", | ||
"@react-aria/utils": "3.0.0-nightly.767+df4650ba", | ||
"@react-stately/collections": "3.0.0-nightly.767+df4650ba", | ||
"@react-stately/menu": "3.2.2-nightly.2445+df4650ba", | ||
"@react-stately/tree": "3.0.0-nightly.767+df4650ba", | ||
"@react-types/button": "3.2.2-nightly.2445+df4650ba", | ||
"@react-types/menu": "3.1.2-nightly.2445+df4650ba", | ||
"@react-types/shared": "3.0.0-nightly.767+df4650ba" | ||
"@react-aria/interactions": "3.0.0-nightly.770+28ceccbf", | ||
"@react-aria/overlays": "3.0.0-nightly.770+28ceccbf", | ||
"@react-aria/selection": "3.0.0-nightly.770+28ceccbf", | ||
"@react-aria/utils": "3.0.0-nightly.770+28ceccbf", | ||
"@react-stately/collections": "3.0.0-nightly.770+28ceccbf", | ||
"@react-stately/menu": "3.2.2-nightly.2448+28ceccbf", | ||
"@react-stately/tree": "3.0.0-nightly.770+28ceccbf", | ||
"@react-types/button": "3.2.2-nightly.2448+28ceccbf", | ||
"@react-types/menu": "3.1.2-nightly.2448+28ceccbf", | ||
"@react-types/shared": "3.0.0-nightly.770+28ceccbf" | ||
}, | ||
@@ -39,3 +39,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "df4650ba218034780d86a0ce0459bbe7f88cc1ce" | ||
"gitHead": "28ceccbf05637e9fb256794a16c0152e52be179e" | ||
} |
@@ -13,2 +13,3 @@ /* | ||
import {getItemCount} from '@react-stately/collections'; | ||
import {HTMLAttributes, Key, RefObject} from 'react'; | ||
@@ -106,3 +107,3 @@ import {isFocusVisible, useHover, usePress} from '@react-aria/interactions'; | ||
ariaProps['aria-posinset'] = state.collection.getItem(key).index; | ||
ariaProps['aria-setsize'] = state.collection.size; | ||
ariaProps['aria-setsize'] = getItemCount(state.collection); | ||
} | ||
@@ -109,0 +110,0 @@ |
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
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
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
85990
961