@react-types/radio 3.8.9 → 3.9.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 +3 -3
  2. package/src/index.d.ts +5 -4
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/radio",
3
- "version": "3.8.9",
3
+ "version": "3.9.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,7 +9,7 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/shared": "^3.29.1"
12
+ "@react-types/shared": "^3.31.0"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0 || ^19.0.0-rc.1"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "9c77d4e8267ed39469c65f65da94ece7be509874"
20
+ "gitHead": "8b9348ff255e018b2dd9b27e2a45507cadfa1d35"
21
21
  }
package/src/index.d.ts CHANGED
@@ -21,6 +21,7 @@ import {
21
21
  InputDOMProps,
22
22
  LabelableProps,
23
23
  Orientation,
24
+ PressEvents,
24
25
  SpectrumHelpTextProps,
25
26
  SpectrumLabelableProps,
26
27
  StyleProps,
@@ -29,7 +30,7 @@ import {
29
30
  } from '@react-types/shared';
30
31
  import {ReactElement, ReactNode} from 'react';
31
32
 
32
- export interface RadioGroupProps extends ValueBase<string|null, string>, InputBase, InputDOMProps, Validation<string | null>, LabelableProps, HelpTextProps, FocusEvents {
33
+ export interface RadioGroupProps extends ValueBase<string|null, string>, InputBase, Pick<InputDOMProps, 'name'>, Validation<string | null>, LabelableProps, HelpTextProps, FocusEvents {
33
34
  /**
34
35
  * The axis the Radio Button(s) should align with.
35
36
  * @default 'vertical'
@@ -54,7 +55,7 @@ export interface RadioProps extends FocusableProps {
54
55
  isDisabled?: boolean
55
56
  }
56
57
 
57
- export interface AriaRadioGroupProps extends RadioGroupProps, DOMProps, AriaLabelingProps, AriaValidationProps {}
58
+ export interface AriaRadioGroupProps extends RadioGroupProps, InputDOMProps, DOMProps, AriaLabelingProps, AriaValidationProps {}
58
59
  export interface SpectrumRadioGroupProps extends AriaRadioGroupProps, SpectrumLabelableProps, StyleProps, SpectrumHelpTextProps {
59
60
  /**
60
61
  * The Radio(s) contained within the RadioGroup.
@@ -67,5 +68,5 @@ export interface SpectrumRadioGroupProps extends AriaRadioGroupProps, SpectrumLa
67
68
  isEmphasized?: boolean
68
69
  }
69
70
 
70
- export interface AriaRadioProps extends RadioProps, DOMProps, AriaLabelingProps {}
71
- export interface SpectrumRadioProps extends AriaRadioProps, StyleProps {}
71
+ export interface AriaRadioProps extends RadioProps, DOMProps, AriaLabelingProps, PressEvents {}
72
+ export interface SpectrumRadioProps extends Omit<AriaRadioProps, 'onClick'>, StyleProps {}