@zag-js/checkbox
Advanced tools
Comparing version 0.0.0-dev-20220627111117 to 0.0.0-dev-20220627213111
@@ -56,4 +56,2 @@ "use strict"; | ||
}; | ||
var noop = () => { | ||
}; | ||
function nextTick(fn) { | ||
@@ -78,3 +76,3 @@ const set = /* @__PURE__ */ new Set(); | ||
if (!node) | ||
return noop; | ||
return; | ||
const attrs = Array.isArray(attributes) ? attributes : [attributes]; | ||
@@ -176,10 +174,2 @@ const win = node.ownerDocument.defaultView || window; | ||
// src/checkbox.utils.ts | ||
var utils = { | ||
stopEvent: (event) => { | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
} | ||
}; | ||
// src/checkbox.connect.ts | ||
@@ -266,3 +256,4 @@ function connect(state, send, normalize = normalizeProp) { | ||
return; | ||
utils.stopEvent(event); | ||
event.preventDefault(); | ||
event.stopPropagation(); | ||
} | ||
@@ -269,0 +260,0 @@ }), |
{ | ||
"name": "@zag-js/checkbox", | ||
"version": "0.0.0-dev-20220627111117", | ||
"version": "0.0.0-dev-20220627213111", | ||
"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-20220627111117", | ||
"@zag-js/core": "0.0.0-dev-20220627213111", | ||
"@zag-js/types": "0.2.0" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220627111117", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220627213111", | ||
"@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
34200
9
1035
+ Added@zag-js/core@0.0.0-dev-20220627213111(transitive)
+ Added@zag-js/store@0.0.0-dev-20220627213111(transitive)
- Removed@zag-js/core@0.0.0-dev-20220627111117(transitive)
- Removed@zag-js/store@0.0.0-dev-20220627111117(transitive)