@react-types/radio
Advanced tools
Comparing version 3.0.0-rc.3 to 3.0.0-rc.4
{ | ||
"name": "@react-types/radio", | ||
"version": "3.0.0-rc.3", | ||
"version": "3.0.0-rc.4", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "3.0.0-rc.3" | ||
"@react-types/shared": "3.0.0-rc.4" | ||
}, | ||
@@ -21,3 +21,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "461d6321126ae9b4f1508aa912f7b36bf8a603f8" | ||
"gitHead": "ee5ad1544ed65366c0fadabc2c63d39573ba3ffd" | ||
} |
@@ -29,3 +29,2 @@ /* | ||
export interface RadioGroupProps extends ValueBase<string>, InputBase, Validation, LabelableProps { | ||
children: ReactElement<RadioProps> | ReactElement<RadioProps>[], | ||
/** | ||
@@ -36,11 +35,19 @@ * The axis the Radio Button(s) should align with. | ||
orientation?: Orientation, | ||
name?: string // HTML form name. Not displayed. | ||
/** | ||
* The unique identifying name of the RadioGroup that is applied to the Radios within the group. | ||
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#name_and_radio_buttons). | ||
*/ | ||
name?: string | ||
} | ||
export interface RadioProps extends FocusableProps { | ||
value: string, // HTML form value. Not displayed. | ||
/** | ||
* The value of the radio button, used to identify it in a RadioGroup. | ||
* See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio#Value). | ||
*/ | ||
value: string, | ||
/** | ||
* The label for the Radio. Accepts any renderable node. | ||
*/ | ||
children?: ReactNode, // pass in children to render label | ||
children?: ReactNode, | ||
/** | ||
@@ -56,2 +63,6 @@ * Whether the radio button is disabled or not. | ||
/** | ||
* The Radio(s) contained within the RadioGroup. | ||
*/ | ||
children: ReactElement<RadioProps> | ReactElement<RadioProps>[], | ||
/** | ||
* By default, radio buttons are not emphasized (gray). | ||
@@ -58,0 +69,0 @@ * The emphasized (blue) version provides visual prominence. |
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
14507
67
+ Added@react-types/shared@3.0.0-rc.4(transitive)
- Removed@react-types/shared@3.0.0-rc.3(transitive)