Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@zag-js/checkbox

Package Overview
Dependencies
Maintainers
1
Versions
947
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/checkbox - npm Package Compare versions

Comparing version 0.0.0-dev-20220616103638 to 0.0.0-dev-20220616104411

18

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc