@zag-js/popper 0.0.0-dev-20220704095222 → 0.0.0-dev-20220704163406

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import { Placement } from "@floating-ui/dom";
1
+ import type { Placement } from "@floating-ui/dom";
2
2
  declare type Options = {
3
3
  measured: boolean;
4
4
  strategy?: "absolute" | "fixed";
package/dist/index.js CHANGED
@@ -46,25 +46,25 @@ module.exports = __toCommonJS(src_exports);
46
46
  var import_dom2 = require("@floating-ui/dom");
47
47
 
48
48
  // ../core/dist/index.mjs
49
- var isBoolean = (v) => v === true || v === false;
50
49
  var callAll = (...fns) => (...a) => {
51
50
  fns.forEach(function(fn) {
52
51
  fn == null ? void 0 : fn(...a);
53
52
  });
54
53
  };
54
+ var isBoolean = (v) => v === true || v === false;
55
55
 
56
56
  // src/auto-update.ts
57
57
  var import_dom = require("@floating-ui/dom");
58
58
 
59
59
  // ../dom/dist/index.mjs
60
- function isHTMLElement(v) {
61
- return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
62
- }
63
- var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
64
60
  var runIfFn = (v, ...a) => {
65
61
  const res = typeof v === "function" ? v(...a) : v;
66
62
  return res != null ? res : void 0;
67
63
  };
64
+ var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
65
+ function isHTMLElement(v) {
66
+ return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
67
+ }
68
68
  var isRef = (v) => hasProp(v, "current");
69
69
  function addDomEvent(target, eventName, handler, options) {
70
70
  const node = isRef(target) ? target.current : runIfFn(target);
package/dist/index.mjs CHANGED
@@ -22,25 +22,25 @@ var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
22
22
  import { arrow, computePosition, flip, offset, shift, size } from "@floating-ui/dom";
23
23
 
24
24
  // ../core/dist/index.mjs
25
- var isBoolean = (v) => v === true || v === false;
26
25
  var callAll = (...fns) => (...a) => {
27
26
  fns.forEach(function(fn) {
28
27
  fn == null ? void 0 : fn(...a);
29
28
  });
30
29
  };
30
+ var isBoolean = (v) => v === true || v === false;
31
31
 
32
32
  // src/auto-update.ts
33
33
  import { getOverflowAncestors } from "@floating-ui/dom";
34
34
 
35
35
  // ../dom/dist/index.mjs
36
- function isHTMLElement(v) {
37
- return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
38
- }
39
- var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
40
36
  var runIfFn = (v, ...a) => {
41
37
  const res = typeof v === "function" ? v(...a) : v;
42
38
  return res != null ? res : void 0;
43
39
  };
40
+ var hasProp = (obj, prop) => Object.prototype.hasOwnProperty.call(obj, prop);
41
+ function isHTMLElement(v) {
42
+ return typeof v === "object" && (v == null ? void 0 : v.nodeType) === Node.ELEMENT_NODE && typeof (v == null ? void 0 : v.nodeName) === "string";
43
+ }
44
44
  var isRef = (v) => hasProp(v, "current");
45
45
  function addDomEvent(target, eventName, handler, options) {
46
46
  const node = isRef(target) ? target.current : runIfFn(target);
@@ -1,4 +1,4 @@
1
- import { Middleware } from "@floating-ui/dom";
1
+ import type { Middleware } from "@floating-ui/dom";
2
2
  export declare const cssVars: {
3
3
  arrowSize: {
4
4
  variable: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zag-js/popper",
3
- "version": "0.0.0-dev-20220704095222",
3
+ "version": "0.0.0-dev-20220704163406",
4
4
  "description": "Dynamic positioning logic for ui machines",
5
5
  "keywords": [
6
6
  "js",
@@ -26,7 +26,7 @@
26
26
  },
27
27
  "dependencies": {
28
28
  "@floating-ui/dom": "0.5.4",
29
- "@zag-js/dom-utils": "0.0.0-dev-20220704095222",
29
+ "@zag-js/dom-utils": "0.0.0-dev-20220704163406",
30
30
  "@zag-js/utils": "0.1.2"
31
31
  },
32
32
  "scripts": {