@react-types/checkbox 3.5.2 → 3.7.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/checkbox",
3
- "version": "3.5.2",
3
+ "version": "3.7.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.21.0"
12
+ "@react-types/shared": "^3.22.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": "4122e44d1991c90507d630d35ed297f89db435d3"
20
+ "gitHead": "f040ff62678e6a31375b96c05396df0bae660350"
21
21
  }
package/src/index.d.ts CHANGED
@@ -16,6 +16,7 @@ import {
16
16
  DOMProps,
17
17
  FocusableDOMProps,
18
18
  FocusableProps,
19
+ FocusEvents,
19
20
  HelpTextProps,
20
21
  InputBase,
21
22
  InputDOMProps,
@@ -29,7 +30,7 @@ import {
29
30
  } from '@react-types/shared';
30
31
  import {ReactElement, ReactNode} from 'react';
31
32
 
32
- export interface ToggleProps extends InputBase, Validation, FocusableProps {
33
+ export interface ToggleProps extends InputBase, Validation<boolean>, FocusableProps {
33
34
  /**
34
35
  * The label for the element.
35
36
  */
@@ -59,7 +60,7 @@ export interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLab
59
60
  'aria-controls'?: string
60
61
  }
61
62
 
62
- export interface CheckboxGroupProps extends ValueBase<string[]>, InputBase, LabelableProps, HelpTextProps, Validation {}
63
+ export interface CheckboxGroupProps extends ValueBase<string[]>, InputBase, InputDOMProps, LabelableProps, HelpTextProps, Validation<string[]> {}
63
64
 
64
65
  export interface CheckboxProps extends ToggleProps {
65
66
  /**
@@ -71,7 +72,7 @@ export interface CheckboxProps extends ToggleProps {
71
72
 
72
73
  export interface AriaCheckboxProps extends CheckboxProps, AriaToggleProps {}
73
74
 
74
- export interface AriaCheckboxGroupProps extends CheckboxGroupProps, DOMProps, InputDOMProps, AriaLabelingProps, AriaValidationProps {}
75
+ export interface AriaCheckboxGroupProps extends CheckboxGroupProps, DOMProps, AriaLabelingProps, AriaValidationProps, FocusEvents {}
75
76
 
76
77
  export interface AriaCheckboxGroupItemProps extends Omit<AriaCheckboxProps, 'isSelected' | 'defaultSelected'> {
77
78
  value: string
@@ -84,7 +85,7 @@ export interface SpectrumCheckboxProps extends AriaCheckboxProps, StyleProps {
84
85
  isEmphasized?: boolean
85
86
  }
86
87
 
87
- export interface SpectrumCheckboxGroupProps extends AriaCheckboxGroupProps, SpectrumLabelableProps, Validation, StyleProps, SpectrumHelpTextProps {
88
+ export interface SpectrumCheckboxGroupProps extends AriaCheckboxGroupProps, SpectrumLabelableProps, Validation<string[]>, StyleProps, SpectrumHelpTextProps {
88
89
  /**
89
90
  * The Checkboxes contained within the CheckboxGroup.
90
91
  */