@interop-ui/popper
Advanced tools
Comparing version 0.0.1-3 to 0.0.1-4
import * as CSS from "csstype"; | ||
import { Side, Align, Size } from "@interop-ui/utils"; | ||
type GetPlacementDataOptions = { | ||
/** The rect of the target we are placing around */ | ||
targetRect?: ClientRect; | ||
/** The rect of the anchor we are placing around */ | ||
anchorRect?: ClientRect; | ||
/** The size of the popper to place */ | ||
@@ -9,3 +10,3 @@ popperSize?: Size; | ||
arrowSize?: Size; | ||
/** An optional arrow offset (along the side, default: 20) */ | ||
/** An optional arrow offset (along the side, default: 0) */ | ||
arrowOffset?: number; | ||
@@ -44,4 +45,4 @@ /** The desired side */ | ||
*/ | ||
export function getPlacementData({ targetRect, popperSize, arrowSize, arrowOffset, side, sideOffset, align, alignOffset, shouldAvoidCollisions, collisionTolerance, }: GetPlacementDataOptions): PlacementData; | ||
export function getPlacementData({ anchorRect, popperSize, arrowSize, arrowOffset, side, sideOffset, align, alignOffset, shouldAvoidCollisions, collisionTolerance, }: GetPlacementDataOptions): PlacementData; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@interop-ui/popper", | ||
"version": "0.0.1-3", | ||
"version": "0.0.1-4", | ||
"license": "MIT", | ||
@@ -14,16 +14,16 @@ "source": "src/index.ts", | ||
"scripts": { | ||
"build": "parcel build src/index.ts", | ||
"build": "parcel build src/index.ts --no-cache", | ||
"clean": "rm -rf dist", | ||
"bump": "yarn version --deferred", | ||
"version": "yarn version", | ||
"prepublish": "yarn clean && yarn build" | ||
}, | ||
"dependencies": { | ||
"@interop-ui/utils": "0.0.1-2", | ||
"@interop-ui/utils": "0.0.1-3", | ||
"csstype": "^2.6.11" | ||
}, | ||
"devDependencies": { | ||
"@interop-ui/react-use-size": "0.0.1-3", | ||
"@interop-ui/react-utils": "0.0.1-3", | ||
"@interop-ui/react-use-size": "0.0.1-4", | ||
"@interop-ui/react-utils": "0.0.1-4", | ||
"parcel": "^2.0.0-beta.1" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
75
51183
+ Added@interop-ui/utils@0.0.1-3(transitive)
- Removed@interop-ui/utils@0.0.1-2(transitive)
Updated@interop-ui/utils@0.0.1-3