@zag-js/checkbox
Advanced tools
Comparing version 0.0.0-dev-20220627213436 to 0.0.0-dev-20220628115342
@@ -1,4 +0,4 @@ | ||
import { PropTypes, ReactPropTypes } from "@zag-js/types"; | ||
import { State, Send } from "./checkbox.types"; | ||
export declare function connect<T extends PropTypes = ReactPropTypes>(state: State, send: Send, normalize?: import("@zag-js/types").NormalizeProps): { | ||
import type { NormalizeProps, PropTypes } from "@zag-js/types"; | ||
import type { Send, State } from "./checkbox.types"; | ||
export declare function connect<T extends PropTypes>(state: State, send: Send, normalize: NormalizeProps<T>): { | ||
isChecked: boolean; | ||
@@ -5,0 +5,0 @@ isDisabled: boolean; |
@@ -42,12 +42,2 @@ "use strict"; | ||
// ../../types/dist/index.mjs | ||
function createNormalizer(fn) { | ||
return new Proxy({}, { | ||
get() { | ||
return fn; | ||
} | ||
}); | ||
} | ||
var normalizeProp = createNormalizer((v) => v); | ||
// ../../utilities/dom/dist/index.mjs | ||
@@ -174,3 +164,3 @@ var dataAttr = (guard) => { | ||
// src/checkbox.connect.ts | ||
function connect(state, send, normalize = normalizeProp) { | ||
function connect(state, send, normalize) { | ||
var _a; | ||
@@ -177,0 +167,0 @@ const isChecked = state.matches("checked"); |
{ | ||
"name": "@zag-js/checkbox", | ||
"version": "0.0.0-dev-20220627213436", | ||
"version": "0.0.0-dev-20220628115342", | ||
"description": "Core logic for the checkbox widget implemented as a state machine", | ||
@@ -41,9 +41,9 @@ "keywords": [ | ||
"dependencies": { | ||
"@zag-js/core": "0.0.0-dev-20220627213436", | ||
"@zag-js/types": "0.2.0" | ||
"@zag-js/core": "0.0.0-dev-20220628115342", | ||
"@zag-js/types": "0.0.0-dev-20220628115342" | ||
}, | ||
"devDependencies": { | ||
"@zag-js/dom-utils": "0.0.0-dev-20220627213436", | ||
"@zag-js/dom-utils": "0.0.0-dev-20220628115342", | ||
"@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
33800
1017
+ Added@zag-js/core@0.0.0-dev-20220628115342(transitive)
+ Added@zag-js/store@0.0.0-dev-20220628115342(transitive)
+ Added@zag-js/types@0.0.0-dev-20220628115342(transitive)
+ Addedcsstype@3.1.0(transitive)
- Removed@zag-js/core@0.0.0-dev-20220627213436(transitive)
- Removed@zag-js/store@0.0.0-dev-20220627213436(transitive)
- Removed@zag-js/types@0.2.0(transitive)