@zag-js/switch
Advanced tools
Comparing version 0.74.2 to 0.75.0
@@ -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
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
27664
+ Added@zag-js/anatomy@0.75.0(transitive)
+ Added@zag-js/core@0.75.0(transitive)
+ Added@zag-js/dom-event@0.75.0(transitive)
+ Added@zag-js/dom-query@0.75.0(transitive)
+ Added@zag-js/focus-visible@0.75.0(transitive)
+ Added@zag-js/form-utils@0.75.0(transitive)
+ Added@zag-js/store@0.75.0(transitive)
+ Added@zag-js/text-selection@0.75.0(transitive)
+ Added@zag-js/types@0.75.0(transitive)
+ Added@zag-js/utils@0.75.0(transitive)
- Removed@zag-js/anatomy@0.74.2(transitive)
- Removed@zag-js/core@0.74.2(transitive)
- Removed@zag-js/dom-event@0.74.2(transitive)
- Removed@zag-js/dom-query@0.74.2(transitive)
- Removed@zag-js/focus-visible@0.74.2(transitive)
- Removed@zag-js/form-utils@0.74.2(transitive)
- Removed@zag-js/store@0.74.2(transitive)
- Removed@zag-js/text-selection@0.74.2(transitive)
- Removed@zag-js/types@0.74.2(transitive)
- Removed@zag-js/utils@0.74.2(transitive)
Updated@zag-js/anatomy@0.75.0
Updated@zag-js/core@0.75.0
Updated@zag-js/dom-event@0.75.0
Updated@zag-js/dom-query@0.75.0
Updated@zag-js/focus-visible@0.75.0
Updated@zag-js/form-utils@0.75.0
Updated@zag-js/types@0.75.0
Updated@zag-js/utils@0.75.0