@react-aria/virtualizer
Advanced tools
Comparing version 3.0.0-nightly-9e79420c1-240919 to 3.0.0-nightly-a626c2596-240926
@@ -316,2 +316,3 @@ import { Direction, Key, RefObject, Collection } from "@react-types/shared"; | ||
parent?: LayoutInfo | null; | ||
style?: CSSProperties; | ||
className?: string; | ||
@@ -318,0 +319,0 @@ children: ReactNode; |
@@ -30,3 +30,3 @@ var $7d70e069fceb2deb$exports = require("./useVirtualizerItem.main.js"); | ||
function $d6a26279cc31826b$export$6796df8ba7398521(props) { | ||
let { className: className, layoutInfo: layoutInfo, virtualizer: virtualizer, parent: parent, children: children } = props; | ||
let { style: style, className: className, layoutInfo: layoutInfo, virtualizer: virtualizer, parent: parent, children: children } = props; | ||
let { direction: direction } = (0, $eXWCF$reactariai18n.useLocale)(); | ||
@@ -43,3 +43,6 @@ let ref = (0, $eXWCF$react.useRef)(undefined); | ||
className: className, | ||
style: $d6a26279cc31826b$export$1481e64fbe01b8b3(layoutInfo, direction, parent) | ||
style: { | ||
...$d6a26279cc31826b$export$1481e64fbe01b8b3(layoutInfo, direction, parent), | ||
...style | ||
} | ||
}, children); | ||
@@ -59,4 +62,8 @@ } | ||
let rectStyles = { | ||
top: layoutInfo.rect.y - (parent ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent ? parent.rect.x : 0), | ||
// TODO: For layoutInfos that are sticky that have parents with overflow visible, their "top" will be relative to the to the nearest scrolling container | ||
// which WON'T be the parent since the parent has overflow visible. This means we shouldn't offset the height by the parent's position | ||
// Not 100% about this change here since it is quite ambigious what the scrolling container maybe and how its top is positioned with respect to the | ||
// calculated layoutInfo.y here | ||
top: layoutInfo.rect.y - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.x : 0), | ||
width: layoutInfo.rect.width, | ||
@@ -63,0 +70,0 @@ height: layoutInfo.rect.height |
@@ -19,3 +19,3 @@ import {useVirtualizerItem as $47736c1e63ba1c6d$export$1da781778207e0a2} from "./useVirtualizerItem.module.js"; | ||
function $ccf8a0a04e4175ae$export$6796df8ba7398521(props) { | ||
let { className: className, layoutInfo: layoutInfo, virtualizer: virtualizer, parent: parent, children: children } = props; | ||
let { style: style, className: className, layoutInfo: layoutInfo, virtualizer: virtualizer, parent: parent, children: children } = props; | ||
let { direction: direction } = (0, $ivH3G$useLocale)(); | ||
@@ -32,3 +32,6 @@ let ref = (0, $ivH3G$useRef)(undefined); | ||
className: className, | ||
style: $ccf8a0a04e4175ae$export$1481e64fbe01b8b3(layoutInfo, direction, parent) | ||
style: { | ||
...$ccf8a0a04e4175ae$export$1481e64fbe01b8b3(layoutInfo, direction, parent), | ||
...style | ||
} | ||
}, children); | ||
@@ -48,4 +51,8 @@ } | ||
let rectStyles = { | ||
top: layoutInfo.rect.y - (parent ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent ? parent.rect.x : 0), | ||
// TODO: For layoutInfos that are sticky that have parents with overflow visible, their "top" will be relative to the to the nearest scrolling container | ||
// which WON'T be the parent since the parent has overflow visible. This means we shouldn't offset the height by the parent's position | ||
// Not 100% about this change here since it is quite ambigious what the scrolling container maybe and how its top is positioned with respect to the | ||
// calculated layoutInfo.y here | ||
top: layoutInfo.rect.y - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.y : 0), | ||
[xProperty]: layoutInfo.rect.x - (parent && !(parent.allowOverflow && layoutInfo.isSticky) ? parent.rect.x : 0), | ||
width: layoutInfo.rect.width, | ||
@@ -52,0 +59,0 @@ height: layoutInfo.rect.height |
{ | ||
"name": "@react-aria/virtualizer", | ||
"version": "3.0.0-nightly-9e79420c1-240919", | ||
"version": "3.0.0-nightly-a626c2596-240926", | ||
"description": "Spectrum UI components in React", | ||
@@ -25,7 +25,7 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-aria/i18n": "^3.0.0-nightly-9e79420c1-240919", | ||
"@react-aria/interactions": "^3.0.0-nightly-9e79420c1-240919", | ||
"@react-aria/utils": "^3.0.0-nightly-9e79420c1-240919", | ||
"@react-stately/virtualizer": "^3.0.0-nightly-9e79420c1-240919", | ||
"@react-types/shared": "^3.0.0-nightly-9e79420c1-240919", | ||
"@react-aria/i18n": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-aria/interactions": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-aria/utils": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-stately/virtualizer": "^3.0.0-nightly-a626c2596-240926", | ||
"@react-types/shared": "^3.0.0-nightly-a626c2596-240926", | ||
"@swc/helpers": "^0.5.0" | ||
@@ -32,0 +32,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
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
192312
2356