@zag-js/checkbox
Advanced tools
Comparing version 0.0.0-dev-20220616103638 to 0.0.0-dev-20220616104411
@@ -339,3 +339,4 @@ "use strict"; | ||
watch: { | ||
indeterminate: ["syncInputIndetermine"] | ||
indeterminate: ["syncInputIndeterminate"], | ||
disabled: ["removeFocusIfNeeded"] | ||
}, | ||
@@ -346,2 +347,3 @@ computed: { | ||
}, | ||
activities: ["trackFormReset", "trackFieldsetDisabled"], | ||
on: { | ||
@@ -400,4 +402,3 @@ SET_STATE: [ | ||
} | ||
}, | ||
activities: ["trackFormReset", "trackFieldsetDisabled"] | ||
} | ||
}, { | ||
@@ -440,6 +441,6 @@ guards: { | ||
}, | ||
invokeOnChange(ctx2, _, { state }) { | ||
invokeOnChange(ctx2, _evt, { state }) { | ||
var _a; | ||
const checked = state.matches("checked"); | ||
(_a = ctx2.onChange) == null ? void 0 : _a.call(ctx2, { checked }); | ||
(_a = ctx2.onChange) == null ? void 0 : _a.call(ctx2, { checked: ctx2.indeterminate ? "indeterminate" : checked }); | ||
}, | ||
@@ -464,3 +465,3 @@ setActive(ctx2, evt) { | ||
}, | ||
syncInputIndetermine(ctx2) { | ||
syncInputIndeterminate(ctx2) { | ||
const inputEl = dom.getInputEl(ctx2); | ||
@@ -478,2 +479,7 @@ if (!inputEl) | ||
dispatchInputCheckedEvent(inputEl, evt.checked); | ||
}, | ||
removeFocusIfNeeded(ctx2) { | ||
if (ctx2.disabled && ctx2.focused) { | ||
ctx2.focused = false; | ||
} | ||
} | ||
@@ -480,0 +486,0 @@ } |
{ | ||
"name": "@zag-js/checkbox", | ||
"version": "0.0.0-dev-20220616103638", | ||
"version": "0.0.0-dev-20220616104411", | ||
"description": "Core logic for the checkbox widget implemented as a state machine", | ||
@@ -42,6 +42,6 @@ "keywords": [ | ||
"@zag-js/core": "0.1.6", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220616103638", | ||
"@zag-js/types": "0.0.0-dev-20220616103638", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220616104411", | ||
"@zag-js/types": "0.0.0-dev-20220616104411", | ||
"@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
35206
1075
+ Added@zag-js/dom-utils@0.0.0-dev-20220616104411(transitive)
+ Added@zag-js/types@0.0.0-dev-20220616104411(transitive)
- Removed@zag-js/dom-utils@0.0.0-dev-20220616103638(transitive)
- Removed@zag-js/types@0.0.0-dev-20220616103638(transitive)