@react-types/slider 3.6.3-nightly.4230 → 3.6.3-nightly.4245

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 +9 -3
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/slider",
3
- "version": "3.6.3-nightly.4230+192e66d11",
3
+ "version": "3.6.3-nightly.4245+403ec27bf",
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.2519+192e66d11"
12
+ "@react-types/shared": "3.0.0-nightly.2534+403ec27bf"
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": "192e66d11e2f49caba5194e2094bfd1534db7cda"
20
+ "gitHead": "403ec27bf8f5af6e19529b78782526f680c171ca"
21
21
  }
package/src/index.d.ts CHANGED
@@ -11,7 +11,7 @@ import {
11
11
  RangeInputBase,
12
12
  RangeValue,
13
13
  StyleProps,
14
- Validation,
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, Validation, LabelableProps {
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 {}