@radix-ui/react-select
Advanced tools
Comparing version 0.1.2-rc.14 to 0.1.2-rc.15
@@ -371,3 +371,2 @@ var $cg2C9$babelruntimehelpersextends = require("@babel/runtime/helpers/extends"); | ||
const availableHeight = window.innerHeight - $1345bda09ffc1bc6$var$CONTENT_MARGIN * 2; | ||
const minContentHeight = selectedItem.offsetHeight * 5; | ||
const itemsHeight = viewport.scrollHeight; | ||
@@ -380,2 +379,3 @@ const contentStyles = window.getComputedStyle(content); | ||
const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth; // prettier-ignore | ||
const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight); | ||
const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - $1345bda09ffc1bc6$var$CONTENT_MARGIN; | ||
@@ -382,0 +382,0 @@ const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle; |
@@ -352,3 +352,2 @@ import $01b9c$babelruntimehelpersesmextends from "@babel/runtime/helpers/esm/extends"; | ||
const availableHeight = window.innerHeight - $cc7e05a45900e73f$var$CONTENT_MARGIN * 2; | ||
const minContentHeight = selectedItem.offsetHeight * 5; | ||
const itemsHeight = viewport.scrollHeight; | ||
@@ -361,2 +360,3 @@ const contentStyles = window.getComputedStyle(content); | ||
const fullContentHeight = contentBorderTopWidth + contentPaddingTop + itemsHeight + contentPaddingBottom + contentBorderBottomWidth; // prettier-ignore | ||
const minContentHeight = Math.min(selectedItem.offsetHeight * 5, fullContentHeight); | ||
const topEdgeToTriggerMiddle = triggerRect.top + triggerRect.height / 2 - $cc7e05a45900e73f$var$CONTENT_MARGIN; | ||
@@ -363,0 +363,0 @@ const triggerMiddleToBottomEdge = availableHeight - topEdgeToTriggerMiddle; |
{ | ||
"name": "@radix-ui/react-select", | ||
"version": "0.1.2-rc.14", | ||
"version": "0.1.2-rc.15", | ||
"license": "MIT", | ||
@@ -22,17 +22,17 @@ "source": "src/index.ts", | ||
"@radix-ui/primitive": "0.1.0", | ||
"@radix-ui/react-collection": "0.1.5-rc.5", | ||
"@radix-ui/react-compose-refs": "0.1.1-rc.5", | ||
"@radix-ui/react-context": "0.1.2-rc.5", | ||
"@radix-ui/react-direction": "0.1.0-rc.8", | ||
"@radix-ui/react-dismissable-layer": "0.1.6-rc.5", | ||
"@radix-ui/react-focus-scope": "0.1.5-rc.5", | ||
"@radix-ui/react-id": "0.1.6-rc.5", | ||
"@radix-ui/react-label": "0.1.6-rc.5", | ||
"@radix-ui/react-portal": "0.1.5-rc.5", | ||
"@radix-ui/react-primitive": "0.1.5-rc.5", | ||
"@radix-ui/react-use-callback-ref": "0.1.1-rc.5", | ||
"@radix-ui/react-use-controllable-state": "0.1.1-rc.5", | ||
"@radix-ui/react-use-layout-effect": "0.1.1-rc.5", | ||
"@radix-ui/react-use-previous": "0.1.2-rc.5", | ||
"@radix-ui/react-visually-hidden": "0.1.5-rc.5", | ||
"@radix-ui/react-collection": "0.1.5-rc.6", | ||
"@radix-ui/react-compose-refs": "0.1.1-rc.6", | ||
"@radix-ui/react-context": "0.1.2-rc.6", | ||
"@radix-ui/react-direction": "0.1.0-rc.9", | ||
"@radix-ui/react-dismissable-layer": "0.1.6-rc.6", | ||
"@radix-ui/react-focus-scope": "0.1.5-rc.6", | ||
"@radix-ui/react-id": "0.1.6-rc.6", | ||
"@radix-ui/react-label": "0.1.6-rc.6", | ||
"@radix-ui/react-portal": "0.1.5-rc.6", | ||
"@radix-ui/react-primitive": "0.1.5-rc.6", | ||
"@radix-ui/react-use-callback-ref": "0.1.1-rc.6", | ||
"@radix-ui/react-use-controllable-state": "0.1.1-rc.6", | ||
"@radix-ui/react-use-layout-effect": "0.1.1-rc.6", | ||
"@radix-ui/react-use-previous": "0.1.2-rc.6", | ||
"@radix-ui/react-visually-hidden": "0.1.5-rc.6", | ||
"aria-hidden": "^1.1.1", | ||
@@ -39,0 +39,0 @@ "react-remove-scroll": "^2.4.0" |
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
335314
+ Added@radix-ui/react-collection@0.1.5-rc.6(transitive)
+ Added@radix-ui/react-compose-refs@0.1.1-rc.6(transitive)
+ Added@radix-ui/react-context@0.1.2-rc.6(transitive)
+ Added@radix-ui/react-direction@0.1.0-rc.9(transitive)
+ Added@radix-ui/react-dismissable-layer@0.1.6-rc.6(transitive)
+ Added@radix-ui/react-focus-scope@0.1.5-rc.6(transitive)
+ Added@radix-ui/react-id@0.1.6-rc.6(transitive)
+ Added@radix-ui/react-label@0.1.6-rc.6(transitive)
+ Added@radix-ui/react-portal@0.1.5-rc.6(transitive)
+ Added@radix-ui/react-primitive@0.1.5-rc.6(transitive)
+ Added@radix-ui/react-slot@0.1.3-rc.6(transitive)
+ Added@radix-ui/react-use-body-pointer-events@0.1.2-rc.6(transitive)
+ Added@radix-ui/react-use-callback-ref@0.1.1-rc.6(transitive)
+ Added@radix-ui/react-use-controllable-state@0.1.1-rc.6(transitive)
+ Added@radix-ui/react-use-escape-keydown@0.1.1-rc.6(transitive)
+ Added@radix-ui/react-use-layout-effect@0.1.1-rc.6(transitive)
+ Added@radix-ui/react-use-previous@0.1.2-rc.6(transitive)
+ Added@radix-ui/react-visually-hidden@0.1.5-rc.6(transitive)
- Removed@radix-ui/react-collection@0.1.5-rc.5(transitive)
- Removed@radix-ui/react-compose-refs@0.1.1-rc.5(transitive)
- Removed@radix-ui/react-context@0.1.2-rc.5(transitive)
- Removed@radix-ui/react-direction@0.1.0-rc.8(transitive)
- Removed@radix-ui/react-dismissable-layer@0.1.6-rc.5(transitive)
- Removed@radix-ui/react-focus-scope@0.1.5-rc.5(transitive)
- Removed@radix-ui/react-id@0.1.6-rc.5(transitive)
- Removed@radix-ui/react-label@0.1.6-rc.5(transitive)
- Removed@radix-ui/react-portal@0.1.5-rc.5(transitive)
- Removed@radix-ui/react-primitive@0.1.5-rc.5(transitive)
- Removed@radix-ui/react-slot@0.1.3-rc.5(transitive)
- Removed@radix-ui/react-use-body-pointer-events@0.1.2-rc.5(transitive)
- Removed@radix-ui/react-use-callback-ref@0.1.1-rc.5(transitive)
- Removed@radix-ui/react-use-controllable-state@0.1.1-rc.5(transitive)
- Removed@radix-ui/react-use-escape-keydown@0.1.1-rc.5(transitive)
- Removed@radix-ui/react-use-layout-effect@0.1.1-rc.5(transitive)
- Removed@radix-ui/react-use-previous@0.1.2-rc.5(transitive)
- Removed@radix-ui/react-visually-hidden@0.1.5-rc.5(transitive)