Socket
Book a DemoInstallSign in
Socket

@react-aria/listbox

Package Overview
Dependencies
Maintainers
2
Versions
1101
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@react-aria/listbox - npm Package Compare versions

Comparing version

to
3.0.0-nightly-ecb05e28d-250909

4

dist/types.d.ts

@@ -41,6 +41,2 @@ import { Key, DOMAttributes, KeyboardDelegate, LayoutDelegate, RefObject, FocusableElement } from "@react-types/shared";

shouldUseVirtualFocus?: boolean;
/** Whether selection should occur on press up instead of press down. */
shouldSelectOnPressUp?: boolean;
/** Whether options should be focused when the user hovers over them. */
shouldFocusOnHover?: boolean;
/**

@@ -47,0 +43,0 @@ * The behavior of links in the collection.

2

dist/useOption.main.js

@@ -108,3 +108,3 @@ var $87beb89ab4a308fd$exports = require("./utils.main.js");

isFocused: isFocused,
isFocusVisible: isFocused && (0, $bOFHO$reactariainteractions.isFocusVisible)(),
isFocusVisible: isFocused && state.selectionManager.isFocused && (0, $bOFHO$reactariainteractions.isFocusVisible)(),
isSelected: isSelected,

@@ -111,0 +111,0 @@ isDisabled: isDisabled,

@@ -102,3 +102,3 @@ import {getItemId as $b1f0cad8af73213b$export$9145995848b05025, listData as $b1f0cad8af73213b$export$3585ede4d035bf14} from "./utils.module.js";

isFocused: isFocused,
isFocusVisible: isFocused && (0, $fcwmx$isFocusVisible)(),
isFocusVisible: isFocused && state.selectionManager.isFocused && (0, $fcwmx$isFocusVisible)(),
isSelected: isSelected,

@@ -105,0 +105,0 @@ isDisabled: isDisabled,

{
"name": "@react-aria/listbox",
"version": "3.0.0-nightly-ec25ca46d-241211",
"version": "3.0.0-nightly-ecb05e28d-250909",
"description": "Spectrum UI components in React",

@@ -9,3 +9,7 @@ "license": "Apache-2.0",

"exports": {
"types": "./dist/types.d.ts",
"source": "./src/index.ts",
"types": [
"./dist/types.d.ts",
"./src/index.ts"
],
"import": "./dist/import.mjs",

@@ -26,10 +30,10 @@ "require": "./dist/main.js"

"dependencies": {
"@react-aria/interactions": "3.0.0-nightly-ec25ca46d-241211",
"@react-aria/label": "3.0.0-nightly-ec25ca46d-241211",
"@react-aria/selection": "3.0.0-nightly-ec25ca46d-241211",
"@react-aria/utils": "3.0.0-nightly-ec25ca46d-241211",
"@react-stately/collections": "3.0.0-nightly-ec25ca46d-241211",
"@react-stately/list": "3.0.0-nightly-ec25ca46d-241211",
"@react-types/listbox": "3.0.0-nightly-ec25ca46d-241211",
"@react-types/shared": "3.0.0-nightly-ec25ca46d-241211",
"@react-aria/interactions": "3.0.0-nightly-ecb05e28d-250909",
"@react-aria/label": "3.0.0-nightly-ecb05e28d-250909",
"@react-aria/selection": "3.0.0-nightly-ecb05e28d-250909",
"@react-aria/utils": "3.0.0-nightly-ecb05e28d-250909",
"@react-stately/collections": "3.0.0-nightly-ecb05e28d-250909",
"@react-stately/list": "3.0.0-nightly-ecb05e28d-250909",
"@react-types/listbox": "3.0.0-nightly-ecb05e28d-250909",
"@react-types/shared": "3.0.0-nightly-ecb05e28d-250909",
"@swc/helpers": "^0.5.0"

@@ -36,0 +40,0 @@ },

@@ -51,8 +51,2 @@ /*

/** Whether selection should occur on press up instead of press down. */
shouldSelectOnPressUp?: boolean,
/** Whether options should be focused when the user hovers over them. */
shouldFocusOnHover?: boolean,
/**

@@ -59,0 +53,0 @@ * The behavior of links in the collection.

@@ -170,3 +170,3 @@ /*

isFocused,
isFocusVisible: isFocused && isFocusVisible(),
isFocusVisible: isFocused && state.selectionManager.isFocused && isFocusVisible(),
isSelected,

@@ -173,0 +173,0 @@ isDisabled,

@@ -26,3 +26,3 @@ /*

export const listData = new WeakMap<ListState<unknown>, ListData>();
export const listData: WeakMap<ListState<unknown>, ListData> = new WeakMap<ListState<unknown>, ListData>();

@@ -29,0 +29,0 @@ function normalizeKey(key: Key): string {

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