@react-stately/toggle
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -9,2 +9,6 @@ var { | ||
function useToggleState(props) { | ||
if (props === void 0) { | ||
props = {}; | ||
} | ||
let { | ||
@@ -11,0 +15,0 @@ isReadOnly, |
@@ -7,2 +7,6 @@ import { useControlledState } from "@react-stately/utils"; | ||
export function useToggleState(props) { | ||
if (props === void 0) { | ||
props = {}; | ||
} | ||
let { | ||
@@ -9,0 +13,0 @@ isReadOnly, |
@@ -11,4 +11,4 @@ import { ToggleProps } from "@react-types/checkbox"; | ||
*/ | ||
export function useToggleState(props: ToggleProps): ToggleState; | ||
export function useToggleState(props?: ToggleProps): ToggleState; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-stately/toggle", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,5 +21,5 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-stately/utils": "^3.0.2", | ||
"@react-types/checkbox": "^3.0.2", | ||
"@react-types/shared": "^3.0.2" | ||
"@react-stately/utils": "^3.1.0", | ||
"@react-types/checkbox": "^3.1.0", | ||
"@react-types/shared": "^3.1.0" | ||
}, | ||
@@ -32,3 +32,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "05003506f02a0ec173f3448f1801cbdf12b47bc7" | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
} |
@@ -27,3 +27,3 @@ /* | ||
*/ | ||
export function useToggleState(props: ToggleProps): ToggleState { | ||
export function useToggleState(props: ToggleProps = {}): ToggleState { | ||
let {isReadOnly, onChange} = props; | ||
@@ -30,0 +30,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
22086
123
Updated@react-stately/utils@^3.1.0
Updated@react-types/checkbox@^3.1.0
Updated@react-types/shared@^3.1.0