@zag-js/checkbox
Advanced tools
Comparing version 0.56.0 to 0.56.1
@@ -86,9 +86,7 @@ "use strict"; | ||
onPointerMove() { | ||
if (disabled) | ||
return; | ||
if (disabled) return; | ||
send({ type: "CONTEXT.SET", context: { hovered: true } }); | ||
}, | ||
onPointerLeave() { | ||
if (disabled) | ||
return; | ||
if (disabled) return; | ||
send({ type: "CONTEXT.SET", context: { hovered: false } }); | ||
@@ -216,4 +214,3 @@ }, | ||
trackPressEvent(ctx2) { | ||
if (ctx2.isDisabled) | ||
return; | ||
if (ctx2.isDisabled) return; | ||
return (0, import_dom_event.trackPress)({ | ||
@@ -229,4 +226,3 @@ pointerNode: dom.getRootEl(ctx2), | ||
trackFocusVisible(ctx2) { | ||
if (ctx2.isDisabled) | ||
return; | ||
if (ctx2.isDisabled) return; | ||
return (0, import_dom_event.trackFocusVisible)(dom.getHiddenInputEl(ctx2), { | ||
@@ -254,4 +250,3 @@ onFocus: () => ctx2.focused = true, | ||
const inputEl = dom.getHiddenInputEl(ctx2); | ||
if (!inputEl) | ||
return; | ||
if (!inputEl) return; | ||
(0, import_form_utils.setElementChecked)(inputEl, ctx2.isChecked); | ||
@@ -293,4 +288,3 @@ inputEl.indeterminate = ctx2.isIndeterminate; | ||
checked: (ctx, checked) => { | ||
if ((0, import_utils.isEqual)(ctx.checked, checked)) | ||
return; | ||
if ((0, import_utils.isEqual)(ctx.checked, checked)) return; | ||
ctx.checked = checked; | ||
@@ -297,0 +291,0 @@ invoke.change(ctx); |
{ | ||
"name": "@zag-js/checkbox", | ||
"version": "0.56.0", | ||
"version": "0.56.1", | ||
"description": "Core logic for the checkbox widget implemented as a state machine", | ||
@@ -30,9 +30,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/anatomy": "0.56.0", | ||
"@zag-js/core": "0.56.0", | ||
"@zag-js/types": "0.56.0", | ||
"@zag-js/dom-query": "0.56.0", | ||
"@zag-js/dom-event": "0.56.0", | ||
"@zag-js/form-utils": "0.56.0", | ||
"@zag-js/utils": "0.56.0" | ||
"@zag-js/anatomy": "0.56.1", | ||
"@zag-js/core": "0.56.1", | ||
"@zag-js/types": "0.56.1", | ||
"@zag-js/dom-query": "0.56.1", | ||
"@zag-js/dom-event": "0.56.1", | ||
"@zag-js/form-utils": "0.56.1", | ||
"@zag-js/utils": "0.56.1" | ||
}, | ||
@@ -39,0 +39,0 @@ "devDependencies": { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
75402
1141
+ Added@zag-js/anatomy@0.56.1(transitive)
+ Added@zag-js/core@0.56.1(transitive)
+ Added@zag-js/dom-event@0.56.1(transitive)
+ Added@zag-js/dom-query@0.56.1(transitive)
+ Added@zag-js/form-utils@0.56.1(transitive)
+ Added@zag-js/store@0.56.1(transitive)
+ Added@zag-js/text-selection@0.56.1(transitive)
+ Added@zag-js/types@0.56.1(transitive)
+ Added@zag-js/utils@0.56.1(transitive)
- Removed@zag-js/anatomy@0.56.0(transitive)
- Removed@zag-js/core@0.56.0(transitive)
- Removed@zag-js/dom-event@0.56.0(transitive)
- Removed@zag-js/dom-query@0.56.0(transitive)
- Removed@zag-js/form-utils@0.56.0(transitive)
- Removed@zag-js/store@0.56.0(transitive)
- Removed@zag-js/text-selection@0.56.0(transitive)
- Removed@zag-js/types@0.56.0(transitive)
- Removed@zag-js/utils@0.56.0(transitive)
Updated@zag-js/anatomy@0.56.1
Updated@zag-js/core@0.56.1
Updated@zag-js/dom-event@0.56.1
Updated@zag-js/dom-query@0.56.1
Updated@zag-js/form-utils@0.56.1
Updated@zag-js/types@0.56.1
Updated@zag-js/utils@0.56.1