@react-types/slider 3.6.3-nightly.4230 → 3.6.3-nightly.4242
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 +9 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@react-types/slider",
|
|
3
|
-
"version": "3.6.3-nightly.
|
|
3
|
+
"version": "3.6.3-nightly.4242+068ecd12e",
|
|
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.0.0-nightly.
|
|
12
|
+
"@react-types/shared": "3.0.0-nightly.2531+068ecd12e"
|
|
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": "
|
|
20
|
+
"gitHead": "068ecd12e8a8c61546dfda691b04ca87cbdae687"
|
|
21
21
|
}
|
package/src/index.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ import {
|
|
|
11
11
|
RangeInputBase,
|
|
12
12
|
RangeValue,
|
|
13
13
|
StyleProps,
|
|
14
|
-
|
|
14
|
+
ValidationState,
|
|
15
15
|
ValueBase
|
|
16
16
|
} from '@react-types/shared';
|
|
17
17
|
import {ReactNode} from 'react';
|
|
@@ -44,7 +44,7 @@ export interface SliderProps<T = number | number[]> extends RangeInputBase<numbe
|
|
|
44
44
|
step?: number
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
-
export interface SliderThumbProps extends FocusableProps,
|
|
47
|
+
export interface SliderThumbProps extends FocusableProps, LabelableProps {
|
|
48
48
|
/**
|
|
49
49
|
* The orientation of the Slider.
|
|
50
50
|
* @default 'horizontal'
|
|
@@ -57,7 +57,13 @@ export interface SliderThumbProps extends FocusableProps, Validation, LabelableP
|
|
|
57
57
|
* Index of the thumb within the slider.
|
|
58
58
|
* @default 0
|
|
59
59
|
*/
|
|
60
|
-
index?: number
|
|
60
|
+
index?: number,
|
|
61
|
+
/** @deprecated */
|
|
62
|
+
isRequired?: boolean,
|
|
63
|
+
/** @deprecated */
|
|
64
|
+
isInvalid?: boolean,
|
|
65
|
+
/** @deprecated */
|
|
66
|
+
validationState?: ValidationState
|
|
61
67
|
}
|
|
62
68
|
|
|
63
69
|
export interface AriaSliderProps<T = number | number[]> extends SliderProps<T>, DOMProps, AriaLabelingProps {}
|