@zag-js/popper
Advanced tools
Comparing version 0.0.0-dev-20220612194202 to 0.0.0-dev-20220615060231
@@ -9,2 +9,1 @@ import type { Placement, ReferenceElement } from "@floating-ui/dom"; | ||
export declare function autoUpdate(reference: ReferenceElement, floating: HTMLElement, update: () => void, options?: boolean | AutoUpdateOptions): (v: void) => void; | ||
//# sourceMappingURL=auto-update.d.ts.map |
import type { VirtualElement } from "@floating-ui/dom"; | ||
import { PositioningOptions } from "./types"; | ||
export declare function getPlacement(reference: HTMLElement | VirtualElement | null, floating: HTMLElement | null, options?: PositioningOptions): (v: void) => void; | ||
//# sourceMappingURL=get-placement.d.ts.map |
@@ -36,2 +36,1 @@ import { Placement } from "@floating-ui/dom"; | ||
export {}; | ||
//# sourceMappingURL=get-styles.d.ts.map |
export { getPlacement } from "./get-placement"; | ||
export { getPlacementStyles } from "./get-styles"; | ||
export type { Placement, PositioningOptions } from "./types"; | ||
//# sourceMappingURL=index.d.ts.map |
@@ -45,5 +45,3 @@ var __defProp = Object.defineProperty; | ||
// ../core/dist/index.mjs | ||
var isDom = () => typeof window !== "undefined"; | ||
var isBoolean = (v) => v === true || v === false; | ||
var isTouchDevice = isDom() && !!navigator.maxTouchPoints; | ||
var noop = () => { | ||
@@ -57,5 +55,3 @@ }; | ||
// ../dom/dist/index.mjs | ||
var isDom2 = () => typeof window !== "undefined"; | ||
var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop); | ||
var isTouchDevice2 = isDom2() && !!navigator.maxTouchPoints; | ||
var runIfFn = (v, ...a) => { | ||
@@ -405,2 +401,1 @@ const res = typeof v === "function" ? v(...a) : v; | ||
} | ||
//# sourceMappingURL=index.js.map |
@@ -30,2 +30,1 @@ import { Middleware } from "@floating-ui/dom"; | ||
export {}; | ||
//# sourceMappingURL=middleware.d.ts.map |
@@ -62,2 +62,1 @@ import type { Boundary, Placement, ComputePositionReturn } from "@floating-ui/dom"; | ||
}; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@zag-js/popper", | ||
"version": "0.0.0-dev-20220612194202", | ||
"version": "0.0.0-dev-20220615060231", | ||
"description": "Dynamic positioning logic for ui machines", | ||
@@ -29,3 +29,3 @@ "keywords": [ | ||
"@floating-ui/dom": "^0.4.2", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220612194202", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220615060231", | ||
"@zag-js/utils": "0.1.2" | ||
@@ -32,0 +32,0 @@ }, |
Sorry, the diff of this file is not supported yet
32271
10
899
+ Added@zag-js/dom-utils@0.0.0-dev-20220615060231(transitive)
- Removed@zag-js/dom-utils@0.0.0-dev-20220612194202(transitive)