@zag-js/popper
Advanced tools
Comparing version 1.2.1 to 1.3.0
@@ -1,2 +0,2 @@ | ||
import { Placement, Boundary, AutoUpdateOptions, ComputePositionReturn, VirtualElement } from '@floating-ui/dom'; | ||
import { VirtualElement, Placement, Boundary, AutoUpdateOptions, ComputePositionReturn } from '@floating-ui/dom'; | ||
export { AutoUpdateOptions, Boundary, ComputePositionReturn, Placement } from '@floating-ui/dom'; | ||
@@ -108,2 +108,25 @@ | ||
declare const cssVars: { | ||
arrowSize: { | ||
variable: string; | ||
reference: string; | ||
}; | ||
arrowSizeHalf: { | ||
variable: string; | ||
reference: string; | ||
}; | ||
arrowBg: { | ||
variable: string; | ||
reference: string; | ||
}; | ||
transformOrigin: { | ||
variable: string; | ||
reference: string; | ||
}; | ||
arrowOffset: { | ||
variable: string; | ||
reference: string; | ||
}; | ||
}; | ||
interface GetPlacementStylesOptions { | ||
@@ -114,3 +137,4 @@ placement?: Placement | undefined; | ||
arrow: { | ||
readonly [x: string]: string; | ||
readonly [cssVars.arrowSizeHalf.variable]: `calc(${string} / 2)`; | ||
readonly [cssVars.arrowOffset.variable]: `calc(${string} * -1)`; | ||
readonly position: "absolute"; | ||
@@ -117,0 +141,0 @@ readonly width: string; |
{ | ||
"name": "@zag-js/popper", | ||
"version": "1.2.1", | ||
"version": "1.3.0", | ||
"description": "Dynamic positioning logic for ui machines", | ||
@@ -26,4 +26,4 @@ "keywords": [ | ||
"@floating-ui/dom": "1.6.13", | ||
"@zag-js/dom-query": "1.2.1", | ||
"@zag-js/utils": "1.2.1" | ||
"@zag-js/dom-query": "1.3.0", | ||
"@zag-js/utils": "1.3.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
34822
803
+ Added@zag-js/dom-query@1.3.0(transitive)
+ Added@zag-js/types@1.3.0(transitive)
+ Added@zag-js/utils@1.3.0(transitive)
- Removed@zag-js/dom-query@1.2.1(transitive)
- Removed@zag-js/types@1.2.1(transitive)
- Removed@zag-js/utils@1.2.1(transitive)
Updated@zag-js/dom-query@1.3.0
Updated@zag-js/utils@1.3.0