@react-types/checkbox 3.4.4 → 3.5.1

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 +4 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/checkbox",
3
- "version": "3.4.4",
3
+ "version": "3.5.1",
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.18.1"
12
+ "@react-types/shared": "^3.20.0"
13
13
  },
14
14
  "peerDependencies": {
15
15
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -17,5 +17,5 @@
17
17
  "publishConfig": {
18
18
  "access": "public"
19
19
  },
20
- "gitHead": "5911ed21de4b76d66f6254c02302519e02d50e16"
20
+ "gitHead": "54fbaa67cc56867506811819fef765546d403253"
21
21
  }
package/src/index.d.ts CHANGED
@@ -18,6 +18,7 @@ import {
18
18
  FocusableProps,
19
19
  HelpTextProps,
20
20
  InputBase,
21
+ InputDOMProps,
21
22
  LabelableProps,
22
23
  Orientation,
23
24
  SpectrumHelpTextProps,
@@ -48,14 +49,10 @@ export interface ToggleProps extends InputBase, Validation, FocusableProps {
48
49
  /**
49
50
  * The value of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefvalue).
50
51
  */
51
- value?: string,
52
- /**
53
- * The name of the input element, used when submitting an HTML form. See [MDN](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/input#htmlattrdefname).
54
- */
55
- name?: string
52
+ value?: string
56
53
  }
57
54
 
58
- export interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps {
55
+ export interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps, InputDOMProps {
59
56
  /**
60
57
  * Identifies the element (or elements) whose contents or presence are controlled by the current element.
61
58
  */
@@ -74,12 +71,7 @@ export interface CheckboxProps extends ToggleProps {
74
71
 
75
72
  export interface AriaCheckboxProps extends CheckboxProps, AriaToggleProps {}
76
73
 
77
- export interface AriaCheckboxGroupProps extends CheckboxGroupProps, DOMProps, AriaLabelingProps, AriaValidationProps {
78
- /**
79
- * The name of the CheckboxGroup, used when submitting an HTML form.
80
- */
81
- name?: string
82
- }
74
+ export interface AriaCheckboxGroupProps extends CheckboxGroupProps, DOMProps, InputDOMProps, AriaLabelingProps, AriaValidationProps {}
83
75
 
84
76
  export interface AriaCheckboxGroupItemProps extends Omit<AriaCheckboxProps, 'isSelected' | 'defaultSelected'> {
85
77
  value: string