@react-aria/toggle
Advanced tools
Comparing version 3.0.2 to 3.1.0
@@ -20,2 +20,5 @@ var { | ||
/** | ||
* Handles interactions for toggle elements, e.g. Checkboxes and Switches. | ||
*/ | ||
function useToggle(props, state, ref) { | ||
@@ -22,0 +25,0 @@ let { |
@@ -5,2 +5,6 @@ import { usePress } from "@react-aria/interactions"; | ||
import _babelRuntimeHelpersEsmExtends from "@babel/runtime/helpers/esm/extends"; | ||
/** | ||
* Handles interactions for toggle elements, e.g. Checkboxes and Switches. | ||
*/ | ||
export function useToggle(props, state, ref) { | ||
@@ -7,0 +11,0 @@ let { |
@@ -5,6 +5,12 @@ import { AriaToggleProps } from "@react-types/checkbox"; | ||
export interface ToggleAria { | ||
/** | ||
* Props to be spread on the input element. | ||
*/ | ||
inputProps: InputHTMLAttributes<HTMLInputElement>; | ||
} | ||
/** | ||
* Handles interactions for toggle elements, e.g. Checkboxes and Switches. | ||
*/ | ||
export function useToggle(props: AriaToggleProps, state: ToggleState, ref: RefObject<HTMLElement>): ToggleAria; | ||
//# sourceMappingURL=types.d.ts.map |
{ | ||
"name": "@react-aria/toggle", | ||
"version": "3.0.2", | ||
"version": "3.1.0", | ||
"description": "Spectrum UI components in React", | ||
@@ -21,9 +21,9 @@ "license": "Apache-2.0", | ||
"@babel/runtime": "^7.6.2", | ||
"@react-aria/focus": "^3.0.2", | ||
"@react-aria/interactions": "^3.0.2", | ||
"@react-aria/utils": "^3.0.2", | ||
"@react-stately/toggle": "^3.0.2", | ||
"@react-types/checkbox": "^3.0.2", | ||
"@react-types/shared": "^3.0.2", | ||
"@react-types/switch": "^3.0.2" | ||
"@react-aria/focus": "^3.1.0", | ||
"@react-aria/interactions": "^3.1.0", | ||
"@react-aria/utils": "^3.1.0", | ||
"@react-stately/toggle": "^3.1.0", | ||
"@react-types/checkbox": "^3.1.0", | ||
"@react-types/shared": "^3.1.0", | ||
"@react-types/switch": "^3.1.0" | ||
}, | ||
@@ -36,3 +36,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "05003506f02a0ec173f3448f1801cbdf12b47bc7" | ||
"gitHead": "211099972fe75ee581892efd01a7f89dfb9cdf69" | ||
} |
@@ -21,5 +21,11 @@ /* | ||
export interface ToggleAria { | ||
/** | ||
* Props to be spread on the input element. | ||
*/ | ||
inputProps: InputHTMLAttributes<HTMLInputElement> | ||
} | ||
/** | ||
* Handles interactions for toggle elements, e.g. Checkboxes and Switches. | ||
*/ | ||
export function useToggle(props: AriaToggleProps, state: ToggleState, ref: RefObject<HTMLElement>): ToggleAria { | ||
@@ -26,0 +32,0 @@ let { |
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
31175
225
Updated@react-aria/focus@^3.1.0
Updated@react-aria/utils@^3.1.0
Updated@react-stately/toggle@^3.1.0
Updated@react-types/checkbox@^3.1.0
Updated@react-types/shared@^3.1.0
Updated@react-types/switch@^3.1.0