@react-types/radio 3.9.4 → 3.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +8 -4
  2. package/src/index.d.ts +3 -60
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/radio",
3
- "version": "3.9.4",
3
+ "version": "3.10.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,13 +9,17 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.33.1"
12
+ "@react-aria/radio": "^3.13.0",
13
+ "@react-spectrum/radio": "^3.8.0",
14
+ "@react-stately/radio": "^3.12.0"
13
15
  },
14
16
  "peerDependencies": {
15
- "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
17
+ "@react-spectrum/provider": "^3.0.0",
18
+ "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1",
19
+ "react-dom": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
16
20
  },
17
21
  "publishConfig": {
18
22
  "access": "public"
19
23
  },
20
- "gitHead": "8df187370053aa35f553cb388ad670f65e1ab371"
24
+ "gitHead": "a6999bdf494a2e9c0381a5881908328bdd22ddae"
21
25
  }
package/src/index.d.ts CHANGED
@@ -10,63 +10,6 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {
14
- AriaLabelingProps,
15
- AriaValidationProps,
16
- DOMProps,
17
- FocusableProps,
18
- FocusEvents,
19
- HelpTextProps,
20
- InputBase,
21
- InputDOMProps,
22
- LabelableProps,
23
- Orientation,
24
- PressEvents,
25
- SpectrumHelpTextProps,
26
- SpectrumLabelableProps,
27
- StyleProps,
28
- Validation,
29
- ValueBase
30
- } from '@react-types/shared';
31
- import {ReactElement, ReactNode} from 'react';
32
-
33
- export interface RadioGroupProps extends ValueBase<string|null, string>, InputBase, Pick<InputDOMProps, 'name'>, Validation<string>, LabelableProps, HelpTextProps, FocusEvents {
34
- /**
35
- * The axis the Radio Button(s) should align with.
36
- * @default 'vertical'
37
- */
38
- orientation?: Orientation
39
- }
40
-
41
- export interface RadioProps extends FocusableProps {
42
- /**
43
- * The value of the radio button, used when submitting an HTML form.
44
- * See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input/radio#Value).
45
- */
46
- value: string,
47
- /**
48
- * The label for the Radio. Accepts any renderable node.
49
- */
50
- children?: ReactNode,
51
- /**
52
- * Whether the radio button is disabled or not.
53
- * Shows that a selection exists, but is not available in that circumstance.
54
- */
55
- isDisabled?: boolean
56
- }
57
-
58
- export interface AriaRadioGroupProps extends RadioGroupProps, InputDOMProps, DOMProps, AriaLabelingProps, AriaValidationProps {}
59
- export interface SpectrumRadioGroupProps extends AriaRadioGroupProps, SpectrumLabelableProps, StyleProps, SpectrumHelpTextProps {
60
- /**
61
- * The Radio(s) contained within the RadioGroup.
62
- */
63
- children: ReactElement<RadioProps> | ReactElement<RadioProps>[],
64
- /**
65
- * By default, radio buttons are not emphasized (gray).
66
- * The emphasized (blue) version provides visual prominence.
67
- */
68
- isEmphasized?: boolean
69
- }
70
-
71
- export interface AriaRadioProps extends RadioProps, DOMProps, AriaLabelingProps, PressEvents {}
72
- export interface SpectrumRadioProps extends Omit<AriaRadioProps, 'onClick'>, StyleProps {}
13
+ export {RadioGroupProps} from '@react-stately/radio';
14
+ export {RadioProps, AriaRadioGroupProps, AriaRadioProps} from '@react-aria/radio';
15
+ export {SpectrumRadioGroupProps, SpectrumRadioProps} from '@react-spectrum/radio';