@react-aria/listbox
Advanced tools
Comparing version 3.0.0-nightly-987f174ba-241015 to 3.0.0-nightly-993de98ad-241210
@@ -7,3 +7,3 @@ import { Key, DOMAttributes, KeyboardDelegate, LayoutDelegate, RefObject, FocusableElement } from "@react-types/shared"; | ||
interface ListData { | ||
id: string; | ||
id?: string; | ||
shouldSelectOnPressUp?: boolean; | ||
@@ -10,0 +10,0 @@ shouldFocusOnHover?: boolean; |
@@ -69,2 +69,3 @@ var $87beb89ab4a308fd$exports = require("./utils.main.js"); | ||
} : undefined; | ||
let id = (0, $87beb89ab4a308fd$exports.getItemId)(state, key); | ||
let { itemProps: itemProps, isPressed: isPressed, isFocused: isFocused, hasAction: hasAction, allowsSelection: allowsSelection } = (0, $bOFHO$reactariaselection.useSelectableItem)({ | ||
@@ -80,3 +81,4 @@ selectionManager: state.selectionManager, | ||
onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? (0, $bOFHO$reactariautils.chain)(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : undefined, | ||
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior | ||
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior, | ||
id: id | ||
}); | ||
@@ -99,3 +101,3 @@ let { hoverProps: hoverProps } = (0, $bOFHO$reactariainteractions.useHover)({ | ||
...(0, $bOFHO$reactariautils.mergeProps)(domProps, itemProps, hoverProps, linkProps), | ||
id: (0, $87beb89ab4a308fd$exports.getItemId)(state, key) | ||
id: id | ||
}, | ||
@@ -102,0 +104,0 @@ labelProps: { |
@@ -63,2 +63,3 @@ import {getItemId as $b1f0cad8af73213b$export$9145995848b05025, listData as $b1f0cad8af73213b$export$3585ede4d035bf14} from "./utils.module.js"; | ||
} : undefined; | ||
let id = (0, $b1f0cad8af73213b$export$9145995848b05025)(state, key); | ||
let { itemProps: itemProps, isPressed: isPressed, isFocused: isFocused, hasAction: hasAction, allowsSelection: allowsSelection } = (0, $fcwmx$useSelectableItem)({ | ||
@@ -74,3 +75,4 @@ selectionManager: state.selectionManager, | ||
onAction: onAction || (item === null || item === void 0 ? void 0 : (_item_props = item.props) === null || _item_props === void 0 ? void 0 : _item_props.onAction) ? (0, $fcwmx$chain)(item === null || item === void 0 ? void 0 : (_item_props1 = item.props) === null || _item_props1 === void 0 ? void 0 : _item_props1.onAction, onAction) : undefined, | ||
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior | ||
linkBehavior: data === null || data === void 0 ? void 0 : data.linkBehavior, | ||
id: id | ||
}); | ||
@@ -93,3 +95,3 @@ let { hoverProps: hoverProps } = (0, $fcwmx$useHover)({ | ||
...(0, $fcwmx$mergeProps)(domProps, itemProps, hoverProps, linkProps), | ||
id: (0, $b1f0cad8af73213b$export$9145995848b05025)(state, key) | ||
id: id | ||
}, | ||
@@ -96,0 +98,0 @@ labelProps: { |
{ | ||
"name": "@react-aria/listbox", | ||
"version": "3.0.0-nightly-987f174ba-241015", | ||
"version": "3.0.0-nightly-993de98ad-241210", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,15 +25,15 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/interactions": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-aria/label": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-aria/selection": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-aria/utils": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-stately/collections": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-stately/list": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-types/listbox": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-types/shared": "^3.0.0-nightly-987f174ba-241015", | ||
"@react-aria/interactions": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-aria/label": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-aria/selection": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-aria/utils": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-stately/collections": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-stately/list": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-types/listbox": "^3.0.0-nightly-993de98ad-241210", | ||
"@react-types/shared": "^3.0.0-nightly-993de98ad-241210", | ||
"@swc/helpers": "^0.5.0" | ||
}, | ||
"peerDependencies": { | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0", | ||
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0" | ||
"react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1", | ||
"react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1" | ||
}, | ||
@@ -43,3 +43,3 @@ "publishConfig": { | ||
}, | ||
"stableVersion": "3.13.5" | ||
"stableVersion": "3.13.6" | ||
} |
@@ -128,2 +128,3 @@ /* | ||
let onAction = data?.onAction ? () => data?.onAction?.(key) : undefined; | ||
let id = getItemId(state, key); | ||
let {itemProps, isPressed, isFocused, hasAction, allowsSelection} = useSelectableItem({ | ||
@@ -139,3 +140,4 @@ selectionManager: state.selectionManager, | ||
onAction: onAction || item?.props?.onAction ? chain(item?.props?.onAction, onAction) : undefined, | ||
linkBehavior: data?.linkBehavior | ||
linkBehavior: data?.linkBehavior, | ||
id | ||
}); | ||
@@ -161,3 +163,3 @@ | ||
...mergeProps(domProps, itemProps, hoverProps, linkProps), | ||
id: getItemId(state, key) | ||
id | ||
}, | ||
@@ -164,0 +166,0 @@ labelProps: { |
@@ -17,3 +17,3 @@ /* | ||
interface ListData { | ||
id: string, | ||
id?: string, | ||
shouldSelectOnPressUp?: boolean, | ||
@@ -20,0 +20,0 @@ shouldFocusOnHover?: boolean, |
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
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
110869
1287