@zag-js/checkbox
Advanced tools
Comparing version 0.0.0-dev-20220703123907 to 0.0.0-dev-20220703125047
@@ -46,15 +46,2 @@ "use strict"; | ||
}; | ||
function nextTick(fn) { | ||
const set = /* @__PURE__ */ new Set(); | ||
function raf2(fn2) { | ||
const id = globalThis.requestAnimationFrame(fn2); | ||
set.add(() => globalThis.cancelAnimationFrame(id)); | ||
} | ||
raf2(() => raf2(fn)); | ||
return function cleanup() { | ||
set.forEach(function(fn2) { | ||
fn2(); | ||
}); | ||
}; | ||
} | ||
function getWindow(el) { | ||
@@ -132,2 +119,15 @@ var _a; | ||
}; | ||
function nextTick(fn) { | ||
const set = /* @__PURE__ */ new Set(); | ||
function raf2(fn2) { | ||
const id = globalThis.requestAnimationFrame(fn2); | ||
set.add(() => globalThis.cancelAnimationFrame(id)); | ||
} | ||
raf2(() => raf2(fn)); | ||
return function cleanup() { | ||
set.forEach(function(fn2) { | ||
fn2(); | ||
}); | ||
}; | ||
} | ||
@@ -134,0 +134,0 @@ // src/checkbox.dom.ts |
{ | ||
"name": "@zag-js/checkbox", | ||
"version": "0.0.0-dev-20220703123907", | ||
"version": "0.0.0-dev-20220703125047", | ||
"description": "Core logic for the checkbox widget implemented as a state machine", | ||
@@ -41,9 +41,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/core": "0.0.0-dev-20220703123907", | ||
"@zag-js/types": "0.0.0-dev-20220703123907" | ||
"@zag-js/core": "0.0.0-dev-20220703125047", | ||
"@zag-js/types": "0.0.0-dev-20220703125047" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220703123907", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220703125047", | ||
"@zag-js/utils": "0.1.2" | ||
} | ||
} |
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
+ Added@zag-js/core@0.0.0-dev-20220703125047(transitive)
+ Added@zag-js/store@0.0.0-dev-20220703125047(transitive)
+ Added@zag-js/types@0.0.0-dev-20220703125047(transitive)
- Removed@zag-js/core@0.0.0-dev-20220703123907(transitive)
- Removed@zag-js/store@0.0.0-dev-20220703123907(transitive)
- Removed@zag-js/types@0.0.0-dev-20220703123907(transitive)