@react-types/slider 3.1.2-nightly.3354 → 3.1.2-nightly.3355

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 +3 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-types/slider",
3
- "version": "3.1.2-nightly.3354+f0c9a597a",
3
+ "version": "3.1.2-nightly.3355+263db8300",
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.1654+f0c9a597a"
12
+ "@react-types/shared": "3.0.0-nightly.1655+263db8300"
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": "f0c9a597aa8d9eadeb47e81aacd9af65dca77700"
20
+ "gitHead": "263db83002000d6deed33b6eb1341e76f6609f42"
21
21
  }
package/src/index.d.ts CHANGED
@@ -14,7 +14,7 @@ import {
14
14
  ValueBase
15
15
  } from '@react-types/shared';
16
16
 
17
- export interface SliderProps<T = number[]> extends RangeInputBase<number>, ValueBase<T>, LabelableProps {
17
+ export interface SliderProps<T = number | number[]> extends RangeInputBase<number>, ValueBase<T>, LabelableProps {
18
18
  /**
19
19
  * The orientation of the Slider.
20
20
  * @default 'horizontal'
@@ -46,6 +46,7 @@ export interface SliderThumbProps extends FocusableProps, Validation, LabelableP
46
46
  /**
47
47
  * The orientation of the Slider.
48
48
  * @default 'horizontal'
49
+ * @deprecated - pass to the slider instead.
49
50
  */
50
51
  orientation?: Orientation,
51
52
  /** Whether the Thumb is disabled. */
@@ -54,7 +55,7 @@ export interface SliderThumbProps extends FocusableProps, Validation, LabelableP
54
55
  index: number
55
56
  }
56
57
 
57
- export interface AriaSliderProps<T = number[]> extends SliderProps<T>, DOMProps, AriaLabelingProps {}
58
+ export interface AriaSliderProps<T = number | number[]> extends SliderProps<T>, DOMProps, AriaLabelingProps {}
58
59
  export interface AriaSliderThumbProps extends SliderThumbProps, DOMProps, FocusableDOMProps, AriaLabelingProps, AriaValidationProps {}
59
60
 
60
61
  export interface SpectrumBarSliderBase<T> extends AriaSliderProps<T>, ValueBase<T>, StyleProps {