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