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

@zag-js/switch

Package Overview
Dependencies
Maintainers
1
Versions
701
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zag-js/switch - npm Package Compare versions

Comparing version 0.74.2 to 0.75.0

18

dist/index.d.ts

@@ -22,3 +22,3 @@ import * as _zag_js_anatomy from '@zag-js/anatomy';

*/
ids?: ElementIds;
ids?: ElementIds | undefined;
/**

@@ -31,19 +31,19 @@ * Specifies the localized strings that identifies the accessibility elements and their states

*/
disabled?: boolean;
disabled?: boolean | undefined;
/**
* If `true`, the switch is marked as invalid.
*/
invalid?: boolean;
invalid?: boolean | undefined;
/**
* If `true`, the switch input is marked as required,
*/
required?: boolean;
required?: boolean | undefined;
/**
* Whether the switch is read-only
*/
readOnly?: boolean;
readOnly?: boolean | undefined;
/**
* Function to call when the switch is clicked.
*/
onCheckedChange?: (details: CheckedChangeDetails) => void;
onCheckedChange?: ((details: CheckedChangeDetails) => void) | undefined;
/**

@@ -57,7 +57,7 @@ * Whether the switch is checked.

*/
name?: string;
name?: string | undefined;
/**
* The id of the form that the switch belongs to
*/
form?: string;
form?: string | undefined;
/**

@@ -67,3 +67,3 @@ * The value of switch input. Useful for form submission.

*/
value?: string | number;
value?: string | number | undefined;
}

@@ -70,0 +70,0 @@ type UserDefinedContext = RequiredBy<PublicContext, "id">;

{
"name": "@zag-js/switch",
"version": "0.74.2",
"version": "0.75.0",
"description": "Core logic for the switch widget implemented as a state machine",

@@ -30,10 +30,10 @@ "keywords": [

"dependencies": {
"@zag-js/anatomy": "0.74.2",
"@zag-js/core": "0.74.2",
"@zag-js/dom-query": "0.74.2",
"@zag-js/dom-event": "0.74.2",
"@zag-js/focus-visible": "0.74.2",
"@zag-js/form-utils": "0.74.2",
"@zag-js/utils": "0.74.2",
"@zag-js/types": "0.74.2"
"@zag-js/anatomy": "0.75.0",
"@zag-js/core": "0.75.0",
"@zag-js/dom-query": "0.75.0",
"@zag-js/dom-event": "0.75.0",
"@zag-js/focus-visible": "0.75.0",
"@zag-js/form-utils": "0.75.0",
"@zag-js/utils": "0.75.0",
"@zag-js/types": "0.75.0"
},

@@ -40,0 +40,0 @@ "devDependencies": {

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