@react-types/checkbox 3.9.5 → 3.10.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.
- package/package.json +3 -3
- package/src/index.d.ts +6 -5
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/checkbox",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.10.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.
|
|
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": "
|
|
20
|
+
"gitHead": "8b9348ff255e018b2dd9b27e2a45507cadfa1d35"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -22,6 +22,7 @@ import {
|
|
|
22
22
|
InputDOMProps,
|
|
23
23
|
LabelableProps,
|
|
24
24
|
Orientation,
|
|
25
|
+
PressEvents,
|
|
25
26
|
SpectrumHelpTextProps,
|
|
26
27
|
SpectrumLabelableProps,
|
|
27
28
|
StyleProps,
|
|
@@ -56,14 +57,14 @@ export interface ToggleProps extends ToggleStateOptions, Validation<boolean>, Fo
|
|
|
56
57
|
value?: string
|
|
57
58
|
}
|
|
58
59
|
|
|
59
|
-
export interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps, InputDOMProps {
|
|
60
|
+
export interface AriaToggleProps extends ToggleProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps, InputDOMProps, PressEvents {
|
|
60
61
|
/**
|
|
61
62
|
* Identifies the element (or elements) whose contents or presence are controlled by the current element.
|
|
62
63
|
*/
|
|
63
64
|
'aria-controls'?: string
|
|
64
65
|
}
|
|
65
66
|
|
|
66
|
-
export interface CheckboxGroupProps extends ValueBase<string[]>,
|
|
67
|
+
export interface CheckboxGroupProps extends ValueBase<string[]>, Pick<InputDOMProps, 'name'>, InputBase, LabelableProps, HelpTextProps, Validation<string[]> {}
|
|
67
68
|
|
|
68
69
|
export interface CheckboxProps extends ToggleProps {
|
|
69
70
|
/**
|
|
@@ -73,15 +74,15 @@ export interface CheckboxProps extends ToggleProps {
|
|
|
73
74
|
isIndeterminate?: boolean
|
|
74
75
|
}
|
|
75
76
|
|
|
76
|
-
export interface AriaCheckboxProps extends CheckboxProps, AriaToggleProps {}
|
|
77
|
+
export interface AriaCheckboxProps extends CheckboxProps, InputDOMProps, AriaToggleProps {}
|
|
77
78
|
|
|
78
|
-
export interface AriaCheckboxGroupProps extends CheckboxGroupProps, DOMProps, AriaLabelingProps, AriaValidationProps, FocusEvents {}
|
|
79
|
+
export interface AriaCheckboxGroupProps extends CheckboxGroupProps, InputDOMProps, DOMProps, AriaLabelingProps, AriaValidationProps, FocusEvents {}
|
|
79
80
|
|
|
80
81
|
export interface AriaCheckboxGroupItemProps extends Omit<AriaCheckboxProps, 'isSelected' | 'defaultSelected'> {
|
|
81
82
|
value: string
|
|
82
83
|
}
|
|
83
84
|
|
|
84
|
-
export interface SpectrumCheckboxProps extends AriaCheckboxProps, StyleProps {
|
|
85
|
+
export interface SpectrumCheckboxProps extends Omit<AriaCheckboxProps, 'onClick'>, StyleProps {
|
|
85
86
|
/**
|
|
86
87
|
* This prop sets the emphasized style which provides visual prominence.
|
|
87
88
|
*/
|