@react-aria/listbox
Advanced tools
Comparing version 3.0.0-nightly-e94e36431-241203 to 3.0.0-nightly-f90799b33-241206
@@ -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-e94e36431-241203", | ||
"version": "3.0.0-nightly-f90799b33-241206", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,10 +25,10 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/interactions": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-aria/label": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-aria/selection": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-aria/utils": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-stately/collections": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-stately/list": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-types/listbox": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-types/shared": "^3.0.0-nightly-e94e36431-241203", | ||
"@react-aria/interactions": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/label": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/selection": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-aria/utils": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-stately/collections": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-stately/list": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-types/listbox": "^3.0.0-nightly-f90799b33-241206", | ||
"@react-types/shared": "^3.0.0-nightly-f90799b33-241206", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -35,0 +35,0 @@ }, |
@@ -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: { |
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
110869
1287