@react-aria/listbox
Advanced tools
Comparing version 3.0.0-nightly-ab9fd5c68-241126 to 3.0.0-nightly-adae13c78-241218
@@ -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-ab9fd5c68-241126", | ||
"version": "3.0.0-nightly-adae13c78-241218", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,10 +25,10 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/interactions": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-aria/label": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-aria/selection": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-aria/utils": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-stately/collections": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-stately/list": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-types/listbox": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-types/shared": "^3.0.0-nightly-ab9fd5c68-241126", | ||
"@react-aria/interactions": "3.0.0-nightly-adae13c78-241218", | ||
"@react-aria/label": "3.0.0-nightly-adae13c78-241218", | ||
"@react-aria/selection": "3.0.0-nightly-adae13c78-241218", | ||
"@react-aria/utils": "3.0.0-nightly-adae13c78-241218", | ||
"@react-stately/collections": "3.0.0-nightly-adae13c78-241218", | ||
"@react-stately/list": "3.0.0-nightly-adae13c78-241218", | ||
"@react-types/listbox": "3.0.0-nightly-adae13c78-241218", | ||
"@react-types/shared": "3.0.0-nightly-adae13c78-241218", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -42,4 +42,3 @@ }, | ||
"access": "public" | ||
}, | ||
"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: { |
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
110832
1287
+ Added@internationalized/date@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@internationalized/message@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@internationalized/number@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@internationalized/string@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/focus@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/i18n@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/interactions@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/label@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/selection@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/ssr@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-aria/utils@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-stately/collections@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-stately/list@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-stately/selection@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-stately/utils@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-types/listbox@3.0.0-nightly-adae13c78-241218(transitive)
+ Added@react-types/shared@3.0.0-nightly-adae13c78-241218(transitive)
- Removed@internationalized/date@3.6.0(transitive)
- Removed@internationalized/message@3.1.6(transitive)
- Removed@internationalized/number@3.6.0(transitive)
- Removed@internationalized/string@3.2.5(transitive)
- Removed@react-aria/focus@3.19.0(transitive)
- Removed@react-aria/i18n@3.12.4(transitive)
- Removed@react-aria/interactions@3.22.5(transitive)
- Removed@react-aria/label@3.7.13(transitive)
- Removed@react-aria/selection@3.21.0(transitive)
- Removed@react-aria/ssr@3.9.7(transitive)
- Removed@react-aria/utils@3.26.0(transitive)
- Removed@react-stately/collections@3.12.0(transitive)
- Removed@react-stately/list@3.11.1(transitive)
- Removed@react-stately/selection@3.18.0(transitive)
- Removed@react-stately/utils@3.10.5(transitive)
- Removed@react-types/listbox@3.5.3(transitive)
- Removed@react-types/shared@3.26.0(transitive)
Updated@react-aria/interactions@3.0.0-nightly-adae13c78-241218
Updated@react-stately/collections@3.0.0-nightly-adae13c78-241218