@react-types/radio
Advanced tools
Comparing version 3.0.0-rc.1 to 3.0.0-rc.2
{ | ||
"name": "@react-types/radio", | ||
"version": "3.0.0-rc.1", | ||
"version": "3.0.0-rc.2", | ||
"description": "Spectrum UI components in React", | ||
@@ -12,3 +12,3 @@ "license": "Apache-2.0", | ||
"dependencies": { | ||
"@react-types/shared": "^3.0.0-rc.1" | ||
"@react-types/shared": "^3.0.0-rc.2" | ||
}, | ||
@@ -21,3 +21,3 @@ "peerDependencies": { | ||
}, | ||
"gitHead": "5a9784f0bb6c25af7422215efb31ef72caeb9600" | ||
"gitHead": "207e6ee9076905c96638a7f81a367758872e1410" | ||
} |
@@ -1,2 +0,23 @@ | ||
import {DOMProps, FocusableProps, InputBase, LabelableProps, SpectrumLabelableProps, StyleProps, ValueBase} from '@react-types/shared'; | ||
/* | ||
* Copyright 2020 Adobe. All rights reserved. | ||
* This file is licensed to you under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. You may obtain a copy | ||
* of the License at http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software distributed under | ||
* the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS | ||
* OF ANY KIND, either express or implied. See the License for the specific language | ||
* governing permissions and limitations under the License. | ||
*/ | ||
import { | ||
DOMProps, | ||
FocusableProps, | ||
InputBase, | ||
LabelableProps, | ||
Orientation, | ||
SpectrumLabelableProps, | ||
StyleProps, | ||
ValueBase | ||
} from '@react-types/shared'; | ||
import {ReactElement, ReactNode} from 'react'; | ||
@@ -11,3 +32,10 @@ | ||
value: string, // HTML form value. Not displayed. | ||
/** | ||
* The label for the Radio. Accepts any renderable node. | ||
*/ | ||
children?: ReactNode, // pass in children to render label | ||
/** | ||
* Whether the radio button is disabled or not. | ||
* Shows that a selection exists, but is not available in that circumstance. | ||
*/ | ||
isDisabled?: boolean | ||
@@ -17,3 +45,11 @@ } | ||
export interface SpectrumRadioGroupProps extends RadioGroupProps, SpectrumLabelableProps, DOMProps, StyleProps { | ||
orientation?: 'horizontal' | 'vertical', | ||
/** | ||
* The axis the Radio Button(s) should align with. | ||
* @default 'vertical' | ||
*/ | ||
orientation?: Orientation, | ||
/** | ||
* By default, radio buttons are not emphasized (gray). | ||
* The emphasized (blue) version provides visual prominence. | ||
*/ | ||
isEmphasized?: boolean | ||
@@ -20,0 +56,0 @@ } |
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
13902
4
51