@react-types/switch
Advanced tools
Comparing version 3.0.0-rc.3 to 3.0.0-rc.4
{ | ||
"name": "@react-types/switch", | ||
"version": "3.0.0-rc.3", | ||
"version": "3.0.0-rc.4", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,4 +12,4 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/checkbox": "3.0.0-rc.3", | ||
"@react-types/shared": "3.0.0-rc.3" | ||
"@react-types/checkbox": "3.0.0-rc.4", | ||
"@react-types/shared": "3.0.0-rc.4" | ||
}, | ||
@@ -22,3 +22,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "461d6321126ae9b4f1508aa912f7b36bf8a603f8" | ||
"gitHead": "ee5ad1544ed65366c0fadabc2c63d39573ba3ffd" | ||
} |
@@ -17,7 +17,25 @@ /* | ||
interface SwitchBase extends InputBase, FocusableProps { | ||
children?: ReactNode, // pass in children to render label | ||
/** | ||
* The content to render as the Switch's label. | ||
*/ | ||
children?: ReactNode, | ||
/** | ||
* Whether the Switch should be selected (uncontrolled). | ||
*/ | ||
defaultSelected?: boolean, | ||
/** | ||
* Whether the Switch should be selected (controlled). | ||
*/ | ||
isSelected?: boolean, | ||
/** | ||
* Handler that is called when the Switch's selection state changes. | ||
*/ | ||
onChange?: (isSelected: boolean) => void, | ||
value?: string, // dom prop for input element | ||
/** | ||
* The value of the input element. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefvalue). | ||
*/ | ||
value?: string, | ||
/** | ||
* The name of the input element. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname). | ||
*/ | ||
name?: string | ||
@@ -24,0 +42,0 @@ } |
14128
53
+ Added@react-types/checkbox@3.0.0-rc.4(transitive)
+ Added@react-types/shared@3.0.0-rc.4(transitive)
- Removed@react-types/checkbox@3.0.0-rc.3(transitive)
- Removed@react-types/shared@3.0.0-rc.3(transitive)