@react-types/switch 3.3.1 → 3.4.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 +4 -4
  2. package/src/index.d.ts +3 -7
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/switch",
3
- "version": "3.3.1",
3
+ "version": "3.4.0",
4
4
  "description": "Spectrum UI components in React",
5
5
  "license": "Apache-2.0",
6
6
  "types": "src/index.d.ts",
@@ -9,8 +9,8 @@
9
9
  "url": "https://github.com/adobe/react-spectrum"
10
10
  },
11
11
  "dependencies": {
12
- "@react-types/checkbox": "^3.4.3",
13
- "@react-types/shared": "^3.18.0"
12
+ "@react-types/checkbox": "^3.5.0",
13
+ "@react-types/shared": "^3.19.0"
14
14
  },
15
15
  "peerDependencies": {
16
16
  "react": "^16.8.0 || ^17.0.0-rc.1 || ^18.0.0"
@@ -18,5 +18,5 @@
18
18
  "publishConfig": {
19
19
  "access": "public"
20
20
  },
21
- "gitHead": "9d1ba9bd8ebcd63bf3495ade16d349bcb71795ce"
21
+ "gitHead": "d4dfe4bb842a914f10045ee63fc6b92f034c5b30"
22
22
  }
package/src/index.d.ts CHANGED
@@ -10,7 +10,7 @@
10
10
  * governing permissions and limitations under the License.
11
11
  */
12
12
 
13
- import {AriaLabelingProps, FocusableDOMProps, FocusableProps, InputBase, StyleProps} from '@react-types/shared';
13
+ import {AriaLabelingProps, FocusableDOMProps, FocusableProps, InputBase, InputDOMProps, StyleProps} from '@react-types/shared';
14
14
  import {ReactNode} from 'react';
15
15
 
16
16
  interface SwitchBase extends InputBase, FocusableProps {
@@ -33,14 +33,10 @@ interface SwitchBase extends InputBase, FocusableProps {
33
33
  /**
34
34
  * 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).
35
35
  */
36
- value?: string,
37
- /**
38
- * 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).
39
- */
40
- name?: string
36
+ value?: string
41
37
  }
42
38
  export interface SwitchProps extends SwitchBase {}
43
- export interface AriaSwitchBase extends SwitchBase, FocusableDOMProps, AriaLabelingProps {
39
+ export interface AriaSwitchBase extends SwitchBase, FocusableDOMProps, InputDOMProps, AriaLabelingProps {
44
40
  /**
45
41
  * Identifies the element (or elements) whose contents or presence are controlled by the current element.
46
42
  */